Function at 0x404b70
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [ebp + 0x24]
push ebx
mov ebx, dword [ebp + 0x20]
push esi
push edi
mov dword [esp + 0x2c], 0x7fff
cmp eax, 0xffc3d44f
je 0x404ba7
cmp eax, 0xffc3d44e
je 0x404ba7
mov byte [esp + 0xe], 0
cmp eax, 0xffc3d44d
jne 0x404bac
mov byte [esp + 0xe], 1
mov ecx, dword [0x4abbb0]
test ecx, ecx
jne 0x404bc3
lea edi, [esp + 0x38]
mov dword [esp + 0x10], edi
jmp 0x404c63
mov eax, dword [0x4abbb4]
mov edi, eax
imul edi, edi, 0x70
inc eax
add edi, ecx
mov dword [esp + 0x10], edi
mov dword [0x4abbb4], eax
cmp eax, dword [0x4a78f0]
jl 0x404beb
mov dword [0x4abbb4], 0
mov al, byte [ebp + 0x18]
mov byte [edi], al
mov byte [edi + 5], bl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [0x4acb4c]
mov dword [0x4abbb8], eax
mov dword [esp + 0x34], ecx
fild dword [esp + 0x34]
jns 0x404c16
fadd dword [0x4a1cd8]
fdiv qword [0x4a1cd0]
mov dword [0x4acb4c], eax
fstp dword [edi + 8]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x404c56
cmp esi, dword [0x4abbbc]
je 0x404c50
mov eax, dword [0x4ab2a0]
push esi
lea edx, [edi + 0xc]
push edx
push 0x418
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x404c5d
mov byte [edi + 0xc], 0
jmp 0x404c5d
mov dword [edi + 0xc], 0x412f4e
mov dword [0x4abbbc], esi
mov al, byte [ebp + 0x18]
cmp al, 0xe7
jne 0x404ca0
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
movzx eax, word [ecx + 4]
push 0x7fff
push edi
push ebx
push 0xe7
push edx
mov edx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push edx
mov word [edi + 2], ax
mov byte [edi + 4], 0x55
call fcn.00406480
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov cx, word [ebp + 0x1c]
add al, 0x64
mov word [edi + 2], cx
cmp al, 3
ja 0x404cb5
mov dword [ebp + 0x1c], 0
mov edx, dword [0x4ab3d4]
cmp dword [ebp + 8], edx
jne 0x404ce5
mov bl, byte [ebp + 0x28]
and bl, 1
jne 0x404e0f
cmp byte [ebp + 0x20], bl
movzx ecx, byte [ebp + 0x18]
setne al
dec al
and al, 0x80
mov byte [ecx + 0x4ab2c0], al
jmp 0x404e0f
mov ebx, dword [ebp + 0x28]
shr ebx, 4
and bl, 1
test dword [ebp + 0x1c], 0x100
jne case.0x404d25.13
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je case.0x404d25.13
movzx eax, byte [ebp + 0x18]
add eax, 0xfffffff4
cmp eax, 0x62
ja case.0x404d25.13
movzx edx, byte [eax + 0x4062a8]
jmp dword [edx*4 + 0x406278]
cmp byte [ebp + 0x20], 0
sete al
mov byte [0x4aa18c], al
jmp case.0x404d25.13
cmp byte [ebp + 0x20], 0
sete cl
mov byte [0x4aa18d], cl
jmp case.0x404d25.13
cmp byte [ebp + 0x20], 0
sete dl
mov byte [0x4aa18e], dl
jmp case.0x404d25.13
cmp byte [ebp + 0x20], 0
sete al
mov byte [0x4aa18f], al
jmp case.0x404d25.13
cmp byte [ebp + 0x20], 0
sete cl
mov byte [0x4aa190], cl
jmp case.0x404d25.13
cmp byte [ebp + 0x20], 0
sete dl
mov byte [0x4aa191], dl
jmp case.0x404d25.13
cmp byte [ebp + 0x20], 0
sete al
mov byte [0x4aa192], al
jmp case.0x404d25.13
cmp byte [ebp + 0x20], 0
sete cl
mov byte [0x4aa193], cl
jmp case.0x404d25.13
cmp byte [ebp + 0x20], 0
sete dl
mov byte [0x4aa194], dl
jmp case.0x404d25.13
cmp byte [ebp + 0x20], 0
sete al
mov byte [0x4aa195], al
jmp case.0x404d25.13
cmp byte [ebp + 0x20], 0
sete cl
mov byte [0x4aa196], cl
movzx esi, byte [ebp + 0x18]
mov eax, dword [0x4abbd8]
lea edx, [esi + esi*4]
cmp byte [eax + edx*4 + 8], 0
jne 0x404e0f
test byte [ebp + 0x28], 0x10
jne 0x404e0f
mov ecx, dword [ebp + 0x20]
mov al, byte [ebp + 0x18]
push ecx
call fcn.004077e0
add esp, 4
test al, al
je 0x404e0f
cmp byte [ebp + 0x20], 0
setne dl
dec dl
and dl, 0x80
mov byte [esi + 0x4ab2c0], dl
cmp byte [esp + 0xe], 0
je 0x404e1a
mov al, 0x69
jmp 0x404e24
neg bl
sbb bl, bl
and bl, 0x41
lea eax, [ebx + 0x20]
cmp byte [0x4ab3c0], 0
lea ecx, [edi + 4]
mov dword [esp + 0x30], ecx
mov byte [ecx], al
je 0x404e64
mov al, byte [ebp + 0x18]
cmp al, 0x5b
je 0x404e41
cmp al, 0x5c
jne 0x404e64
cmp byte [ebp + 0x20], 0
jne 0x404e64
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push 0
push SysReAllocString
push 0x7fff
push 0
push eax
push ecx
mov ebx, edi
jmp 0x406263
cmp byte [0x4aa1ab], 0
je 0x404f0f
cmp byte [ebp + 0x18], 0x1b
jne 0x404f0f
cmp byte [ebp + 0x20], 0
jne 0x404f0f
push 0
push str.32771
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x404f0f
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, eax
jne 0x404f0f
push 0xffc3d44d
push 0
push 0
push 0
push 0x1b
push 0
call fcn.0040f600
mov dl, byte [0x4ab29d]
push 0xffc3d44d
shr dl, 3
push 0
and dl, 1
or dl, 0xa4
push 0
movzx eax, dl
push 0
push eax
push 1
call fcn.0040f600
mov ecx, dword [ebp + 0x1c]
push 0
push SysReAllocString
push 0x7fff
push 0
push ecx
push 0x1b
mov ebx, edi
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
call fcn.00406350
add esp, 0x48
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [ebp + 0x1c]
lea edx, [eax + eax*4]
mov eax, dword [0x4abbdc]
mov cl, byte [eax + edx*4 + 0x13]
lea eax, [eax + edx*4]
mov edx, dword [0x4ab3d0]
mov byte [esp + 0x23], cl
cmp dword [ebp + 8], edx
jne 0x404f3d
test cl, cl
je 0x404f3d
mov esi, eax
mov dword [esp + 0x1c], eax
jmp 0x404f50
movzx eax, byte [ebp + 0x18]
lea ecx, [eax + eax*4]
mov eax, dword [0x4abbd8]
lea esi, [eax + ecx*4]
mov dword [esp + 0x1c], esi
cmp byte [esp + 0xe], 0
je 0x404faf
cmp dword [ebp + 0x24], 0xffc3d44e
jne 0x404f80
cmp byte [ebp + 0x20], 0
je 0x404f80
cmp dword [0x4aa1b0], esi
jne 0x404f80
mov byte [esi + 0xd], 0
mov byte [esi + 0x10], 0
mov dword [0x4aa1b0], 0
mov ecx, dword [ebp + 0x20]
push 0x7fff
push edi
push ecx
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x14]
call fcn.00406480
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x20], 0
jne 0x404fc2
mov eax, 0x7fff
mov byte [esi + 0x11], 0
mov word [esi + 4], ax
mov ebx, dword [ebp + 8]
cmp ebx, dword [0x4ab3d4]
jne 0x405073
mov al, byte [ebp + 0x18]
test al, al
jne 0x405002
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push 0x7fff
push edi
push ecx
mov ecx, dword [ebp + 0x14]
push 0
push edx
push eax
mov eax, dword [ebp + 0x1c]
push ebx
call fcn.00406480
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 1
je 0x40500a
cmp al, 2
jne 0x405073
cmp dword [0x4ab430], 0
jne 0x405035
push 0
push str.32768
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x40506d
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ac31c]
jne 0x40506d
mov byte [esi + 0x10], 0
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
push 0x7fff
push edi
push eax
test al, al
mov eax, dword [ebp + 0x10]
sete cl
push edx
mov byte [esi + 0xd], cl
mov ecx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x14]
push ebx
call fcn.00406480
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [0x4ab3d0]
mov eax, dword [0x4aa1b0]
mov ecx, dword [0x4abbd8]
test eax, eax
je 0x4050b0
cmp eax, esi
je 0x4050b0
cmp byte [ebp + 0x20], 0
jne 0x4050b0
cmp ebx, edx
jne 0x40509a
xor eax, eax
cmp byte [esi + 8], al
sete al
jmp 0x4050a3
mov eax, dword [0x4aa1b0]
movzx eax, byte [eax + 8]
test eax, eax
je 0x4050b0
mov eax, dword [0x4aa1b0]
mov byte [eax + 0x12], 1
cmp byte [esi + 9], 0
jne 0x4050c0
cmp byte [esi + 0xa], 0
je 0x405039
cmp byte [ebp + 0x20], 0
mov dword [esp + 0x18], 0x7fff
mov dword [esp + 0x28], 0
je 0x405108
mov al, byte [esi + 0xd]
mov cl, byte [esi + 0x10]
mov byte [esp + 0x22], al
movzx eax, word [esi + 4]
mov byte [esp + 0x17], cl
mov ecx, 0x7fff
mov byte [esi + 0x10], 0
cmp ax, cx
je 0x4050fe
mov dword [esp + 0x18], eax
mov word [esi + 4], cx
mov ecx, dword [0x4abbd8]
cmp byte [ebp + 0x20], 0
sete al
mov byte [esi + 0xd], al
mov byte [esp + 0xd], 0
cmp ebx, edx
jne 0x40518c
cmp byte [esi + 8], 0
je 0x4051a9
cmp byte [ecx + 0xcb5], 0
jne 0x405137
cmp byte [ecx + 0xcc9], 0
jne 0x405137
xor eax, eax
jmp 0x40513c
mov eax, 1
cmp byte [ecx + 0xcdd], 0
mov byte [ecx + 0x161], al
jne 0x405158
cmp byte [ecx + 0xcf1], 0
jne 0x405158
xor eax, eax
jmp 0x40515d
mov eax, 1
cmp byte [ecx + 0xc8d], 0
mov byte [ecx + 0x175], al
jne 0x40517f
cmp byte [ecx + 0xca1], 0
jne 0x40517f
xor eax, eax
mov byte [ecx + 0x14d], al
jmp 0x4051a9
mov eax, 1
mov byte [ecx + 0x14d], al
jmp 0x4051a9
test edx, edx
jne 0x4051a9
push 1
call fcn.00411b90
add esp, 4
mov byte [0x4ab29e], al
mov byte [0x4ab29d], al
mov byte [esp + 0xd], 1
mov eax, dword [esi]
test eax, eax
je 0x4051b9
cmp dword [eax], 7
mov byte [esp + 0xe], 1
je 0x4051be
mov byte [esp + 0xe], 0
mov al, byte [esi + 9]
test al, al
je 0x405354
cmp byte [ebp + 0x20], 0
jne 0x405354
mov ecx, dword [0x4aa1b0]
test ecx, ecx
je 0x4051eb
cmp byte [esi + 0xa], 0
je 0x4051eb
cmp esi, ecx
jne 0x405354
cmp al, 1
jne 0x405214
cmp byte [esp + 0x23], 0
movzx eax, word [ebp + 0x1c]
jne 0x4051fe
movzx eax, byte [ebp + 0x18]
mov ecx, dword [esp + 0x23]
push ecx
push eax
call fcn.00409f60
add esp, 8
test al, al
je 0x405214
mov bl, 1
jmp 0x405227
xor bl, bl
cmp esi, dword [0x4aa1b0]
je 0x405227
mov dword [0x4aa1b0], esi
mov byte [esi + 0x12], bl
cmp byte [esi + 0xa], 0
je 0x4052da
cmp byte [esp + 0xd], 0
jne 0x405247
push 1
mov byte [esp + 0x11], 1
call fcn.00411b90
add esp, 4
mov al, byte [esi + 8]
mov cl, byte [0x4ab29e]
test al, al
je 0x405258
not al
and cl, al
test cl, cl
jne 0x405266
test bl, bl
jne 0x405266
test byte [esi + 0xc], 1
je 0x4052da
mov edx, dword [0x4ab3d0]
cmp dword [ebp + 8], edx
jne 0x405290
cmp byte [esp + 0x23], 0
je 0x405290
movzx eax, word [ebp + 0x1c]
mov edx, dword [0x4abbd0]
movzx ecx, cl
shl ecx, 9
add ecx, eax
movzx ecx, word [edx + ecx*2]
jmp 0x4052a6
mov edx, dword [0x4abbcc]
movzx eax, cl
movzx ecx, byte [ebp + 0x18]
shl eax, 8
add eax, ecx
movzx ecx, word [edx + eax*2]
mov dword [esp + 0x18], ecx
test ecx, 0x8000
je 0x4052b8
mov word [esi + 4], cx
jmp 0x4052e8
mov edx, dword [0x4a8a8c]
mov eax, ecx
and eax, 0x7fff
cmp ax, word [edx]
jae 0x4052de
mov edx, dword [0x4abbd4]
mov ax, word [edx + eax*2]
mov word [esi + 4], ax
jmp 0x4052de
mov ecx, dword [esp + 0x18]
mov edx, 0x7fff
cmp cx, dx
jne 0x405354
test bl, bl
je 0x4052f7
mov eax, dword [esp + 0x30]
or byte [esi + 0xc], 8
mov byte [eax], 0x23
cmp byte [esi + 8], 0
jne 0x405327
test byte [esi + 0xc], 1
jne 0x405327
cmp byte [esp + 0xe], 0
jne 0x405327
test bl, bl
jne 0x405327
push 0
push SysReAllocString
push 0x7fff
mov byte [esi + 0x11], 1
push 0
mov ebx, edi
jmp 0x40625b
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push 0x7fff
push edi
push 0
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
push eax
mov eax, dword [ebp + 0x1c]
call fcn.00406480
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0xa], 0
mov byte [esp + 0xf], 0
je 0x4053cd
cmp byte [ebp + 0x20], 0
je 0x4053cd
cmp dword [0x4aa1b0], esi
jne 0x40537e
cmp byte [esp + 0x17], 0
je 0x4053cd
mov dword [0x4aa1b0], 0
cmp byte [esi + 0xb], 0
jne 0x4053c8
mov al, byte [esi + 0xc]
test al, 8
je 0x405394
xor cl, cl
and al, 0xf7
mov byte [esi + 0xc], al
jmp 0x405396
mov cl, 1
cmp byte [esp + 0x17], 0
je 0x404f80
test cl, cl
je 0x404f80
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push 0
push SysReAllocString
push 0x7fff
push ecx
push edx
push eax
mov ebx, edi
jmp 0x406263
mov byte [esp + 0xf], 1
cmp byte [esi + 9], 0
je 0x40556c
cmp byte [ebp + 0x20], 0
je 0x40556c
cmp dword [0x4aa1b0], esi
jne 0x4053f3
mov dword [0x4aa1b0], 0
cmp byte [esi + 0xe], 0
je 0x405414
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
mov byte [esi + 0xe], 0
call fcn.0040f600
add esp, 0x18
cmp byte [esi + 0xf], 0
mov ebx, dword [0x4abbd8]
je 0x405441
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
mov byte [esi + 0xf], 0
call fcn.0040f600
mov ebx, dword [0x4abbd8]
add esp, 0x18
mov edx, dword [esp + 0x18]
mov eax, 0x7fff
cmp dx, ax
jne 0x405460
mov al, byte [esi + 0xc]
test al, 8
je 0x405460
and al, 0xf7
mov byte [esi + 0xc], al
jmp 0x404f80
mov cl, byte [esp + 0xe]
test cl, cl
je 0x4054f5
mov al, byte [esi + 0x12]
cmp al, 2
jne 0x4054b4
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
push 0xffc3d44e
push 0
push 0
push ebx
push esi
push 1
call fcn.0040f600
push 0xffc3d44d
push 0
push 0
push ebx
push esi
push 2
call fcn.0040f600
mov eax, dword [ebp + 0x20]
push 0
push SysReAllocString
push 0x7fff
push eax
push ebx
push esi
jmp 0x404ef8
cmp al, 1
je 0x404f80
cmp byte [esi + 0xa], 0
jne 0x40555a
cmp byte [esi + 8], 0
jne 0x40553b
test byte [esi + 0xc], 1
jne 0x40553b
test cl, cl
jne 0x40553b
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push 0
push SysReAllocString
push 0x7fff
push edx
push eax
push ecx
mov ebx, edi
jmp 0x406263
cmp byte [esi + 0x12], 0
je 0x4054bc
mov eax, 0x7fff
cmp dx, ax
jne 0x4054bc
cmp byte [esi + 8], 0
jne 0x404f80
test byte [esi + 0xc], 1
mov ecx, dword [ebp + 0x18]
je 0x40551f
push eax
push edi
jmp 0x405c7a
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
push 0
push SysReAllocString
push 0x7fff
push edx
push eax
push ecx
mov ebx, edi
jmp 0x406263
push 0x7fff
push edi
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
jmp 0x404f9a
cmp byte [esp + 0x22], 0
jne 0x405576
cmp byte [esi + 0xb], 0
jne 0x405576
jmp 0x404f80
mov edx, dword [esp + 0x18]
mov ebx, dword [0x4abbd8]
cmp byte [esp + 0xd], 0
jne 0x40559b
mov eax, 0x7fff
cmp dx, ax
jne 0x40559b
push 1
call fcn.00411b90
mov ebx, dword [0x4abbd8]
mov edx, dword [esp + 0x1c]
add esp, 4
cmp dword [0x4aa1b0], 0
mov byte [esp + 0xd], 0
je 0x40594a
cmp byte [ebp + 0x20], 0
je 0x4055bd
cmp byte [esi + 0xb], 0
je 0x40594a
mov ecx, 0x7fff
cmp dx, cx
jne 0x405bbb
mov eax, dword [esp + 0x1c]
movzx esi, word [eax + 6]
xor edx, edx
cmp si, cx
je 0x405704
mov edi, edi
mov ecx, dword [0x4abbe8]
movzx eax, si
mov eax, dword [ecx + eax*4]
mov cl, byte [eax + 0x11]
test cl, cl
je 0x4055fe
movzx ecx, cl
lea ecx, [ecx + ecx*4]
lea ecx, [ebx + ecx*4]
jmp 0x40560e
movzx ecx, word [eax + 0xa]
mov edi, dword [0x4abbdc]
lea ecx, [ecx + ecx*4]
lea ecx, [edi + ecx*4]
cmp byte [ecx + 0xd], 0
je 0x40563e
cmp byte [eax + 0x16], 0
je 0x405632
cmp byte [ebp + 0x20], 0
jne 0x40564e
mov cx, word [eax + 4]
mov esi, dword [esp + 0x1c]
mov word [esi + 4], cx
test edx, edx
jne 0x405658
jmp 0x40563e
cmp byte [ebp + 0x20], 0
jne 0x40563e
test edx, edx
jne 0x40563e
mov edx, eax
movzx esi, word [eax + 0xc]
mov eax, 0x7fff
cmp si, ax
jne 0x4055e0
jmp 0x405650
mov edx, eax
test edx, edx
je 0x405704
movzx eax, byte [edx + 0x11]
cmp eax, 0x12
ja case.0x405668.1
movzx ecx, byte [eax + 0x406320]
jmp dword [ecx*4 + 0x40630c]
xor eax, eax
cmp byte [ebx + 0xca1], al
setne al
lea eax, [eax + eax*4 + 0x320]
lea ecx, [ebx + eax*4]
mov dword [0x4aa1b0], ecx
jmp 0x4056e3
xor eax, eax
cmp byte [ebx + 0xcc9], al
setne al
lea eax, [eax + eax*4 + 0x32a]
lea ecx, [ebx + eax*4]
mov dword [0x4aa1b0], ecx
jmp 0x4056e3
xor eax, eax
cmp byte [ebx + 0xcf1], al
setne al
lea eax, [eax + eax*4 + 0x334]
lea ecx, [ebx + eax*4]
mov dword [0x4aa1b0], ecx
jmp 0x4056e3
movzx eax, word [edx + 0xa]
mov ecx, dword [0x4abbdc]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
jmp 0x4056de
lea ecx, [eax + eax*4]
lea eax, [ebx + ecx*4]
mov dword [0x4aa1b0], eax
movzx eax, word [edx + 6]
test ax, ax
je 0x405777
mov ecx, eax
mov dword [esp + 0x18], ecx
mov eax, dword [0x4aa1b0]
movzx esi, word [esp + 0x18]
mov byte [eax + 0x12], 2
mov ecx, 0x7ffe
cmp si, cx
je 0x40571c
mov edx, 0x7ffd
cmp si, dx
jne 0x405946
cmp byte [ebp + 0x20], 0
jne 0x40572a
mov eax, dword [esp + 0x1c]
mov byte [eax + 0x10], 1
test byte [0x4ab29d], 0xc
jne 0x40574a
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040f600
add esp, 0x18
mov ebx, dword [ebp + 0x18]
cmp bl, 0xa2
je 0x405757
cmp bl, 0xa3
jne 0x4057be
cmp byte [ebp + 0x20], 0
jne 0x4057be
mov edi, dword [ebp + 0x1c]
push 0xffc3d44d
push 0
push 0
push edi
push ebx
push 1
call fcn.0040f600
add esp, 0x18
jmp 0x4057c1
mov ebx, dword [ebp + 0x20]
movzx edx, word [edx + 4]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x30]
mov edi, dword [ebp + 0x24]
lea eax, [esp + 0x18]
push ebx
push eax
add ecx, 0xc
lea eax, [esp + 0x15]
mov dword [esp + 0x20], edx
call fcn.0040a170
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4056f6
mov ecx, dword [esp + 0x10]
push 0x7fff
push ecx
push ebx
jmp 0x404f8a
mov edi, dword [ebp + 0x1c]
mov ecx, dword [0x4aa1b0]
mov edx, 0x7ffd
mov byte [ecx + 0xe], 1
cmp si, dx
jne 0x405800
test byte [0x4ab29d], 0x30
jne 0x4057f5
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040f600
add esp, 0x18
mov eax, dword [0x4aa1b0]
mov byte [eax + 0xf], 1
jmp 0x405875
mov ecx, 0x7ffe
cmp si, cx
jne 0x405875
cmp bl, 0xa0
je 0x405814
cmp bl, 0xa1
jne 0x40582f
cmp byte [ebp + 0x20], 0
jne 0x40582f
push 0xffc3d44d
push 0
push 0
push edi
push ebx
push 1
call fcn.0040f600
add esp, 0x18
test byte [0x4ab29d], 0x10
je 0x405852
push 0xffc3d44d
push 0
push 0
push 0
push 0xa0
push 1
call fcn.0040f600
add esp, 0x18
test byte [0x4ab29d], 0x20
je 0x405875
push 0xffc3d44d
push 0
push 0
push 0
push 0xa1
push 1
call fcn.0040f600
add esp, 0x18
test byte [0x4ab29d], 1
je 0x405898
push 0xffc3d44d
push 0
push 0
push 0
push 0xa2
push 1
call fcn.0040f600
add esp, 0x18
test byte [0x4ab29d], 2
je 0x4058bb
push 0xffc3d44d
push 0
push 0
push 0
push 0xa3
push 1
call fcn.0040f600
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040f600
mov edx, 0x7ffd
add esp, 0x18
cmp si, dx
jne 0x405917
mov eax, dword [0x4aa1b0]
cmp byte [eax + 0xf], 0
je 0x405917
cmp bl, 0x60
jb 0x4058f1
cmp bl, 0x69
jbe 0x4058f6
cmp bl, 0x6e
jne 0x405917
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040f600
mov ecx, dword [0x4aa1b0]
add esp, 0x18
mov byte [ecx + 0xf], 0
cmp byte [ebp + 0x20], 0
mov edx, dword [esp + 0x30]
mov byte [edx], 0x68
jne 0x40592c
mov eax, dword [esp + 0x1c]
mov byte [eax + 0x11], 1
mov ecx, dword [ebp + 0x20]
mov ebx, dword [esp + 0x10]
push 0
push SysReAllocString
push 0x7fff
push ecx
push edi
jmp 0x40625f
mov edx, dword [esp + 0x18]
mov eax, 0x7fff
cmp dx, ax
jne 0x405bbb
mov ecx, dword [esp + 0x1c]
mov cl, byte [ecx + 8]
mov al, byte [0x4ab29e]
test cl, cl
je 0x40596c
not cl
and al, cl
mov esi, dword [ebp + 8]
cmp esi, dword [0x4ab3d0]
jne 0x405999
cmp byte [esp + 0x23], 0
je 0x405999
movzx ecx, word [ebp + 0x1c]
movzx edx, al
shl edx, 9
add edx, ecx
mov ecx, dword [0x4abbd0]
movzx ecx, word [ecx + edx*2]
mov dl, byte [ebp + 0x18]
jmp 0x4059b1
mov dl, byte [ebp + 0x18]
movzx ecx, al
movzx edi, dl
shl ecx, 8
add ecx, edi
mov edi, dword [0x4abbcc]
movzx ecx, word [edi + ecx*2]
mov edi, 0x7fff
mov dword [esp + 0x18], ecx
cmp cx, di
jne 0x405a2b
cmp byte [0x4aa1ab], 0
je 0x405a2b
cmp dl, 9
je 0x405a2b
and al, 0xf3
cmp esi, dword [0x4ab3d0]
jne 0x4059f5
cmp byte [esp + 0x23], 0
je 0x4059f5
movzx edx, al
movzx eax, word [ebp + 0x1c]
shl edx, 9
add edx, eax
mov eax, dword [0x4abbd0]
movzx ecx, word [eax + edx*2]
jmp 0x405a09
movzx ecx, al
mov eax, dword [0x4abbcc]
movzx edx, dl
shl ecx, 8
add ecx, edx
movzx ecx, word [eax + ecx*2]
mov eax, ecx
and eax, 0x7fff
mov edx, 0x7ff9
mov dword [esp + 0x18], ecx
cmp ax, dx
jbe 0x405a25
mov edx, edi
cmp ax, dx
jb 0x405a2b
mov ecx, edi
mov dword [esp + 0x18], ecx
test ecx, 0x8000
je 0x405a6b
cmp byte [ebp + 0x20], 0
jne 0x405b07
mov eax, dword [esp + 0x1c]
mov word [eax + 4], cx
mov eax, dword [esp + 0x1c]
add eax, 4
mov ecx, 0x7fff
cmp word [eax], cx
jne 0x405b6b
mov edx, dword [esp + 0x10]
push 0x7fff
push edx
push 0
jmp 0x405545
mov edx, edi
cmp cx, dx
je 0x405b15
mov edx, dword [0x4a8a8c]
mov eax, ecx
and eax, 0x7fff
cmp byte [ebp + 0x20], 0
je 0x405aea
cmp ax, word [edx]
jae 0x405ae1
mov edx, dword [0x4abbd4]
mov ebx, eax
add ebx, ebx
mov eax, edi
cmp word [ebx + edx], ax
je 0x405ae1
cmp byte [esp + 0xf], 0
jne 0x405ad2
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x30]
mov edi, dword [ebp + 0x24]
push eax
lea edx, [esp + 0x1c]
add ecx, 0xc
push edx
lea eax, [esp + 0x15]
call fcn.0040a170
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
jne 0x405b03
mov eax, dword [0x4abbd4]
movzx ecx, word [ebx + eax]
mov dword [esp + 0x18], ecx
jmp 0x405b07
cmp byte [esp + 0xf], 0
jne 0x405b15
jmp 0x405b07
cmp ax, word [edx]
jae 0x405b07
mov edx, dword [0x4abbd4]
mov ax, word [edx + eax*2]
mov edx, dword [esp + 0x1c]
mov word [edx + 4], ax
jmp 0x405b07
mov ecx, dword [esp + 0x18]
mov eax, 0x7fff
cmp cx, ax
jne 0x405bbb
mov ecx, dword [ebp + 0x20]
test cl, cl
je 0x405a45
mov eax, dword [esp + 0x1c]
cmp byte [eax + 8], 0
jne 0x405b5b
test byte [eax + 0xc], 1
jne 0x405b5b
cmp byte [eax + 9], 0
je 0x405b5b
cmp byte [esp + 0xe], 0
jne 0x405b5b
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ebx, dword [esp + 0x10]
push 0
push SysReAllocString
push 0x7fff
push ecx
push edx
push eax
jmp 0x406263
mov edx, dword [esp + 0x10]
push 0x7fff
push edx
push ecx
jmp 0x405545
mov ecx, dword [esp + 0x1c]
push 1
push eax
add ecx, 0xc
xor esi, esi
lea eax, [esp + 0x15]
xor edi, edi
call fcn.0040a170
add esp, 8
cmp byte [esp + 0xd], 0
je 0x405b9c
mov ecx, dword [esp + 0x10]
push 0x7fff
push ecx
push edi
jmp 0x404f8a
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov ebx, dword [esp + 0x10]
push 0
push SysReAllocString
push 0x7fff
push 0
push eax
push ecx
jmp 0x406263
mov ebx, dword [esp + 0x1c]
mov al, byte [ebx + 0xc]
add ebx, 0xc
mov dword [esp + 0x34], ebx
test al, 8
je 0x405bdc
cmp byte [ebp + 0x20], 0
je 0x405bdc
and al, 0xf7
mov byte [esp + 0xd], 1
mov byte [ebx], al
mov edx, dword [esp + 0x18]
mov eax, dword [0x4a8a8c]
and edx, 0x7fff
cmp dx, word [eax]
jae 0x405d0f
cmp dword [esp + 0x28], 0
jne 0x405d0f
mov ecx, dword [ebp + 0x20]
mov esi, dword [esp + 0x30]
mov edi, dword [ebp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x15]
mov ecx, ebx
call fcn.0040a170
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
jne 0x405d0f
mov eax, esi
cmp byte [eax], 0x69
jne 0x405c3f
mov ecx, dword [esp + 0x10]
push 0x7fff
push ecx
jmp 0x405541
cmp byte [ebp + 0x20], 0
je 0x405c90
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 0x11], 0
mov ecx, dword [ebp + 0x18]
je 0x405c70
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
mov ebx, dword [esp + 0x10]
push 0
push SysReAllocString
push 0x7fff
push edx
push eax
push ecx
jmp 0x406263
mov edx, dword [esp + 0x10]
push 0x7fff
push edx
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
jmp 0x404f9a
mov eax, dword [esp + 0x1c]
add eax, 4
mov edx, 0x7fff
cmp word [eax], dx
jne 0x405cbe
mov eax, dword [esp + 0x10]
push edx
push eax
push 0
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
jmp 0x404f9a
push 1
push eax
xor esi, esi
lea eax, [esp + 0x15]
mov ecx, ebx
xor edi, edi
mov byte [esp + 0x15], 0
call fcn.0040a170
add esp, 8
cmp byte [esp + 0xd], 0
jne 0x405a5a
mov eax, dword [esp + 0x34]
mov edx, dword [ebp + 0x1c]
and byte [eax], 0xf7
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ebx, dword [esp + 0x10]
push edi
push SysReAllocString
push 0x7fff
push edi
push edx
mov byte [ecx + 0x11], 1
push eax
jmp 0x406263
mov esi, dword [esp + 0x18]
mov dl, byte [0x4ab29d]
and esi, 0x7fff
test dl, 0xcc
je 0x405dd2
cmp byte [esp + 0xd], 0
jne 0x405dd2
cmp byte [0x4aa1ae], 0
jne 0x405d4b
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x4ab3d4]
jne 0x405dd2
mov bl, byte [0x4ab29f]
test dl, 0xc0
je 0x405d7d
test bl, 0xc0
jne 0x405d74
push 0xc0
mov eax, esi
call fcn.0040a3d0
mov dl, byte [0x4ab29d]
add esp, 4
test al, al
je 0x405d7d
mov byte [0x4aa1af], 1
jmp 0x405dd2
cmp byte [0x4aa1af], 0
jne 0x405dd2
test dl, 0xc
je 0x405dd2
test dl, 3
jne 0x405dd2
test bl, 0xc
jne 0x405dab
push 0xc
mov eax, esi
call fcn.0040a3d0
mov dl, byte [0x4ab29d]
add esp, 4
test al, al
je 0x405dd2
cmp dword [0x4ab3d0], 0
je 0x405dbd
mov byte [0x4aa1af], 1
jmp 0x405dd2
push 2
mov eax, 0xffc3d44d
call fcn.0040fcd0
mov dl, byte [0x4ab29d]
add esp, 4
mov eax, esi
lea ecx, [eax - 0x7ffa]
cmp ecx, 4
ja case.default.0x405de3
jmp dword [ecx*4 + 0x406334]
cmp byte [0x4aa1ab], 0
jne case.0x405de3.32763
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0x20]
push 0x7fff
push edx
push eax
jmp 0x405ca9
xor al, al
mov byte [esp + 0xf], al
test dl, 4
je 0x405e15
mov al, 0xa4
jmp 0x405e1c
test dl, 8
je 0x405e20
mov al, 0xa5
mov byte [esp + 0xf], al
cmp byte [0x4aa1ab], 0
je 0x405e96
mov ecx, 0x7ffb
cmp si, cx
je case.0x405de3.32765
test al, al
movzx eax, al
jne 0x405e43
mov eax, 0x12
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040f600
mov edx, dword [esp + 0x34]
add esp, 0x18
cmp byte [edx + 8], 0
je 0x405e8a
mov eax, dword [ebp + 0x18]
cmp al, 0x5b
je 0x405e8a
cmp al, 0x5c
je 0x405e8a
cmp byte [ebp + 0x20], 0
jne 0x405e8a
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040f600
add esp, 0x18
mov byte [0x4aa1ab], 0
jmp 0x4060eb
mov cl, byte [ebp + 0x18]
cmp cl, 0xa4
je 0x405ea8
mov byte [esp + 0x27], 0
cmp cl, 0xa5
jne 0x405ead
mov byte [esp + 0x27], 1
cmp cl, 0xa0
je 0x405ebb
cmp cl, 0xa1
je 0x405ebb
xor bl, bl
jmp 0x405ebd
mov bl, 1
mov byte [esp + 0x22], bl
cmp cl, 0xa2
je 0x405ed0
mov byte [esp + 0x17], 0
cmp cl, 0xa3
jne 0x405ed5
mov byte [esp + 0x17], 1
xor al, al
mov byte [esp + 0x28], al
test dl, 0x10
je 0x405ee8
mov al, 0xa0
mov byte [esp + 0x28], al
jmp 0x405f0b
test dl, 0x20
je 0x405ef5
mov al, 0xa1
mov byte [esp + 0x28], al
jmp 0x405f0b
cmp byte [ebp + 0x20], 0
jne 0x405f05
test bl, bl
je 0x405f05
mov al, cl
mov byte [esp + 0x28], al
mov dl, byte [0x4ab29d]
mov byte [esp + 0x23], 0
test dl, 1
je 0x405f1c
mov byte [esp + 0x23], 0xa2
jmp 0x405f39
test dl, 2
je 0x405f28
mov byte [esp + 0x23], 0xa3
jmp 0x405f39
cmp byte [ebp + 0x20], 0
jne 0x405f39
cmp byte [esp + 0x17], 0
je 0x405f39
mov byte [esp + 0x23], cl
mov esi, dword [esp + 0x28]
xor bl, bl
test al, al
je 0x405f5e
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 1
call fcn.0040f600
mov cl, byte [ebp + 0x18]
add esp, 0x18
mov bl, 1
cmp byte [esp + 0x23], 0
je 0x405f82
mov eax, dword [esp + 0x23]
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040f600
mov cl, byte [ebp + 0x18]
add esp, 0x18
cmp byte [esp + 0x27], 0
je 0x405f91
cmp byte [ebp + 0x20], 0
jne 0x405f99
jmp 0x405f95
mov cl, byte [esp + 0xf]
test cl, cl
jne 0x405fb0
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040f600
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040f600
add esp, 0x18
test bl, bl
je 0x405fe8
cmp byte [esp + 0x22], 0
jne 0x405fe8
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 0
call fcn.0040f600
add esp, 0x18
mov byte [0x4aa1ab], 1
jmp 0x4060eb
cmp byte [0x4aa1ab], 0
je 0x405c30
cmp byte [ebp + 0x20], 0
mov al, byte [ebp + 0x18]
jne 0x40603c
cmp al, 0xa2
je 0x40601a
cmp al, 0xa3
je 0x40601a
cmp al, 0xa0
je 0x40601a
cmp al, 0xa1
jne 0x40603c
mov ecx, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
push 1
call fcn.0040f600
mov dl, byte [0x4ab29d]
mov al, byte [ebp + 0x18]
add esp, 0x18
test dl, 0xc
je 0x40604f
cmp byte [ebp + 0x20], 0
je 0x406066
cmp al, 0xa4
je 0x40604f
cmp al, 0xa5
jne 0x406066
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040f600
add esp, 0x18
mov edx, 0x7ffd
xor bl, bl
cmp si, dx
jne 0x406094
test byte [0x4ab29d], 0x30
jne 0x406094
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040f600
add esp, 0x18
mov bl, 1
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040f600
add esp, 0x18
test bl, bl
je 0x4060eb
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040f600
add esp, 0x18
jmp 0x4060eb
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
test eax, eax
je 0x4060eb
cmp byte [eax], 5
jb 0x4060eb
mov ecx, dword [esp + 0x28]
movzx edx, word [ecx + 0x14]
shl edx, 0x10
or dword [esp + 0x2c], edx
cmp byte [esp + 0xe], 0
mov eax, dword [esp + 0x30]
mov ebx, dword [ebp + 0x20]
mov esi, dword [esp + 0x1c]
mov byte [eax], 0x68
je 0x406152
test bl, bl
je 0x4061e7
cmp byte [esi + 9], 0
je 0x406152
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
push 0xffc3d44e
push 0
push 0
push esi
push edi
push 1
call fcn.0040f600
push 0xffc3d44d
push 0
push 0
push esi
push edi
push 2
call fcn.0040f600
mov ecx, dword [esp + 0x5c]
push 0
push SysReAllocString
push ecx
mov edx, ebx
mov ebx, dword [esp + 0x4c]
push edx
push esi
push edi
jmp 0x404efa
test bl, bl
je 0x4061e7
cmp byte [esi + 8], 0
je 0x406197
cmp byte [esi + 0x11], 0
je 0x406187
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
mov ebx, dword [esp + 0x10]
push 0
push SysReAllocString
push eax
mov eax, dword [ebp + 0x18]
push ecx
push edx
push eax
jmp 0x406263
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push ecx
push edx
push ebx
jmp 0x405545
cmp byte [esp + 0xd], 0
je 0x40623f
mov eax, dword [ebp + 8]
cmp eax, dword [0x4ab3d4]
jne 0x4061ca
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x10]
push ebx
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push ecx
push eax
jmp 0x404f9a
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x10]
push ebx
push edx
mov edx, dword [ebp + 0xc]
push ecx
push edx
push eax
jmp 0x404f9a
mov eax, dword [0x4aa1b0]
mov byte [esi + 0x10], 1
test eax, eax
je 0x4061fe
cmp byte [eax + 8], 0
je 0x4061fe
mov byte [eax + 0x12], 2
cmp byte [esp + 0xd], 0
je 0x40621c
mov eax, dword [esp + 0x34]
or byte [eax], 8
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push ebx
jmp 0x404f8a
mov eax, dword [ebp + 0x18]
cmp al, 0xa4
je 0x406227
cmp al, 0xa5
jne 0x40623f
mov ecx, dword [ebp + 0x1c]
push 0xffc3d450
push 0
push 0
push ecx
push eax
push 1
call fcn.0040f600
add esp, 0x18
test bl, bl
jne 0x406247
mov byte [esi + 0x11], 1
mov edx, dword [esp + 0x2c]
mov eax, dword [ebp + 0x20]
mov ebx, dword [esp + 0x10]
push 0
push SysReAllocString
push edx
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
call fcn.00406350
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret