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 edx, dword [esp + 0x12c]
mov al, byte [esp + 0x11c]
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 + 0x406468]
jmp dword [ecx*4 + 0x406438]
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 0x40641b
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.0040fb70
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.0040fb70
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 byte [ebp + 0x10], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x11c]
push 0x7fff
push eax
test bl, bl
sete dl
push ebx
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 0x4050b6
cmp byte [ebp + 0xa], 0
je 0x405045
mov dword [esp + 0x18], 0x7fff
mov dword [esp + 0x28], 0
test bl, bl
je 0x4050f4
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 0x4050f2
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 0x40517d
cmp byte [ebp + 8], 0
je 0x4051a0
cmp byte [ecx + 0xcb5], 0
jne 0x405128
cmp byte [ecx + 0xcc9], 0
jne 0x405128
xor eax, eax
jmp 0x40512d
mov eax, 1
cmp byte [ecx + 0xcdd], 0
mov byte [ecx + 0x161], al
jne 0x405149
cmp byte [ecx + 0xcf1], 0
jne 0x405149
xor eax, eax
jmp 0x40514e
mov eax, 1
cmp byte [ecx + 0xc8d], 0
mov byte [ecx + 0x175], al
jne 0x405170
cmp byte [ecx + 0xca1], 0
jne 0x405170
xor eax, eax
mov byte [ecx + 0x14d], al
jmp 0x4051a0
mov eax, 1
mov byte [ecx + 0x14d], al
jmp 0x4051a0
test edi, edi
jne 0x4051a0
push 1
call fcn.00412110
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 0x4051b1
cmp dword [eax], 7
mov byte [esp + 0x12], 1
je 0x4051b6
mov byte [esp + 0x12], 0
mov al, byte [ebp + 9]
test al, al
je 0x40537e
test bl, bl
jne 0x40537e
test esi, esi
je 0x4051da
cmp byte [ebp + 0xa], bl
je 0x4051da
cmp ebp, esi
jne 0x40537e
mov edi, dword [esp + 0x120]
cmp al, 1
jne 0x405216
cmp byte [esp + 0x24], 0
movzx eax, di
jne 0x4051f7
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 0x405216
mov byte [esp + 0x11], 1
jmp 0x40522b
mov byte [esp + 0x11], 0
cmp ebp, esi
je 0x40522b
mov esi, ebp
mov dword [0x4c7448], esi
mov byte [ebp + 0x12], 0
cmp byte [ebp + 0xa], 0
je 0x4052ed
cmp byte [esp + 0x10], 0
jne 0x405251
push 1
mov byte [esp + 0x14], 1
call fcn.00412110
mov esi, dword [0x4c7448]
add esp, 4
mov al, byte [ebp + 8]
mov cl, byte [0x4c8536]
test al, al
je 0x405262
not al
and cl, al
test cl, cl
jne 0x405272
cmp byte [esp + 0x11], cl
jne 0x405272
test byte [ebp + 0xc], 1
je 0x4052ed
mov edx, dword [0x4c8668]
cmp dword [esp + 0x10c], edx
jne 0x40529f
cmp byte [esp + 0x24], 0
je 0x40529f
mov edx, dword [0x4c8f6c]
movzx ecx, cl
movzx eax, di
shl ecx, 9
add ecx, eax
movzx ecx, word [edx + ecx*2]
jmp 0x4052b9
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 0x4052cb
mov word [ebp + 4], cx
jmp 0x4052ff
mov edx, dword [0x4c5b28]
mov eax, ecx
and eax, 0x7fff
cmp ax, word [edx]
jae 0x4052f1
mov edx, dword [0x4c8f70]
mov ax, word [edx + eax*2]
mov word [ebp + 4], ax
jmp 0x4052f1
mov ecx, dword [esp + 0x18]
mov edx, 0x7fff
cmp cx, dx
jne 0x405385
mov al, byte [esp + 0x11]
mov ebx, dword [esp + 0x14]
test al, al
je 0x405318
or byte [ebp + 0xc], 8
mov ecx, 0x23
mov word [ebx + 4], cx
cmp byte [ebp + 8], 0
jne 0x40534f
test byte [ebp + 0xc], 1
jne 0x40534f
cmp byte [esp + 0x12], 0
jne 0x40534f
test al, al
jne 0x40534f
mov edx, dword [esp + 0x11c]
push 0
push SysReAllocString
push 0x7fff
push 0
push edi
mov byte [ebp + 0x11], 1
push edx
jmp 0x406414
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 0x405433
test bl, bl
je 0x405433
cmp esi, ebp
jne 0x4053b3
cmp byte [esp + 0x13], 0
je 0x405433
xor esi, esi
mov dword [0x4c7448], esi
cmp byte [ebp + 0xb], 0
jne 0x40542e
mov al, byte [ebp + 0xc]
test al, 8
je 0x4053c9
xor cl, cl
and al, 0xf7
mov byte [ebp + 0xc], al
jmp 0x4053cb
mov cl, 1
cmp byte [esp + 0x13], 0
je 0x4053fc
test cl, cl
je 0x4053fc
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 0x406414
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 0x405608
test bl, bl
je 0x405608
cmp esi, ebp
jne 0x405451
xor esi, esi
mov dword [0x4c7448], esi
cmp byte [ebp + 0xe], 0
je 0x405478
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
mov byte [ebp + 0xe], 0
call fcn.0040fb70
mov esi, dword [0x4c7448]
add esp, 0x18
cmp byte [ebp + 0xf], 0
je 0x40549f
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
mov byte [ebp + 0xf], 0
call fcn.0040fb70
mov esi, dword [0x4c7448]
add esp, 0x18
mov edx, dword [esp + 0x18]
mov eax, 0x7fff
cmp dx, ax
jne 0x4054eb
mov al, byte [ebp + 0xc]
test al, 8
je 0x4054eb
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 0x405577
mov al, byte [ebp + 0x12]
cmp al, 2
jne 0x405544
mov esi, dword [esp + 0x11c]
push 0xffc3d44e
push 0
push 0
push edi
push esi
push 1
call fcn.0040fb70
push 0xffc3d44d
push 0
push 0
push edi
push esi
push 2
call fcn.0040fb70
mov eax, dword [esp + 0x154]
push 0
push SysReAllocString
push 0x7fff
push eax
push edi
push esi
jmp 0x404eb2
cmp al, 1
je 0x4054b9
cmp byte [ebp + 0xa], 0
jne 0x4055eb
cmp byte [ebp + 8], 0
jne 0x4053fc
test byte [ebp + 0xc], 1
jne 0x4053fc
test cl, cl
jne 0x4053fc
jmp 0x4053d6
cmp byte [ebp + 0x12], 0
je 0x40554c
mov eax, 0x7fff
cmp dx, ax
jne 0x40554c
cmp byte [ebp + 8], 0
jne 0x4054b9
test byte [ebp + 0xc], 1
je 0x4055c5
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 0x406414
cmp byte [esp + 0x23], 0
jne 0x40560c
cmp byte [ebp + 0xb], 0
jne 0x40560c
mov edx, dword [esp + 0x14]
push 0x7fff
push edx
push ebx
jmp 0x405357
mov edx, dword [esp + 0x18]
cmp byte [esp + 0x10], 0
jne 0x405631
mov ecx, 0x7fff
cmp dx, cx
jne 0x405631
push 1
call fcn.00412110
mov esi, dword [0x4c7448]
mov edx, dword [esp + 0x1c]
add esp, 4
mov byte [esp + 0x10], 0
test esi, esi
je 0x405a08
test bl, bl
je 0x40564c
cmp byte [ebp + 0xb], 0
je 0x405a08
mov eax, 0x7fff
cmp dx, ax
jne 0x405ce3
movzx esi, word [ebp + 6]
mov ecx, eax
xor edx, edx
cmp si, cx
je 0x4057eb
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 0x40568f
movzx ecx, cl
lea ecx, [ecx + ecx*4]
lea ecx, [edi + ecx*4]
jmp 0x40569f
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 0x4056d4
cmp byte [eax + 0x16], 0
je 0x4056c4
mov ebx, dword [esp + 0x124]
test bl, bl
jne 0x4056eb
mov cx, word [eax + 4]
mov word [ebp + 4], cx
test edx, edx
jne 0x4056f5
jmp 0x4056d4
cmp byte [esp + 0x124], 0
jne 0x4056d4
test edx, edx
jne 0x4056d4
mov edx, eax
movzx esi, word [eax + 0xc]
mov eax, 0x7fff
cmp si, ax
jne 0x405671
mov ebx, dword [esp + 0x124]
jmp 0x4056ed
mov edx, eax
test edx, edx
je 0x4057f2
movzx eax, byte [edx + 0x11]
cmp eax, 0x12
ja case.0x405705.1
movzx ecx, byte [eax + 0x4064e0]
jmp dword [ecx*4 + 0x4064cc]
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 0x405780
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 0x405780
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 0x405780
movzx eax, word [edx + 0xa]
mov ecx, dword [0x4c8f78]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
jmp 0x40577b
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 0x4057a4
mov ecx, eax
mov dword [esp + 0x18], ecx
mov edx, dword [0x4c7448]
movzx esi, word [esp + 0x18]
mov byte [edx + 0x12], 2
jmp 0x4057f6
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 0x405793
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 0x40580e
mov ecx, 0x7ffd
cmp si, cx
jne 0x405a02
test bl, bl
jne 0x40581a
mov edx, dword [esp + 0x1c]
mov byte [edx + 0x10], 1
test byte [0x4c8535], 0xc
jne 0x40583a
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040fb70
add esp, 0x18
mov ebx, dword [esp + 0x11c]
cmp bl, 0xa2
je 0x40584b
cmp bl, 0xa3
jne 0x405871
cmp byte [esp + 0x124], 0
jne 0x405871
mov eax, dword [esp + 0x120]
push 0xffc3d44d
push 0
push 0
push eax
push ebx
push 1
call fcn.0040fb70
add esp, 0x18
mov ecx, dword [0x4c7448]
mov edx, 0x7ffd
mov byte [ecx + 0xe], 1
cmp si, dx
jne 0x4058b3
test byte [0x4c8535], 0x30
jne 0x4058a5
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040fb70
add esp, 0x18
mov eax, dword [0x4c7448]
mov byte [eax + 0xf], 1
jmp 0x405933
mov ecx, 0x7ffe
cmp si, cx
jne 0x405933
cmp bl, 0xa0
je 0x4058c7
cmp bl, 0xa1
jne 0x4058ed
cmp byte [esp + 0x124], 0
jne 0x4058ed
mov edx, dword [esp + 0x120]
push 0xffc3d44d
push 0
push 0
push edx
push ebx
push 1
call fcn.0040fb70
add esp, 0x18
test byte [0x4c8535], 0x10
je 0x405910
push 0xffc3d44d
push 0
push 0
push 0
push 0xa0
push 1
call fcn.0040fb70
add esp, 0x18
test byte [0x4c8535], 0x20
je 0x405933
push 0xffc3d44d
push 0
push 0
push 0
push 0xa1
push 1
call fcn.0040fb70
add esp, 0x18
test byte [0x4c8535], 1
je 0x405956
push 0xffc3d44d
push 0
push 0
push 0
push 0xa2
push 1
call fcn.0040fb70
add esp, 0x18
test byte [0x4c8535], 2
je 0x405979
push 0xffc3d44d
push 0
push 0
push 0
push 0xa3
push 1
call fcn.0040fb70
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040fb70
mov eax, 0x7ffd
add esp, 0x18
cmp si, ax
jne 0x4059d6
mov ecx, dword [0x4c7448]
cmp byte [ecx + 0xf], 0
je 0x4059d6
cmp bl, 0x60
jb 0x4059b0
cmp bl, 0x69
jbe 0x4059b5
cmp bl, 0x6e
jne 0x4059d6
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040fb70
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 0x4059f1
mov ecx, dword [esp + 0x1c]
mov byte [ecx + 0x11], 1
push 0
push SysReAllocString
push 0x7fff
jmp 0x4063fa
mov edx, dword [esp + 0x18]
jmp 0x405a0c
mov ebp, dword [esp + 0x14]
mov eax, 0x7fff
cmp dx, ax
jne 0x405ce7
mov ecx, dword [esp + 0x1c]
mov cl, byte [ecx + 8]
mov al, byte [0x4c8536]
test cl, cl
je 0x405a2e
not cl
and al, cl
mov ebx, dword [0x4c8668]
cmp dword [esp + 0x10c], ebx
jne 0x405a69
cmp byte [esp + 0x24], 0
je 0x405a69
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 0x405a8c
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 0x405b08
cmp byte [0x4c7447], 0
je 0x405b08
cmp cl, 9
je 0x405b08
and al, 0xf3
cmp dword [esp + 0x10c], ebx
jne 0x405ad1
cmp byte [esp + 0x24], 0
je 0x405ad1
mov edx, dword [0x4c8f6c]
movzx ecx, al
movzx eax, si
shl ecx, 9
add ecx, eax
movzx edx, word [edx + ecx*2]
jmp 0x405ae6
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 0x405b02
mov ecx, edi
cmp ax, cx
jb 0x405b08
mov edx, edi
mov dword [esp + 0x18], edx
test edx, 0x8000
je 0x405b6e
cmp byte [esp + 0x124], 0
jne 0x405c0f
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 0x405c9d
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 0x405c26
mov ecx, dword [0x4c5b28]
and edx, eax
cmp byte [esp + 0x124], 0
mov eax, edx
je 0x405bf6
cmp ax, word [ecx]
jae 0x405bed
movzx ebx, ax
mov eax, dword [0x4c8f70]
add ebx, ebx
mov edx, edi
cmp word [ebx + eax], dx
je 0x405bed
cmp byte [esp + 0x11], 0
jne 0x405bdd
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 0x405c0f
mov ecx, dword [0x4c8f70]
movzx edx, word [ebx + ecx]
mov dword [esp + 0x18], edx
jmp 0x405c0f
cmp byte [esp + 0x11], 0
jne 0x405c26
jmp 0x405c0f
cmp ax, word [ecx]
jae 0x405c0f
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 0x405ce7
mov esi, dword [esp + 0x120]
mov eax, dword [esp + 0x124]
mov ecx, dword [esp + 0x1c]
test al, al
je 0x405b32
cmp byte [ecx + 8], 0
jne 0x405c6f
test byte [ecx + 0xc], 1
jne 0x405c6f
cmp byte [ecx + 9], 0
je 0x405c6f
cmp byte [esp + 0x12], 0
jne 0x405c6f
mov edx, dword [esp + 0x11c]
push 0
push SysReAllocString
push 0x7fff
mov ecx, eax
push ecx
push esi
push edx
jmp 0x406412
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 0x405e0f
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x11c]
push edi
push SysReAllocString
push 0x7fff
push edi
push ecx
push edx
jmp 0x406412
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 0x405d0c
cmp byte [esp + 0x124], 0
je 0x405d0c
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 0x405e6e
cmp dword [esp + 0x28], 0
jne 0x405e6e
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 0x405e6e
cmp word [esi], 0x69
jne 0x405d94
mov eax, dword [esp + 0x11c]
mov ecx, dword [esp + 0x114]
mov edx, dword [esp + 0x110]
push 0x7fff
push ebp
push ebx
push eax
mov eax, dword [esp + 0x11c]
push ecx
push edx
push eax
jmp 0x404ff5
test bl, bl
je 0x405dd2
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 0x11], 0
jne 0x4059f1
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 0x405dec
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 0x405e3c
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 0x406412
mov esi, dword [esp + 0x18]
mov dl, byte [0x4c8535]
and esi, 0x7fff
test dl, 0xcc
je 0x405f35
cmp byte [esp + 0x10], 0
jne 0x405f35
cmp byte [0x4c744c], 0
jne 0x405eae
mov ecx, dword [esp + 0x10c]
cmp ecx, dword [0x4c866c]
jne 0x405f35
mov bl, byte [0x4c8537]
test dl, 0xc0
je 0x405ee0
test bl, 0xc0
jne 0x405ed7
push 0xc0
mov eax, esi
call fcn.0040a790
mov dl, byte [0x4c8535]
add esp, 4
test al, al
je 0x405ee0
mov byte [0x4c744d], 1
jmp 0x405f35
cmp byte [0x4c744d], 0
jne 0x405f35
test dl, 0xc
je 0x405f35
test dl, 3
jne 0x405f35
test bl, 0xc
jne 0x405f0e
push 0xc
mov eax, esi
call fcn.0040a790
mov dl, byte [0x4c8535]
add esp, 4
test al, al
je 0x405f35
cmp dword [0x4c8668], 0
je 0x405f20
mov byte [0x4c744d], 1
jmp 0x405f35
push 2
mov eax, 0xffc3d44d
call fcn.00410240
mov dl, byte [0x4c8535]
add esp, 4
mov eax, esi
lea ecx, [eax - 0x7ffa]
cmp ecx, 4
ja case.default.0x405f46
jmp dword [ecx*4 + 0x4064f4]
cmp byte [0x4c7447], 0
jne case.0x405f46.32763
mov edx, dword [esp + 0x124]
push 0x7fff
push ebp
push edx
jmp 0x405e17
xor al, al
mov byte [esp + 0x11], al
test dl, 4
je 0x405f78
mov al, 0xa4
jmp 0x405f7f
test dl, 8
je 0x405f83
mov al, 0xa5
mov byte [esp + 0x11], al
cmp byte [0x4c7447], 0
je 0x406080
mov ecx, 0x7ffb
cmp si, cx
je case.0x405f46.32765
test al, al
movzx eax, al
jne 0x405faa
mov eax, 0x12
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040fb70
mov edx, dword [esp + 0x34]
add esp, 0x18
cmp byte [edx + 8], 0
je 0x405ff9
mov eax, dword [esp + 0x11c]
cmp al, 0x5b
je 0x405ff9
cmp al, 0x5c
je 0x405ff9
cmp byte [esp + 0x124], 0
jne 0x405ff9
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040fb70
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 0x4062fc
test bl, bl
je 0x406392
cmp byte [esi + 9], 0
je 0x4062fc
mov ebx, dword [esp + 0x120]
mov esi, dword [esp + 0x11c]
push 0xffc3d44e
push 0
push 0
push ebx
push esi
push 1
call fcn.0040fb70
push 0xffc3d44d
push 0
push 0
push ebx
push esi
push 2
call fcn.0040fb70
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 0x406094
mov byte [esp + 0x23], 0
cmp al, 0xa5
jne 0x406099
mov byte [esp + 0x23], 1
cmp al, 0xa0
je 0x4060a6
mov byte [esp + 0x13], 0
cmp al, 0xa1
jne 0x4060ab
mov byte [esp + 0x13], 1
cmp al, 0xa2
je 0x4060b8
mov byte [esp + 0x2f], 0
cmp al, 0xa3
jne 0x4060bd
mov byte [esp + 0x2f], 1
xor cl, cl
mov byte [esp + 0x28], cl
test dl, 0x10
je 0x4060cc
mov cl, 0xa0
jmp 0x4060e8
test dl, 0x20
je 0x4060d5
mov cl, 0xa1
jmp 0x4060e8
cmp byte [esp + 0x124], 0
jne 0x4060ec
cmp byte [esp + 0x13], 0
je 0x4060ec
mov cl, al
mov byte [esp + 0x28], cl
mov byte [esp + 0x24], 0
test dl, 1
je 0x4060fd
mov byte [esp + 0x24], 0xa2
jmp 0x40611e
test dl, 2
je 0x406109
mov byte [esp + 0x24], 0xa3
jmp 0x40611e
cmp byte [esp + 0x124], 0
jne 0x40611e
cmp byte [esp + 0x2f], 0
je 0x40611e
mov byte [esp + 0x24], al
mov esi, dword [esp + 0x28]
xor bl, bl
test cl, cl
je 0x406140
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 1
call fcn.0040fb70
add esp, 0x18
mov bl, 1
cmp byte [esp + 0x24], 0
je 0x406161
mov eax, dword [esp + 0x24]
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040fb70
add esp, 0x18
cmp byte [esp + 0x23], 0
je 0x40617b
cmp byte [esp + 0x124], 0
jne 0x406183
mov al, byte [esp + 0x11c]
jmp 0x40617f
mov al, byte [esp + 0x11]
test al, al
jne 0x40619a
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040fb70
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040fb70
add esp, 0x18
test bl, bl
je 0x4061d2
cmp byte [esp + 0x13], 0
jne 0x4061d2
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 0
call fcn.0040fb70
add esp, 0x18
mov byte [0x4c7447], 1
jmp 0x406000
cmp byte [0x4c7447], 0
jne 0x4061fa
mov ecx, dword [esp + 0x124]
push 0x7fff
push ebp
push ecx
jmp 0x404f68
cmp byte [esp + 0x124], 0
mov ebx, dword [esp + 0x11c]
jne 0x406235
cmp bl, 0xa2
je 0x40621f
cmp bl, 0xa3
je 0x40621f
cmp bl, 0xa0
je 0x40621f
cmp bl, 0xa1
jne 0x406235
push 0xffc3d44d
push 0
push 0
push 0
push ebx
push 1
call fcn.0040fb70
add esp, 0x18
test byte [0x4c8535], 0xc
je 0x406252
cmp byte [esp + 0x124], 0
je 0x406269
cmp bl, 0xa4
je 0x406252
cmp bl, 0xa5
jne 0x406269
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040fb70
add esp, 0x18
mov eax, 0x7ffd
xor bl, bl
cmp si, ax
jne 0x406297
test byte [0x4c8535], 0x30
jne 0x406297
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040fb70
add esp, 0x18
mov bl, 1
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040fb70
add esp, 0x18
test bl, bl
je 0x406000
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040fb70
add esp, 0x18
jmp 0x406000
mov ecx, dword [esp + 0x28]
mov edi, eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x406004
cmp byte [eax], 5
jb 0x406004
mov edx, ecx
movzx eax, word [edx + 0x14]
shl eax, 0x10
or edi, eax
jmp 0x406004
test bl, bl
je 0x406392
cmp byte [esi + 8], 0
je 0x406339
cmp byte [esi + 0x11], 0
je 0x4063b7
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 0x406412
cmp byte [esp + 0x10], 0
je 0x4063ea
mov eax, dword [esp + 0x10c]
push edi
push ebp
push ebx
cmp eax, dword [0x4c866c]
jne 0x406374
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 0x4063a9
cmp byte [eax + 8], 0
je 0x4063a9
mov byte [eax + 0x12], 2
cmp byte [esp + 0x10], 0
je 0x4063bf
mov eax, dword [esp + 0x14]
or byte [eax], 8
push edi
push ebp
push ebx
jmp 0x405e17
mov eax, dword [esp + 0x11c]
cmp al, 0xa4
je 0x4063ce
cmp al, 0xa5
jne 0x4063ea
mov ecx, dword [esp + 0x120]
push 0xffc3d450
push 0
push 0
push ecx
push eax
push 1
call fcn.0040fb70
add esp, 0x18
test bl, bl
jne 0x4063f2
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