Public feed #528263

Untitled

public text v1 · immutable
Raw Edit
·published 2007-06-01 14:01 UTC
rendered paste body
LooKupJungle    proc near               ; CODE XREF: LookUpShit+39p

arg_0           = dword ptr  4
arg_4           = dword ptr  8
arg_8           = dword ptr  0Ch

                mov     eax, [esp+arg_0]
                push    ebx
                mov     ebx, [esp+4+arg_8]
                push    esi
                push    edi
                xor     edi, edi
                mov     [esp+0Ch+arg_0], eax

@1:                                     ; CODE XREF: LooKupJungle+67j
                xor     esi, esi

@2:                                     ; CODE XREF: LooKupJungle+56j
                mov     ecx, [esp+0Ch+arg_0]
                mov     eax, [esp+0Ch+arg_4]
                mov     dl, [ecx+esi]
                mov     cl, [esi+eax]
                push    edx
                push    ecx
                call    LookUp1
                add     esp, 8
                mov     byte ptr [esp+0Ch+arg_8], al
                test    esi, esi
                jnz     short @3
                mov     eax, [esp+0Ch+arg_8]
                jmp     short @4
; ---------------------------------------------------------------------------

@3:                                     ; CODE XREF: LooKupJungle+31j
                mov     edx, [esp+0Ch+arg_8]
                mov     al, [edi+ebx]
                push    edx
                push    eax
                call    LookUp2
                add     esp, 8

@4:                                     ; CODE XREF: LooKupJungle+37j
                and     eax, 0FFh
                inc     esi
                cmp     esi, 8
                mov     [edi+ebx], al
                jl      short @2
                mov     ecx, [esp+0Ch+arg_0]
                inc     edi
                add     ecx, 8
                cmp     edi, 8
                mov     [esp+0Ch+arg_0], ecx
                jl      short @1
                pop     edi
                pop     esi
                pop     ebx
                retn
LooKupJungle    endp


LookUp2         proc near               ; CODE XREF: LooKupJungle+42p

arg_0           = dword ptr  4
arg_4           = dword ptr  8

                mov     eax, [esp+arg_0]
                mov     ecx, [esp+arg_4]
                and     eax, 0FFh
                and     ecx, 0FFh
                shl     eax, 5
                add     eax, ecx
                movsx   edx, Table3[eax*2]
                mov     al, Table4[edx]
                retn
LookUp2         endp

; ---------------------------------------------------------------------------
                align 10h

; ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ S U B R O U T I N E ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦


LookUp1         proc near               ; CODE XREF: LooKupJungle+23p

arg_0           = dword ptr  4
arg_4           = dword ptr  8

                mov     eax, [esp+arg_0]
                mov     ecx, [esp+arg_4]
                and     eax, 0FFh
                and     ecx, 0FFh
                shl     eax, 5
                add     eax, ecx
                movsx   edx, Table1[eax*2]
                mov     al, Table2[edx]
                retn
LookUp1         endp