Function at 0x404ac0
Capabilities:
Enumerate pe sections
Log keystrokes via polling

Disassembly:
sub esp, 0xf8
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x11c]
mov al, byte [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x118]
push ebp
mov ebp, dword [esp + 0x110]
push esi
push edi
mov dword [esp + 0x30], 0x7fff
cmp ecx, 0xffc3d44f
je 0x404b12
cmp ecx, 0xffc3d44e
je 0x404b12
mov byte [esp + 0x12], 0
cmp ecx, 0xffc3d44d
jne 0x404b17
mov byte [esp + 0x12], 1
mov ecx, dword [0x4c8f4c]
test ecx, ecx
jne 0x404b2e
lea edi, [esp + 0x34]
mov dword [esp + 0x14], edi
jmp 0x404bf7
mov eax, dword [0x4c8f50]
mov edi, eax
imul edi, edi, 0xd4
inc eax
add edi, ecx
mov dword [esp + 0x14], edi
mov dword [0x4c8f50], eax
cmp eax, dword [0x4c4920]
jl 0x404b59
mov dword [0x4c8f50], 0
mov al, byte [esp + 0x11c]
mov byte [edi], al
mov byte [edi + 6], bl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [0x4ca26c]
mov dword [0x4c8f54], eax
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
jns 0x404b88
fadd dword [0x4bea70]
fdiv qword [0x4bea68]
mov dword [0x4ca26c], eax
fstp dword [edi + 8]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x404bca
cmp esi, dword [0x4c8f58]
je 0x404bc2
mov eax, dword [0x4c8538]
push esi
lea edx, [edi + 0xc]
push edx
push 0x418
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x404be3
xor ecx, ecx
mov word [edi + 0xc], cx
jmp 0x404be3
mov eax, 0x4a38e0
lea edx, [edi + 0xc]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404bd4
mov al, byte [esp + 0x11c]
mov edx, dword [esp + 0x12c]
mov dword [0x4c8f58], esi
cmp al, 0xe7
jne 0x404c45
movzx eax, word [ebp + 4]
mov ecx, dword [esp + 0x114]
push 0x7fff
push edi
push ebx
mov edx, 0x55
push 0xe7
push ecx
mov ecx, dword [esp + 0x120]
mov word [edi + 4], dx
mov edx, dword [esp + 0x124]
push edx
push ecx
mov ecx, ebp
mov word [edi + 2], ax
call fcn.00406640
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret
mov esi, dword [esp + 0x120]
lea ecx, [eax + 0x64]
mov word [edi + 2], si
cmp cl, 3
ja 0x404c61
xor esi, esi
mov dword [esp + 0x120], esi
mov ecx, dword [esp + 0x10c]
cmp ecx, dword [0x4c866c]
jne 0x404c95
and dl, 1
mov byte [esp + 0x13], dl
jne 0x404dae
test bl, bl
setne dl
dec dl
movzx eax, al
and dl, 0x80
mov byte [eax + 0x4c8558], dl
jmp 0x404dae
shr edx, 4
and dl, 1
mov byte [esp + 0x13], dl
test esi, 0x100
jne case.0x404cd9.13
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je case.0x404cd9.13
movzx eax, byte [esp + 0x11c]
add eax, 0xfffffff4
cmp eax, 0x62
ja case.0x404cd9.13
movzx ecx, byte [eax + 0x406470]
jmp dword [ecx*4 + 0x406440]
test bl, bl
sete dl
mov byte [0x4c7424], dl
jmp case.0x404cd9.13
test bl, bl
sete al
mov byte [0x4c7425], al
jmp case.0x404cd9.13
test bl, bl
sete cl
mov byte [0x4c7426], cl
jmp case.0x404cd9.13
test bl, bl
sete dl
mov byte [0x4c7427], dl
jmp case.0x404cd9.13
test bl, bl
sete al
mov byte [0x4c7428], al
jmp case.0x404cd9.13
test bl, bl
sete cl
mov byte [0x4c7429], cl
jmp case.0x404cd9.13
test bl, bl
sete dl
mov byte [0x4c742a], dl
jmp case.0x404cd9.13
test bl, bl
sete al
mov byte [0x4c742b], al
jmp case.0x404cd9.13
test bl, bl
sete cl
mov byte [0x4c742c], cl
jmp case.0x404cd9.13
test bl, bl
sete dl
mov byte [0x4c742d], dl
jmp case.0x404cd9.13
test bl, bl
sete al
mov byte [0x4c742e], al
movzx esi, byte [esp + 0x11c]
mov edx, dword [0x4c8f74]
lea ecx, [esi + esi*4]
cmp byte [edx + ecx*4 + 8], 0
jne 0x404dae
test byte [esp + 0x12c], 0x10
jne 0x404dae
mov al, byte [esp + 0x11c]
push ebx
call fcn.00407a40
add esp, 4
test al, al
je 0x404dae
test bl, bl
setne al
dec al
and al, 0x80
mov byte [esi + 0x4c8558], al
cmp byte [esp + 0x12], 0
je 0x404db9
mov al, 0x69
jmp 0x404dc5
mov al, byte [esp + 0x13]
neg al
sbb al, al
and al, 0x41
add al, 0x20
cmp byte [0x4c8658], 0
movsx cx, al
mov word [edi + 4], cx
je 0x404e10
mov al, byte [esp + 0x11c]
cmp al, 0x5b
je 0x404de5
cmp al, 0x5c
jne 0x404e10
test bl, bl
jne 0x404e10
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
push 0
push SysReAllocString
push 0x7fff
push 0
push edx
push eax
mov ebx, edi
mov eax, ebp
jmp 0x406426
cmp byte [0x4c7447], 0
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, dword [sym.imp.USER32.dll_FindWindowW]
je 0x404ed7
cmp byte [esp + 0x11c], 0x1b
jne 0x404ed7
test bl, bl
jne 0x404ed7
push 0
push str.32771
call esi
test eax, eax
je 0x404ed7
push 0
push eax
call edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebp, eax
jne 0x404ed7
push 0xffc3d44d
push 0
push 0
push 0
push 0x1b
push 0
call fcn.0040fb60
mov cl, byte [0x4c8535]
push 0xffc3d44d
shr cl, 3
push 0
and cl, 1
or cl, 0xa4
push 0
movzx edx, cl
push 0
push edx
push 1
call fcn.0040fb60
mov eax, dword [esp + 0x150]
push 0
push SysReAllocString
push 0x7fff
push 0
push eax
push 0x1b
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x160]
mov ecx, dword [esp + 0x154]
call fcn.00406510
add esp, 0x48
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret
movzx eax, word [esp + 0x120]
mov edx, dword [0x4c8f78]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov edx, dword [esp + 0x10c]
mov cl, byte [eax + 0x13]
mov byte [esp + 0x24], cl
cmp edx, dword [0x4c8668]
jne 0x404f13
test cl, cl
je 0x404f13
mov ecx, dword [0x4c8f74]
mov ebp, eax
mov dword [esp + 0x1c], eax
jmp 0x404f2b
movzx eax, byte [esp + 0x11c]
mov ecx, dword [0x4c8f74]
lea eax, [eax + eax*4]
lea ebp, [ecx + eax*4]
mov dword [esp + 0x1c], ebp
cmp byte [esp + 0x12], 0
je 0x404fa9
cmp dword [esp + 0x128], 0xffc3d44e
jne 0x404f5d
test bl, bl
je 0x404f5d
cmp dword [0x4c7448], ebp
jne 0x404f5d
mov byte [ebp + 0xd], 0
mov byte [ebp + 0x10], 0
mov dword [0x4c7448], 0
mov ecx, dword [esp + 0x14]
push 0x7fff
push ecx
push ebx
mov edx, dword [esp + 0x128]
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x11c]
push edx
mov edx, dword [esp + 0x11c]
push eax
push ecx
push edx
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x134]
call fcn.00406640
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret
test bl, bl
jne 0x404fb9
mov eax, 0x7fff
mov byte [ebp + 0x11], bl
mov word [ebp + 4], ax
cmp edx, dword [0x4c866c]
jne 0x40506b
mov al, byte [esp + 0x11c]
test al, al
jne 0x405016
mov ecx, dword [esp + 0x14]
push 0x7fff
push ecx
push ebx
push 0
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x11c]
push edx
push eax
push ecx
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x134]
call fcn.00406640
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret
cmp al, 1
je 0x40501e
cmp al, 2
jne 0x40506b
cmp dword [0x4c86c8], 0
jne 0x405041
push 0
push str.32768
call esi
test eax, eax
je 0x405065
push 0
push eax
call edi
cmp eax, dword [0x4c96c0]
jne 0x405065
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x11c]
push 0x7fff
push eax
test bl, bl
sete dl
push ebx
mov byte [ebp + 0x10], 0
mov byte [ebp + 0xd], dl
push ecx
jmp 0x404fdd
mov ecx, dword [0x4c8f74]
mov esi, dword [0x4c7448]
test esi, esi
je 0x4050a4
cmp esi, ebp
je 0x4050a4
test bl, bl
jne 0x4050a4
mov edi, dword [0x4c8668]
cmp dword [esp + 0x10c], edi
jne 0x405096
xor eax, eax
cmp byte [ebp + 8], al
sete al
jmp 0x40509a
movzx eax, byte [esi + 8]
test eax, eax
je 0x4050aa
mov byte [esi + 0x12], 1
jmp 0x4050aa
mov edi, dword [0x4c8668]
cmp byte [ebp + 9], 0
jne 0x4050e6
cmp byte [ebp + 0xa], 0
jne 0x4050e6
mov edx, dword [esp + 0x14]
push 0x7fff
push edx
mov eax, dword [esp + 0x124]
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x118]
push ebx
push eax
mov eax, dword [esp + 0x11c]
push ecx
push edx
push eax
jmp 0x404ff5
mov dword [esp + 0x18], 0x7fff
mov dword [esp + 0x28], 0
test bl, bl
je 0x405124
mov al, byte [ebp + 0x10]
mov dl, byte [ebp + 0xd]
mov byte [esp + 0x13], al
movzx eax, word [ebp + 4]
mov byte [esp + 0x23], dl
mov edx, 0x7fff
mov byte [ebp + 0x10], 0
cmp ax, dx
je 0x405122
mov dword [esp + 0x18], eax
mov word [ebp + 4], dx
test bl, bl
sete al
mov byte [ebp + 0xd], al
mov byte [esp + 0x10], 0
cmp dword [esp + 0x10c], edi
jne 0x4051ad
cmp byte [ebp + 8], 0
je 0x4051d0
cmp byte [ecx + 0xcb5], 0
jne 0x405158
cmp byte [ecx + 0xcc9], 0
jne 0x405158
xor eax, eax
jmp 0x40515d
mov eax, 1
cmp byte [ecx + 0xcdd], 0
mov byte [ecx + 0x161], al
jne 0x405179
cmp byte [ecx + 0xcf1], 0
jne 0x405179
xor eax, eax
jmp 0x40517e
mov eax, 1
cmp byte [ecx + 0xc8d], 0
mov byte [ecx + 0x175], al
jne 0x4051a0
cmp byte [ecx + 0xca1], 0
jne 0x4051a0
xor eax, eax
mov byte [ecx + 0x14d], al
jmp 0x4051d0
mov eax, 1
mov byte [ecx + 0x14d], al
jmp 0x4051d0
test edi, edi
jne 0x4051d0
push 1
call fcn.00412100
mov esi, dword [0x4c7448]
add esp, 4
mov byte [0x4c8536], al
mov byte [0x4c8535], al
mov byte [esp + 0x10], 1
mov eax, dword [ebp]
test eax, eax
je 0x4051e1
cmp dword [eax], 7
mov byte [esp + 0x12], 1
je 0x4051e6
mov byte [esp + 0x12], 0
mov al, byte [ebp + 9]
test al, al
je 0x4053ae
test bl, bl
jne 0x4053ae
test esi, esi
je 0x40520a
cmp byte [ebp + 0xa], bl
je 0x40520a
cmp ebp, esi
jne 0x4053ae
mov edi, dword [esp + 0x120]
cmp al, 1
jne 0x405246
cmp byte [esp + 0x24], 0
movzx eax, di
jne 0x405227
movzx eax, byte [esp + 0x11c]
mov ecx, dword [esp + 0x24]
push ecx
push eax
call fcn.0040a330
mov esi, dword [0x4c7448]
add esp, 8
test al, al
je 0x405246
mov byte [esp + 0x11], 1
jmp 0x40525b
mov byte [esp + 0x11], 0
cmp ebp, esi
je 0x40525b
mov esi, ebp
mov dword [0x4c7448], esi
mov byte [ebp + 0x12], 0
cmp byte [ebp + 0xa], 0
je 0x40531d
cmp byte [esp + 0x10], 0
jne 0x405281
push 1
mov byte [esp + 0x14], 1
call fcn.00412100
mov esi, dword [0x4c7448]
add esp, 4
mov al, byte [ebp + 8]
mov cl, byte [0x4c8536]
test al, al
je 0x405292
not al
and cl, al
test cl, cl
jne 0x4052a2
cmp byte [esp + 0x11], cl
jne 0x4052a2
test byte [ebp + 0xc], 1
je 0x40531d
mov edx, dword [0x4c8668]
cmp dword [esp + 0x10c], edx
jne 0x4052cf
cmp byte [esp + 0x24], 0
je 0x4052cf
mov edx, dword [0x4c8f6c]
movzx ecx, cl
movzx eax, di
shl ecx, 9
add ecx, eax
movzx ecx, word [edx + ecx*2]
jmp 0x4052e9
mov edx, dword [0x4c8f68]
movzx eax, cl
movzx ecx, byte [esp + 0x11c]
shl eax, 8
add eax, ecx
movzx ecx, word [edx + eax*2]
mov dword [esp + 0x18], ecx
test ecx, 0x8000
je 0x4052fb
mov word [ebp + 4], cx
jmp 0x40532f
mov edx, dword [0x4c5b28]
mov eax, ecx
and eax, 0x7fff
cmp ax, word [edx]
jae 0x405321
mov edx, dword [0x4c8f70]
mov ax, word [edx + eax*2]
mov word [ebp + 4], ax
jmp 0x405321
mov ecx, dword [esp + 0x18]
mov edx, 0x7fff
cmp cx, dx
jne 0x4053b5
mov al, byte [esp + 0x11]
mov ebx, dword [esp + 0x14]
test al, al
je 0x405348
or byte [ebp + 0xc], 8
mov ecx, 0x23
mov word [ebx + 4], cx
cmp byte [ebp + 8], 0
jne 0x40537f
test byte [ebp + 0xc], 1
jne 0x40537f
cmp byte [esp + 0x12], 0
jne 0x40537f
test al, al
jne 0x40537f
mov edx, dword [esp + 0x11c]
push 0
push SysReAllocString
push 0x7fff
push 0
push edi
mov byte [ebp + 0x11], 1
push edx
jmp 0x40641f
push 0x7fff
push ebx
push 0
mov eax, dword [esp + 0x128]
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x11c]
push eax
mov eax, dword [esp + 0x11c]
push ecx
push edx
push eax
mov eax, edi
jmp 0x404ffc
mov edi, dword [esp + 0x120]
cmp byte [ebp + 0xa], 0
mov byte [esp + 0x11], 0
je 0x405463
test bl, bl
je 0x405463
cmp esi, ebp
jne 0x4053e3
cmp byte [esp + 0x13], 0
je 0x405463
xor esi, esi
mov dword [0x4c7448], esi
cmp byte [ebp + 0xb], 0
jne 0x40545e
mov al, byte [ebp + 0xc]
test al, 8
je 0x4053f9
xor cl, cl
and al, 0xf7
mov byte [ebp + 0xc], al
jmp 0x4053fb
mov cl, 1
cmp byte [esp + 0x13], 0
je 0x40542c
test cl, cl
je 0x40542c
mov ecx, dword [esp + 0x124]
mov edx, dword [esp + 0x11c]
mov ebx, dword [esp + 0x14]
push 0
push SysReAllocString
push 0x7fff
push ecx
push edi
push edx
jmp 0x40641f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x114]
push 0x7fff
push eax
mov eax, dword [esp + 0x118]
push ebx
push ecx
mov ecx, dword [esp + 0x11c]
push edx
push eax
push ecx
mov eax, edi
jmp 0x404ffc
mov byte [esp + 0x11], 1
cmp byte [ebp + 9], 0
je 0x405638
test bl, bl
je 0x405638
cmp esi, ebp
jne 0x405481
xor esi, esi
mov dword [0x4c7448], esi
cmp byte [ebp + 0xe], 0
je 0x4054a8
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
mov byte [ebp + 0xe], 0
call fcn.0040fb60
mov esi, dword [0x4c7448]
add esp, 0x18
cmp byte [ebp + 0xf], 0
je 0x4054cf
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
mov byte [ebp + 0xf], 0
call fcn.0040fb60
mov esi, dword [0x4c7448]
add esp, 0x18
mov edx, dword [esp + 0x18]
mov eax, 0x7fff
cmp dx, ax
jne 0x40551b
mov al, byte [ebp + 0xc]
test al, 8
je 0x40551b
and al, 0xf7
mov byte [ebp + 0xc], al
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x11c]
mov eax, dword [esp + 0x114]
push 0x7fff
push ecx
mov ecx, dword [esp + 0x118]
push ebx
push edx
mov edx, dword [esp + 0x11c]
push eax
push ecx
push edx
mov eax, edi
jmp 0x404ffc
mov cl, byte [esp + 0x12]
test cl, cl
je 0x4055a7
mov al, byte [ebp + 0x12]
cmp al, 2
jne 0x405574
mov esi, dword [esp + 0x11c]
push 0xffc3d44e
push 0
push 0
push edi
push esi
push 1
call fcn.0040fb60
push 0xffc3d44d
push 0
push 0
push edi
push esi
push 2
call fcn.0040fb60
mov eax, dword [esp + 0x154]
push 0
push SysReAllocString
push 0x7fff
push eax
push edi
push esi
jmp 0x404eb2
cmp al, 1
je 0x4054e9
cmp byte [ebp + 0xa], 0
jne 0x40561b
cmp byte [ebp + 8], 0
jne 0x40542c
test byte [ebp + 0xc], 1
jne 0x40542c
test cl, cl
jne 0x40542c
jmp 0x405406
cmp byte [ebp + 0x12], 0
je 0x40557c
mov eax, 0x7fff
cmp dx, ax
jne 0x40557c
cmp byte [ebp + 8], 0
jne 0x4054e9
test byte [ebp + 0xc], 1
je 0x4055f5
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x114]
push eax
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x118]
push ebx
push ecx
mov ecx, dword [esp + 0x11c]
push edx
push eax
push ecx
mov eax, edi
jmp 0x404f8f
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x11c]
mov ebx, dword [esp + 0x14]
push 0
push SysReAllocString
push 0x7fff
push edx
push edi
push eax
jmp 0x40641f
cmp byte [esp + 0x23], 0
jne 0x40563c
cmp byte [ebp + 0xb], 0
jne 0x40563c
mov edx, dword [esp + 0x14]
push 0x7fff
push edx
push ebx
jmp 0x405387
mov edx, dword [esp + 0x18]
cmp byte [esp + 0x10], 0
jne 0x405661
mov ecx, 0x7fff
cmp dx, cx
jne 0x405661
push 1
call fcn.00412100
mov esi, dword [0x4c7448]
mov edx, dword [esp + 0x1c]
add esp, 4
mov byte [esp + 0x10], 0
test esi, esi
je 0x405a32
test bl, bl
je 0x40567c
cmp byte [ebp + 0xb], 0
je 0x405a32
mov eax, 0x7fff
cmp dx, ax
jne 0x405d0f
movzx esi, word [ebp + 6]
mov ecx, eax
xor edx, edx
cmp si, cx
je 0x40581b
mov edi, dword [0x4c8f74]
mov ecx, dword [0x4c8f84]
movzx eax, si
mov eax, dword [ecx + eax*4]
mov cl, byte [eax + 0x11]
test cl, cl
je 0x4056bf
movzx ecx, cl
lea ecx, [ecx + ecx*4]
lea ecx, [edi + ecx*4]
jmp 0x4056cf
movzx ecx, word [eax + 0xa]
mov ebx, dword [0x4c8f78]
lea ecx, [ecx + ecx*4]
lea ecx, [ebx + ecx*4]
cmp byte [ecx + 0xd], 0
je 0x405704
cmp byte [eax + 0x16], 0
je 0x4056f4
mov ebx, dword [esp + 0x124]
test bl, bl
jne 0x40571b
mov cx, word [eax + 4]
mov word [ebp + 4], cx
test edx, edx
jne 0x405725
jmp 0x405704
cmp byte [esp + 0x124], 0
jne 0x405704
test edx, edx
jne 0x405704
mov edx, eax
movzx esi, word [eax + 0xc]
mov eax, 0x7fff
cmp si, ax
jne 0x4056a1
mov ebx, dword [esp + 0x124]
jmp 0x40571d
mov edx, eax
test edx, edx
je 0x405822
movzx eax, byte [edx + 0x11]
cmp eax, 0x12
ja case.0x405735.1
movzx ecx, byte [eax + 0x4064e8]
jmp dword [ecx*4 + 0x4064d4]
xor eax, eax
cmp byte [edi + 0xca1], al
setne al
lea eax, [eax + eax*4 + 0x320]
lea ecx, [edi + eax*4]
mov dword [0x4c7448], ecx
jmp 0x4057b0
xor eax, eax
cmp byte [edi + 0xcc9], al
setne al
lea eax, [eax + eax*4 + 0x32a]
lea ecx, [edi + eax*4]
mov dword [0x4c7448], ecx
jmp 0x4057b0
xor eax, eax
cmp byte [edi + 0xcf1], al
setne al
lea eax, [eax + eax*4 + 0x334]
lea ecx, [edi + eax*4]
mov dword [0x4c7448], ecx
jmp 0x4057b0
movzx eax, word [edx + 0xa]
mov ecx, dword [0x4c8f78]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
jmp 0x4057ab
lea ecx, [eax + eax*4]
lea eax, [edi + ecx*4]
mov dword [0x4c7448], eax
movzx eax, word [edx + 6]
mov ebp, dword [esp + 0x14]
test ax, ax
je 0x4057d4
mov ecx, eax
mov dword [esp + 0x18], ecx
mov edx, dword [0x4c7448]
movzx esi, word [esp + 0x18]
mov byte [edx + 0x12], 2
jmp 0x405826
movzx edx, word [edx + 4]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x128]
lea eax, [esp + 0x18]
push ebx
push eax
add ecx, 0xc
lea esi, [ebp + 4]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], edx
call fcn.0040a540
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4057c3
mov ecx, dword [esp + 0x11c]
push 0x7fff
push ebp
push ebx
push ecx
jmp 0x404fdd
mov ebx, dword [esp + 0x124]
mov ebp, dword [esp + 0x14]
mov eax, 0x7ffe
cmp si, ax
je 0x40583e
mov ecx, 0x7ffd
cmp si, cx
jne 0x405a36
test bl, bl
jne 0x40584a
mov edx, dword [esp + 0x1c]
mov byte [edx + 0x10], 1
test byte [0x4c8535], 0xc
jne 0x40586a
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040fb60
add esp, 0x18
mov ebx, dword [esp + 0x11c]
cmp bl, 0xa2
je 0x40587b
cmp bl, 0xa3
jne 0x4058a1
cmp byte [esp + 0x124], 0
jne 0x4058a1
mov eax, dword [esp + 0x120]
push 0xffc3d44d
push 0
push 0
push eax
push ebx
push 1
call fcn.0040fb60
add esp, 0x18
mov ecx, dword [0x4c7448]
mov edx, 0x7ffd
mov byte [ecx + 0xe], 1
cmp si, dx
jne 0x4058e3
test byte [0x4c8535], 0x30
jne 0x4058d5
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040fb60
add esp, 0x18
mov eax, dword [0x4c7448]
mov byte [eax + 0xf], 1
jmp 0x405963
mov ecx, 0x7ffe
cmp si, cx
jne 0x405963
cmp bl, 0xa0
je 0x4058f7
cmp bl, 0xa1
jne 0x40591d
cmp byte [esp + 0x124], 0
jne 0x40591d
mov edx, dword [esp + 0x120]
push 0xffc3d44d
push 0
push 0
push edx
push ebx
push 1
call fcn.0040fb60
add esp, 0x18
test byte [0x4c8535], 0x10
je 0x405940
push 0xffc3d44d
push 0
push 0
push 0
push 0xa0
push 1
call fcn.0040fb60
add esp, 0x18
test byte [0x4c8535], 0x20
je 0x405963
push 0xffc3d44d
push 0
push 0
push 0
push 0xa1
push 1
call fcn.0040fb60
add esp, 0x18
test byte [0x4c8535], 1
je 0x405986
push 0xffc3d44d
push 0
push 0
push 0
push 0xa2
push 1
call fcn.0040fb60
add esp, 0x18
test byte [0x4c8535], 2
je 0x4059a9
push 0xffc3d44d
push 0
push 0
push 0
push 0xa3
push 1
call fcn.0040fb60
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040fb60
mov eax, 0x7ffd
add esp, 0x18
cmp si, ax
jne 0x405a06
mov ecx, dword [0x4c7448]
cmp byte [ecx + 0xf], 0
je 0x405a06
cmp bl, 0x60
jb 0x4059e0
cmp bl, 0x69
jbe 0x4059e5
cmp bl, 0x6e
jne 0x405a06
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040fb60
mov edx, dword [0x4c7448]
add esp, 0x18
mov byte [edx + 0xf], 0
cmp byte [esp + 0x124], 0
mov eax, 0x68
mov word [ebp + 4], ax
jne 0x405a21
mov ecx, dword [esp + 0x1c]
mov byte [ecx + 0x11], 1
push 0
push SysReAllocString
push 0x7fff
jmp 0x406405
mov ebp, dword [esp + 0x14]
mov edx, 0x7fff
cmp word [esp + 0x18], dx
jne 0x405d13
mov ecx, dword [esp + 0x1c]
mov cl, byte [ecx + 8]
mov al, byte [0x4c8536]
test cl, cl
je 0x405a5a
not cl
and al, cl
mov ebx, dword [0x4c8668]
cmp dword [esp + 0x10c], ebx
jne 0x405a95
cmp byte [esp + 0x24], 0
je 0x405a95
mov esi, dword [esp + 0x120]
movzx edx, al
movzx ecx, si
shl edx, 9
add edx, ecx
mov ecx, dword [0x4c8f6c]
movzx edx, word [ecx + edx*2]
mov cl, byte [esp + 0x11c]
jmp 0x405ab8
mov cl, byte [esp + 0x11c]
movzx edx, al
movzx esi, cl
shl edx, 8
add edx, esi
mov esi, dword [0x4c8f68]
movzx edx, word [esi + edx*2]
mov esi, dword [esp + 0x120]
mov edi, 0x7fff
mov dword [esp + 0x18], edx
cmp dx, di
jne 0x405b34
cmp byte [0x4c7447], 0
je 0x405b34
cmp cl, 9
je 0x405b34
and al, 0xf3
cmp dword [esp + 0x10c], ebx
jne 0x405afd
cmp byte [esp + 0x24], 0
je 0x405afd
mov edx, dword [0x4c8f6c]
movzx ecx, al
movzx eax, si
shl ecx, 9
add ecx, eax
movzx edx, word [edx + ecx*2]
jmp 0x405b12
mov edx, dword [0x4c8f68]
movzx eax, al
movzx ecx, cl
shl eax, 8
add eax, ecx
movzx edx, word [edx + eax*2]
mov eax, edx
and eax, 0x7fff
mov ecx, 0x7ff9
mov dword [esp + 0x18], edx
cmp ax, cx
jbe 0x405b2e
mov ecx, edi
cmp ax, cx
jb 0x405b34
mov edx, edi
mov dword [esp + 0x18], edx
test edx, 0x8000
je 0x405b9a
cmp byte [esp + 0x124], 0
jne 0x405c3b
mov ecx, dword [esp + 0x1c]
mov dx, word [esp + 0x18]
mov esi, dword [esp + 0x120]
mov word [ecx + 4], dx
lea eax, [ecx + 4]
mov ecx, 0x7fff
cmp word [eax], cx
jne 0x405cc9
mov edx, dword [esp + 0x11c]
mov eax, dword [esp + 0x114]
push ecx
mov ecx, dword [esp + 0x114]
push ebp
push 0
push edx
mov edx, dword [esp + 0x11c]
push eax
push ecx
push edx
mov eax, esi
jmp 0x404ffc
mov eax, edi
cmp dx, ax
je 0x405c52
mov ecx, dword [0x4c5b28]
and edx, eax
cmp byte [esp + 0x124], 0
mov eax, edx
je 0x405c22
cmp ax, word [ecx]
jae 0x405c19
movzx ebx, ax
mov eax, dword [0x4c8f70]
add ebx, ebx
mov edx, edi
cmp word [ebx + eax], dx
je 0x405c19
cmp byte [esp + 0x11], 0
jne 0x405c09
mov edx, dword [esp + 0x124]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x128]
push edx
lea eax, [esp + 0x1c]
push eax
add ecx, 0xc
lea esi, [ebp + 4]
lea eax, [esp + 0x18]
call fcn.0040a540
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
jne 0x405c3b
mov ecx, dword [0x4c8f70]
movzx edx, word [ebx + ecx]
mov dword [esp + 0x18], edx
jmp 0x405c3b
cmp byte [esp + 0x11], 0
jne 0x405c52
jmp 0x405c3b
cmp ax, word [ecx]
jae 0x405c3b
movzx edx, ax
mov eax, dword [0x4c8f70]
mov cx, word [eax + edx*2]
mov edx, dword [esp + 0x1c]
mov word [edx + 4], cx
mov eax, 0x7fff
cmp word [esp + 0x18], ax
jne 0x405d13
mov esi, dword [esp + 0x120]
mov eax, dword [esp + 0x124]
mov ecx, dword [esp + 0x1c]
test al, al
je 0x405b5e
cmp byte [ecx + 8], 0
jne 0x405c9b
test byte [ecx + 0xc], 1
jne 0x405c9b
cmp byte [ecx + 9], 0
je 0x405c9b
cmp byte [esp + 0x12], 0
jne 0x405c9b
mov edx, dword [esp + 0x11c]
push 0
push SysReAllocString
push 0x7fff
mov ecx, eax
push ecx
push esi
push edx
jmp 0x40641d
mov ecx, dword [esp + 0x114]
mov edx, dword [esp + 0x110]
push 0x7fff
push ebp
push eax
mov eax, dword [esp + 0x128]
push eax
mov eax, dword [esp + 0x11c]
push ecx
push edx
push eax
mov eax, esi
jmp 0x404ffc
mov ecx, dword [esp + 0x1c]
push 1
push eax
add ecx, 0xc
xor esi, esi
lea eax, [esp + 0x18]
xor edi, edi
call fcn.0040a540
add esp, 8
cmp byte [esp + 0x10], 0
jne 0x405e1a
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x11c]
push edi
push SysReAllocString
push 0x7fff
push edi
push ecx
push edx
jmp 0x40641d
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov al, byte [ecx + 0xc]
add ecx, 0xc
mov dword [esp + 0x14], ecx
test al, 8
je 0x405d38
cmp byte [esp + 0x124], 0
je 0x405d38
and al, 0xf7
mov byte [esp + 0x10], 1
mov byte [ecx], al
mov eax, dword [esp + 0x18]
mov ecx, dword [0x4c5b28]
and eax, 0x7fff
cmp ax, word [ecx]
jae 0x405e79
cmp dword [esp + 0x28], 0
jne 0x405e79
mov ebx, dword [esp + 0x124]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x128]
lea edx, [esp + 0x18]
push ebx
push edx
lea esi, [ebp + 4]
lea eax, [esp + 0x18]
call fcn.0040a540
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
jne 0x405e79
cmp word [esi], 0x69
jne 0x405d9f
push 0x7fff
push ebp
jmp 0x4050c0
test bl, bl
je 0x405ddd
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 0x11], 0
jne 0x405a21
mov edx, dword [esp + 0x11c]
mov eax, dword [esp + 0x114]
mov ecx, dword [esp + 0x110]
push 0x7fff
push ebp
push ebx
push edx
mov edx, dword [esp + 0x11c]
push eax
push ecx
push edx
jmp 0x404ff5
mov eax, dword [esp + 0x1c]
add eax, 4
mov ecx, 0x7fff
cmp word [eax], cx
jne 0x405df7
push ecx
push ebp
push 0
jmp 0x404f68
mov ecx, dword [esp + 0x14]
push 1
push eax
xor esi, esi
lea eax, [esp + 0x18]
xor edi, edi
mov byte [esp + 0x18], 0
call fcn.0040a540
add esp, 8
cmp byte [esp + 0x10], 0
je 0x405e47
push 0x7fff
push ebp
push 0
mov eax, dword [esp + 0x128]
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x11c]
push eax
mov eax, dword [esp + 0x11c]
push ecx
push edx
push eax
jmp 0x404f88
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x120]
and byte [eax], 0xf7
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x11c]
push 0
push SysReAllocString
push 0x7fff
push 0
push edx
mov byte [ecx + 0x11], 1
push eax
jmp 0x40641d
mov esi, dword [esp + 0x18]
mov dl, byte [0x4c8535]
and esi, 0x7fff
test dl, 0xcc
je 0x405f40
cmp byte [esp + 0x10], 0
jne 0x405f40
cmp byte [0x4c744c], 0
jne 0x405eb9
mov ecx, dword [esp + 0x10c]
cmp ecx, dword [0x4c866c]
jne 0x405f40
mov bl, byte [0x4c8537]
test dl, 0xc0
je 0x405eeb
test bl, 0xc0
jne 0x405ee2
push 0xc0
mov eax, esi
call fcn.0040a790
mov dl, byte [0x4c8535]
add esp, 4
test al, al
je 0x405eeb
mov byte [0x4c744d], 1
jmp 0x405f40
cmp byte [0x4c744d], 0
jne 0x405f40
test dl, 0xc
je 0x405f40
test dl, 3
jne 0x405f40
test bl, 0xc
jne 0x405f19
push 0xc
mov eax, esi
call fcn.0040a790
mov dl, byte [0x4c8535]
add esp, 4
test al, al
je 0x405f40
cmp dword [0x4c8668], 0
je 0x405f2b
mov byte [0x4c744d], 1
jmp 0x405f40
push 2
mov eax, 0xffc3d44d
call fcn.00410230
mov dl, byte [0x4c8535]
add esp, 4
mov eax, esi
lea ecx, [eax - 0x7ffa]
cmp ecx, 4
ja case.default.0x405f51
jmp dword [ecx*4 + 0x4064fc]
cmp byte [0x4c7447], 0
jne case.0x405f51.32763
mov edx, dword [esp + 0x124]
push 0x7fff
push ebp
push edx
jmp 0x405e22
xor al, al
mov byte [esp + 0x11], al
test dl, 4
je 0x405f83
mov al, 0xa4
jmp 0x405f8a
test dl, 8
je 0x405f8e
mov al, 0xa5
mov byte [esp + 0x11], al
cmp byte [0x4c7447], 0
je 0x40608b
mov ecx, 0x7ffb
cmp si, cx
je case.0x405f51.32765
test al, al
movzx eax, al
jne 0x405fb5
mov eax, 0x12
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040fb60
mov edx, dword [esp + 0x34]
add esp, 0x18
cmp byte [edx + 8], 0
je 0x406004
mov eax, dword [esp + 0x11c]
cmp al, 0x5b
je 0x406004
cmp al, 0x5c
je 0x406004
cmp byte [esp + 0x124], 0
jne 0x406004
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040fb60
add esp, 0x18
mov byte [0x4c7447], 0
mov edi, dword [esp + 0x30]
cmp byte [esp + 0x12], 0
mov ebx, dword [esp + 0x124]
mov esi, dword [esp + 0x1c]
mov ecx, 0x68
mov word [ebp + 4], cx
je 0x406307
test bl, bl
je 0x40639d
cmp byte [esi + 9], 0
je 0x406307
mov ebx, dword [esp + 0x120]
mov esi, dword [esp + 0x11c]
push 0xffc3d44e
push 0
push 0
push ebx
push esi
push 1
call fcn.0040fb60
push 0xffc3d44d
push 0
push 0
push ebx
push esi
push 2
call fcn.0040fb60
mov edx, dword [esp + 0x154]
push 0
push SysReAllocString
push edi
push edx
push ebx
push esi
mov ebx, ebp
jmp 0x404eb6
mov al, byte [esp + 0x11c]
cmp al, 0xa4
je 0x40609f
mov byte [esp + 0x23], 0
cmp al, 0xa5
jne 0x4060a4
mov byte [esp + 0x23], 1
cmp al, 0xa0
je 0x4060b1
mov byte [esp + 0x13], 0
cmp al, 0xa1
jne 0x4060b6
mov byte [esp + 0x13], 1
cmp al, 0xa2
je 0x4060c3
mov byte [esp + 0x2f], 0
cmp al, 0xa3
jne 0x4060c8
mov byte [esp + 0x2f], 1
xor cl, cl
mov byte [esp + 0x28], cl
test dl, 0x10
je 0x4060d7
mov cl, 0xa0
jmp 0x4060f3
test dl, 0x20
je 0x4060e0
mov cl, 0xa1
jmp 0x4060f3
cmp byte [esp + 0x124], 0
jne 0x4060f7
cmp byte [esp + 0x13], 0
je 0x4060f7
mov cl, al
mov byte [esp + 0x28], cl
mov byte [esp + 0x24], 0
test dl, 1
je 0x406108
mov byte [esp + 0x24], 0xa2
jmp 0x406129
test dl, 2
je 0x406114
mov byte [esp + 0x24], 0xa3
jmp 0x406129
cmp byte [esp + 0x124], 0
jne 0x406129
cmp byte [esp + 0x2f], 0
je 0x406129
mov byte [esp + 0x24], al
mov esi, dword [esp + 0x28]
xor bl, bl
test cl, cl
je 0x40614b
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 1
call fcn.0040fb60
add esp, 0x18
mov bl, 1
cmp byte [esp + 0x24], 0
je 0x40616c
mov eax, dword [esp + 0x24]
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040fb60
add esp, 0x18
cmp byte [esp + 0x23], 0
je 0x406186
cmp byte [esp + 0x124], 0
jne 0x40618e
mov al, byte [esp + 0x11c]
jmp 0x40618a
mov al, byte [esp + 0x11]
test al, al
jne 0x4061a5
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040fb60
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040fb60
add esp, 0x18
test bl, bl
je 0x4061dd
cmp byte [esp + 0x13], 0
jne 0x4061dd
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 0
call fcn.0040fb60
add esp, 0x18
mov byte [0x4c7447], 1
jmp 0x40600b
cmp byte [0x4c7447], 0
jne 0x406205
mov ecx, dword [esp + 0x124]
push 0x7fff
push ebp
push ecx
jmp 0x404f68
cmp byte [esp + 0x124], 0
mov ebx, dword [esp + 0x11c]
jne 0x406240
cmp bl, 0xa2
je 0x40622a
cmp bl, 0xa3
je 0x40622a
cmp bl, 0xa0
je 0x40622a
cmp bl, 0xa1
jne 0x406240
push 0xffc3d44d
push 0
push 0
push 0
push ebx
push 1
call fcn.0040fb60
add esp, 0x18
test byte [0x4c8535], 0xc
je 0x40625d
cmp byte [esp + 0x124], 0
je 0x406274
cmp bl, 0xa4
je 0x40625d
cmp bl, 0xa5
jne 0x406274
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040fb60
add esp, 0x18
mov eax, 0x7ffd
xor bl, bl
cmp si, ax
jne 0x4062a2
test byte [0x4c8535], 0x30
jne 0x4062a2
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040fb60
add esp, 0x18
mov bl, 1
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040fb60
add esp, 0x18
test bl, bl
je 0x40600b
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040fb60
add esp, 0x18
jmp 0x40600b
mov ecx, dword [esp + 0x28]
mov edi, eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x40600f
cmp byte [eax], 5
jb 0x40600f
mov edx, ecx
movzx eax, word [edx + 0x14]
shl eax, 0x10
or edi, eax
jmp 0x40600f
test bl, bl
je 0x40639d
cmp byte [esi + 8], 0
je 0x406344
cmp byte [esi + 0x11], 0
je 0x4063c2
mov eax, dword [esp + 0x124]
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x11c]
push 0
push SysReAllocString
push edi
push eax
push ecx
push edx
jmp 0x40641d
cmp byte [esp + 0x10], 0
je 0x4063f5
mov eax, dword [esp + 0x10c]
push edi
push ebp
push ebx
cmp eax, dword [0x4c866c]
jne 0x40637f
mov ecx, dword [esp + 0x128]
mov edx, dword [esp + 0x120]
push ecx
mov ecx, dword [esp + 0x120]
push edx
push ecx
push eax
jmp 0x404f88
mov edx, dword [esp + 0x128]
mov ecx, dword [esp + 0x120]
push edx
mov edx, dword [esp + 0x120]
push ecx
push edx
push eax
jmp 0x404f88
mov eax, dword [0x4c7448]
mov byte [esi + 0x10], 1
test eax, eax
je 0x4063b4
cmp byte [eax + 8], 0
je 0x4063b4
mov byte [eax + 0x12], 2
cmp byte [esp + 0x10], 0
je 0x4063ca
mov eax, dword [esp + 0x14]
or byte [eax], 8
push edi
push ebp
push ebx
jmp 0x405e22
mov eax, dword [esp + 0x11c]
cmp al, 0xa4
je 0x4063d9
cmp al, 0xa5
jne 0x4063f5
mov ecx, dword [esp + 0x120]
push 0xffc3d450
push 0
push 0
push ecx
push eax
push 1
call fcn.0040fb60
add esp, 0x18
test bl, bl
jne 0x4063fd
mov byte [esi + 0x11], 1
push 0
push SysReAllocString
push edi
mov edx, dword [esp + 0x130]
mov eax, dword [esp + 0x12c]
mov ecx, dword [esp + 0x128]
push edx
push eax
push ecx
mov ebx, ebp
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0x124]
call fcn.00406510
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret