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 + 0x4062b0]
jmp dword [edx*4 + 0x406280]
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 0x40626a
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.0040f5e0
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.0040f5e0
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 eax, dword [ebp + 0x20]
push 0x7fff
test al, al
sete cl
push edi
mov byte [esi + 0x10], 0
mov byte [esi + 0xd], cl
push eax
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
push ebx
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
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 0x4050c8
cmp byte [esi + 0xa], 0
jne 0x4050c8
mov ecx, dword [ebp + 0x20]
push 0x7fff
push edi
push ecx
jmp 0x40504b
cmp byte [ebp + 0x20], 0
mov dword [esp + 0x18], 0x7fff
mov dword [esp + 0x28], 0
je 0x405110
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 0x405106
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 0x405194
cmp byte [esi + 8], 0
je 0x4051b1
cmp byte [ecx + 0xcb5], 0
jne 0x40513f
cmp byte [ecx + 0xcc9], 0
jne 0x40513f
xor eax, eax
jmp 0x405144
mov eax, 1
cmp byte [ecx + 0xcdd], 0
mov byte [ecx + 0x161], al
jne 0x405160
cmp byte [ecx + 0xcf1], 0
jne 0x405160
xor eax, eax
jmp 0x405165
mov eax, 1
cmp byte [ecx + 0xc8d], 0
mov byte [ecx + 0x175], al
jne 0x405187
cmp byte [ecx + 0xca1], 0
jne 0x405187
xor eax, eax
mov byte [ecx + 0x14d], al
jmp 0x4051b1
mov eax, 1
mov byte [ecx + 0x14d], al
jmp 0x4051b1
test edx, edx
jne 0x4051b1
push 1
call fcn.00411b70
add esp, 4
mov byte [0x4ab29e], al
mov byte [0x4ab29d], al
mov byte [esp + 0xd], 1
mov eax, dword [esi]
test eax, eax
je 0x4051c1
cmp dword [eax], 7
mov byte [esp + 0xe], 1
je 0x4051c6
mov byte [esp + 0xe], 0
mov al, byte [esi + 9]
test al, al
je 0x40534c
cmp byte [ebp + 0x20], 0
jne 0x40534c
mov ecx, dword [0x4aa1b0]
test ecx, ecx
je 0x4051f3
cmp byte [esi + 0xa], 0
je 0x4051f3
cmp esi, ecx
jne 0x40534c
cmp al, 1
jne 0x40521c
cmp byte [esp + 0x23], 0
movzx eax, word [ebp + 0x1c]
jne 0x405206
movzx eax, byte [ebp + 0x18]
mov ecx, dword [esp + 0x23]
push ecx
push eax
call fcn.00409f60
add esp, 8
test al, al
je 0x40521c
mov bl, 1
jmp 0x40522f
xor bl, bl
cmp esi, dword [0x4aa1b0]
je 0x40522f
mov dword [0x4aa1b0], esi
mov byte [esi + 0x12], bl
cmp byte [esi + 0xa], 0
je 0x4052e2
cmp byte [esp + 0xd], 0
jne 0x40524f
push 1
mov byte [esp + 0x11], 1
call fcn.00411b70
add esp, 4
mov al, byte [esi + 8]
mov cl, byte [0x4ab29e]
test al, al
je 0x405260
not al
and cl, al
test cl, cl
jne 0x40526e
test bl, bl
jne 0x40526e
test byte [esi + 0xc], 1
je 0x4052e2
mov edx, dword [0x4ab3d0]
cmp dword [ebp + 8], edx
jne 0x405298
cmp byte [esp + 0x23], 0
je 0x405298
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 0x4052ae
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 0x4052c0
mov word [esi + 4], cx
jmp 0x4052f0
mov edx, dword [0x4a8a8c]
mov eax, ecx
and eax, 0x7fff
cmp ax, word [edx]
jae 0x4052e6
mov edx, dword [0x4abbd4]
mov ax, word [edx + eax*2]
mov word [esi + 4], ax
jmp 0x4052e6
mov ecx, dword [esp + 0x18]
mov edx, 0x7fff
cmp cx, dx
jne 0x40534c
test bl, bl
je 0x4052ff
mov eax, dword [esp + 0x30]
or byte [esi + 0xc], 8
mov byte [eax], 0x23
cmp byte [esi + 8], 0
jne 0x40532f
test byte [esi + 0xc], 1
jne 0x40532f
cmp byte [esp + 0xe], 0
jne 0x40532f
test bl, bl
jne 0x40532f
push 0
push SysReAllocString
push 0x7fff
mov byte [esi + 0x11], 1
push 0
mov ebx, edi
jmp 0x406262
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
push edx
push eax
jmp 0x405058
cmp byte [esi + 0xa], 0
mov byte [esp + 0xf], 0
je 0x4053c5
cmp byte [ebp + 0x20], 0
je 0x4053c5
cmp dword [0x4aa1b0], esi
jne 0x405376
cmp byte [esp + 0x17], 0
je 0x4053c5
mov dword [0x4aa1b0], 0
cmp byte [esi + 0xb], 0
jne 0x4053c0
mov al, byte [esi + 0xc]
test al, 8
je 0x40538c
xor cl, cl
and al, 0xf7
mov byte [esi + 0xc], al
jmp 0x40538e
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 0x40626a
mov byte [esp + 0xf], 1
cmp byte [esi + 9], 0
je 0x405564
cmp byte [ebp + 0x20], 0
je 0x405564
cmp dword [0x4aa1b0], esi
jne 0x4053eb
mov dword [0x4aa1b0], 0
cmp byte [esi + 0xe], 0
je 0x40540c
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
mov byte [esi + 0xe], 0
call fcn.0040f5e0
add esp, 0x18
cmp byte [esi + 0xf], 0
mov ebx, dword [0x4abbd8]
je 0x405439
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
mov byte [esi + 0xf], 0
call fcn.0040f5e0
mov ebx, dword [0x4abbd8]
add esp, 0x18
mov edx, dword [esp + 0x18]
mov eax, 0x7fff
cmp dx, ax
jne 0x405458
mov al, byte [esi + 0xc]
test al, 8
je 0x405458
and al, 0xf7
mov byte [esi + 0xc], al
jmp 0x404f80
mov cl, byte [esp + 0xe]
test cl, cl
je 0x4054ed
mov al, byte [esi + 0x12]
cmp al, 2
jne 0x4054ac
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
push 0xffc3d44e
push 0
push 0
push ebx
push esi
push 1
call fcn.0040f5e0
push 0xffc3d44d
push 0
push 0
push ebx
push esi
push 2
call fcn.0040f5e0
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 0x405552
cmp byte [esi + 8], 0
jne 0x405533
test byte [esi + 0xc], 1
jne 0x405533
test cl, cl
jne 0x405533
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 0x40626a
cmp byte [esi + 0x12], 0
je 0x4054b4
mov eax, 0x7fff
cmp dx, ax
jne 0x4054b4
cmp byte [esi + 8], 0
jne 0x404f80
test byte [esi + 0xc], 1
mov ecx, dword [ebp + 0x18]
je 0x405517
push eax
push edi
jmp 0x405c81
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 0x40626a
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 0x40556e
cmp byte [esi + 0xb], 0
jne 0x40556e
jmp 0x404f80
mov edx, dword [esp + 0x18]
mov ebx, dword [0x4abbd8]
cmp byte [esp + 0xd], 0
jne 0x405593
mov eax, 0x7fff
cmp dx, ax
jne 0x405593
push 1
call fcn.00411b70
mov ebx, dword [0x4abbd8]
mov edx, dword [esp + 0x1c]
add esp, 4
cmp dword [0x4aa1b0], 0
mov byte [esp + 0xd], 0
je 0x405951
cmp byte [ebp + 0x20], 0
je 0x4055b5
cmp byte [esi + 0xb], 0
je 0x405951
mov ecx, 0x7fff
cmp dx, cx
jne 0x405bc2
mov eax, dword [esp + 0x1c]
movzx esi, word [eax + 6]
xor edx, edx
cmp si, cx
je 0x405708
jmp 0x4055e0
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 0x405708
movzx eax, byte [edx + 0x11]
cmp eax, 0x12
ja case.0x40566c.1
movzx ecx, byte [eax + 0x406328]
jmp dword [ecx*4 + 0x406314]
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 0x4056e7
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 0x4056e7
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 0x4056e7
movzx eax, word [edx + 0xa]
mov ecx, dword [0x4abbdc]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
jmp 0x4056e2
lea ecx, [eax + eax*4]
lea eax, [ebx + ecx*4]
mov dword [0x4aa1b0], eax
movzx eax, word [edx + 6]
test ax, ax
je 0x40577b
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 0x405720
mov edx, 0x7ffd
cmp si, dx
jne 0x40594d
cmp byte [ebp + 0x20], 0
jne 0x40572e
mov eax, dword [esp + 0x1c]
mov byte [eax + 0x10], 1
test byte [0x4ab29d], 0xc
jne 0x40574e
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040f5e0
add esp, 0x18
mov ebx, dword [ebp + 0x18]
cmp bl, 0xa2
je 0x40575b
cmp bl, 0xa3
jne 0x4057c2
cmp byte [ebp + 0x20], 0
jne 0x4057c2
mov edi, dword [ebp + 0x1c]
push 0xffc3d44d
push 0
push 0
push edi
push ebx
push 1
call fcn.0040f5e0
add esp, 0x18
jmp 0x4057c5
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 0x4056fa
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 0x405807
test byte [0x4ab29d], 0x30
jne 0x4057f9
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040f5e0
add esp, 0x18
mov eax, dword [0x4aa1b0]
mov byte [eax + 0xf], 1
jmp 0x40587c
mov ecx, 0x7ffe
cmp si, cx
jne 0x40587c
cmp bl, 0xa0
je 0x40581b
cmp bl, 0xa1
jne 0x405836
cmp byte [ebp + 0x20], 0
jne 0x405836
push 0xffc3d44d
push 0
push 0
push edi
push ebx
push 1
call fcn.0040f5e0
add esp, 0x18
test byte [0x4ab29d], 0x10
je 0x405859
push 0xffc3d44d
push 0
push 0
push 0
push 0xa0
push 1
call fcn.0040f5e0
add esp, 0x18
test byte [0x4ab29d], 0x20
je 0x40587c
push 0xffc3d44d
push 0
push 0
push 0
push 0xa1
push 1
call fcn.0040f5e0
add esp, 0x18
test byte [0x4ab29d], 1
je 0x40589f
push 0xffc3d44d
push 0
push 0
push 0
push 0xa2
push 1
call fcn.0040f5e0
add esp, 0x18
test byte [0x4ab29d], 2
je 0x4058c2
push 0xffc3d44d
push 0
push 0
push 0
push 0xa3
push 1
call fcn.0040f5e0
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040f5e0
mov edx, 0x7ffd
add esp, 0x18
cmp si, dx
jne 0x40591e
mov eax, dword [0x4aa1b0]
cmp byte [eax + 0xf], 0
je 0x40591e
cmp bl, 0x60
jb 0x4058f8
cmp bl, 0x69
jbe 0x4058fd
cmp bl, 0x6e
jne 0x40591e
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040f5e0
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 0x405933
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 0x406266
mov edx, dword [esp + 0x18]
mov eax, 0x7fff
cmp dx, ax
jne 0x405bc2
mov ecx, dword [esp + 0x1c]
mov cl, byte [ecx + 8]
mov al, byte [0x4ab29e]
test cl, cl
je 0x405973
not cl
and al, cl
mov esi, dword [ebp + 8]
cmp esi, dword [0x4ab3d0]
jne 0x4059a0
cmp byte [esp + 0x23], 0
je 0x4059a0
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 0x4059b8
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 0x405a32
cmp byte [0x4aa1ab], 0
je 0x405a32
cmp dl, 9
je 0x405a32
and al, 0xf3
cmp esi, dword [0x4ab3d0]
jne 0x4059fc
cmp byte [esp + 0x23], 0
je 0x4059fc
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 0x405a10
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 0x405a2c
mov edx, edi
cmp ax, dx
jb 0x405a32
mov ecx, edi
mov dword [esp + 0x18], ecx
test ecx, 0x8000
je 0x405a72
cmp byte [ebp + 0x20], 0
jne 0x405b0e
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 0x405b72
mov edx, dword [esp + 0x10]
push 0x7fff
push edx
push 0
jmp 0x40553d
mov edx, edi
cmp cx, dx
je 0x405b1c
mov edx, dword [0x4a8a8c]
mov eax, ecx
and eax, 0x7fff
cmp byte [ebp + 0x20], 0
je 0x405af1
cmp ax, word [edx]
jae 0x405ae8
mov edx, dword [0x4abbd4]
mov ebx, eax
add ebx, ebx
mov eax, edi
cmp word [ebx + edx], ax
je 0x405ae8
cmp byte [esp + 0xf], 0
jne 0x405ad9
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 0x405b0a
mov eax, dword [0x4abbd4]
movzx ecx, word [ebx + eax]
mov dword [esp + 0x18], ecx
jmp 0x405b0e
cmp byte [esp + 0xf], 0
jne 0x405b1c
jmp 0x405b0e
cmp ax, word [edx]
jae 0x405b0e
mov edx, dword [0x4abbd4]
mov ax, word [edx + eax*2]
mov edx, dword [esp + 0x1c]
mov word [edx + 4], ax
jmp 0x405b0e
mov ecx, dword [esp + 0x18]
mov eax, 0x7fff
cmp cx, ax
jne 0x405bc2
mov ecx, dword [ebp + 0x20]
test cl, cl
je 0x405a4c
mov eax, dword [esp + 0x1c]
cmp byte [eax + 8], 0
jne 0x405b62
test byte [eax + 0xc], 1
jne 0x405b62
cmp byte [eax + 9], 0
je 0x405b62
cmp byte [esp + 0xe], 0
jne 0x405b62
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 0x40626a
mov edx, dword [esp + 0x10]
push 0x7fff
push edx
push ecx
jmp 0x40553d
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 0x405ba3
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 0x40626a
mov ebx, dword [esp + 0x1c]
mov al, byte [ebx + 0xc]
add ebx, 0xc
mov dword [esp + 0x34], ebx
test al, 8
je 0x405be3
cmp byte [ebp + 0x20], 0
je 0x405be3
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 0x405d16
cmp dword [esp + 0x28], 0
jne 0x405d16
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 0x405d16
mov eax, esi
cmp byte [eax], 0x69
jne 0x405c46
mov ecx, dword [esp + 0x10]
push 0x7fff
push ecx
jmp 0x405539
cmp byte [ebp + 0x20], 0
je 0x405c97
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 0x11], 0
mov ecx, dword [ebp + 0x18]
je 0x405c77
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 0x40626a
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 0x405cc5
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 0x405a61
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 0x40626a
mov esi, dword [esp + 0x18]
mov dl, byte [0x4ab29d]
and esi, 0x7fff
test dl, 0xcc
je 0x405dd9
cmp byte [esp + 0xd], 0
jne 0x405dd9
cmp byte [0x4aa1ae], 0
jne 0x405d52
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x4ab3d4]
jne 0x405dd9
mov bl, byte [0x4ab29f]
test dl, 0xc0
je 0x405d84
test bl, 0xc0
jne 0x405d7b
push 0xc0
mov eax, esi
call fcn.0040a3d0
mov dl, byte [0x4ab29d]
add esp, 4
test al, al
je 0x405d84
mov byte [0x4aa1af], 1
jmp 0x405dd9
cmp byte [0x4aa1af], 0
jne 0x405dd9
test dl, 0xc
je 0x405dd9
test dl, 3
jne 0x405dd9
test bl, 0xc
jne 0x405db2
push 0xc
mov eax, esi
call fcn.0040a3d0
mov dl, byte [0x4ab29d]
add esp, 4
test al, al
je 0x405dd9
cmp dword [0x4ab3d0], 0
je 0x405dc4
mov byte [0x4aa1af], 1
jmp 0x405dd9
push 2
mov eax, 0xffc3d44d
call fcn.0040fcb0
mov dl, byte [0x4ab29d]
add esp, 4
mov eax, esi
lea ecx, [eax - 0x7ffa]
cmp ecx, 4
ja case.default.0x405dea
jmp dword [ecx*4 + 0x40633c]
cmp byte [0x4aa1ab], 0
jne case.0x405dea.32763
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0x20]
push 0x7fff
push edx
push eax
jmp 0x405cb0
xor al, al
mov byte [esp + 0xf], al
test dl, 4
je 0x405e1c
mov al, 0xa4
jmp 0x405e23
test dl, 8
je 0x405e27
mov al, 0xa5
mov byte [esp + 0xf], al
cmp byte [0x4aa1ab], 0
je 0x405e9d
mov ecx, 0x7ffb
cmp si, cx
je case.0x405dea.32765
test al, al
movzx eax, al
jne 0x405e4a
mov eax, 0x12
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040f5e0
mov edx, dword [esp + 0x34]
add esp, 0x18
cmp byte [edx + 8], 0
je 0x405e91
mov eax, dword [ebp + 0x18]
cmp al, 0x5b
je 0x405e91
cmp al, 0x5c
je 0x405e91
cmp byte [ebp + 0x20], 0
jne 0x405e91
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040f5e0
add esp, 0x18
mov byte [0x4aa1ab], 0
jmp 0x4060f2
mov cl, byte [ebp + 0x18]
cmp cl, 0xa4
je 0x405eaf
mov byte [esp + 0x27], 0
cmp cl, 0xa5
jne 0x405eb4
mov byte [esp + 0x27], 1
cmp cl, 0xa0
je 0x405ec2
cmp cl, 0xa1
je 0x405ec2
xor bl, bl
jmp 0x405ec4
mov bl, 1
mov byte [esp + 0x22], bl
cmp cl, 0xa2
je 0x405ed7
mov byte [esp + 0x17], 0
cmp cl, 0xa3
jne 0x405edc
mov byte [esp + 0x17], 1
xor al, al
mov byte [esp + 0x28], al
test dl, 0x10
je 0x405eef
mov al, 0xa0
mov byte [esp + 0x28], al
jmp 0x405f12
test dl, 0x20
je 0x405efc
mov al, 0xa1
mov byte [esp + 0x28], al
jmp 0x405f12
cmp byte [ebp + 0x20], 0
jne 0x405f0c
test bl, bl
je 0x405f0c
mov al, cl
mov byte [esp + 0x28], al
mov dl, byte [0x4ab29d]
mov byte [esp + 0x23], 0
test dl, 1
je 0x405f23
mov byte [esp + 0x23], 0xa2
jmp 0x405f40
test dl, 2
je 0x405f2f
mov byte [esp + 0x23], 0xa3
jmp 0x405f40
cmp byte [ebp + 0x20], 0
jne 0x405f40
cmp byte [esp + 0x17], 0
je 0x405f40
mov byte [esp + 0x23], cl
mov esi, dword [esp + 0x28]
xor bl, bl
test al, al
je 0x405f65
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 1
call fcn.0040f5e0
mov cl, byte [ebp + 0x18]
add esp, 0x18
mov bl, 1
cmp byte [esp + 0x23], 0
je 0x405f89
mov eax, dword [esp + 0x23]
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040f5e0
mov cl, byte [ebp + 0x18]
add esp, 0x18
cmp byte [esp + 0x27], 0
je 0x405f98
cmp byte [ebp + 0x20], 0
jne 0x405fa0
jmp 0x405f9c
mov cl, byte [esp + 0xf]
test cl, cl
jne 0x405fb7
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040f5e0
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040f5e0
add esp, 0x18
test bl, bl
je 0x405fef
cmp byte [esp + 0x22], 0
jne 0x405fef
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 0
call fcn.0040f5e0
add esp, 0x18
mov byte [0x4aa1ab], 1
jmp 0x4060f2
cmp byte [0x4aa1ab], 0
je 0x405c37
cmp byte [ebp + 0x20], 0
mov al, byte [ebp + 0x18]
jne 0x406043
cmp al, 0xa2
je 0x406021
cmp al, 0xa3
je 0x406021
cmp al, 0xa0
je 0x406021
cmp al, 0xa1
jne 0x406043
mov ecx, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
push 1
call fcn.0040f5e0
mov dl, byte [0x4ab29d]
mov al, byte [ebp + 0x18]
add esp, 0x18
test dl, 0xc
je 0x406056
cmp byte [ebp + 0x20], 0
je 0x40606d
cmp al, 0xa4
je 0x406056
cmp al, 0xa5
jne 0x40606d
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040f5e0
add esp, 0x18
mov edx, 0x7ffd
xor bl, bl
cmp si, dx
jne 0x40609b
test byte [0x4ab29d], 0x30
jne 0x40609b
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040f5e0
add esp, 0x18
mov bl, 1
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040f5e0
add esp, 0x18
test bl, bl
je 0x4060f2
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040f5e0
add esp, 0x18
jmp 0x4060f2
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
test eax, eax
je 0x4060f2
cmp byte [eax], 5
jb 0x4060f2
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 0x406159
test bl, bl
je 0x4061ee
cmp byte [esi + 9], 0
je 0x406159
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
push 0xffc3d44e
push 0
push 0
push esi
push edi
push 1
call fcn.0040f5e0
push 0xffc3d44d
push 0
push 0
push esi
push edi
push 2
call fcn.0040f5e0
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 0x4061ee
cmp byte [esi + 8], 0
je 0x40619e
cmp byte [esi + 0x11], 0
je 0x40618e
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 0x40626a
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push ecx
push edx
push ebx
jmp 0x40553d
cmp byte [esp + 0xd], 0
je 0x406246
mov eax, dword [ebp + 8]
cmp eax, dword [0x4ab3d4]
jne 0x4061d1
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 0x406205
cmp byte [eax + 8], 0
je 0x406205
mov byte [eax + 0x12], 2
cmp byte [esp + 0xd], 0
je 0x406223
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 0x40622e
cmp al, 0xa5
jne 0x406246
mov ecx, dword [ebp + 0x1c]
push 0xffc3d450
push 0
push 0
push ecx
push eax
push 1
call fcn.0040f5e0
add esp, 0x18
test bl, bl
jne 0x40624e
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