Function at 0x4062a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov eax, dword [ebp + 0x1c]
push ebx
push esi
mov esi, edx
mov edx, ecx
mov dword [esp + 0x1c], esi
mov ecx, 0x7fff
mov dword [esp + 0xc], edx
mov dword [esp + 0x3c], ecx
push edi
cmp eax, 0xffc3d44f
je 0x4062e1
cmp eax, 0xffc3d44e
je 0x4062e1
mov byte [esp + 0x1c], 0
cmp eax, 0xffc3d44d
jne 0x4062e6
mov byte [esp + 0x1c], 1
mov ecx, dword [0x4af0c0]
mov ebx, dword [ebp + 0x10]
test ecx, ecx
jne 0x4062fc
lea edi, [esp + 0x48]
jmp 0x4063a3
mov eax, dword [0x4af0f8]
imul edi, eax, 0x70
inc eax
add edi, ecx
xor ecx, ecx
cmp eax, dword [0x4ac1dc]
cmovge eax, ecx
mov dword [0x4af0f8], eax
mov eax, dword [ebp + 0x18]
mov byte [edi], bl
mov byte [edi + 5], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov dword [0x4af0f4], eax
sub ecx, dword [0x4b102c]
mov dword [0x4b102c], eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4a6780]
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x4a66c4]
movss dword [edi + 8], xmm0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x40638e
cmp esi, dword [0x4af0f0]
je 0x406388
push esi
lea ecx, [edi + 0xc]
push ecx
push 0x418
push dword [0x4af0ac]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x406395
mov byte [edi + 0xc], 0
jmp 0x406395
mov dword [edi + 0xc], 0x412f4e
mov edx, dword [esp + 0x10]
mov dword [0x4af0f0], esi
mov esi, dword [esp + 0x20]
cmp bl, 0xe7
jne 0x4063df
mov ecx, dword [ebp + 0xc]
mov edx, esi
push 0x7fff
push edi
push dword [ebp + 0x18]
movzx eax, word [ecx + 4]
push eax
push 0xe7
mov word [edi + 2], ax
mov byte [edi + 4], 0x55
push ecx
push dword [ebp + 8]
mov ecx, dword [esp + 0x2c]
call fcn.00407ba0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov al, bl
add al, 0x64
mov word [edi + 2], cx
mov ah, 3
cmp ah, al
sbb esi, esi
and esi, ecx
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x18], esi
cmp edx, dword [0x4af0c4]
jne 0x406429
mov edx, dword [ebp + 0x18]
and cl, 1
mov dword [esp + 0x14], ecx
jne 0x406565
test dl, dl
movzx eax, bl
setne cl
dec cl
and cl, 0x80
mov byte [eax + 0x4af9c0], cl
jmp 0x406561
shr ecx, 4
and cl, 1
mov dword [esp + 0x14], ecx
test esi, 0x100
jne 0x406513
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je case.default.0x406468
movzx eax, bl
add eax, 0xfffffff4
cmp eax, 0x62
ja case.default.0x406468
movzx eax, byte [eax + 0x4079c8]
jmp dword [eax*4 + 0x407998]
mov edx, dword [ebp + 0x18]
test dl, dl
sete byte [0x4b11e0]
jmp 0x40651b
mov edx, dword [ebp + 0x18]
test dl, dl
sete byte [0x4b11e1]
jmp 0x40651b
mov edx, dword [ebp + 0x18]
test dl, dl
sete byte [0x4b11e2]
jmp 0x40651b
mov edx, dword [ebp + 0x18]
test dl, dl
sete byte [0x4b11e3]
jmp 0x40651b
mov edx, dword [ebp + 0x18]
test dl, dl
sete byte [0x4b11e4]
jmp 0x40651b
mov edx, dword [ebp + 0x18]
test dl, dl
sete byte [0x4b11e5]
jmp 0x40651b
mov edx, dword [ebp + 0x18]
test dl, dl
sete byte [0x4b11e6]
jmp 0x40651b
mov edx, dword [ebp + 0x18]
test dl, dl
sete byte [0x4b11e7]
jmp 0x40651b
mov edx, dword [ebp + 0x18]
test dl, dl
sete byte [0x4b11e8]
jmp 0x40651b
mov edx, dword [ebp + 0x18]
test dl, dl
sete byte [0x4b11e9]
jmp 0x40651b
mov edx, dword [ebp + 0x18]
test dl, dl
sete byte [0x4b11ea]
jmp 0x40651b
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x18]
jmp 0x40651f
mov edx, dword [ebp + 0x18]
mov ecx, dword [esp + 0x14]
mov esi, dword [0x4afae0]
movzx eax, bl
mov dword [esp + 0x24], eax
lea eax, [eax + eax*4]
cmp byte [esi + eax*4 + 8], 0
mov esi, dword [esp + 0x18]
jne 0x406565
test byte [ebp + 0x20], 0x10
jne 0x406565
mov cl, bl
call fcn.00408ef0
mov edx, dword [ebp + 0x18]
test al, al
je 0x406561
mov ecx, dword [esp + 0x24]
test dl, dl
setne al
dec al
and al, 0x80
mov byte [ecx + 0x4af9c0], al
mov ecx, dword [esp + 0x14]
cmp byte [esp + 0x1c], 0
je 0x406570
mov al, 0x69
jmp 0x406584
test cl, cl
mov dword [esp + 0x24], 0x61
mov eax, 0x20
cmovne eax, dword [esp + 0x24]
cmp byte [0x4af9b2], 0
mov byte [edi + 4], al
je 0x4065b3
cmp bl, 0x5b
je 0x40659a
cmp bl, 0x5c
jne 0x4065b3
test dl, dl
jne 0x4065b3
push 0
push SysReAllocString
push 0x7fff
push edi
push 0
push esi
jmp 0x407981
cmp byte [0x4b11ba], 0
je 0x40665e
cmp bl, 0x1b
jne 0x40665e
test dl, dl
jne 0x40665e
push 0
push str.32771
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x40665e
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 0x40665a
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
xor ecx, ecx
call fcn.00410880
mov dl, byte [0x4afac1]
mov ecx, 1
push 0xffc3d44d
shr dl, 3
push 0
and dl, 1
push 0
push 0
or dl, 0xa4
call fcn.00410880
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x30]
push 0
push SysReAllocString
push 0x7fff
push edi
push 0
push dword [esp + 0x4c]
push 0x1b
call fcn.00407a70
add esp, 0x3c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x18]
movzx eax, si
mov dword [esp + 0x24], eax
lea ecx, [eax + eax*4]
mov eax, dword [0x4afadc]
lea esi, [eax + ecx*4]
mov eax, dword [esp + 0x10]
mov cl, byte [esi + 0x13]
mov byte [esp + 0x2b], cl
cmp eax, dword [0x4af0c8]
jne 0x406687
test cl, cl
jne 0x40669a
mov ecx, dword [0x4afae0]
movzx eax, bl
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
mov eax, dword [esp + 0x10]
cmp byte [esp + 0x1c], 0
je 0x4066f4
cmp dword [ebp + 0x1c], 0xffc3d44e
mov eax, dword [ebp + 0x18]
jne 0x4066cb
test al, al
je 0x4066cb
cmp dword [0x4b11bc], esi
jne 0x4066cb
mov byte [esi + 0xd], 0
mov byte [esi + 0x10], 0
mov dword [0x4b11bc], 0
push 0x7fff
push edi
push eax
mov ecx, dword [esp + 0x1c]
push dword [esp + 0x24]
mov edx, dword [esp + 0x30]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407ba0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x18]
mov edx, 0x7fff
test cl, cl
jne 0x406707
mov byte [esi + 0x11], cl
mov word [esi + 4], dx
cmp eax, dword [0x4af0c4]
jne 0x406777
test bl, bl
jne 0x40673b
mov edx, dword [esp + 0x20]
push 0x7fff
push edi
push ecx
push dword [esp + 0x24]
mov ecx, eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407ba0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp bl, 1
je 0x406745
cmp bl, 2
jne 0x406777
cmp dword [0x4aee94], 0
jne 0x40679e
push 0
push str.32768
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x406770
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4b0948]
je 0x40679b
mov ecx, dword [ebp + 0x18]
mov eax, dword [esp + 0x10]
mov edx, dword [0x4b11bc]
test edx, edx
je 0x4067cc
cmp edx, esi
je 0x4067cc
test cl, cl
jne 0x4067cc
cmp eax, dword [0x4af0c8]
jne 0x4067b6
xor eax, eax
cmp byte [esi + 8], al
sete al
jmp 0x4067bf
mov ecx, dword [ebp + 0x18]
test cl, cl
mov byte [esi + 0x10], 0
sete al
mov byte [esi + 0xd], al
push 0x7fff
push edi
push ecx
jmp 0x4066d2
mov eax, dword [0x4b11bc]
movzx eax, byte [eax + 8]
test eax, eax
je 0x4067cc
mov eax, dword [0x4b11bc]
mov byte [eax + 0x12], 1
cmp byte [esi + 9], 0
jne 0x4067d8
cmp byte [esi + 0xa], 0
je 0x4067aa
mov dword [esp + 0x38], 0
mov eax, 0x7fff
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], eax
test cl, cl
je 0x40681f
mov dl, byte [esi + 0x10]
mov dh, byte [esi + 0xd]
movzx eax, word [esi + 4]
mov byte [esp + 0xf], dh
mov byte [esp + 0x1f], dl
mov edx, 0x7fff
mov byte [esi + 0x10], 0
cmp ax, dx
je 0x40682f
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], eax
mov word [esi + 4], dx
jmp 0x40682f
mov al, byte [esp + 0xf]
mov byte [esp + 0xf], al
mov al, byte [esp + 0xf]
mov byte [esp + 0x1f], al
test cl, cl
mov byte [esp + 0x1c], 0
sete al
mov byte [esi + 0xd], al
mov eax, dword [esp + 0x10]
cmp eax, dword [0x4af0c8]
jne 0x4068c2
cmp byte [esi + 8], 0
je 0x4068e4
mov eax, dword [0x4afae0]
cmp byte [eax + 0xcb5], 0
jne 0x40686d
cmp byte [eax + 0xcc9], 0
jne 0x40686d
xor edx, edx
jmp 0x406872
mov edx, 1
cmp byte [eax + 0xcdd], 0
mov byte [eax + 0x161], dl
jne 0x40688e
cmp byte [eax + 0xcf1], 0
jne 0x40688e
xor edx, edx
jmp 0x406893
mov edx, 1
cmp byte [eax + 0xc8d], 0
mov byte [eax + 0x175], dl
jne 0x4068b5
cmp byte [eax + 0xca1], 0
jne 0x4068b5
xor edx, edx
mov byte [eax + 0x14d], dl
jmp 0x4068e4
mov edx, 1
mov byte [eax + 0x14d], dl
jmp 0x4068e4
cmp dword [0x4af0c8], 0
jne 0x4068e4
mov cl, 1
call fcn.00412bc0
mov ecx, dword [ebp + 0x18]
mov byte [0x4afac0], al
mov byte [0x4afac1], al
mov byte [esp + 0x1c], 1
mov eax, dword [esi]
test eax, eax
je 0x4068f4
cmp dword [eax], 7
mov byte [esp + 0x1e], 1
je 0x4068f9
mov byte [esp + 0x1e], 0
mov al, byte [esi + 9]
test al, al
je 0x406a72
test cl, cl
jne 0x406a72
mov edx, dword [0x4b11bc]
test edx, edx
je 0x406923
cmp byte [esi + 0xa], cl
je 0x406923
cmp esi, edx
jne 0x406a72
cmp al, 1
jne 0x406948
mov al, byte [esp + 0x2b]
mov ecx, dword [esp + 0x24]
test al, al
jne 0x406936
movzx ecx, bl
mov dl, al
call fcn.0040b6d0
test al, al
je 0x406948
mov byte [esp + 0xe], 1
jmp 0x40695f
mov byte [esp + 0xe], 0
cmp esi, dword [0x4b11bc]
je 0x40695f
mov dword [0x4b11bc], esi
mov byte [esi + 0x12], 0
cmp byte [esi + 0xa], 0
je 0x406a12
cmp byte [esp + 0x1c], 0
jne 0x40697c
mov cl, 1
mov byte [esp + 0x1c], 1
call fcn.00412bc0
mov al, byte [esi + 8]
mov cl, byte [0x4afac0]
test al, al
je 0x40698d
not al
and cl, al
mov dl, byte [esp + 0xe]
test cl, cl
jne 0x4069a3
test dl, dl
jne 0x4069a3
test byte [esi + 0xc], 1
je 0x406a5f
mov eax, dword [esp + 0x10]
cmp eax, dword [0x4af0c8]
jne 0x4069c7
cmp byte [esp + 0x2b], 0
je 0x4069c7
mov eax, dword [0x4afae8]
movzx ecx, cl
shl ecx, 9
add ecx, dword [esp + 0x24]
jmp 0x4069d7
movzx ecx, cl
movzx eax, bl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4afaec]
movzx ecx, word [eax + ecx*2]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], ecx
test ecx, 0x8000
je 0x4069f1
mov word [esi + 4], cx
jmp 0x406a24
mov eax, dword [0x4ad8fc]
mov edx, ecx
and edx, 0x7fff
cmp dx, word [eax]
jae 0x406a16
mov eax, dword [0x4afae4]
mov ecx, edx
mov ax, word [eax + ecx*2]
mov word [esi + 4], ax
mov ecx, dword [esp + 0x14]
mov dl, byte [esp + 0xe]
mov eax, 0x7fff
cmp cx, ax
jne 0x406a76
test dl, dl
je 0x406a30
or byte [esi + 0xc], 8
mov byte [edi + 4], 0x23
cmp byte [esi + 8], 0
jne 0x406a65
test byte [esi + 0xc], 1
jne 0x406a65
cmp byte [esp + 0x1e], 0
jne 0x406a65
test dl, dl
jne 0x406a65
push 0
push SysReAllocString
push 0x7fff
push edi
mov byte [esi + 0x11], 1
push 0
jmp 0x40797d
mov ecx, dword [esp + 0x14]
jmp 0x406a1a
push 0x7fff
push edi
push 0
jmp 0x4066d2
mov ecx, dword [esp + 0x14]
cmp byte [esi + 0xa], 0
mov eax, dword [ebp + 0x18]
mov byte [esp + 0x1d], 0
je 0x406ae2
test al, al
je 0x406ae2
mov dh, byte [esp + 0x1f]
cmp dword [0x4b11bc], esi
jne 0x406aa2
test dh, dh
je 0x406ae2
mov dword [0x4b11bc], 0
cmp byte [esi + 0xb], 0
jne 0x406add
mov cl, byte [esi + 0xc]
test cl, 8
je 0x406aba
xor dl, dl
and cl, 0xf7
mov byte [esi + 0xc], cl
jmp 0x406abc
mov dl, 1
test dh, dh
je 0x4066cb
test dl, dl
je 0x4066cb
push 0
push SysReAllocString
push 0x7fff
jmp 0x40797b
mov byte [esp + 0x1d], 1
cmp byte [esi + 9], 0
je 0x406c93
test al, al
je 0x406c93
mov edx, dword [0x4b11bc]
xor eax, eax
cmp edx, esi
cmove edx, eax
mov dword [0x4b11bc], edx
cmp byte [esi + 0xe], al
je 0x406b24
push 0xffc3d44d
push eax
push eax
push eax
mov dl, 0x12
mov byte [esi + 0xe], al
lea ecx, [eax + 1]
call fcn.00410880
add esp, 0x10
cmp byte [esi + 0xf], 0
je 0x406b48
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov byte [esi + 0xf], 0
mov ecx, 1
call fcn.00410880
add esp, 0x10
mov ecx, dword [esp + 0x14]
mov edx, 0x7fff
cmp cx, dx
jne 0x406b70
mov al, byte [esi + 0xc]
test al, 8
je 0x406b70
and al, 0xf7
mov byte [esi + 0xc], al
push 0x7fff
push edi
push dword [ebp + 0x18]
jmp 0x4066d2
mov al, byte [esp + 0x1e]
test al, al
je 0x406be9
mov al, byte [esi + 0x12]
cmp al, 2
jne 0x406bd7
mov esi, dword [esp + 0x18]
mov dl, bl
push 0xffc3d44e
push 0
push 0
push esi
mov ecx, 1
call fcn.00410880
push 0xffc3d44d
push 0
push 0
push esi
mov dl, bl
mov ecx, 2
call fcn.00410880
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x30]
push 0
push SysReAllocString
push 0x7fff
push edi
push dword [ebp + 0x18]
push esi
push ebx
call fcn.00407a70
add esp, 0x3c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 1
jne 0x406c3d
push 0x7fff
push edi
push dword [ebp + 0x18]
jmp 0x4066d2
cmp byte [esi + 0x12], 0
je 0x406c41
cmp cx, dx
jne 0x406c41
cmp byte [esi + 8], 0
jne 0x406b62
test byte [esi + 0xc], 1
mov ecx, dword [esp + 0x10]
je 0x406c16
push 0x7fff
push edi
push dword [ebp + 0x18]
jmp 0x4066d6
mov edx, dword [ebp + 0xc]
push 0
push SysReAllocString
push 0x7fff
push edi
push dword [ebp + 0x18]
push dword [esp + 0x2c]
push ebx
call fcn.00407a70
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [esp + 0x1e]
cmp byte [esi + 0xa], 0
jne 0x406c78
cmp byte [esi + 8], 0
jne 0x406b62
test byte [esi + 0xc], 1
jne 0x406b62
test al, al
jne 0x406b62
push 0
push SysReAllocString
push 0x7fff
push edi
push dword [ebp + 0x18]
jmp 0x40797d
cmp byte [esp + 0xf], 0
jne 0x406c98
cmp byte [esi + 0xb], 0
jne 0x406c98
push 0x7fff
push edi
push dword [ebp + 0x18]
jmp 0x4066d2
mov edx, 0x7fff
cmp byte [esp + 0x1c], 0
jne 0x406caf
cmp cx, dx
jne 0x406caf
mov cl, 1
call fcn.00412bc0
mov ecx, dword [esp + 0x14]
cmp dword [0x4b11bc], 0
mov byte [esp + 0xe], 0
mov dword [esp + 0x3c], 0x7ffd
je 0x40709b
mov edx, dword [ebp + 0x18]
test dl, dl
je 0x406cda
cmp byte [esi + 0xb], 0
je 0x40709b
mov eax, 0x7fff
cmp cx, ax
jne 0x407303
xor eax, eax
mov edx, 0x7fff
mov dword [esp + 0x30], eax
movzx eax, word [esi + 6]
cmp ax, dx
mov dword [esp + 0x34], eax
mov edx, dword [ebp + 0x18]
je 0x406ea6
mov ecx, eax
lea esp, [esp]
mov eax, dword [0x4afb18]
movzx ecx, cx
mov ecx, dword [eax + ecx*4]
mov dword [esp + 0x44], ecx
mov al, byte [ecx + 0x11]
test al, al
je 0x406d3a
mov ebx, dword [0x4afae0]
movzx eax, al
lea eax, [eax + eax*4]
lea eax, [ebx + eax*4]
mov ebx, dword [ebp + 0x10]
jmp 0x406d4d
movzx eax, word [ecx + 0xa]
lea ecx, [eax + eax*4]
mov eax, dword [0x4afadc]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x44]
cmp byte [eax + 0xd], 0
je 0x406d82
cmp byte [ecx + 0x16], 0
je 0x406d6f
test dl, dl
jne 0x406da1
mov ax, word [ecx + 4]
mov word [esi + 4], ax
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x406daf
jmp 0x406d86
mov eax, dword [esp + 0x30]
test dl, dl
jne 0x406d86
test eax, eax
cmove eax, ecx
mov dword [esp + 0x30], eax
jmp 0x406d86
mov eax, dword [esp + 0x30]
movzx ecx, word [ecx + 0xc]
mov ebx, 0x7fff
cmp cx, bx
mov dword [esp + 0x34], ecx
mov ebx, dword [ebp + 0x10]
jne 0x406d10
jmp 0x406da7
mov eax, ecx
mov dword [esp + 0x30], eax
test eax, eax
je 0x406e9e
movzx ecx, byte [eax + 0x11]
cmp ecx, 0x12
ja case.0x406dbf.1
movzx eax, byte [ecx + 0x407a40]
jmp dword [eax*4 + 0x407a2c]
mov ecx, dword [0x4afae0]
xor eax, eax
cmp byte [ecx + 0xca1], al
setne al
add eax, 0xa0
lea eax, [eax + eax*4]
jmp 0x406e35
mov ecx, dword [0x4afae0]
xor eax, eax
cmp byte [ecx + 0xcc9], al
setne al
add eax, 0xa2
lea eax, [eax + eax*4]
jmp 0x406e35
mov ecx, dword [0x4afae0]
xor eax, eax
cmp byte [ecx + 0xcf1], al
setne al
add eax, 0xa4
lea eax, [eax + eax*4]
jmp 0x406e35
mov eax, dword [esp + 0x30]
movzx eax, word [eax + 0xa]
lea ecx, [eax + eax*4]
mov eax, dword [0x4afadc]
lea eax, [eax + ecx*4]
jmp 0x406e38
lea eax, [ecx + ecx*4]
mov ecx, dword [0x4afae0]
lea eax, [ecx + eax*4]
mov dword [0x4b11bc], eax
mov eax, dword [esp + 0x30]
movzx ecx, word [eax + 6]
test cx, cx
je 0x406e50
mov dword [esp + 0x2c], ecx
jmp 0x406e88
movzx eax, word [eax + 4]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
lea eax, [edi + 4]
push eax
lea eax, [esp + 0x12]
push eax
lea eax, [esi + 0xc]
push eax
mov eax, dword [ebp + 0x1c]
push eax
call fcn.0040b9e0
add esp, 0x10
mov dword [esp + 0x38], eax
test eax, eax
je 0x406b62
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebp + 0x18]
movzx eax, cx
mov dword [esp + 0x34], eax
mov eax, dword [0x4b11bc]
mov dword [esp + 0x14], ecx
mov byte [eax + 0x12], 2
jmp 0x406ea2
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], 0x7ffe
cmp ax, word [esp + 0x30]
je 0x406ec0
cmp ax, word [esp + 0x3c]
jne 0x40709b
test dl, dl
jne 0x406ec8
mov byte [esi + 0x10], 1
test byte [0x4afac1], 0xc
jne 0x406eeb
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.00410880
mov edx, dword [ebp + 0x18]
add esp, 0x10
cmp bl, 0xa2
je 0x406ef5
cmp bl, 0xa3
jne 0x406f15
test dl, dl
jne 0x406f15
push 0xffc3d44d
push 0
push 0
push dword [esp + 0x24]
mov dl, bl
mov ecx, 1
call fcn.00410880
add esp, 0x10
mov eax, dword [0x4b11bc]
mov ecx, 0x7ffd
mov byte [eax + 0xe], 1
mov eax, dword [esp + 0x34]
cmp ax, cx
jne 0x406f57
test byte [0x4afac1], 0x30
jne 0x406f4c
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.00410880
add esp, 0x10
mov eax, dword [0x4b11bc]
mov byte [eax + 0xf], 1
jmp 0x406fd0
cmp ax, word [esp + 0x30]
jne 0x406fd0
cmp bl, 0xa0
je 0x406f68
cmp bl, 0xa1
jne 0x406f8a
cmp byte [ebp + 0x18], 0
jne 0x406f8a
push 0xffc3d44d
push 0
push 0
push dword [esp + 0x24]
mov dl, bl
mov ecx, 1
call fcn.00410880
add esp, 0x10
test byte [0x4afac1], 0x10
je 0x406fad
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa0
mov ecx, 1
call fcn.00410880
add esp, 0x10
test byte [0x4afac1], 0x20
je 0x406fd0
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa1
mov ecx, 1
call fcn.00410880
add esp, 0x10
test byte [0x4afac1], 1
je 0x406ff3
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa2
mov ecx, 1
call fcn.00410880
add esp, 0x10
test byte [0x4afac1], 2
je 0x407016
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa3
mov ecx, 1
call fcn.00410880
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00410880
mov eax, dword [esp + 0x44]
mov ecx, 0x7ffd
add esp, 0x10
cmp ax, cx
jne 0x40707b
mov eax, dword [0x4b11bc]
cmp byte [eax + 0xf], 0
je 0x40707b
cmp bl, 0x60
jb 0x407053
cmp bl, 0x69
jbe 0x407058
cmp bl, 0x6e
jne 0x40707b
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, 1
call fcn.00410880
mov eax, dword [0x4b11bc]
add esp, 0x10
mov byte [eax + 0xf], 0
mov eax, dword [ebp + 0x18]
mov byte [edi + 4], 0x68
test al, al
jne 0x40708a
mov byte [esi + 0x11], 1
push 0
push SysReAllocString
push 0x7fff
jmp 0x40797b
mov eax, 0x7fff
cmp cx, ax
jne 0x407300
mov cl, byte [esi + 8]
mov al, byte [0x4afac0]
mov byte [esp + 0xf], al
test cl, cl
je 0x4070c1
not cl
and al, cl
mov byte [esp + 0xf], al
mov edx, dword [esp + 0x10]
cmp edx, dword [0x4af0c8]
jne 0x4070e5
cmp byte [esp + 0x2b], 0
je 0x4070e5
movzx ecx, al
mov eax, dword [0x4afae8]
shl ecx, 9
add ecx, dword [esp + 0x24]
jmp 0x4070f5
movzx ecx, al
movzx eax, bl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4afaec]
movzx ecx, word [eax + ecx*2]
mov eax, 0x7fff
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], ecx
cmp cx, ax
jne 0x407189
cmp byte [0x4b11ba], 0
je 0x407189
cmp bl, 9
je 0x407189
mov al, byte [esp + 0xf]
and al, 0xf3
cmp edx, dword [0x4af0c8]
jne 0x40713f
cmp byte [esp + 0x2b], 0
je 0x40713f
movzx ecx, al
mov eax, dword [0x4afae8]
shl ecx, 9
add ecx, dword [esp + 0x24]
jmp 0x40714f
movzx ecx, al
movzx eax, bl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4afaec]
movzx ecx, word [eax + ecx*2]
mov edx, 0x7ff9
mov eax, ecx
mov dword [esp + 0x2c], ecx
and eax, 0x7fff
mov dword [esp + 0x14], ecx
cmp ax, dx
jbe 0x407176
mov edx, 0x7fff
cmp ax, dx
jb 0x407187
mov ecx, 0x7fff
mov dword [esp + 0x14], ecx
mov eax, ecx
mov dword [esp + 0x2c], ecx
jmp 0x407189
mov eax, edx
test ecx, 0x8000
je 0x4071e4
mov edx, dword [ebp + 0x18]
test dl, dl
jne 0x4072b1
mov word [esi + 4], cx
lea ecx, [esi + 4]
mov eax, 0x7fff
cmp word [ecx], ax
je 0x406a65
push 0
lea eax, [esp + 0x12]
mov dl, 1
push eax
lea eax, [esi + 0xc]
push eax
push 0
call fcn.0040b9e0
mov ecx, dword [esp + 0x20]
add esp, 0x10
cmp byte [esp + 0xe], 0
je 0x4073eb
push 0x7fff
push edi
push 0
jmp 0x4066d6
cmp cx, ax
je 0x4072bb
mov edx, dword [ebp + 0x18]
mov eax, ecx
and eax, 0x7fff
mov dword [esp + 0x24], eax
mov eax, dword [0x4ad8fc]
mov ebx, dword [esp + 0x24]
test dl, dl
je 0x407291
cmp bx, word [eax]
mov ebx, dword [ebp + 0x10]
jae 0x407288
mov eax, dword [esp + 0x24]
mov edx, 0x7fff
movzx eax, ax
add eax, eax
mov dword [esp + 0x24], eax
mov ebx, eax
mov eax, dword [0x4afae4]
cmp word [ebx + eax], dx
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
je 0x407288
cmp byte [esp + 0x1d], 0
jne 0x407271
lea eax, [edi + 4]
push eax
lea eax, [esp + 0x12]
push eax
lea eax, [esi + 0xc]
push eax
push dword [ebp + 0x1c]
lea ecx, [esp + 0x3c]
call fcn.0040b9e0
mov edx, dword [ebp + 0x18]
add esp, 0x10
mov dword [esp + 0x38], eax
test eax, eax
je 0x407271
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
jmp 0x4072b1
mov eax, dword [0x4afae4]
mov ecx, dword [esp + 0x24]
movzx ecx, word [ecx + eax]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], ecx
jmp 0x4072b1
cmp byte [esp + 0x1d], 0
jne 0x4072bb
jmp 0x4072b1
cmp bx, word [eax]
mov ebx, dword [ebp + 0x10]
jae 0x4072b1
mov eax, dword [esp + 0x24]
movzx ecx, ax
mov eax, dword [0x4afae4]
mov ax, word [eax + ecx*2]
mov ecx, dword [esp + 0x14]
mov word [esi + 4], ax
mov eax, 0x7fff
cmp cx, ax
jne 0x407303
mov eax, dword [ebp + 0x18]
test al, al
je 0x4071a0
cmp byte [esi + 8], 0
jne 0x4066cb
test byte [esi + 0xc], 1
jne 0x4066cb
cmp byte [esi + 9], 0
je 0x4066cb
cmp byte [esp + 0x1e], 0
jne 0x4066cb
push 0
push SysReAllocString
push 0x7fff
jmp 0x40797b
mov edx, dword [ebp + 0x18]
lea eax, [esi + 0xc]
mov dword [esp + 0x44], eax
mov al, byte [eax]
test al, 8
je 0x40731e
test dl, dl
je 0x40731e
and al, 0xf7
mov byte [esp + 0xe], 1
mov byte [esi + 0xc], al
mov eax, dword [0x4ad8fc]
and ecx, 0x7fff
cmp cx, word [eax]
jae 0x407417
cmp dword [esp + 0x38], 0
jne 0x407417
lea eax, [edi + 4]
push eax
lea eax, [esp + 0x12]
push eax
lea eax, [esi + 0xc]
push eax
push dword [ebp + 0x1c]
lea ecx, [esp + 0x3c]
call fcn.0040b9e0
add esp, 0x10
mov dword [esp + 0x38], eax
test eax, eax
jne 0x407411
mov eax, dword [ebp + 0x18]
test al, al
je 0x4073a7
cmp byte [esi + 0x11], 0
mov ecx, dword [esp + 0x10]
je 0x40739b
mov edx, dword [ebp + 0xc]
push 0
push SysReAllocString
push 0x7fff
push edi
push eax
push dword [esp + 0x2c]
push ebx
call fcn.00407a70
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x7fff
push edi
push eax
jmp 0x4066d6
lea ecx, [esi + 4]
mov eax, 0x7fff
cmp word [ecx], ax
je 0x406a65
push 0
lea eax, [esp + 0x12]
mov byte [esp + 0x12], 0
push eax
lea eax, [esi + 0xc]
mov dl, 1
push eax
push 0
call fcn.0040b9e0
mov ecx, dword [esp + 0x20]
add esp, 0x10
cmp byte [esp + 0xe], 0
jne 0x4071d7
and byte [esi + 0xc], 0xf7
mov byte [esi + 0x11], 1
mov edx, dword [ebp + 0xc]
push 0
push SysReAllocString
push 0x7fff
push edi
push 0
push dword [esp + 0x2c]
push ebx
call fcn.00407a70
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
jmp 0x40741b
mov ecx, dword [esp + 0x14]
and ecx, 0x7fff
test byte [0x4afac1], 0xcc
mov dword [esp + 0x14], ecx
je 0x4074c5
cmp byte [esp + 0xe], 0
jne 0x4074c5
cmp byte [0x4b11b9], 0
jne 0x407452
mov eax, dword [esp + 0x10]
cmp eax, dword [0x4af0c4]
jne 0x4074c9
test byte [0x4afac1], 0xc0
mov dh, byte [0x4af9b3]
je 0x40747e
test dh, 0xc0
jne 0x407471
mov dl, 0xc0
call fcn.0040bc20
test al, al
je 0x40747a
mov byte [0x4b11b8], 1
jmp 0x4074c5
mov ecx, dword [esp + 0x14]
cmp byte [0x4b11b8], 0
jne 0x4074c5
mov al, byte [0x4afac1]
test al, 0xc
je 0x4074c5
test al, 3
jne 0x4074c5
test dh, 0xc
jne 0x4074a4
mov dl, 0xc
call fcn.0040bc20
test al, al
je 0x4074c5
cmp dword [0x4af0c8], 0
je 0x4074b6
mov byte [0x4b11b8], 1
jmp 0x4074c5
mov edx, 0xffc3d44d
mov ecx, 2
call fcn.00410ed0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
movzx edx, cx
mov dword [esp + 0x3c], edx
add edx, 0xffff8006
cmp edx, 4
ja case.default.0x4074e3
jmp dword [edx*4 + 0x407a54]
cmp byte [0x4b11ba], 0
jne case.0x4074e3.32763
push 0x7fff
push edi
push dword [ebp + 0x18]
mov ecx, eax
jmp 0x4066d6
xor dl, dl
test byte [0x4afac1], 4
je 0x407515
mov edx, 0xa4
jmp 0x40752c
test byte [0x4afac1], 8
movzx edx, dl
mov dword [esp + 0x3c], 0xa5
cmovne edx, dword [esp + 0x3c]
cmp byte [0x4b11ba], 0
mov dword [esp + 0x34], edx
je 0x4075b3
mov dword [esp + 0x3c], 0x7ffb
cmp cx, word [esp + 0x3c]
je case.0x4074e3.32765
movzx eax, dl
test dl, dl
jne 0x407558
mov eax, 0x12
push 0xffc3d44d
push 0
push 0
push 0
mov dl, al
mov ecx, 1
call fcn.00410880
add esp, 0x10
cmp byte [esi + 8], 0
je 0x4075a2
cmp bl, 0x5b
je 0x4075a2
cmp bl, 0x5c
je 0x4075a2
cmp byte [ebp + 0x18], 0
jne 0x4075a2
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.00410880
add esp, 0x10
mov byte [0x4b11ba], 0
mov edx, 0x7fff
jmp 0x407842
cmp bl, 0xa4
je 0x4075c2
mov byte [esp + 0x1d], 0
cmp bl, 0xa5
jne 0x4075c7
mov byte [esp + 0x1d], 1
cmp bl, 0xa0
je 0x4075d5
cmp bl, 0xa1
je 0x4075d5
xor cl, cl
jmp 0x4075d7
mov cl, 1
mov byte [esp + 0x1f], cl
cmp bl, 0xa2
je 0x4075ea
mov byte [esp + 0xf], 0
cmp bl, 0xa3
jne 0x4075ef
mov byte [esp + 0xf], 1
xor dl, dl
test byte [0x4afac1], 0x10
mov dword [esp + 0x38], edx
je 0x407602
mov dl, 0xa0
jmp 0x407621
test byte [0x4afac1], 0x20
mov eax, dword [ebp + 0x18]
je 0x407612
mov dl, 0xa1
jmp 0x407624
test al, al
jne 0x407628
test cl, cl
movzx edx, dl
movzx eax, bl
cmovne edx, eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x38], edx
xor cl, cl
test byte [0x4afac1], 1
mov dword [esp + 0x24], ecx
je 0x40763e
mov byte [esp + 0x24], 0xa2
jmp 0x407664
test byte [0x4afac1], 2
je 0x40764e
mov byte [esp + 0x24], 0xa3
jmp 0x407664
test al, al
jne 0x407664
cmp byte [esp + 0xf], 0
movzx ecx, cl
movzx eax, bl
cmovne ecx, eax
mov dword [esp + 0x24], ecx
mov byte [esp + 0xf], 0
test dl, dl
je 0x40768a
push 0xffc3d44d
push 0
push 0
push 0
mov ecx, 1
call fcn.00410880
add esp, 0x10
mov byte [esp + 0xf], 1
mov eax, dword [esp + 0x24]
test al, al
je 0x4076ac
push 0xffc3d44d
push 0
push 0
push 0
mov dl, al
mov ecx, 1
call fcn.00410880
add esp, 0x10
cmp byte [esp + 0x1d], 0
je 0x4076bd
cmp byte [ebp + 0x18], 0
jne 0x4076c5
mov al, bl
jmp 0x4076c1
mov eax, dword [esp + 0x34]
test al, al
jne 0x4076dc
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.00410880
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00410880
add esp, 0x10
cmp byte [esp + 0xf], 0
je 0x40771d
cmp byte [esp + 0x1f], 0
jne 0x40771d
mov dl, byte [esp + 0x38]
xor ecx, ecx
push 0xffc3d44d
push 0
push 0
push 0
call fcn.00410880
add esp, 0x10
mov byte [0x4b11ba], 1
mov edx, 0x7fff
jmp 0x407842
cmp byte [0x4b11ba], 0
je 0x4074f3
mov eax, dword [ebp + 0x18]
test al, al
jne 0x407773
cmp bl, 0xa2
je 0x407756
cmp bl, 0xa3
je 0x407756
cmp bl, 0xa0
je 0x407756
cmp bl, 0xa1
jne 0x407773
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.00410880
mov eax, dword [ebp + 0x18]
add esp, 0x10
test byte [0x4afac1], 0xc
je 0x40778a
test al, al
je 0x4077a1
cmp bl, 0xa4
je 0x40778a
cmp bl, 0xa5
jne 0x4077a1
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.00410880
add esp, 0x10
mov eax, 0x7ffd
mov byte [esp + 0xf], 0
cmp word [esp + 0x14], ax
jne 0x4077d7
test byte [0x4afac1], 0x30
jne 0x4077d7
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.00410880
add esp, 0x10
mov byte [esp + 0xf], 1
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00410880
add esp, 0x10
cmp byte [esp + 0xf], 0
je 0x4075a9
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, 1
call fcn.00410880
add esp, 0x10
mov edx, 0x7fff
jmp 0x407842
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x40], edx
mov eax, dword [ecx + 4]
test eax, eax
je 0x407842
cmp byte [eax], 5
jb 0x407842
movzx eax, word [ecx + 0x14]
shl eax, 0x10
or edx, eax
mov dword [esp + 0x40], edx
cmp byte [esp + 0x1e], 0
mov eax, dword [ebp + 0x18]
mov byte [edi + 4], 0x68
je 0x4078b6
test al, al
je 0x40790e
cmp byte [esi + 9], 0
je 0x4078b6
mov esi, dword [esp + 0x18]
mov dl, bl
push 0xffc3d44e
push 0
push 0
push esi
mov ecx, 1
call fcn.00410880
push 0xffc3d44d
push 0
push 0
push esi
mov dl, bl
mov ecx, 2
call fcn.00410880
mov ecx, dword [esp + 0x60]
mov edx, dword [ebp + 0xc]
push 0
push SysReAllocString
push ecx
mov ecx, dword [esp + 0x3c]
push edi
push dword [ebp + 0x18]
push esi
push ebx
call fcn.00407a70
add esp, 0x3c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test al, al
je 0x40790e
cmp byte [esi + 8], 0
je 0x4078f3
cmp byte [esi + 0x11], 0
mov ecx, dword [esp + 0x10]
je 0x4078eb
push 0
push SysReAllocString
push edx
mov edx, dword [ebp + 0xc]
push edi
push eax
push dword [esp + 0x2c]
push ebx
call fcn.00407a70
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edx
push edi
push eax
jmp 0x4066d6
cmp byte [esp + 0xe], 0
je 0x407967
push edx
mov edx, dword [esp + 0x24]
push edi
push eax
push dword [esp + 0x24]
push ebx
push dword [ebp + 0xc]
jmp 0x4063c9
mov edx, dword [0x4b11bc]
mov byte [esi + 0x10], 1
test edx, edx
je 0x407926
cmp byte [edx + 8], 0
je 0x407926
mov byte [edx + 0x12], 2
cmp byte [esp + 0xe], 0
je 0x40793e
mov ecx, dword [esp + 0x44]
or byte [ecx], 8
mov ecx, dword [esp + 0x40]
push ecx
jmp 0x4066d0
cmp bl, 0xa4
je 0x407948
cmp bl, 0xa5
jne 0x407967
push 0xffc3d450
push 0
push 0
push dword [esp + 0x24]
mov dl, bl
mov ecx, 1
call fcn.00410880
mov eax, dword [ebp + 0x18]
add esp, 0x10
test al, al
jne 0x40796f
mov byte [esi + 0x11], 1
mov ecx, dword [esp + 0x40]
push 0
push SysReAllocString
push ecx
push edi
push eax
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [ebp + 0xc]
push ebx
call fcn.00407a70
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret