Function at 0x405b20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [ebp + 0x24]
mov edx, dword [ebp + 0x28]
push ebx
push esi
push edi
mov dword [esp + 0x24], 0x3fff
cmp eax, 0xffc3d44f
je 0x405b57
cmp eax, 0xffc3d44e
je 0x405b57
mov byte [esp + 0xd], 0
cmp eax, 0xffc3d44d
jne 0x405b5c
mov byte [esp + 0xd], 1
mov ecx, dword [0x4bc084]
test ecx, ecx
jne 0x405b73
lea edi, [esp + 0x40]
mov dword [esp + 0x20], edi
jmp 0x405c1a
mov eax, dword [0x4bc088]
mov edi, eax
imul edi, edi, 0x70
inc eax
add edi, ecx
mov dword [esp + 0x20], edi
mov dword [0x4bc088], eax
cmp eax, dword [0x4b73cc]
jl 0x405b9b
mov dword [0x4bc088], 0
mov al, byte [ebp + 0x18]
mov cl, byte [ebp + 0x20]
mov byte [edi], al
mov byte [edi + 5], cl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
sub edx, dword [0x4bdeec]
mov dword [0x4bc08c], eax
mov dword [esp + 0x34], edx
fild dword [esp + 0x34]
jns 0x405bc9
fadd dword [0x4b0c70]
fdiv qword [0x4b0c68]
mov dword [0x4bdeec], eax
fstp dword [edi + 8]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x405c0a
cmp esi, dword [0x4bc090]
je 0x405c04
mov ecx, dword [0x4bb770]
push esi
lea eax, [edi + 0xc]
push eax
push 0x418
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x405c11
mov byte [edi + 0xc], 0
jmp 0x405c11
mov dword [edi + 0xc], 0x412f4e
mov edx, dword [ebp + 0x28]
mov dword [0x4bc090], esi
mov al, byte [ebp + 0x18]
mov ebx, dword [ebp + 0x20]
cmp al, 0xe7
jne 0x405c3c
mov edx, dword [ebp + 0x14]
mov ax, word [edx + 4]
mov word [edi + 2], ax
mov byte [edi + 4], 0x55
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x1c]
lea ecx, [eax + 0x64]
mov word [edi + 2], si
cmp cl, 3
ja 0x405c50
xor esi, esi
mov dword [ebp + 0x1c], esi
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x4bb8a4]
jne 0x405c80
and dl, 1
mov byte [esp + 0xf], dl
jne 0x405d8c
test bl, bl
setne dl
dec dl
movzx eax, al
and dl, 0x80
mov byte [eax + 0x4bb790], dl
jmp 0x405d8c
shr edx, 4
and dl, 1
mov byte [esp + 0xf], dl
test esi, 0x100
jne case.0x405cc0.13
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je case.0x405cc0.13
movzx eax, byte [ebp + 0x18]
add eax, 0xfffffff4
cmp eax, 0x62
ja case.0x405cc0.13
movzx ecx, byte [eax + 0x407658]
jmp dword [ecx*4 + 0x407628]
test bl, bl
sete dl
mov byte [0x4ba648], dl
jmp case.0x405cc0.13
test bl, bl
sete al
mov byte [0x4ba649], al
jmp case.0x405cc0.13
test bl, bl
sete cl
mov byte [0x4ba64a], cl
jmp case.0x405cc0.13
test bl, bl
sete dl
mov byte [0x4ba64b], dl
jmp case.0x405cc0.13
test bl, bl
sete al
mov byte [0x4ba64c], al
jmp case.0x405cc0.13
test bl, bl
sete cl
mov byte [0x4ba64d], cl
jmp case.0x405cc0.13
test bl, bl
sete dl
mov byte [0x4ba64e], dl
jmp case.0x405cc0.13
test bl, bl
sete al
mov byte [0x4ba64f], al
jmp case.0x405cc0.13
test bl, bl
sete cl
mov byte [0x4ba650], cl
jmp case.0x405cc0.13
test bl, bl
sete dl
mov byte [0x4ba651], dl
jmp case.0x405cc0.13
test bl, bl
sete al
mov byte [0x4ba652], al
movzx esi, byte [ebp + 0x18]
mov edx, dword [0x4bc0a8]
lea ecx, [esi + esi*8]
shl ecx, 5
cmp byte [ecx + edx + 4], 0
jne 0x405d8c
test byte [ebp + 0x28], 0x10
jne 0x405d8c
mov al, byte [ebp + 0x18]
push ebx
call fcn.00408a20
add esp, 4
test al, al
je 0x405d8c
test bl, bl
setne al
dec al
and al, 0x80
mov byte [esi + 0x4bb790], al
cmp byte [esp + 0xd], 0
je 0x405d97
mov al, 0x69
jmp 0x405da3
mov al, byte [esp + 0xf]
neg al
sbb al, al
and al, 0x41
add al, 0x20
cmp byte [0x4bb890], 0
mov byte [edi + 4], al
je 0x405deb
mov al, byte [ebp + 0x18]
cmp al, 0x5b
je 0x405dba
cmp al, 0x5c
jne 0x405deb
test bl, bl
jne 0x405deb
push 0
push SysReAllocString
push 0x3fff
push 0
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push ecx
push edx
mov ebx, edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
call fcn.00407750
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x4ba66b], 0
je 0x405e91
cmp byte [ebp + 0x18], 0x1b
jne 0x405e91
test bl, bl
jne 0x405e91
push 0
push str.32771
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x405e91
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 0x405e91
push 0xffc3d44d
push 0
push 0
push 0
push 0x1b
push 0
call fcn.0040fda0
mov al, byte [0x4bb76b]
push 0xffc3d44d
shr al, 3
push 0
and al, 1
or al, 0xa4
push 0
movzx ecx, al
push 0
push ecx
push 1
call fcn.0040fda0
mov edx, dword [ebp + 0x1c]
push 0
push SysReAllocString
push 0x3fff
push 0
push edx
push 0x1b
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov ebx, edi
call fcn.00407750
add esp, 0x48
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [ebp + 0x1c]
mov ecx, dword [0x4bb8a0]
mov dword [esp + 0x34], eax
lea eax, [eax + eax*8]
shl eax, 5
add eax, dword [0x4bc0ac]
mov dl, byte [eax + 0x12]
mov byte [esp + 0x2b], dl
cmp dword [ebp + 8], ecx
jne 0x405ec2
test dl, dl
je 0x405ec2
mov esi, eax
mov al, byte [ebp + 0x18]
jmp 0x405ed4
mov al, byte [ebp + 0x18]
movzx esi, al
lea esi, [esi + esi*8]
shl esi, 5
add esi, dword [0x4bc0a8]
cmp byte [esp + 0xd], 0
mov dword [esp + 0x18], esi
je 0x405f13
cmp dword [ebp + 0x24], 0xffc3d44e
jne 0x4075fb
test bl, bl
je 0x4075fb
cmp dword [0x4ba66c], esi
jne 0x4075fb
mov byte [esi + 0xc], 0
mov dword [0x4ba66c], 0
jmp 0x4075f7
test bl, bl
jne 0x405f23
mov edx, 0x3fff
mov byte [esi + 0x10], bl
mov word [esi + 6], dx
cmp dword [ebp + 8], ecx
jne 0x405fd3
test bl, bl
je 0x40602e
cmp byte [0x4ba673], 0
je 0x405f41
cmp al, 0x5b
je 0x405f70
cmp byte [0x4ba672], 0
je 0x405f4e
cmp al, 0x5c
je 0x405f70
cmp byte [0x4ba671], 0
je 0x405f5b
cmp al, 0xa4
je 0x405f70
cmp byte [0x4ba670], 0
je 0x40602e
cmp al, 0xa5
jne 0x40602e
movzx eax, al
add eax, 0xffffffa5
cmp eax, 0x4a
ja case.0x405f82.93
movzx eax, byte [eax + 0x4076d0]
jmp dword [eax*4 + 0x4076bc]
mov byte [0x4ba673], 0
jmp case.0x405f82.93
mov byte [0x4ba672], 0
jmp case.0x405f82.93
mov byte [0x4ba671], 0
jmp case.0x405f82.93
mov byte [0x4ba670], 0
test byte [0x4bb76b], 3
jne 0x40602e
movzx ecx, byte [0x4b7365]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
push 2
call fcn.0040fda0
add esp, 0x18
jmp 0x40602e
test al, al
jne 0x405ff3
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0
push 0x3fff
push edi
push ebx
push edx
push eax
push ecx
xor cl, cl
jmp 0x407613
cmp al, 1
je 0x405ffb
cmp al, 2
jne 0x40602e
cmp dword [0x4bb900], 0
jne 0x4075ef
push 0
push str.32768
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x40602e
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4bd780]
je 0x4075ef
mov edx, dword [0x4ba66c]
test edx, edx
je 0x406063
cmp edx, esi
je 0x406063
test bl, bl
jne 0x406063
mov ecx, dword [0x4bb8a0]
cmp dword [ebp + 8], ecx
jne 0x406055
xor eax, eax
cmp byte [esi + 4], al
sete al
jmp 0x406059
movzx eax, byte [edx + 4]
test eax, eax
je 0x406069
mov byte [edx + 0x11], 1
jmp 0x406069
mov ecx, dword [0x4bb8a0]
cmp byte [esi + 8], 0
jne 0x406079
cmp byte [esi + 9], 0
je 0x4075fb
mov byte [esp + 0x2f], 0
mov dword [esp + 0x10], 0x3fff
mov dword [esp + 0x3c], 0
test bl, bl
je 0x4060c1
mov al, byte [esi + 0xf]
mov dl, byte [esi + 0xc]
mov byte [esp + 0x1e], al
movzx eax, word [esi + 6]
mov byte [esp + 0x1f], dl
mov edx, 0x3fff
mov byte [esi + 0xf], 0
cmp ax, dx
je 0x4060bf
mov dword [esp + 0x10], eax
mov byte [esp + 0x2f], 1
mov word [esi + 6], dx
test bl, bl
sete al
mov byte [esi + 0xc], al
mov byte [esp + 0xd], 0
cmp dword [ebp + 8], ecx
jne 0x40614c
cmp byte [esi + 4], 0
je 0x406169
mov ecx, dword [0x4bc0a8]
cmp byte [ecx + 0xb64c], 0
jne 0x4060f7
cmp byte [ecx + 0xb76c], 0
jne 0x4060f7
xor eax, eax
jmp 0x4060fc
mov eax, 1
cmp byte [ecx + 0xb88c], 0
mov byte [ecx + 0x132c], al
jne 0x406118
cmp byte [ecx + 0xb9ac], 0
jne 0x406118
xor eax, eax
jmp 0x40611d
mov eax, 1
cmp byte [ecx + 0xb40c], 0
mov byte [ecx + 0x144c], al
jne 0x40613f
cmp byte [ecx + 0xb52c], 0
jne 0x40613f
xor eax, eax
mov byte [ecx + 0x120c], al
jmp 0x406169
mov eax, 1
mov byte [ecx + 0x120c], al
jmp 0x406169
test ecx, ecx
jne 0x406169
push 1
call fcn.00412530
add esp, 4
mov byte [0x4bb76e], al
mov byte [0x4bb76b], al
mov byte [esp + 0xd], 1
mov eax, dword [esi]
test eax, eax
je 0x406179
cmp dword [eax], 7
mov byte [esp + 0x17], 1
je 0x40617e
mov byte [esp + 0x17], 0
mov al, byte [esi + 8]
test al, al
je 0x406302
test bl, bl
jne 0x406302
mov ecx, dword [0x4ba66c]
test ecx, ecx
je 0x4061a8
cmp byte [esi + 9], bl
je 0x4061a8
cmp esi, ecx
jne 0x406302
cmp al, 1
jne 0x4061d8
cmp byte [esp + 0x2b], 0
mov eax, dword [esp + 0x34]
jne 0x4061bb
movzx eax, byte [ebp + 0x18]
mov ecx, dword [esp + 0x2b]
push ecx
push eax
call fcn.0040ad40
add esp, 8
test al, al
je 0x4061d8
mov byte [esp + 0xe], 1
mov dl, byte [esp + 0xe]
jmp 0x4061ef
xor dl, dl
mov byte [esp + 0xe], dl
cmp esi, dword [0x4ba66c]
je 0x4061ef
mov dword [0x4ba66c], esi
mov byte [esi + 0x11], dl
cmp byte [esi + 9], 0
je 0x40629d
cmp byte [esp + 0xd], 0
jne 0x406213
push 1
mov byte [esp + 0x11], 1
call fcn.00412530
mov dl, byte [esp + 0x12]
add esp, 4
mov al, byte [esi + 4]
mov cl, byte [0x4bb76e]
test al, al
je 0x406224
not al
and cl, al
test cl, cl
jne 0x406232
test dl, dl
jne 0x406232
test byte [esi + 0xb], 1
je 0x40629d
mov eax, dword [ebp + 8]
cmp eax, dword [0x4bb8a0]
jne 0x406255
cmp byte [esp + 0x2b], 0
je 0x406255
mov eax, dword [0x4bc0a0]
movzx ecx, cl
shl ecx, 9
add ecx, dword [esp + 0x34]
jmp 0x406266
movzx eax, byte [ebp + 0x18]
movzx ecx, cl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4bc09c]
movzx eax, word [eax + ecx*2]
mov dword [esp + 0x10], eax
test eax, 0x4000
je 0x40627b
mov word [esi + 6], ax
jmp 0x4062a9
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4b85b0]
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x40629d
mov ecx, dword [0x4bc0a4]
mov ax, word [ecx + eax*2]
mov word [esi + 6], ax
mov ecx, 0x3fff
cmp word [esp + 0x10], cx
jne 0x406302
test dl, dl
je 0x4062b5
or byte [esi + 0xb], 8
mov byte [edi + 4], 0x23
cmp byte [esi + 4], 0
jne 0x4062e7
test byte [esi + 0xb], 1
jne 0x4062e7
cmp byte [esp + 0x17], 0
jne 0x4062e7
test dl, dl
jne 0x4062e7
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push 0
push SysReAllocString
push 0x3fff
push 0
push edx
push eax
jmp 0x405dd4
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 0
push 0x3fff
push edi
push 0
push ecx
push edx
push eax
jmp 0x407610
cmp byte [esi + 9], 0
mov byte [esp + 0xf], 0
je 0x406377
test bl, bl
je 0x406377
cmp dword [0x4ba66c], esi
jne 0x40632a
cmp byte [esp + 0x1e], 0
je 0x406377
mov dword [0x4ba66c], 0
cmp byte [esi + 0xa], 0
jne 0x406372
mov al, byte [esi + 0xb]
test al, 8
je 0x406340
xor cl, cl
and al, 0xf7
mov byte [esi + 0xb], al
jmp 0x406342
mov cl, 1
cmp byte [esp + 0x1e], 0
je 0x406464
test cl, cl
je 0x406464
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push 0
push SysReAllocString
push 0x3fff
push ecx
push edx
push eax
jmp 0x405dd4
mov byte [esp + 0xf], 1
cmp byte [esi + 8], 0
je 0x40652a
test bl, bl
je 0x40652a
cmp dword [0x4ba66c], esi
jne 0x40639b
mov dword [0x4ba66c], 0
cmp byte [esi + 0xd], 0
je 0x4063bc
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
mov byte [esi + 0xd], 0
call fcn.0040fda0
add esp, 0x18
cmp byte [esi + 0xe], 0
je 0x4063dd
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
mov byte [esi + 0xe], 0
call fcn.0040fda0
add esp, 0x18
mov ecx, dword [esp + 0x10]
mov edx, 0x3fff
cmp cx, dx
jne 0x406411
mov al, byte [esi + 0xb]
test al, 8
je 0x406411
and al, 0xf7
mov byte [esi + 0xb], al
push 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0x3fff
push edi
push ebx
push eax
push ecx
push edx
jmp 0x407610
cmp byte [esp + 0x17], 0
mov al, byte [esi + 0x11]
je 0x40647e
cmp al, 2
jne 0x406460
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
push 0xffc3d44e
push 0
push 0
push ebx
push esi
push 1
call fcn.0040fda0
push 0xffc3d44d
push 0
push 0
push ebx
push esi
push 2
call fcn.0040fda0
mov eax, dword [ebp + 0x20]
push 0
push SysReAllocString
push 0x3fff
push eax
push ebx
push esi
jmp 0x405e7a
cmp al, 1
jne 0x4064c9
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 0
push 0x3fff
push edi
push ebx
push ecx
push edx
push eax
jmp 0x407610
test al, al
je 0x4064c9
cmp cx, dx
jne 0x4064c9
cmp byte [esi + 4], 0
je 0x4064bc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp al, 2
mov eax, dword [ebp + 0x10]
jne 0x4064ab
push 1
push 0x3fff
push edi
push ebx
push eax
push ecx
push edx
jmp 0x407610
push 0
push 0x3fff
push edi
push ebx
push eax
push ecx
push edx
jmp 0x407610
test byte [esi + 0xb], 1
push 0
je 0x4064f0
jmp 0x4063f9
cmp byte [esi + 9], 0
jne 0x406503
cmp byte [esi + 4], 0
jne 0x4063f7
test byte [esi + 0xb], 1
jne 0x4063f7
cmp byte [esp + 0x17], 0
jne 0x4063f7
push 0
mov eax, dword [ebp + 0x20]
push SysReAllocString
push 0x3fff
push eax
jmp 0x405dcc
cmp byte [esp + 0x1f], 0
jne 0x40652e
cmp byte [esi + 0xa], 0
jne 0x40652e
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push 0x3fff
push edi
push ebx
push eax
push ecx
push edx
jmp 0x407610
mov ecx, dword [esp + 0x10]
cmp byte [esp + 0xd], 0
jne 0x406549
mov eax, 0x3fff
cmp cx, ax
jne 0x406549
push 1
call fcn.00412530
add esp, 4
cmp dword [0x4ba66c], 0
mov byte [esp + 0xe], 0
je 0x406bf8
cmp byte [ebp + 0x20], 0
je 0x40656b
cmp byte [esi + 0xa], 0
je 0x406bf8
mov edx, dword [esp + 0x10]
mov ecx, 0x3fff
cmp dx, cx
jne 0x406e79
mov edi, dword [esp + 0x18]
cmp byte [edi + 0x13], 0
mov dword [esp + 0x30], 0
jbe 0x406648
lea esi, [edi + 0x16]
jmp 0x4065a0
mov cl, byte [esi]
mov ebx, dword [0x4bc0a8]
movzx eax, cl
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + ebx + 0xc], 0
je 0x406616
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x40660a
cmp byte [ebp + 0x20], 0
jne 0x406630
mov ecx, 0x3fff
mov word [edi + 6], ax
cmp dx, cx
je 0x406616
mov dword [esp + 0x10], edx
movzx ecx, byte [esp + 0xd]
mov eax, ecx
sub eax, 0x10
je 0x406715
dec eax
je 0x4066f6
dec eax
je 0x4066d7
lea ebx, [ecx + ecx*8]
shl ebx, 5
add ebx, dword [0x4bc0a8]
jmp 0x4066bc
cmp byte [ebp + 0x20], 0
jne 0x406616
mov edx, eax
mov byte [esp + 0xd], cl
mov eax, dword [esp + 0x30]
movzx ecx, byte [edi + 0x13]
inc eax
add esi, 4
mov dword [esp + 0x30], eax
cmp eax, ecx
jl 0x4065a0
jmp 0x40663a
mov al, byte [esi]
movzx edx, word [esi + 2]
mov byte [esp + 0xd], al
mov ecx, 0x3fff
mov dword [esp + 0x10], edx
cmp dx, cx
jne 0x4065db
cmp byte [edi + 0x14], 0
mov dword [esp + 0x30], 0
jbe 0x406779
lea esi, [edi + 0xde]
movzx ecx, word [esi]
mov ebx, dword [0x4bc0ac]
mov eax, ecx
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + ebx + 0xc], 0
je 0x406742
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x406734
cmp byte [ebp + 0x20], 0
jne 0x40675c
mov ecx, 0x3fff
mov word [edi + 6], ax
cmp dx, cx
je 0x406742
mov dword [esp + 0x10], edx
movzx eax, word [esp + 0x38]
lea ebx, [eax + eax*8]
shl ebx, 5
add ebx, dword [0x4bc0ac]
mov edx, 0x3fff
mov dword [0x4ba66c], ebx
cmp word [esp + 0x10], dx
jne case.default.0x406791
jmp 0x40677f
mov ecx, dword [0x4bc0a8]
xor eax, eax
cmp byte [ecx + 0xb9ac], al
setne al
lea ebx, [eax + eax*8 + 0x5c4]
shl ebx, 5
add ebx, ecx
jmp 0x4066bc
mov ecx, dword [0x4bc0a8]
xor eax, eax
cmp byte [ecx + 0xb76c], al
setne al
lea ebx, [eax + eax*8 + 0x5b2]
shl ebx, 5
add ebx, ecx
jmp 0x4066bc
mov ecx, dword [0x4bc0a8]
xor eax, eax
cmp byte [ecx + 0xb52c], al
setne al
lea ebx, [eax + eax*8 + 0x5a0]
shl ebx, 5
add ebx, ecx
jmp 0x4066bc
cmp byte [ebp + 0x20], 0
jne 0x406742
mov edx, eax
mov eax, ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x30]
movzx ecx, byte [edi + 0x14]
inc eax
add esi, 4
mov dword [esp + 0x30], eax
cmp eax, ecx
jl 0x406660
jmp 0x406767
movzx eax, word [esi]
movzx edx, word [esi + 2]
mov dword [esp + 0x38], eax
mov ecx, 0x3fff
mov dword [esp + 0x10], edx
cmp dx, cx
jne 0x4066ab
mov ebx, dword [0x4ba66c]
movzx eax, byte [ebp + 0x18]
add eax, 0xffffff60
cmp eax, 5
ja case.default.0x406791
jmp dword [eax*4 + 0x40771c]
mov al, 0x11
jmp 0x4067a2
mov al, 0x12
jmp 0x4067a2
mov al, 0x10
mov ecx, dword [0x4bc0a8]
movzx eax, al
lea esi, [eax + eax*8]
shl esi, 5
movzx edx, byte [esi + ecx + 0x13]
add esi, ecx
xor edi, edi
mov dword [esp + 0x30], esi
test edx, edx
jle 0x406834
add esi, 0x16
mov cl, byte [esi]
mov ebx, dword [0x4bc0a8]
movzx eax, cl
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + ebx + 0xc], 0
je 0x406812
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x406804
cmp byte [ebp + 0x20], 0
jne 0x40681c
mov ecx, dword [esp + 0x18]
mov word [ecx + 6], ax
mov eax, 0x3fff
cmp word [esp + 0x10], ax
jne 0x406844
jmp 0x406812
cmp byte [ebp + 0x20], 0
jne 0x406812
mov dword [esp + 0x10], eax
mov byte [esp + 0xd], cl
inc edi
add esi, 4
cmp edi, edx
jl 0x4067c5
jmp 0x40682a
movzx ecx, word [esi + 2]
mov dl, byte [esi]
mov dword [esp + 0x10], ecx
mov byte [esp + 0xd], dl
mov esi, dword [esp + 0x30]
mov ebx, dword [0x4ba66c]
mov eax, 0x3fff
cmp word [esp + 0x10], ax
je 0x4068cd
movzx ecx, byte [esp + 0xd]
mov eax, ecx
sub eax, 0x10
je 0x4068ab
dec eax
je 0x406889
dec eax
je 0x406867
lea ebx, [ecx + ecx*8]
shl ebx, 5
add ebx, dword [0x4bc0a8]
jmp 0x406969
mov ecx, dword [0x4bc0a8]
xor eax, eax
cmp byte [ecx + 0xb9ac], al
setne al
lea ebx, [eax + eax*8 + 0x5c4]
shl ebx, 5
add ebx, ecx
jmp 0x406969
mov ecx, dword [0x4bc0a8]
xor eax, eax
cmp byte [ecx + 0xb76c], al
setne al
lea ebx, [eax + eax*8 + 0x5b2]
shl ebx, 5
add ebx, ecx
jmp 0x406969
mov ecx, dword [0x4bc0a8]
xor eax, eax
cmp byte [ecx + 0xb52c], al
setne al
lea ebx, [eax + eax*8 + 0x5a0]
shl ebx, 5
add ebx, ecx
jmp 0x406969
movzx eax, byte [esi + 0x14]
xor edi, edi
mov dword [esp + 0x30], eax
test eax, eax
jle case.default.0x406791
add esi, 0xde
movzx ecx, word [esi]
mov eax, ecx
lea edx, [eax + eax*8]
mov eax, dword [0x4bc0ac]
shl edx, 5
cmp byte [edx + eax + 0xc], 0
je 0x406931
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x406923
cmp byte [ebp + 0x20], 0
jne 0x40693d
mov ecx, dword [esp + 0x18]
mov edx, 0x3fff
mov word [ecx + 6], ax
cmp word [esp + 0x10], dx
jne 0x406958
jmp 0x406931
cmp byte [ebp + 0x20], 0
jne 0x406931
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], ecx
inc edi
add esi, 4
cmp edi, dword [esp + 0x30]
jl 0x4068e5
jmp 0x40694c
movzx edx, word [esi + 2]
movzx eax, word [esi]
mov dword [esp + 0x10], edx
mov dword [esp + 0x38], eax
mov ecx, 0x3fff
cmp word [esp + 0x10], cx
je case.default.0x406791
movzx eax, word [esp + 0x38]
lea ebx, [eax + eax*8]
shl ebx, 5
add ebx, dword [0x4bc0ac]
mov dword [0x4ba66c], ebx
mov eax, dword [esp + 0x10]
mov esi, eax
mov ecx, 0x3fff
and esi, 0x3fff
cmp ax, cx
je 0x4069ee
mov edx, dword [0x4b85b0]
cmp si, word [edx]
jae 0x4069ea
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
mov edi, dword [ebp + 0x24]
push eax
lea edx, [esp + 0x14]
add ecx, 0xb
push edx
lea esi, [ebx + 4]
lea eax, [esp + 0x16]
call fcn.0040afa0
add esp, 8
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x4069da
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x20]
push 0x3fff
push ebx
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
jmp 0x407610
mov esi, dword [esp + 0x10]
mov ebx, dword [0x4ba66c]
and esi, 0x3fff
mov byte [ebx + 0x11], 2
mov ecx, 0x3ffe
cmp si, cx
je 0x406a06
mov edx, 0x3ffd
cmp si, dx
jne 0x406bf8
cmp byte [ebp + 0x20], 0
jne 0x406a14
mov eax, dword [esp + 0x18]
mov byte [eax + 0xf], 1
test byte [0x4bb76b], 0xc
jne 0x406a3a
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040fda0
mov ebx, dword [0x4ba66c]
add esp, 0x18
mov al, byte [ebp + 0x18]
cmp al, 0xa2
je 0x406a45
cmp al, 0xa3
jne 0x406a6e
cmp byte [ebp + 0x20], 0
jne 0x406a6e
mov edi, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push edi
push ecx
push 1
call fcn.0040fda0
mov ebx, dword [0x4ba66c]
add esp, 0x18
jmp 0x406a71
mov edi, dword [ebp + 0x1c]
mov edx, 0x3ffd
mov byte [ebx + 0xd], 1
cmp si, dx
jne 0x406aab
test byte [0x4bb76b], 0x30
jne 0x406aa5
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040fda0
mov ebx, dword [0x4ba66c]
add esp, 0x18
mov byte [ebx + 0xe], 1
jmp 0x406b24
mov eax, 0x3ffe
cmp si, ax
jne 0x406b24
mov al, byte [ebp + 0x18]
cmp al, 0xa0
je 0x406ac0
cmp al, 0xa1
jne 0x406ade
cmp byte [ebp + 0x20], 0
jne 0x406ade
mov ecx, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push edi
push ecx
push 1
call fcn.0040fda0
add esp, 0x18
test byte [0x4bb76b], 0x10
je 0x406b01
push 0xffc3d44d
push 0
push 0
push 0
push 0xa0
push 1
call fcn.0040fda0
add esp, 0x18
test byte [0x4bb76b], 0x20
je 0x406b24
push 0xffc3d44d
push 0
push 0
push 0
push 0xa1
push 1
call fcn.0040fda0
add esp, 0x18
test byte [0x4bb76b], 1
je 0x406b47
push 0xffc3d44d
push 0
push 0
push 0
push 0xa2
push 1
call fcn.0040fda0
add esp, 0x18
test byte [0x4bb76b], 2
je 0x406b6a
push 0xffc3d44d
push 0
push 0
push 0
push 0xa3
push 1
call fcn.0040fda0
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040fda0
mov edx, 0x3ffd
add esp, 0x18
cmp si, dx
jne 0x406bc6
mov eax, dword [0x4ba66c]
cmp byte [eax + 0xe], 0
je 0x406bc6
mov al, byte [ebp + 0x18]
cmp al, 0x60
jb 0x406ba1
cmp al, 0x69
jbe 0x406ba5
cmp al, 0x6e
jne 0x406bc6
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040fda0
mov ecx, dword [0x4ba66c]
add esp, 0x18
mov byte [ecx + 0xe], 0
cmp byte [ebp + 0x20], 0
mov eax, dword [esp + 0x20]
mov byte [eax + 4], 0x68
jne 0x406bdc
mov edx, dword [esp + 0x18]
mov byte [edx + 0x10], 1
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
push 0
push SysReAllocString
push 0x3fff
push ecx
push edi
push edx
mov ebx, eax
jmp 0x405dd6
mov eax, 0x3fff
cmp word [esp + 0x10], ax
jne 0x406e79
mov ecx, dword [esp + 0x18]
mov cl, byte [ecx + 4]
mov al, byte [0x4bb76e]
test cl, cl
je 0x406c1c
not cl
and al, cl
mov esi, dword [0x4bb8a0]
mov edi, dword [ebp + 8]
cmp edi, esi
jne 0x406c49
cmp byte [esp + 0x2b], 0
je 0x406c49
mov ecx, dword [0x4bc0a0]
movzx edx, al
shl edx, 9
add edx, dword [esp + 0x34]
movzx ecx, word [ecx + edx*2]
mov dl, byte [ebp + 0x18]
jmp 0x406c61
mov dl, byte [ebp + 0x18]
movzx ecx, al
movzx ebx, dl
shl ecx, 8
add ecx, ebx
mov ebx, dword [0x4bc09c]
movzx ecx, word [ebx + ecx*2]
mov ebx, 0x3fff
mov dword [esp + 0x10], ecx
cmp cx, bx
jne 0x406cd5
cmp byte [0x4ba66b], 0
je 0x406cd5
cmp dl, 9
je 0x406cd5
and al, 0xf3
cmp edi, esi
jne 0x406c9f
cmp byte [esp + 0x2b], 0
je 0x406c9f
movzx edx, al
mov eax, dword [0x4bc0a0]
shl edx, 9
add edx, dword [esp + 0x34]
movzx ecx, word [eax + edx*2]
jmp 0x406cb3
movzx ecx, al
mov eax, dword [0x4bc09c]
movzx edx, dl
shl ecx, 8
add ecx, edx
movzx ecx, word [eax + ecx*2]
mov eax, ecx
and eax, 0x3fff
mov edx, 0x3ff9
mov dword [esp + 0x10], ecx
cmp ax, dx
jbe 0x406ccf
mov edx, ebx
cmp ax, dx
jb 0x406cd5
mov ecx, ebx
mov dword [esp + 0x10], ecx
test ecx, 0x4000
je 0x406d23
cmp byte [ebp + 0x20], 0
jne 0x406dc5
mov eax, dword [esp + 0x18]
mov word [eax + 6], cx
mov eax, dword [esp + 0x18]
add eax, 6
mov ecx, 0x3fff
cmp word [eax], cx
jne 0x406e37
mov edx, dword [esp + 0x20]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push 0
push 0x3fff
push edx
mov edx, dword [ebp + 8]
push 0
push eax
push ecx
push edx
jmp 0x407610
mov edx, ebx
cmp cx, dx
je 0x406dd3
mov edx, dword [0x4b85b0]
mov eax, ecx
and eax, 0x3fff
cmp byte [ebp + 0x20], 0
je 0x406da8
cmp ax, word [edx]
jae 0x406d9f
mov edx, dword [0x4bc0a4]
mov ebx, eax
add ebx, ebx
mov eax, 0x3fff
cmp word [ebx + edx], ax
je 0x406d9f
cmp byte [esp + 0xf], 0
jne 0x406d90
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov edi, dword [ebp + 0x24]
push eax
lea edx, [esp + 0x14]
add ecx, 0xb
push edx
add esi, 4
lea eax, [esp + 0x16]
call fcn.0040afa0
add esp, 8
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x406dc1
mov eax, dword [0x4bc0a4]
movzx ecx, word [ebx + eax]
mov dword [esp + 0x10], ecx
jmp 0x406dc5
cmp byte [esp + 0xf], 0
jne 0x406dd3
jmp 0x406dc5
cmp ax, word [edx]
jae 0x406dc5
mov edx, dword [0x4bc0a4]
mov ax, word [edx + eax*2]
mov edx, dword [esp + 0x18]
mov word [edx + 6], ax
jmp 0x406dc5
mov ecx, dword [esp + 0x10]
mov eax, 0x3fff
cmp cx, ax
jne 0x406e79
mov ecx, dword [ebp + 0x20]
test cl, cl
je 0x406cef
mov eax, dword [esp + 0x18]
cmp byte [eax + 4], 0
jne 0x406e19
test byte [eax + 0xb], 1
jne 0x406e19
cmp byte [eax + 8], 0
je 0x406e19
cmp byte [esp + 0x17], 0
jne 0x406e19
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ebx, dword [esp + 0x20]
push 0
push SysReAllocString
push 0x3fff
push ecx
push edx
push eax
jmp 0x405dd6
mov edx, dword [esp + 0x20]
mov eax, dword [ebp + 0x10]
push 0
push 0x3fff
push edx
mov edx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push edx
jmp 0x407610
mov ecx, dword [esp + 0x18]
push 1
push eax
add ecx, 0xb
xor esi, esi
lea eax, [esp + 0x16]
xor edi, edi
call fcn.0040afa0
add esp, 8
cmp byte [esp + 0xe], 0
push edi
jne 0x406f74
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov ebx, dword [esp + 0x24]
push SysReAllocString
push 0x3fff
push edi
push ecx
push edx
jmp 0x405dd6
mov ebx, dword [esp + 0x18]
mov al, byte [ebx + 0xb]
mov dl, byte [0x4bb76b]
add ebx, 0xb
mov dword [esp + 0x38], ebx
test al, 8
je 0x406ea0
cmp byte [ebp + 0x20], 0
je 0x406ea0
and al, 0xf7
mov byte [esp + 0xe], 1
mov byte [ebx], al
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4b85b0]
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x406fc3
cmp dword [esp + 0x3c], 0
jne 0x406fc3
mov edx, dword [ebp + 0x20]
mov esi, dword [esp + 0x20]
mov edi, dword [ebp + 0x24]
push edx
lea eax, [esp + 0x14]
push eax
add esi, 4
lea eax, [esp + 0x16]
mov ecx, ebx
call fcn.0040afa0
add esp, 8
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x406fbd
mov eax, dword [ebp + 0x20]
test al, al
je 0x406f3d
mov ecx, dword [esp + 0x18]
cmp byte [ecx + 0x10], 0
push 0
je 0x406f21
mov ecx, dword [ebp + 0x18]
mov ebx, dword [esp + 0x24]
push SysReAllocString
push 0x3fff
mov edx, eax
mov eax, dword [ebp + 0x1c]
push edx
push eax
push ecx
jmp 0x405dd6
mov edx, dword [esp + 0x24]
mov ecx, dword [ebp + 0xc]
push 0x3fff
push edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
push edx
jmp 0x407610
mov eax, dword [esp + 0x18]
add eax, 6
mov ecx, 0x3fff
cmp word [eax], cx
je 0x406d04
push 1
push eax
xor esi, esi
lea eax, [esp + 0x16]
mov ecx, ebx
xor edi, edi
mov byte [esp + 0x16], 0
call fcn.0040afa0
add esp, 8
cmp byte [esp + 0xe], 0
push edi
je 0x406f91
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push 0x3fff
push eax
mov eax, dword [ebp + 8]
push 0
push ecx
push edx
push eax
jmp 0x407610
mov eax, dword [esp + 0x3c]
mov edx, dword [ebp + 0x1c]
and byte [eax], 0xf7
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ebx, dword [esp + 0x24]
push SysReAllocString
push 0x3fff
push 0
push edx
mov byte [ecx + 0x10], 1
push eax
jmp 0x405dd6
mov dl, byte [0x4bb76b]
mov edi, dword [esp + 0x10]
mov esi, dword [ebp + 8]
mov ecx, dword [0x4bb8a0]
and edi, 0x3fff
cmp esi, ecx
jne 0x40700f
test dl, 0x3f
jne 0x407030
mov eax, dword [0x4bc0a8]
test dl, 0x40
je 0x406ff9
cmp byte [eax + 0x6668], 0
jne 0x406ff9
mov byte [0x4ba673], 1
test dl, dl
jns 0x407035
cmp byte [eax + 0x6788], 0
jne 0x407035
mov byte [0x4ba672], 1
jmp 0x407035
test dl, 0xc
jne 0x407030
mov eax, dword [0x4bc0a8]
test dl, 0x40
je 0x406ff9
cmp byte [eax + 0x6668], 0
jne 0x406ff9
mov byte [0x4ba673], 1
jmp 0x407035
mov eax, dword [0x4bc0a8]
test dl, 4
je 0x407065
cmp byte [eax + 0xb888], 0
jne 0x407065
test ecx, ecx
je 0x407050
mov byte [0x4ba671], 1
jmp 0x4070b1
movzx ecx, byte [0x4b7365]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
jmp 0x4070a1
test dl, 8
je 0x4070b1
cmp byte [eax + 0xb9a8], 0
jne 0x4070b1
call fcn.004129f0
test al, al
jne 0x4070ab
cmp dword [0x4bb8a0], 0
je 0x40708e
mov byte [0x4ba670], 1
jmp 0x4070ab
movzx edx, byte [0x4b7365]
push 0xffc3d44d
push 0
push 0
push 0
push edx
push 2
call fcn.0040fda0
add esp, 0x18
mov dl, byte [0x4bb76b]
mov eax, edi
lea ecx, [eax - 0x3ffa]
cmp ecx, 4
ja case.default.0x4070c2
jmp dword [ecx*4 + 0x407734]
cmp byte [0x4ba66b], 0
jne case.0x4070c2.16379
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x10]
push 0
push 0x3fff
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
push esi
jmp 0x407610
xor al, al
mov byte [esp + 0xf], al
test dl, 4
je 0x4070ff
mov al, 0xa4
jmp 0x407106
test dl, 8
je 0x40710a
mov al, 0xa5
mov byte [esp + 0xf], al
cmp byte [0x4ba66b], 0
je 0x407180
mov ecx, 0x3ffb
cmp di, cx
je case.0x4070c2.16381
test al, al
movzx eax, al
jne 0x40712d
mov eax, 0x12
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040fda0
mov edx, dword [esp + 0x30]
add esp, 0x18
cmp byte [edx + 4], 0
je 0x407174
mov eax, dword [ebp + 0x18]
cmp al, 0x5b
je 0x407174
cmp al, 0x5c
je 0x407174
cmp byte [ebp + 0x20], 0
jne 0x407174
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040fda0
add esp, 0x18
mov byte [0x4ba66b], 0
jmp 0x4073e7
mov cl, byte [ebp + 0x18]
cmp cl, 0xa4
je 0x407192
mov byte [esp + 0xd], 0
cmp cl, 0xa5
jne 0x407197
mov byte [esp + 0xd], 1
cmp cl, 0xa0
je 0x4071a5
cmp cl, 0xa1
je 0x4071a5
xor bl, bl
jmp 0x4071a7
mov bl, 1
mov byte [esp + 0x1f], bl
cmp cl, 0xa2
je 0x4071ba
mov byte [esp + 0x1e], 0
cmp cl, 0xa3
jne 0x4071bf
mov byte [esp + 0x1e], 1
xor al, al
test byte [0x4bb76b], 0x10
mov byte [esp + 0x34], al
je 0x4071d2
mov al, 0xa0
jmp 0x4071eb
test byte [0x4bb76b], 0x20
je 0x4071df
mov al, 0xa1
jmp 0x4071eb
cmp byte [ebp + 0x20], 0
jne 0x4071ef
test bl, bl
je 0x4071ef
mov al, cl
mov byte [esp + 0x34], al
mov dl, byte [0x4bb76b]
mov byte [esp + 0x2b], 0
test dl, 1
je 0x407206
mov byte [esp + 0x2b], 0xa2
jmp 0x407223
test dl, 2
je 0x407212
mov byte [esp + 0x2b], 0xa3
jmp 0x407223
cmp byte [ebp + 0x20], 0
jne 0x407223
cmp byte [esp + 0x1e], 0
je 0x407223
mov byte [esp + 0x2b], cl
mov esi, dword [esp + 0x34]
xor bl, bl
test al, al
je 0x407248
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 1
call fcn.0040fda0
mov cl, byte [ebp + 0x18]
add esp, 0x18
mov bl, 1
cmp byte [esp + 0x2b], 0
je 0x40726c
mov eax, dword [esp + 0x2b]
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040fda0
mov cl, byte [ebp + 0x18]
add esp, 0x18
cmp byte [esp + 0xd], 0
je 0x40727b
cmp byte [ebp + 0x20], 0
jne 0x407283
jmp 0x40727f
mov cl, byte [esp + 0xf]
test cl, cl
jne 0x40729a
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040fda0
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040fda0
add esp, 0x18
test bl, bl
je 0x4072d2
cmp byte [esp + 0x1f], 0
jne 0x4072d2
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 0
call fcn.0040fda0
add esp, 0x18
mov byte [0x4ba66b], 1
jmp 0x4073e7
cmp byte [0x4ba66b], 0
jne 0x407305
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x10]
push 0
push 0x3fff
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
push esi
jmp 0x407610
cmp byte [ebp + 0x20], 0
mov ebx, dword [ebp + 0x18]
jne 0x40733e
cmp bl, 0xa2
je 0x407322
cmp bl, 0xa3
je 0x407322
cmp bl, 0xa0
je 0x407322
cmp bl, 0xa1
jne 0x40733e
push 0xffc3d44d
push 0
push 0
push 0
push ebx
push 1
call fcn.0040fda0
mov dl, byte [0x4bb76b]
add esp, 0x18
test dl, 0xc
je 0x407353
cmp byte [ebp + 0x20], 0
je 0x407370
cmp bl, 0xa4
je 0x407353
cmp bl, 0xa5
jne 0x407370
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040fda0
mov dl, byte [0x4bb76b]
add esp, 0x18
mov eax, 0x3ffd
xor bl, bl
cmp di, ax
jne 0x40739a
test dl, 0x30
jne 0x40739a
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040fda0
add esp, 0x18
mov bl, 1
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040fda0
add esp, 0x18
test bl, bl
je 0x4073e7
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040fda0
add esp, 0x18
jmp 0x4073e7
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
cmp byte [eax + 0x1e], 5
jne 0x4073e7
movzx ecx, word [eax + 0x1c]
shl ecx, 0x10
or dword [esp + 0x24], ecx
cmp byte [esp + 0x17], 0
mov edi, dword [esp + 0x20]
mov ebx, dword [ebp + 0x20]
mov ecx, dword [esp + 0x18]
mov byte [edi + 4], 0x68
je 0x40744c
test bl, bl
je 0x407535
cmp byte [ecx + 8], 0
je 0x40744c
mov esi, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
push 0xffc3d44e
push 0
push 0
push esi
push ebx
push 1
call fcn.0040fda0
push 0xffc3d44d
push 0
push 0
push esi
push ebx
push 2
call fcn.0040fda0
mov edx, dword [esp + 0x54]
mov eax, dword [ebp + 0x20]
push 0
push SysReAllocString
push edx
push eax
push esi
push ebx
jmp 0x405e7a
test bl, bl
je 0x407535
cmp byte [ecx + 4], 0
je 0x407497
cmp byte [ecx + 0x10], 0
je 0x40747d
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
push 0
push SysReAllocString
push ecx
mov ecx, dword [ebp + 0x18]
push edx
push eax
push ecx
jmp 0x405dd4
mov edx, dword [esp + 0x24]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push 1
push edx
mov edx, dword [ebp + 8]
push edi
push ebx
push eax
push ecx
push edx
jmp 0x407610
cmp byte [esp + 0xe], 0
je 0x4075ca
mov esi, dword [ebp + 8]
cmp esi, dword [0x4bb8a4]
jne 0x4074c4
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push 0
push eax
push edi
push ebx
push ecx
push edx
push esi
jmp 0x407610
mov eax, dword [ecx]
test eax, eax
je 0x4074d3
cmp dword [eax], 7
je 0x4074d3
mov al, 1
jmp 0x4074d5
xor al, al
cmp byte [ecx + 0x10], 0
je 0x407503
cmp byte [esp + 0x2f], 0
jne 0x407503
test al, al
jne 0x407507
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push eax
push ecx
push 0
call fcn.0040fda0
add esp, 0x18
jmp 0x4074ad
test al, al
je 0x4074ad
mov edx, dword [esp + 0x24]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
push 0
push SysReAllocString
push edx
mov edx, dword [ebp + 0x18]
push eax
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov ebx, edi
mov eax, esi
call fcn.00407750
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4ba66c]
mov byte [ecx + 0xf], 1
test eax, eax
je 0x40754c
cmp byte [eax + 4], 0
je 0x40754c
mov byte [eax + 0x11], 2
cmp byte [esp + 0xe], 0
je 0x407574
mov eax, dword [esp + 0x38]
or byte [eax], 8
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push 0
push eax
mov eax, dword [ebp + 8]
push edi
push ebx
push ecx
push edx
push eax
jmp 0x407610
mov ebx, dword [ebp + 0x18]
cmp bl, 0xa4
je 0x407581
cmp bl, 0xa5
jne 0x4075c7
mov al, byte [0x4bb76b]
test al, 0xc0
je 0x4075ab
test al, 0x33
jne 0x4075ab
movzx ecx, byte [0x4b7365]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
push 2
call fcn.0040fda0
add esp, 0x18
mov edx, dword [ebp + 0x1c]
push 0xffc3d44d
push 0
push 0
push edx
push ebx
push 1
call fcn.0040fda0
mov ecx, dword [esp + 0x30]
add esp, 0x18
mov ebx, dword [ebp + 0x20]
test bl, bl
jne 0x4075d2
mov byte [ecx + 0x10], 1
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
push 0
push SysReAllocString
push eax
mov eax, dword [ebp + 0x18]
push ecx
push edx
push eax
jmp 0x405dd4
test bl, bl
sete cl
mov byte [esi + 0xc], cl
mov byte [esi + 0xf], 0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0
push 0x3fff
push edi
push ebx
push edx
push eax
push ecx
mov cl, byte [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x14]
call fcn.00407880
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret