Function at 0x404aa0
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 0x404af2
cmp ecx, 0xffc3d44e
je 0x404af2
mov byte [esp + 0x12], 0
cmp ecx, 0xffc3d44d
jne 0x404af7
mov byte [esp + 0x12], 1
mov ecx, dword [0x4c8f4c]
test ecx, ecx
jne 0x404b0e
lea edi, [esp + 0x34]
mov dword [esp + 0x14], edi
jmp 0x404bd7
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 0x404b39
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 0x404b68
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 0x404baa
cmp esi, dword [0x4c8f58]
je 0x404ba2
mov eax, dword [0x4c8538]
push esi
lea edx, [edi + 0xc]
push edx
push 0x418
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x404bc3
xor ecx, ecx
mov word [edi + 0xc], cx
jmp 0x404bc3
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 0x404bb4
mov edx, dword [esp + 0x12c]
mov al, byte [esp + 0x11c]
mov dword [0x4c8f58], esi
cmp al, 0xe7
jne 0x404c25
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.00406600
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 0x404c41
xor esi, esi
mov dword [esp + 0x120], esi
mov ecx, dword [esp + 0x10c]
cmp ecx, dword [0x4c866c]
jne 0x404c75
and dl, 1
mov byte [esp + 0x13], dl
jne 0x404d8e
test bl, bl
setne dl
dec dl
movzx eax, al
and dl, 0x80
mov byte [eax + 0x4c8558], dl
jmp 0x404d8e
shr edx, 4
and dl, 1
mov byte [esp + 0x13], dl
test esi, 0x100
jne case.0x404cb9.13
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je case.0x404cb9.13
movzx eax, byte [esp + 0x11c]
add eax, 0xfffffff4
cmp eax, 0x62
ja case.0x404cb9.13
movzx ecx, byte [eax + 0x406428]
jmp dword [ecx*4 + 0x4063f8]
test bl, bl
sete dl
mov byte [0x4c7424], dl
jmp case.0x404cb9.13
test bl, bl
sete al
mov byte [0x4c7425], al
jmp case.0x404cb9.13
test bl, bl
sete cl
mov byte [0x4c7426], cl
jmp case.0x404cb9.13
test bl, bl
sete dl
mov byte [0x4c7427], dl
jmp case.0x404cb9.13
test bl, bl
sete al
mov byte [0x4c7428], al
jmp case.0x404cb9.13
test bl, bl
sete cl
mov byte [0x4c7429], cl
jmp case.0x404cb9.13
test bl, bl
sete dl
mov byte [0x4c742a], dl
jmp case.0x404cb9.13
test bl, bl
sete al
mov byte [0x4c742b], al
jmp case.0x404cb9.13
test bl, bl
sete cl
mov byte [0x4c742c], cl
jmp case.0x404cb9.13
test bl, bl
sete dl
mov byte [0x4c742d], dl
jmp case.0x404cb9.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 0x404d8e
test byte [esp + 0x12c], 0x10
jne 0x404d8e
mov al, byte [esp + 0x11c]
push ebx
call fcn.00407a00
add esp, 4
test al, al
je 0x404d8e
test bl, bl
setne al
dec al
and al, 0x80
mov byte [esi + 0x4c8558], al
cmp byte [esp + 0x12], 0
je 0x404d99
mov al, 0x69
jmp 0x404da5
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 0x404df0
mov al, byte [esp + 0x11c]
cmp al, 0x5b
je 0x404dc5
cmp al, 0x5c
jne 0x404df0
test bl, bl
jne 0x404df0
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 0x4063db
cmp byte [0x4c7447], 0
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, dword [sym.imp.USER32.dll_FindWindowW]
je 0x404eb7
cmp byte [esp + 0x11c], 0x1b
jne 0x404eb7
test bl, bl
jne 0x404eb7
push 0
push str.32771
call esi
test eax, eax
je 0x404eb7
push 0
push eax
call edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebp, eax
jne 0x404eb7
push 0xffc3d44d
push 0
push 0
push 0
push 0x1b
push 0
call fcn.0040fb40
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.0040fb40
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.004064d0
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 0x404ef3
test cl, cl
je 0x404ef3
mov ecx, dword [0x4c8f74]
mov ebp, eax
mov dword [esp + 0x1c], eax
jmp 0x404f0b
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 0x404f89
cmp dword [esp + 0x128], 0xffc3d44e
jne 0x404f3d
test bl, bl
je 0x404f3d
cmp dword [0x4c7448], ebp
jne 0x404f3d
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.00406600
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret
test bl, bl
jne 0x404f99
mov eax, 0x7fff
mov byte [ebp + 0x11], bl
mov word [ebp + 4], ax
cmp edx, dword [0x4c866c]
jne 0x40504b
mov al, byte [esp + 0x11c]
test al, al
jne 0x404ff6
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.00406600
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret
cmp al, 1
je 0x404ffe
cmp al, 2
jne 0x40504b
cmp dword [0x4c86c8], 0
jne 0x405021
push 0
push str.32768
call esi
test eax, eax
je 0x405045
push 0
push eax
call edi
cmp eax, dword [0x4c96c0]
jne 0x405045
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 0x404fbd
mov ecx, dword [0x4c8f74]
mov esi, dword [0x4c7448]
test esi, esi
je 0x405084
cmp esi, ebp
je 0x405084
test bl, bl
jne 0x405084
mov edi, dword [0x4c8668]
cmp dword [esp + 0x10c], edi
jne 0x405076
xor eax, eax
cmp byte [ebp + 8], al
sete al
jmp 0x40507a
movzx eax, byte [esi + 8]
test eax, eax
je 0x40508a
mov byte [esi + 0x12], 1
jmp 0x40508a
mov edi, dword [0x4c8668]
cmp byte [ebp + 9], 0
jne 0x4050c6
cmp byte [ebp + 0xa], 0
jne 0x4050c6
mov edx, dword [esp + 0x14]
push 0x7fff
push edx
push ebx
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 0x404fd5
mov dword [esp + 0x18], 0x7fff
mov dword [esp + 0x28], 0
test bl, bl
je 0x405104
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 0x405102
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 0x40518d
cmp byte [ebp + 8], 0
je 0x4051b0
cmp byte [ecx + 0xcb5], 0
jne 0x405138
cmp byte [ecx + 0xcc9], 0
jne 0x405138
xor eax, eax
jmp 0x40513d
mov eax, 1
cmp byte [ecx + 0xcdd], 0
mov byte [ecx + 0x161], al
jne 0x405159
cmp byte [ecx + 0xcf1], 0
jne 0x405159
xor eax, eax
jmp 0x40515e
mov eax, 1
cmp byte [ecx + 0xc8d], 0
mov byte [ecx + 0x175], al
jne 0x405180
cmp byte [ecx + 0xca1], 0
jne 0x405180
xor eax, eax
mov byte [ecx + 0x14d], al
jmp 0x4051b0
mov eax, 1
mov byte [ecx + 0x14d], al
jmp 0x4051b0
test edi, edi
jne 0x4051b0
push 1
call fcn.004120e0
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 0x4051c1
cmp dword [eax], 7
mov byte [esp + 0x12], 1
je 0x4051c6
mov byte [esp + 0x12], 0
mov al, byte [ebp + 9]
test al, al
je 0x40538e
test bl, bl
jne 0x40538e
test esi, esi
je 0x4051ea
cmp byte [ebp + 0xa], bl
je 0x4051ea
cmp ebp, esi
jne 0x40538e
mov edi, dword [esp + 0x120]
cmp al, 1
jne 0x405226
cmp byte [esp + 0x24], 0
movzx eax, di
jne 0x405207
movzx eax, byte [esp + 0x11c]
mov ecx, dword [esp + 0x24]
push ecx
push eax
call fcn.0040a2f0
mov esi, dword [0x4c7448]
add esp, 8
test al, al
je 0x405226
mov byte [esp + 0x11], 1
jmp 0x40523b
mov byte [esp + 0x11], 0
cmp ebp, esi
je 0x40523b
mov esi, ebp
mov dword [0x4c7448], esi
mov byte [ebp + 0x12], 0
cmp byte [ebp + 0xa], 0
je 0x4052fd
cmp byte [esp + 0x10], 0
jne 0x405261
push 1
mov byte [esp + 0x14], 1
call fcn.004120e0
mov esi, dword [0x4c7448]
add esp, 4
mov al, byte [ebp + 8]
mov cl, byte [0x4c8536]
test al, al
je 0x405272
not al
and cl, al
test cl, cl
jne 0x405282
cmp byte [esp + 0x11], cl
jne 0x405282
test byte [ebp + 0xc], 1
je 0x4052fd
mov edx, dword [0x4c8668]
cmp dword [esp + 0x10c], edx
jne 0x4052af
cmp byte [esp + 0x24], 0
je 0x4052af
mov edx, dword [0x4c8f6c]
movzx ecx, cl
movzx eax, di
shl ecx, 9
add ecx, eax
movzx ecx, word [edx + ecx*2]
jmp 0x4052c9
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 0x4052db
mov word [ebp + 4], cx
jmp 0x40530f
mov edx, dword [0x4c5b28]
mov eax, ecx
and eax, 0x7fff
cmp ax, word [edx]
jae 0x405301
mov edx, dword [0x4c8f70]
mov ax, word [edx + eax*2]
mov word [ebp + 4], ax
jmp 0x405301
mov ecx, dword [esp + 0x18]
mov edx, 0x7fff
cmp cx, dx
jne 0x405395
mov al, byte [esp + 0x11]
mov ebx, dword [esp + 0x14]
test al, al
je 0x405328
or byte [ebp + 0xc], 8
mov ecx, 0x23
mov word [ebx + 4], cx
cmp byte [ebp + 8], 0
jne 0x40535f
test byte [ebp + 0xc], 1
jne 0x40535f
cmp byte [esp + 0x12], 0
jne 0x40535f
test al, al
jne 0x40535f
mov edx, dword [esp + 0x11c]
push 0
push SysReAllocString
push 0x7fff
push 0
push edi
mov byte [ebp + 0x11], 1
push edx
jmp 0x4063d4
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 0x404fdc
mov edi, dword [esp + 0x120]
cmp byte [ebp + 0xa], 0
mov byte [esp + 0x11], 0
je 0x405443
test bl, bl
je 0x405443
cmp esi, ebp
jne 0x4053c3
cmp byte [esp + 0x13], 0
je 0x405443
xor esi, esi
mov dword [0x4c7448], esi
cmp byte [ebp + 0xb], 0
jne 0x40543e
mov al, byte [ebp + 0xc]
test al, 8
je 0x4053d9
xor cl, cl
and al, 0xf7
mov byte [ebp + 0xc], al
jmp 0x4053db
mov cl, 1
cmp byte [esp + 0x13], 0
je 0x40540c
test cl, cl
je 0x40540c
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 0x4063d4
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 0x404fdc
mov byte [esp + 0x11], 1
cmp byte [ebp + 9], 0
je 0x405618
test bl, bl
je 0x405618
cmp esi, ebp
jne 0x405461
xor esi, esi
mov dword [0x4c7448], esi
cmp byte [ebp + 0xe], 0
je 0x405488
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
mov byte [ebp + 0xe], 0
call fcn.0040fb40
mov esi, dword [0x4c7448]
add esp, 0x18
cmp byte [ebp + 0xf], 0
je 0x4054af
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
mov byte [ebp + 0xf], 0
call fcn.0040fb40
mov esi, dword [0x4c7448]
add esp, 0x18
mov edx, dword [esp + 0x18]
mov eax, 0x7fff
cmp dx, ax
jne 0x4054fb
mov al, byte [ebp + 0xc]
test al, 8
je 0x4054fb
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 0x404fdc
mov cl, byte [esp + 0x12]
test cl, cl
je 0x405587
mov al, byte [ebp + 0x12]
cmp al, 2
jne 0x405554
mov esi, dword [esp + 0x11c]
push 0xffc3d44e
push 0
push 0
push edi
push esi
push 1
call fcn.0040fb40
push 0xffc3d44d
push 0
push 0
push edi
push esi
push 2
call fcn.0040fb40
mov eax, dword [esp + 0x154]
push 0
push SysReAllocString
push 0x7fff
push eax
push edi
push esi
jmp 0x404e92
cmp al, 1
je 0x4054c9
cmp byte [ebp + 0xa], 0
jne 0x4055fb
cmp byte [ebp + 8], 0
jne 0x40540c
test byte [ebp + 0xc], 1
jne 0x40540c
test cl, cl
jne 0x40540c
jmp 0x4053e6
cmp byte [ebp + 0x12], 0
je 0x40555c
mov eax, 0x7fff
cmp dx, ax
jne 0x40555c
cmp byte [ebp + 8], 0
jne 0x4054c9
test byte [ebp + 0xc], 1
je 0x4055d5
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 0x404f6f
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 0x4063d4
cmp byte [esp + 0x23], 0
jne 0x40561c
cmp byte [ebp + 0xb], 0
jne 0x40561c
mov edx, dword [esp + 0x14]
push 0x7fff
push edx
push ebx
jmp 0x405367
mov edx, dword [esp + 0x18]
cmp byte [esp + 0x10], 0
jne 0x405641
mov ecx, 0x7fff
cmp dx, cx
jne 0x405641
push 1
call fcn.004120e0
mov esi, dword [0x4c7448]
mov edx, dword [esp + 0x1c]
add esp, 4
mov byte [esp + 0x10], 0
test esi, esi
je 0x405a12
test bl, bl
je 0x40565c
cmp byte [ebp + 0xb], 0
je 0x405a12
mov eax, 0x7fff
cmp dx, ax
jne 0x405cf9
movzx esi, word [ebp + 6]
mov ecx, eax
xor edx, edx
cmp si, cx
je 0x4057fb
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 0x40569f
movzx ecx, cl
lea ecx, [ecx + ecx*4]
lea ecx, [edi + ecx*4]
jmp 0x4056af
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 0x4056e4
cmp byte [eax + 0x16], 0
je 0x4056d4
mov ebx, dword [esp + 0x124]
test bl, bl
jne 0x4056fb
mov cx, word [eax + 4]
mov word [ebp + 4], cx
test edx, edx
jne 0x405705
jmp 0x4056e4
cmp byte [esp + 0x124], 0
jne 0x4056e4
test edx, edx
jne 0x4056e4
mov edx, eax
movzx esi, word [eax + 0xc]
mov eax, 0x7fff
cmp si, ax
jne 0x405681
mov ebx, dword [esp + 0x124]
jmp 0x4056fd
mov edx, eax
test edx, edx
je 0x405802
movzx eax, byte [edx + 0x11]
cmp eax, 0x12
ja case.0x405715.1
movzx ecx, byte [eax + 0x4064a0]
jmp dword [ecx*4 + 0x40648c]
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 0x405790
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 0x405790
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 0x405790
movzx eax, word [edx + 0xa]
mov ecx, dword [0x4c8f78]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
jmp 0x40578b
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 0x4057b4
mov ecx, eax
mov dword [esp + 0x18], ecx
mov edx, dword [0x4c7448]
movzx esi, word [esp + 0x18]
mov byte [edx + 0x12], 2
jmp 0x405806
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.0040a500
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4057a3
mov ecx, dword [esp + 0x11c]
push 0x7fff
push ebp
push ebx
push ecx
jmp 0x404fbd
mov ebx, dword [esp + 0x124]
mov ebp, dword [esp + 0x14]
mov eax, 0x7ffe
cmp si, ax
je 0x40581e
mov ecx, 0x7ffd
cmp si, cx
jne 0x405a16
test bl, bl
jne 0x40582a
mov edx, dword [esp + 0x1c]
mov byte [edx + 0x10], 1
test byte [0x4c8535], 0xc
jne 0x40584a
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040fb40
add esp, 0x18
mov ebx, dword [esp + 0x11c]
cmp bl, 0xa2
je 0x40585b
cmp bl, 0xa3
jne 0x405881
cmp byte [esp + 0x124], 0
jne 0x405881
mov eax, dword [esp + 0x120]
push 0xffc3d44d
push 0
push 0
push eax
push ebx
push 1
call fcn.0040fb40
add esp, 0x18
mov ecx, dword [0x4c7448]
mov edx, 0x7ffd
mov byte [ecx + 0xe], 1
cmp si, dx
jne 0x4058c3
test byte [0x4c8535], 0x30
jne 0x4058b5
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040fb40
add esp, 0x18
mov eax, dword [0x4c7448]
mov byte [eax + 0xf], 1
jmp 0x405943
mov ecx, 0x7ffe
cmp si, cx
jne 0x405943
cmp bl, 0xa0
je 0x4058d7
cmp bl, 0xa1
jne 0x4058fd
cmp byte [esp + 0x124], 0
jne 0x4058fd
mov edx, dword [esp + 0x120]
push 0xffc3d44d
push 0
push 0
push edx
push ebx
push 1
call fcn.0040fb40
add esp, 0x18
test byte [0x4c8535], 0x10
je 0x405920
push 0xffc3d44d
push 0
push 0
push 0
push 0xa0
push 1
call fcn.0040fb40
add esp, 0x18
test byte [0x4c8535], 0x20
je 0x405943
push 0xffc3d44d
push 0
push 0
push 0
push 0xa1
push 1
call fcn.0040fb40
add esp, 0x18
test byte [0x4c8535], 1
je 0x405966
push 0xffc3d44d
push 0
push 0
push 0
push 0xa2
push 1
call fcn.0040fb40
add esp, 0x18
test byte [0x4c8535], 2
je 0x405989
push 0xffc3d44d
push 0
push 0
push 0
push 0xa3
push 1
call fcn.0040fb40
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040fb40
mov eax, 0x7ffd
add esp, 0x18
cmp si, ax
jne 0x4059e6
mov ecx, dword [0x4c7448]
cmp byte [ecx + 0xf], 0
je 0x4059e6
cmp bl, 0x60
jb 0x4059c0
cmp bl, 0x69
jbe 0x4059c5
cmp bl, 0x6e
jne 0x4059e6
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040fb40
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 0x405a01
mov ecx, dword [esp + 0x1c]
mov byte [ecx + 0x11], 1
push 0
push SysReAllocString
push 0x7fff
jmp 0x4063ba
mov ebp, dword [esp + 0x14]
mov edx, 0x7fff
cmp word [esp + 0x18], dx
jne 0x405cfd
mov ecx, dword [esp + 0x1c]
mov cl, byte [ecx + 8]
mov al, byte [0x4c8536]
test cl, cl
je 0x405a3a
not cl
and al, cl
mov ebx, dword [0x4c8668]
cmp dword [esp + 0x10c], ebx
jne 0x405a75
cmp byte [esp + 0x24], 0
je 0x405a75
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 0x405a98
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 0x405b14
cmp byte [0x4c7447], 0
je 0x405b14
cmp cl, 9
je 0x405b14
and al, 0xf3
cmp dword [esp + 0x10c], ebx
jne 0x405add
cmp byte [esp + 0x24], 0
je 0x405add
mov edx, dword [0x4c8f6c]
movzx ecx, al
movzx eax, si
shl ecx, 9
add ecx, eax
movzx edx, word [edx + ecx*2]
jmp 0x405af2
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 0x405b0e
mov ecx, edi
cmp ax, cx
jb 0x405b14
mov edx, edi
mov dword [esp + 0x18], edx
test edx, 0x8000
je 0x405b7a
cmp byte [esp + 0x124], 0
jne 0x405c1b
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 0x405ca9
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 0x404fdc
mov eax, edi
cmp dx, ax
je 0x405c32
mov ecx, dword [0x4c5b28]
and edx, eax
cmp byte [esp + 0x124], 0
mov eax, edx
je 0x405c02
cmp ax, word [ecx]
jae 0x405bf9
movzx ebx, ax
mov eax, dword [0x4c8f70]
add ebx, ebx
mov edx, edi
cmp word [ebx + eax], dx
je 0x405bf9
cmp byte [esp + 0x11], 0
jne 0x405be9
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.0040a500
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
jne 0x405c1b
mov ecx, dword [0x4c8f70]
movzx edx, word [ebx + ecx]
mov dword [esp + 0x18], edx
jmp 0x405c1b
cmp byte [esp + 0x11], 0
jne 0x405c32
jmp 0x405c1b
cmp ax, word [ecx]
jae 0x405c1b
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 0x405cfd
mov esi, dword [esp + 0x120]
mov eax, dword [esp + 0x124]
mov ecx, dword [esp + 0x1c]
test al, al
je 0x405b3e
cmp byte [ecx + 8], 0
jne 0x405c7b
test byte [ecx + 0xc], 1
jne 0x405c7b
cmp byte [ecx + 9], 0
je 0x405c7b
cmp byte [esp + 0x12], 0
jne 0x405c7b
mov edx, dword [esp + 0x11c]
push 0
push SysReAllocString
push 0x7fff
mov ecx, eax
push ecx
push esi
push edx
jmp 0x4063d2
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 0x404fdc
mov ecx, dword [esp + 0x1c]
push 1
push eax
add ecx, 0xc
xor esi, esi
lea eax, [esp + 0x18]
xor edi, edi
call fcn.0040a500
add esp, 8
cmp byte [esp + 0x10], 0
je 0x405cd6
push 0x7fff
push ebp
push edi
jmp 0x40635a
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x11c]
push 0
push SysReAllocString
push 0x7fff
push 0
push ecx
push edx
jmp 0x4063d2
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 0x405d22
cmp byte [esp + 0x124], 0
je 0x405d22
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 0x405e1d
cmp dword [esp + 0x28], 0
jne 0x405e1d
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.0040a500
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
jne 0x405e1d
mov eax, dword [esp + 0x1c]
test bl, bl
je 0x405dae
cmp byte [eax + 0x11], 0
je 0x4057e7
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
push 0
push SysReAllocString
push 0x7fff
mov ecx, ebx
push ecx
push edx
push eax
jmp 0x4063d2
add eax, 4
mov edx, 0x7fff
cmp word [eax], dx
jne 0x405dc4
push edx
push ebp
push 0
jmp 0x4050a1
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.0040a500
mov ecx, dword [esp + 0x124]
add esp, 8
cmp byte [esp + 0x10], 0
je 0x405dfb
push 0x7fff
push ebp
push edi
push ecx
jmp 0x404fbd
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
and byte [eax], 0xf7
push 0
push SysReAllocString
push 0x7fff
mov byte [edx + 0x11], 1
push 0
jmp 0x4063c9
mov esi, dword [esp + 0x18]
mov dl, byte [0x4c8535]
and esi, 0x7fff
test dl, 0xcc
je 0x405ee4
cmp byte [esp + 0x10], 0
jne 0x405ee4
cmp byte [0x4c744c], 0
jne 0x405e5d
mov eax, dword [esp + 0x10c]
cmp eax, dword [0x4c866c]
jne 0x405ee4
mov bl, byte [0x4c8537]
test dl, 0xc0
je 0x405e8f
test bl, 0xc0
jne 0x405e86
push 0xc0
mov eax, esi
call fcn.0040a750
mov dl, byte [0x4c8535]
add esp, 4
test al, al
je 0x405e8f
mov byte [0x4c744d], 1
jmp 0x405ee4
cmp byte [0x4c744d], 0
jne 0x405ee4
test dl, 0xc
je 0x405ee4
test dl, 3
jne 0x405ee4
test bl, 0xc
jne 0x405ebd
push 0xc
mov eax, esi
call fcn.0040a750
mov dl, byte [0x4c8535]
add esp, 4
test al, al
je 0x405ee4
cmp dword [0x4c8668], 0
je 0x405ecf
mov byte [0x4c744d], 1
jmp 0x405ee4
push 2
mov eax, 0xffc3d44d
call fcn.00410210
mov dl, byte [0x4c8535]
add esp, 4
mov eax, esi
lea ecx, [eax - 0x7ffa]
cmp ecx, 4
ja case.default.0x405ef5
jmp dword [ecx*4 + 0x4064b4]
cmp byte [0x4c7447], 0
jne case.0x405ef5.32763
mov ecx, dword [esp + 0x124]
push 0x7fff
push ebp
push ecx
jmp 0x404f48
xor al, al
mov byte [esp + 0x11], al
test dl, 4
je 0x405f27
mov al, 0xa4
jmp 0x405f2e
test dl, 8
je 0x405f32
mov al, 0xa5
mov byte [esp + 0x11], al
cmp byte [0x4c7447], 0
je 0x40602f
mov ecx, 0x7ffb
cmp si, cx
je case.0x405ef5.32765
test al, al
movzx eax, al
jne 0x405f59
mov eax, 0x12
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040fb40
mov edx, dword [esp + 0x34]
add esp, 0x18
cmp byte [edx + 8], 0
je 0x405fa8
mov eax, dword [esp + 0x11c]
cmp al, 0x5b
je 0x405fa8
cmp al, 0x5c
je 0x405fa8
cmp byte [esp + 0x124], 0
jne 0x405fa8
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040fb40
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 0x40629c
test bl, bl
je 0x406332
cmp byte [esi + 9], 0
je 0x40629c
mov ebx, dword [esp + 0x120]
mov esi, dword [esp + 0x11c]
push 0xffc3d44e
push 0
push 0
push ebx
push esi
push 1
call fcn.0040fb40
push 0xffc3d44d
push 0
push 0
push ebx
push esi
push 2
call fcn.0040fb40
mov edx, dword [esp + 0x154]
push 0
push SysReAllocString
push edi
push edx
push ebx
push esi
mov ebx, ebp
jmp 0x404e96
mov al, byte [esp + 0x11c]
cmp al, 0xa4
je 0x406043
mov byte [esp + 0x23], 0
cmp al, 0xa5
jne 0x406048
mov byte [esp + 0x23], 1
cmp al, 0xa0
je 0x406055
mov byte [esp + 0x13], 0
cmp al, 0xa1
jne 0x40605a
mov byte [esp + 0x13], 1
cmp al, 0xa2
je 0x406067
mov byte [esp + 0x2f], 0
cmp al, 0xa3
jne 0x40606c
mov byte [esp + 0x2f], 1
xor cl, cl
mov byte [esp + 0x28], cl
test dl, 0x10
je 0x40607b
mov cl, 0xa0
jmp 0x406097
test dl, 0x20
je 0x406084
mov cl, 0xa1
jmp 0x406097
cmp byte [esp + 0x124], 0
jne 0x40609b
cmp byte [esp + 0x13], 0
je 0x40609b
mov cl, al
mov byte [esp + 0x28], cl
mov byte [esp + 0x24], 0
test dl, 1
je 0x4060ac
mov byte [esp + 0x24], 0xa2
jmp 0x4060cd
test dl, 2
je 0x4060b8
mov byte [esp + 0x24], 0xa3
jmp 0x4060cd
cmp byte [esp + 0x124], 0
jne 0x4060cd
cmp byte [esp + 0x2f], 0
je 0x4060cd
mov byte [esp + 0x24], al
mov esi, dword [esp + 0x28]
xor bl, bl
test cl, cl
je 0x4060ef
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 1
call fcn.0040fb40
add esp, 0x18
mov bl, 1
cmp byte [esp + 0x24], 0
je 0x406110
mov eax, dword [esp + 0x24]
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040fb40
add esp, 0x18
cmp byte [esp + 0x23], 0
je 0x40612a
cmp byte [esp + 0x124], 0
jne 0x406132
mov al, byte [esp + 0x11c]
jmp 0x40612e
mov al, byte [esp + 0x11]
test al, al
jne 0x406149
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040fb40
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040fb40
add esp, 0x18
test bl, bl
je 0x406181
cmp byte [esp + 0x13], 0
jne 0x406181
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 0
call fcn.0040fb40
add esp, 0x18
mov byte [0x4c7447], 1
jmp 0x405faf
cmp byte [0x4c7447], 0
je 0x405f05
cmp byte [esp + 0x124], 0
mov ebx, dword [esp + 0x11c]
jne 0x4061d5
cmp bl, 0xa2
je 0x4061bf
cmp bl, 0xa3
je 0x4061bf
cmp bl, 0xa0
je 0x4061bf
cmp bl, 0xa1
jne 0x4061d5
push 0xffc3d44d
push 0
push 0
push 0
push ebx
push 1
call fcn.0040fb40
add esp, 0x18
test byte [0x4c8535], 0xc
je 0x4061f2
cmp byte [esp + 0x124], 0
je 0x406209
cmp bl, 0xa4
je 0x4061f2
cmp bl, 0xa5
jne 0x406209
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040fb40
add esp, 0x18
mov eax, 0x7ffd
xor bl, bl
cmp si, ax
jne 0x406237
test byte [0x4c8535], 0x30
jne 0x406237
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040fb40
add esp, 0x18
mov bl, 1
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040fb40
add esp, 0x18
test bl, bl
je 0x405faf
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040fb40
add esp, 0x18
jmp 0x405faf
mov ecx, dword [esp + 0x28]
mov edi, eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x405fb3
cmp byte [eax], 5
jb 0x405fb3
mov edx, ecx
movzx eax, word [edx + 0x14]
shl eax, 0x10
or edi, eax
jmp 0x405fb3
test bl, bl
je 0x406332
cmp byte [esi + 8], 0
je 0x4062d9
cmp byte [esi + 0x11], 0
je 0x406357
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 0x4063d2
cmp byte [esp + 0x10], 0
je 0x4063aa
mov eax, dword [esp + 0x10c]
push edi
push ebp
push ebx
cmp eax, dword [0x4c866c]
jne 0x406314
mov ecx, dword [esp + 0x128]
mov edx, dword [esp + 0x120]
push ecx
mov ecx, dword [esp + 0x120]
push edx
push ecx
push eax
jmp 0x404f68
mov edx, dword [esp + 0x128]
mov ecx, dword [esp + 0x120]
push edx
mov edx, dword [esp + 0x120]
push ecx
push edx
push eax
jmp 0x404f68
mov eax, dword [0x4c7448]
mov byte [esi + 0x10], 1
test eax, eax
je 0x406349
cmp byte [eax + 8], 0
je 0x406349
mov byte [eax + 0x12], 2
cmp byte [esp + 0x10], 0
je 0x40637f
mov eax, dword [esp + 0x14]
or byte [eax], 8
push edi
push ebp
push ebx
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 0x404f68
mov eax, dword [esp + 0x11c]
cmp al, 0xa4
je 0x40638e
cmp al, 0xa5
jne 0x4063aa
mov ecx, dword [esp + 0x120]
push 0xffc3d450
push 0
push 0
push ecx
push eax
push 1
call fcn.0040fb40
add esp, 0x18
test bl, bl
jne 0x4063b2
mov byte [esi + 0x11], 1
push 0
push SysReAllocString
push edi
mov edx, dword [esp + 0x130]
mov ecx, dword [esp + 0x128]
push edx
mov eax, dword [esp + 0x130]
push eax
push ecx
mov ebx, ebp
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0x124]
call fcn.004064d0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret