Function at 0x405120
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 0x405161
cmp eax, 0xffc3d44e
je 0x405161
mov byte [esp + 0x1c], 0
cmp eax, 0xffc3d44d
jne 0x405166
mov byte [esp + 0x1c], 1
mov ecx, dword [0x4ad0f4]
mov ebx, dword [ebp + 0x10]
test ecx, ecx
jne 0x40517c
lea edi, [esp + 0x48]
jmp 0x405223
mov eax, dword [0x4ad12c]
imul edi, eax, 0x70
inc eax
add edi, ecx
xor ecx, ecx
cmp eax, dword [0x4aa1dc]
cmovge eax, ecx
mov dword [0x4ad12c], 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 [0x4ad128], eax
sub ecx, dword [0x4af03c]
mov dword [0x4af03c], eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4a4390]
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x4a42d4]
movss dword [edi + 8], xmm0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x40520e
cmp esi, dword [0x4ad124]
je 0x405208
push esi
lea ecx, [edi + 0xc]
push ecx
push 0x418
push dword [0x4ad0e0]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x405215
mov byte [edi + 0xc], 0
jmp 0x405215
mov dword [edi + 0xc], 0x412f4e
mov edx, dword [esp + 0x10]
mov dword [0x4ad124], esi
mov esi, dword [esp + 0x20]
cmp bl, 0xe7
jne 0x40525f
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.00406a20
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 [0x4ad0f8]
jne 0x4052a9
mov edx, dword [ebp + 0x18]
and cl, 1
mov dword [esp + 0x14], ecx
jne 0x4053e5
test dl, dl
movzx eax, bl
setne cl
dec cl
and cl, 0x80
mov byte [eax + 0x4ad9f8], cl
jmp 0x4053e1
shr ecx, 4
and cl, 1
mov dword [esp + 0x14], ecx
test esi, 0x100
jne 0x405393
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je case.default.0x4052e8
movzx eax, bl
add eax, 0xfffffff4
cmp eax, 0x62
ja case.default.0x4052e8
movzx eax, byte [eax + 0x406848]
jmp dword [eax*4 + 0x406818]
mov edx, dword [ebp + 0x18]
test dl, dl
sete byte [0x4af1f0]
jmp 0x40539b
mov edx, dword [ebp + 0x18]
test dl, dl
sete byte [0x4af1f1]
jmp 0x40539b
mov edx, dword [ebp + 0x18]
test dl, dl
sete byte [0x4af1f2]
jmp 0x40539b
mov edx, dword [ebp + 0x18]
test dl, dl
sete byte [0x4af1f3]
jmp 0x40539b
mov edx, dword [ebp + 0x18]
test dl, dl
sete byte [0x4af1f4]
jmp 0x40539b
mov edx, dword [ebp + 0x18]
test dl, dl
sete byte [0x4af1f5]
jmp 0x40539b
mov edx, dword [ebp + 0x18]
test dl, dl
sete byte [0x4af1f6]
jmp 0x40539b
mov edx, dword [ebp + 0x18]
test dl, dl
sete byte [0x4af1f7]
jmp 0x40539b
mov edx, dword [ebp + 0x18]
test dl, dl
sete byte [0x4af1f8]
jmp 0x40539b
mov edx, dword [ebp + 0x18]
test dl, dl
sete byte [0x4af1f9]
jmp 0x40539b
mov edx, dword [ebp + 0x18]
test dl, dl
sete byte [0x4af1fa]
jmp 0x40539b
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x18]
jmp 0x40539f
mov edx, dword [ebp + 0x18]
mov ecx, dword [esp + 0x14]
mov esi, dword [0x4adb14]
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 0x4053e5
test byte [ebp + 0x20], 0x10
jne 0x4053e5
mov cl, bl
call fcn.00407d70
mov edx, dword [ebp + 0x18]
test al, al
je 0x4053e1
mov ecx, dword [esp + 0x24]
test dl, dl
setne al
dec al
and al, 0x80
mov byte [ecx + 0x4ad9f8], al
mov ecx, dword [esp + 0x14]
cmp byte [esp + 0x1c], 0
je 0x4053f0
mov al, 0x69
jmp 0x405404
test cl, cl
mov dword [esp + 0x24], 0x61
mov eax, 0x20
cmovne eax, dword [esp + 0x24]
cmp byte [0x4ad9e6], 0
mov byte [edi + 4], al
je 0x405433
cmp bl, 0x5b
je 0x40541a
cmp bl, 0x5c
jne 0x405433
test dl, dl
jne 0x405433
push 0
push SysReAllocString
push 0x7fff
push edi
push 0
push esi
jmp 0x406801
cmp byte [0x4af1ca], 0
je 0x4054de
cmp bl, 0x1b
jne 0x4054de
test dl, dl
jne 0x4054de
push 0
push str.32771
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x4054de
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 0x4054da
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
xor ecx, ecx
call fcn.0040f700
mov dl, byte [0x4ad9f5]
mov ecx, 1
push 0xffc3d44d
shr dl, 3
push 0
and dl, 1
push 0
push 0
or dl, 0xa4
call fcn.0040f700
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.004068f0
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 [0x4adb10]
lea esi, [eax + ecx*4]
mov eax, dword [esp + 0x10]
mov cl, byte [esi + 0x13]
mov byte [esp + 0x2b], cl
cmp eax, dword [0x4ad0fc]
jne 0x405507
test cl, cl
jne 0x40551a
mov ecx, dword [0x4adb14]
movzx eax, bl
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
mov eax, dword [esp + 0x10]
cmp byte [esp + 0x1c], 0
je 0x405574
cmp dword [ebp + 0x1c], 0xffc3d44e
mov eax, dword [ebp + 0x18]
jne 0x40554b
test al, al
je 0x40554b
cmp dword [0x4af1cc], esi
jne 0x40554b
mov byte [esi + 0xd], 0
mov byte [esi + 0x10], 0
mov dword [0x4af1cc], 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.00406a20
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 0x405587
mov byte [esi + 0x11], cl
mov word [esi + 4], dx
cmp eax, dword [0x4ad0f8]
jne 0x4055f7
test bl, bl
jne 0x4055bb
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.00406a20
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp bl, 1
je 0x4055c5
cmp bl, 2
jne 0x4055f7
cmp dword [0x4acfb0], 0
jne 0x40561e
push 0
push str.32768
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x4055f0
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ae958]
je 0x40561b
mov ecx, dword [ebp + 0x18]
mov eax, dword [esp + 0x10]
mov edx, dword [0x4af1cc]
test edx, edx
je 0x40564c
cmp edx, esi
je 0x40564c
test cl, cl
jne 0x40564c
cmp eax, dword [0x4ad0fc]
jne 0x405636
xor eax, eax
cmp byte [esi + 8], al
sete al
jmp 0x40563f
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 0x405552
mov eax, dword [0x4af1cc]
movzx eax, byte [eax + 8]
test eax, eax
je 0x40564c
mov eax, dword [0x4af1cc]
mov byte [eax + 0x12], 1
cmp byte [esi + 9], 0
jne 0x405658
cmp byte [esi + 0xa], 0
je 0x40562a
mov dword [esp + 0x38], 0
mov eax, 0x7fff
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], eax
test cl, cl
je 0x40569f
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 0x4056af
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], eax
mov word [esi + 4], dx
jmp 0x4056af
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 [0x4ad0fc]
jne 0x405742
cmp byte [esi + 8], 0
je 0x405764
mov eax, dword [0x4adb14]
cmp byte [eax + 0xcb5], 0
jne 0x4056ed
cmp byte [eax + 0xcc9], 0
jne 0x4056ed
xor edx, edx
jmp 0x4056f2
mov edx, 1
cmp byte [eax + 0xcdd], 0
mov byte [eax + 0x161], dl
jne 0x40570e
cmp byte [eax + 0xcf1], 0
jne 0x40570e
xor edx, edx
jmp 0x405713
mov edx, 1
cmp byte [eax + 0xc8d], 0
mov byte [eax + 0x175], dl
jne 0x405735
cmp byte [eax + 0xca1], 0
jne 0x405735
xor edx, edx
mov byte [eax + 0x14d], dl
jmp 0x405764
mov edx, 1
mov byte [eax + 0x14d], dl
jmp 0x405764
cmp dword [0x4ad0fc], 0
jne 0x405764
mov cl, 1
call fcn.00411a40
mov ecx, dword [ebp + 0x18]
mov byte [0x4ad9f4], al
mov byte [0x4ad9f5], al
mov byte [esp + 0x1c], 1
mov eax, dword [esi]
test eax, eax
je 0x405774
cmp dword [eax], 7
mov byte [esp + 0x1e], 1
je 0x405779
mov byte [esp + 0x1e], 0
mov al, byte [esi + 9]
test al, al
je 0x4058f2
test cl, cl
jne 0x4058f2
mov edx, dword [0x4af1cc]
test edx, edx
je 0x4057a3
cmp byte [esi + 0xa], cl
je 0x4057a3
cmp esi, edx
jne 0x4058f2
cmp al, 1
jne 0x4057c8
mov al, byte [esp + 0x2b]
mov ecx, dword [esp + 0x24]
test al, al
jne 0x4057b6
movzx ecx, bl
mov dl, al
call fcn.0040a550
test al, al
je 0x4057c8
mov byte [esp + 0xe], 1
jmp 0x4057df
mov byte [esp + 0xe], 0
cmp esi, dword [0x4af1cc]
je 0x4057df
mov dword [0x4af1cc], esi
mov byte [esi + 0x12], 0
cmp byte [esi + 0xa], 0
je 0x405892
cmp byte [esp + 0x1c], 0
jne 0x4057fc
mov cl, 1
mov byte [esp + 0x1c], 1
call fcn.00411a40
mov al, byte [esi + 8]
mov cl, byte [0x4ad9f4]
test al, al
je 0x40580d
not al
and cl, al
mov dl, byte [esp + 0xe]
test cl, cl
jne 0x405823
test dl, dl
jne 0x405823
test byte [esi + 0xc], 1
je 0x4058df
mov eax, dword [esp + 0x10]
cmp eax, dword [0x4ad0fc]
jne 0x405847
cmp byte [esp + 0x2b], 0
je 0x405847
mov eax, dword [0x4adb1c]
movzx ecx, cl
shl ecx, 9
add ecx, dword [esp + 0x24]
jmp 0x405857
movzx ecx, cl
movzx eax, bl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4adb20]
movzx ecx, word [eax + ecx*2]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], ecx
test ecx, 0x8000
je 0x405871
mov word [esi + 4], cx
jmp 0x4058a4
mov eax, dword [0x4ab8fc]
mov edx, ecx
and edx, 0x7fff
cmp dx, word [eax]
jae 0x405896
mov eax, dword [0x4adb18]
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 0x4058f6
test dl, dl
je 0x4058b0
or byte [esi + 0xc], 8
mov byte [edi + 4], 0x23
cmp byte [esi + 8], 0
jne 0x4058e5
test byte [esi + 0xc], 1
jne 0x4058e5
cmp byte [esp + 0x1e], 0
jne 0x4058e5
test dl, dl
jne 0x4058e5
push 0
push SysReAllocString
push 0x7fff
push edi
mov byte [esi + 0x11], 1
push 0
jmp 0x4067fd
mov ecx, dword [esp + 0x14]
jmp 0x40589a
push 0x7fff
push edi
push 0
jmp 0x405552
mov ecx, dword [esp + 0x14]
cmp byte [esi + 0xa], 0
mov eax, dword [ebp + 0x18]
mov byte [esp + 0x1d], 0
je 0x405962
test al, al
je 0x405962
mov dh, byte [esp + 0x1f]
cmp dword [0x4af1cc], esi
jne 0x405922
test dh, dh
je 0x405962
mov dword [0x4af1cc], 0
cmp byte [esi + 0xb], 0
jne 0x40595d
mov cl, byte [esi + 0xc]
test cl, 8
je 0x40593a
xor dl, dl
and cl, 0xf7
mov byte [esi + 0xc], cl
jmp 0x40593c
mov dl, 1
test dh, dh
je 0x40554b
test dl, dl
je 0x40554b
push 0
push SysReAllocString
push 0x7fff
jmp 0x4067fb
mov byte [esp + 0x1d], 1
cmp byte [esi + 9], 0
je 0x405b13
test al, al
je 0x405b13
mov edx, dword [0x4af1cc]
xor eax, eax
cmp edx, esi
cmove edx, eax
mov dword [0x4af1cc], edx
cmp byte [esi + 0xe], al
je 0x4059a4
push 0xffc3d44d
push eax
push eax
push eax
mov dl, 0x12
mov byte [esi + 0xe], al
lea ecx, [eax + 1]
call fcn.0040f700
add esp, 0x10
cmp byte [esi + 0xf], 0
je 0x4059c8
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov byte [esi + 0xf], 0
mov ecx, 1
call fcn.0040f700
add esp, 0x10
mov ecx, dword [esp + 0x14]
mov edx, 0x7fff
cmp cx, dx
jne 0x4059f0
mov al, byte [esi + 0xc]
test al, 8
je 0x4059f0
and al, 0xf7
mov byte [esi + 0xc], al
push 0x7fff
push edi
push dword [ebp + 0x18]
jmp 0x405552
mov al, byte [esp + 0x1e]
test al, al
je 0x405a69
mov al, byte [esi + 0x12]
cmp al, 2
jne 0x405a57
mov esi, dword [esp + 0x18]
mov dl, bl
push 0xffc3d44e
push 0
push 0
push esi
mov ecx, 1
call fcn.0040f700
push 0xffc3d44d
push 0
push 0
push esi
mov dl, bl
mov ecx, 2
call fcn.0040f700
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.004068f0
add esp, 0x3c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 1
jne 0x405abd
push 0x7fff
push edi
push dword [ebp + 0x18]
jmp 0x405552
cmp byte [esi + 0x12], 0
je 0x405ac1
cmp cx, dx
jne 0x405ac1
cmp byte [esi + 8], 0
jne 0x4059e2
test byte [esi + 0xc], 1
mov ecx, dword [esp + 0x10]
je 0x405a96
push 0x7fff
push edi
push dword [ebp + 0x18]
jmp 0x405556
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.004068f0
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 0x405af8
cmp byte [esi + 8], 0
jne 0x4059e2
test byte [esi + 0xc], 1
jne 0x4059e2
test al, al
jne 0x4059e2
push 0
push SysReAllocString
push 0x7fff
push edi
push dword [ebp + 0x18]
jmp 0x4067fd
cmp byte [esp + 0xf], 0
jne 0x405b18
cmp byte [esi + 0xb], 0
jne 0x405b18
push 0x7fff
push edi
push dword [ebp + 0x18]
jmp 0x405552
mov edx, 0x7fff
cmp byte [esp + 0x1c], 0
jne 0x405b2f
cmp cx, dx
jne 0x405b2f
mov cl, 1
call fcn.00411a40
mov ecx, dword [esp + 0x14]
cmp dword [0x4af1cc], 0
mov byte [esp + 0xe], 0
mov dword [esp + 0x3c], 0x7ffd
je 0x405f1b
mov edx, dword [ebp + 0x18]
test dl, dl
je 0x405b5a
cmp byte [esi + 0xb], 0
je 0x405f1b
mov eax, 0x7fff
cmp cx, ax
jne 0x406183
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 0x405d26
mov ecx, eax
lea esp, [esp]
mov eax, dword [0x4adb4c]
movzx ecx, cx
mov ecx, dword [eax + ecx*4]
mov dword [esp + 0x44], ecx
mov al, byte [ecx + 0x11]
test al, al
je 0x405bba
mov ebx, dword [0x4adb14]
movzx eax, al
lea eax, [eax + eax*4]
lea eax, [ebx + eax*4]
mov ebx, dword [ebp + 0x10]
jmp 0x405bcd
movzx eax, word [ecx + 0xa]
lea ecx, [eax + eax*4]
mov eax, dword [0x4adb10]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x44]
cmp byte [eax + 0xd], 0
je 0x405c02
cmp byte [ecx + 0x16], 0
je 0x405bef
test dl, dl
jne 0x405c21
mov ax, word [ecx + 4]
mov word [esi + 4], ax
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x405c2f
jmp 0x405c06
mov eax, dword [esp + 0x30]
test dl, dl
jne 0x405c06
test eax, eax
cmove eax, ecx
mov dword [esp + 0x30], eax
jmp 0x405c06
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 0x405b90
jmp 0x405c27
mov eax, ecx
mov dword [esp + 0x30], eax
test eax, eax
je 0x405d1e
movzx ecx, byte [eax + 0x11]
cmp ecx, 0x12
ja case.0x405c3f.1
movzx eax, byte [ecx + 0x4068c0]
jmp dword [eax*4 + 0x4068ac]
mov ecx, dword [0x4adb14]
xor eax, eax
cmp byte [ecx + 0xca1], al
setne al
add eax, 0xa0
lea eax, [eax + eax*4]
jmp 0x405cb5
mov ecx, dword [0x4adb14]
xor eax, eax
cmp byte [ecx + 0xcc9], al
setne al
add eax, 0xa2
lea eax, [eax + eax*4]
jmp 0x405cb5
mov ecx, dword [0x4adb14]
xor eax, eax
cmp byte [ecx + 0xcf1], al
setne al
add eax, 0xa4
lea eax, [eax + eax*4]
jmp 0x405cb5
mov eax, dword [esp + 0x30]
movzx eax, word [eax + 0xa]
lea ecx, [eax + eax*4]
mov eax, dword [0x4adb10]
lea eax, [eax + ecx*4]
jmp 0x405cb8
lea eax, [ecx + ecx*4]
mov ecx, dword [0x4adb14]
lea eax, [ecx + eax*4]
mov dword [0x4af1cc], eax
mov eax, dword [esp + 0x30]
movzx ecx, word [eax + 6]
test cx, cx
je 0x405cd0
mov dword [esp + 0x2c], ecx
jmp 0x405d08
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.0040a860
add esp, 0x10
mov dword [esp + 0x38], eax
test eax, eax
je 0x4059e2
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebp + 0x18]
movzx eax, cx
mov dword [esp + 0x34], eax
mov eax, dword [0x4af1cc]
mov dword [esp + 0x14], ecx
mov byte [eax + 0x12], 2
jmp 0x405d22
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], 0x7ffe
cmp ax, word [esp + 0x30]
je 0x405d40
cmp ax, word [esp + 0x3c]
jne 0x405f1b
test dl, dl
jne 0x405d48
mov byte [esi + 0x10], 1
test byte [0x4ad9f5], 0xc
jne 0x405d6b
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.0040f700
mov edx, dword [ebp + 0x18]
add esp, 0x10
cmp bl, 0xa2
je 0x405d75
cmp bl, 0xa3
jne 0x405d95
test dl, dl
jne 0x405d95
push 0xffc3d44d
push 0
push 0
push dword [esp + 0x24]
mov dl, bl
mov ecx, 1
call fcn.0040f700
add esp, 0x10
mov eax, dword [0x4af1cc]
mov ecx, 0x7ffd
mov byte [eax + 0xe], 1
mov eax, dword [esp + 0x34]
cmp ax, cx
jne 0x405dd7
test byte [0x4ad9f5], 0x30
jne 0x405dcc
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.0040f700
add esp, 0x10
mov eax, dword [0x4af1cc]
mov byte [eax + 0xf], 1
jmp 0x405e50
cmp ax, word [esp + 0x30]
jne 0x405e50
cmp bl, 0xa0
je 0x405de8
cmp bl, 0xa1
jne 0x405e0a
cmp byte [ebp + 0x18], 0
jne 0x405e0a
push 0xffc3d44d
push 0
push 0
push dword [esp + 0x24]
mov dl, bl
mov ecx, 1
call fcn.0040f700
add esp, 0x10
test byte [0x4ad9f5], 0x10
je 0x405e2d
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa0
mov ecx, 1
call fcn.0040f700
add esp, 0x10
test byte [0x4ad9f5], 0x20
je 0x405e50
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa1
mov ecx, 1
call fcn.0040f700
add esp, 0x10
test byte [0x4ad9f5], 1
je 0x405e73
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa2
mov ecx, 1
call fcn.0040f700
add esp, 0x10
test byte [0x4ad9f5], 2
je 0x405e96
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa3
mov ecx, 1
call fcn.0040f700
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.0040f700
mov eax, dword [esp + 0x44]
mov ecx, 0x7ffd
add esp, 0x10
cmp ax, cx
jne 0x405efb
mov eax, dword [0x4af1cc]
cmp byte [eax + 0xf], 0
je 0x405efb
cmp bl, 0x60
jb 0x405ed3
cmp bl, 0x69
jbe 0x405ed8
cmp bl, 0x6e
jne 0x405efb
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, 1
call fcn.0040f700
mov eax, dword [0x4af1cc]
add esp, 0x10
mov byte [eax + 0xf], 0
mov eax, dword [ebp + 0x18]
mov byte [edi + 4], 0x68
test al, al
jne 0x405f0a
mov byte [esi + 0x11], 1
push 0
push SysReAllocString
push 0x7fff
jmp 0x4067fb
mov eax, 0x7fff
cmp cx, ax
jne 0x406180
mov cl, byte [esi + 8]
mov al, byte [0x4ad9f4]
mov byte [esp + 0xf], al
test cl, cl
je 0x405f41
not cl
and al, cl
mov byte [esp + 0xf], al
mov edx, dword [esp + 0x10]
cmp edx, dword [0x4ad0fc]
jne 0x405f65
cmp byte [esp + 0x2b], 0
je 0x405f65
movzx ecx, al
mov eax, dword [0x4adb1c]
shl ecx, 9
add ecx, dword [esp + 0x24]
jmp 0x405f75
movzx ecx, al
movzx eax, bl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4adb20]
movzx ecx, word [eax + ecx*2]
mov eax, 0x7fff
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], ecx
cmp cx, ax
jne 0x406009
cmp byte [0x4af1ca], 0
je 0x406009
cmp bl, 9
je 0x406009
mov al, byte [esp + 0xf]
and al, 0xf3
cmp edx, dword [0x4ad0fc]
jne 0x405fbf
cmp byte [esp + 0x2b], 0
je 0x405fbf
movzx ecx, al
mov eax, dword [0x4adb1c]
shl ecx, 9
add ecx, dword [esp + 0x24]
jmp 0x405fcf
movzx ecx, al
movzx eax, bl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4adb20]
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 0x405ff6
mov edx, 0x7fff
cmp ax, dx
jb 0x406007
mov ecx, 0x7fff
mov dword [esp + 0x14], ecx
mov eax, ecx
mov dword [esp + 0x2c], ecx
jmp 0x406009
mov eax, edx
test ecx, 0x8000
je 0x406064
mov edx, dword [ebp + 0x18]
test dl, dl
jne 0x406131
mov word [esi + 4], cx
lea ecx, [esi + 4]
mov eax, 0x7fff
cmp word [ecx], ax
je 0x4058e5
push 0
lea eax, [esp + 0x12]
mov dl, 1
push eax
lea eax, [esi + 0xc]
push eax
push 0
call fcn.0040a860
mov ecx, dword [esp + 0x20]
add esp, 0x10
cmp byte [esp + 0xe], 0
je 0x40626b
push 0x7fff
push edi
push 0
jmp 0x405556
cmp cx, ax
je 0x40613b
mov edx, dword [ebp + 0x18]
mov eax, ecx
and eax, 0x7fff
mov dword [esp + 0x24], eax
mov eax, dword [0x4ab8fc]
mov ebx, dword [esp + 0x24]
test dl, dl
je 0x406111
cmp bx, word [eax]
mov ebx, dword [ebp + 0x10]
jae 0x406108
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 [0x4adb18]
cmp word [ebx + eax], dx
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
je 0x406108
cmp byte [esp + 0x1d], 0
jne 0x4060f1
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.0040a860
mov edx, dword [ebp + 0x18]
add esp, 0x10
mov dword [esp + 0x38], eax
test eax, eax
je 0x4060f1
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
jmp 0x406131
mov eax, dword [0x4adb18]
mov ecx, dword [esp + 0x24]
movzx ecx, word [ecx + eax]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], ecx
jmp 0x406131
cmp byte [esp + 0x1d], 0
jne 0x40613b
jmp 0x406131
cmp bx, word [eax]
mov ebx, dword [ebp + 0x10]
jae 0x406131
mov eax, dword [esp + 0x24]
movzx ecx, ax
mov eax, dword [0x4adb18]
mov ax, word [eax + ecx*2]
mov ecx, dword [esp + 0x14]
mov word [esi + 4], ax
mov eax, 0x7fff
cmp cx, ax
jne 0x406183
mov eax, dword [ebp + 0x18]
test al, al
je 0x406020
cmp byte [esi + 8], 0
jne 0x40554b
test byte [esi + 0xc], 1
jne 0x40554b
cmp byte [esi + 9], 0
je 0x40554b
cmp byte [esp + 0x1e], 0
jne 0x40554b
push 0
push SysReAllocString
push 0x7fff
jmp 0x4067fb
mov edx, dword [ebp + 0x18]
lea eax, [esi + 0xc]
mov dword [esp + 0x44], eax
mov al, byte [eax]
test al, 8
je 0x40619e
test dl, dl
je 0x40619e
and al, 0xf7
mov byte [esp + 0xe], 1
mov byte [esi + 0xc], al
mov eax, dword [0x4ab8fc]
and ecx, 0x7fff
cmp cx, word [eax]
jae 0x406297
cmp dword [esp + 0x38], 0
jne 0x406297
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.0040a860
add esp, 0x10
mov dword [esp + 0x38], eax
test eax, eax
jne 0x406291
mov eax, dword [ebp + 0x18]
test al, al
je 0x406227
cmp byte [esi + 0x11], 0
mov ecx, dword [esp + 0x10]
je 0x40621b
mov edx, dword [ebp + 0xc]
push 0
push SysReAllocString
push 0x7fff
push edi
push eax
push dword [esp + 0x2c]
push ebx
call fcn.004068f0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x7fff
push edi
push eax
jmp 0x405556
lea ecx, [esi + 4]
mov eax, 0x7fff
cmp word [ecx], ax
je 0x4058e5
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.0040a860
mov ecx, dword [esp + 0x20]
add esp, 0x10
cmp byte [esp + 0xe], 0
jne 0x406057
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.004068f0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
jmp 0x40629b
mov ecx, dword [esp + 0x14]
and ecx, 0x7fff
test byte [0x4ad9f5], 0xcc
mov dword [esp + 0x14], ecx
je 0x406345
cmp byte [esp + 0xe], 0
jne 0x406345
cmp byte [0x4af1c9], 0
jne 0x4062d2
mov eax, dword [esp + 0x10]
cmp eax, dword [0x4ad0f8]
jne 0x406349
test byte [0x4ad9f5], 0xc0
mov dh, byte [0x4ad9e7]
je 0x4062fe
test dh, 0xc0
jne 0x4062f1
mov dl, 0xc0
call fcn.0040aaa0
test al, al
je 0x4062fa
mov byte [0x4af1c8], 1
jmp 0x406345
mov ecx, dword [esp + 0x14]
cmp byte [0x4af1c8], 0
jne 0x406345
mov al, byte [0x4ad9f5]
test al, 0xc
je 0x406345
test al, 3
jne 0x406345
test dh, 0xc
jne 0x406324
mov dl, 0xc
call fcn.0040aaa0
test al, al
je 0x406345
cmp dword [0x4ad0fc], 0
je 0x406336
mov byte [0x4af1c8], 1
jmp 0x406345
mov edx, 0xffc3d44d
mov ecx, 2
call fcn.0040fd50
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.0x406363
jmp dword [edx*4 + 0x4068d4]
cmp byte [0x4af1ca], 0
jne case.0x406363.32763
push 0x7fff
push edi
push dword [ebp + 0x18]
mov ecx, eax
jmp 0x405556
xor dl, dl
test byte [0x4ad9f5], 4
je 0x406395
mov edx, 0xa4
jmp 0x4063ac
test byte [0x4ad9f5], 8
movzx edx, dl
mov dword [esp + 0x3c], 0xa5
cmovne edx, dword [esp + 0x3c]
cmp byte [0x4af1ca], 0
mov dword [esp + 0x34], edx
je 0x406433
mov dword [esp + 0x3c], 0x7ffb
cmp cx, word [esp + 0x3c]
je case.0x406363.32765
movzx eax, dl
test dl, dl
jne 0x4063d8
mov eax, 0x12
push 0xffc3d44d
push 0
push 0
push 0
mov dl, al
mov ecx, 1
call fcn.0040f700
add esp, 0x10
cmp byte [esi + 8], 0
je 0x406422
cmp bl, 0x5b
je 0x406422
cmp bl, 0x5c
je 0x406422
cmp byte [ebp + 0x18], 0
jne 0x406422
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.0040f700
add esp, 0x10
mov byte [0x4af1ca], 0
mov edx, 0x7fff
jmp 0x4066c2
cmp bl, 0xa4
je 0x406442
mov byte [esp + 0x1d], 0
cmp bl, 0xa5
jne 0x406447
mov byte [esp + 0x1d], 1
cmp bl, 0xa0
je 0x406455
cmp bl, 0xa1
je 0x406455
xor cl, cl
jmp 0x406457
mov cl, 1
mov byte [esp + 0x1f], cl
cmp bl, 0xa2
je 0x40646a
mov byte [esp + 0xf], 0
cmp bl, 0xa3
jne 0x40646f
mov byte [esp + 0xf], 1
xor dl, dl
test byte [0x4ad9f5], 0x10
mov dword [esp + 0x38], edx
je 0x406482
mov dl, 0xa0
jmp 0x4064a1
test byte [0x4ad9f5], 0x20
mov eax, dword [ebp + 0x18]
je 0x406492
mov dl, 0xa1
jmp 0x4064a4
test al, al
jne 0x4064a8
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 [0x4ad9f5], 1
mov dword [esp + 0x24], ecx
je 0x4064be
mov byte [esp + 0x24], 0xa2
jmp 0x4064e4
test byte [0x4ad9f5], 2
je 0x4064ce
mov byte [esp + 0x24], 0xa3
jmp 0x4064e4
test al, al
jne 0x4064e4
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 0x40650a
push 0xffc3d44d
push 0
push 0
push 0
mov ecx, 1
call fcn.0040f700
add esp, 0x10
mov byte [esp + 0xf], 1
mov eax, dword [esp + 0x24]
test al, al
je 0x40652c
push 0xffc3d44d
push 0
push 0
push 0
mov dl, al
mov ecx, 1
call fcn.0040f700
add esp, 0x10
cmp byte [esp + 0x1d], 0
je 0x40653d
cmp byte [ebp + 0x18], 0
jne 0x406545
mov al, bl
jmp 0x406541
mov eax, dword [esp + 0x34]
test al, al
jne 0x40655c
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.0040f700
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.0040f700
add esp, 0x10
cmp byte [esp + 0xf], 0
je 0x40659d
cmp byte [esp + 0x1f], 0
jne 0x40659d
mov dl, byte [esp + 0x38]
xor ecx, ecx
push 0xffc3d44d
push 0
push 0
push 0
call fcn.0040f700
add esp, 0x10
mov byte [0x4af1ca], 1
mov edx, 0x7fff
jmp 0x4066c2
cmp byte [0x4af1ca], 0
je 0x406373
mov eax, dword [ebp + 0x18]
test al, al
jne 0x4065f3
cmp bl, 0xa2
je 0x4065d6
cmp bl, 0xa3
je 0x4065d6
cmp bl, 0xa0
je 0x4065d6
cmp bl, 0xa1
jne 0x4065f3
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.0040f700
mov eax, dword [ebp + 0x18]
add esp, 0x10
test byte [0x4ad9f5], 0xc
je 0x40660a
test al, al
je 0x406621
cmp bl, 0xa4
je 0x40660a
cmp bl, 0xa5
jne 0x406621
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.0040f700
add esp, 0x10
mov eax, 0x7ffd
mov byte [esp + 0xf], 0
cmp word [esp + 0x14], ax
jne 0x406657
test byte [0x4ad9f5], 0x30
jne 0x406657
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.0040f700
add esp, 0x10
mov byte [esp + 0xf], 1
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.0040f700
add esp, 0x10
cmp byte [esp + 0xf], 0
je 0x406429
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, 1
call fcn.0040f700
add esp, 0x10
mov edx, 0x7fff
jmp 0x4066c2
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x40], edx
mov eax, dword [ecx + 4]
test eax, eax
je 0x4066c2
cmp byte [eax], 5
jb 0x4066c2
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 0x406736
test al, al
je 0x40678e
cmp byte [esi + 9], 0
je 0x406736
mov esi, dword [esp + 0x18]
mov dl, bl
push 0xffc3d44e
push 0
push 0
push esi
mov ecx, 1
call fcn.0040f700
push 0xffc3d44d
push 0
push 0
push esi
mov dl, bl
mov ecx, 2
call fcn.0040f700
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.004068f0
add esp, 0x3c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test al, al
je 0x40678e
cmp byte [esi + 8], 0
je 0x406773
cmp byte [esi + 0x11], 0
mov ecx, dword [esp + 0x10]
je 0x40676b
push 0
push SysReAllocString
push edx
mov edx, dword [ebp + 0xc]
push edi
push eax
push dword [esp + 0x2c]
push ebx
call fcn.004068f0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edx
push edi
push eax
jmp 0x405556
cmp byte [esp + 0xe], 0
je 0x4067e7
push edx
mov edx, dword [esp + 0x24]
push edi
push eax
push dword [esp + 0x24]
push ebx
push dword [ebp + 0xc]
jmp 0x405249
mov edx, dword [0x4af1cc]
mov byte [esi + 0x10], 1
test edx, edx
je 0x4067a6
cmp byte [edx + 8], 0
je 0x4067a6
mov byte [edx + 0x12], 2
cmp byte [esp + 0xe], 0
je 0x4067be
mov ecx, dword [esp + 0x44]
or byte [ecx], 8
mov ecx, dword [esp + 0x40]
push ecx
jmp 0x405550
cmp bl, 0xa4
je 0x4067c8
cmp bl, 0xa5
jne 0x4067e7
push 0xffc3d450
push 0
push 0
push dword [esp + 0x24]
mov dl, bl
mov ecx, 1
call fcn.0040f700
mov eax, dword [ebp + 0x18]
add esp, 0x10
test al, al
jne 0x4067ef
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.004068f0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret