Function at 0x404bf0
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 0x404c27
cmp eax, 0xffc3d44e
je 0x404c27
mov byte [esp + 0xd], 0
cmp eax, 0xffc3d44d
jne 0x404c2c
mov byte [esp + 0xd], 1
mov ecx, dword [0x4ab62c]
test ecx, ecx
jne 0x404c43
lea edi, [esp + 0x40]
mov dword [esp + 0x20], edi
jmp 0x404cea
mov eax, dword [0x4ab630]
mov edi, eax
imul edi, edi, 0x70
inc eax
add edi, ecx
mov dword [esp + 0x20], edi
mov dword [0x4ab630], eax
cmp eax, dword [0x4a73a8]
jl 0x404c6b
mov dword [0x4ab630], 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 [0x4ad3fc]
mov dword [0x4ab634], eax
mov dword [esp + 0x34], edx
fild dword [esp + 0x34]
jns 0x404c99
fadd dword [0x4a18f0]
fdiv qword [0x4a18e8]
mov dword [0x4ad3fc], eax
fstp dword [edi + 8]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x404cda
cmp esi, dword [0x4ab638]
je 0x404cd4
mov ecx, dword [0x4aad20]
push esi
lea eax, [edi + 0xc]
push eax
push 0x418
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x404ce1
mov byte [edi + 0xc], 0
jmp 0x404ce1
mov dword [edi + 0xc], 0x412f4e
mov edx, dword [ebp + 0x28]
mov dword [0x4ab638], esi
mov al, byte [ebp + 0x18]
mov ebx, dword [ebp + 0x20]
cmp al, 0xe7
jne 0x404d0c
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 0x404d20
xor esi, esi
mov dword [ebp + 0x1c], esi
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x4aae54]
jne 0x404d50
and dl, 1
mov byte [esp + 0xf], dl
jne 0x404e5c
test bl, bl
setne dl
dec dl
movzx eax, al
and dl, 0x80
mov byte [eax + 0x4aad40], dl
jmp 0x404e5c
shr edx, 4
and dl, 1
mov byte [esp + 0xf], dl
test esi, 0x100
jne case.0x404d90.13
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je case.0x404d90.13
movzx eax, byte [ebp + 0x18]
add eax, 0xfffffff4
cmp eax, 0x62
ja case.0x404d90.13
movzx ecx, byte [eax + 0x406728]
jmp dword [ecx*4 + 0x4066f8]
test bl, bl
sete dl
mov byte [0x4a9c0c], dl
jmp case.0x404d90.13
test bl, bl
sete al
mov byte [0x4a9c0d], al
jmp case.0x404d90.13
test bl, bl
sete cl
mov byte [0x4a9c0e], cl
jmp case.0x404d90.13
test bl, bl
sete dl
mov byte [0x4a9c0f], dl
jmp case.0x404d90.13
test bl, bl
sete al
mov byte [0x4a9c10], al
jmp case.0x404d90.13
test bl, bl
sete cl
mov byte [0x4a9c11], cl
jmp case.0x404d90.13
test bl, bl
sete dl
mov byte [0x4a9c12], dl
jmp case.0x404d90.13
test bl, bl
sete al
mov byte [0x4a9c13], al
jmp case.0x404d90.13
test bl, bl
sete cl
mov byte [0x4a9c14], cl
jmp case.0x404d90.13
test bl, bl
sete dl
mov byte [0x4a9c15], dl
jmp case.0x404d90.13
test bl, bl
sete al
mov byte [0x4a9c16], al
movzx esi, byte [ebp + 0x18]
mov edx, dword [0x4ab650]
lea ecx, [esi + esi*8]
shl ecx, 5
cmp byte [ecx + edx + 4], 0
jne 0x404e5c
test byte [ebp + 0x28], 0x10
jne 0x404e5c
mov al, byte [ebp + 0x18]
push ebx
call fcn.00407b30
add esp, 4
test al, al
je 0x404e5c
test bl, bl
setne al
dec al
and al, 0x80
mov byte [esi + 0x4aad40], al
cmp byte [esp + 0xd], 0
je 0x404e67
mov al, 0x69
jmp 0x404e73
mov al, byte [esp + 0xf]
neg al
sbb al, al
and al, 0x41
add al, 0x20
cmp byte [0x4aae40], 0
mov byte [edi + 4], al
je 0x404ebb
mov al, byte [ebp + 0x18]
cmp al, 0x5b
je 0x404e8a
cmp al, 0x5c
jne 0x404ebb
test bl, bl
jne 0x404ebb
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.00406820
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x4a9c30], 0
je 0x404f61
cmp byte [ebp + 0x18], 0x1b
jne 0x404f61
test bl, bl
jne 0x404f61
push 0
push str.32771
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x404f61
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 0x404f61
push 0xffc3d44d
push 0
push 0
push 0
push 0x1b
push 0
call fcn.0040efa0
mov al, byte [0x4aad1d]
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.0040efa0
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.00406820
add esp, 0x48
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [ebp + 0x1c]
mov ecx, dword [0x4aae50]
mov dword [esp + 0x34], eax
lea eax, [eax + eax*8]
shl eax, 5
add eax, dword [0x4ab654]
mov dl, byte [eax + 0x12]
mov byte [esp + 0x2b], dl
cmp dword [ebp + 8], ecx
jne 0x404f92
test dl, dl
je 0x404f92
mov esi, eax
mov al, byte [ebp + 0x18]
jmp 0x404fa4
mov al, byte [ebp + 0x18]
movzx esi, al
lea esi, [esi + esi*8]
shl esi, 5
add esi, dword [0x4ab650]
cmp byte [esp + 0xd], 0
mov dword [esp + 0x18], esi
je 0x404fe3
cmp dword [ebp + 0x24], 0xffc3d44e
jne 0x4066cb
test bl, bl
je 0x4066cb
cmp dword [0x4a9c2c], esi
jne 0x4066cb
mov byte [esi + 0xc], 0
mov dword [0x4a9c2c], 0
jmp 0x4066c7
test bl, bl
jne 0x404ff3
mov edx, 0x3fff
mov byte [esi + 0x10], bl
mov word [esi + 6], dx
cmp dword [ebp + 8], ecx
jne 0x4050a3
test bl, bl
je 0x4050fe
cmp byte [0x4a9c34], 0
je 0x405011
cmp al, 0x5b
je 0x405040
cmp byte [0x4a9c33], 0
je 0x40501e
cmp al, 0x5c
je 0x405040
cmp byte [0x4a9c32], 0
je 0x40502b
cmp al, 0xa4
je 0x405040
cmp byte [0x4a9c31], 0
je 0x4050fe
cmp al, 0xa5
jne 0x4050fe
movzx eax, al
add eax, 0xffffffa5
cmp eax, 0x4a
ja case.0x405052.93
movzx eax, byte [eax + 0x4067a0]
jmp dword [eax*4 + 0x40678c]
mov byte [0x4a9c34], 0
jmp case.0x405052.93
mov byte [0x4a9c33], 0
jmp case.0x405052.93
mov byte [0x4a9c32], 0
jmp case.0x405052.93
mov byte [0x4a9c31], 0
test byte [0x4aad1d], 3
jne 0x4050fe
movzx ecx, byte [0x4a7365]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
push 2
call fcn.0040efa0
add esp, 0x18
jmp 0x4050fe
test al, al
jne 0x4050c3
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 0x4066e3
cmp al, 1
je 0x4050cb
cmp al, 2
jne 0x4050fe
cmp dword [0x4aaeb0], 0
jne 0x4066bf
push 0
push str.32768
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x4050fe
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4acd28]
je 0x4066bf
mov edx, dword [0x4a9c2c]
test edx, edx
je 0x405133
cmp edx, esi
je 0x405133
test bl, bl
jne 0x405133
mov ecx, dword [0x4aae50]
cmp dword [ebp + 8], ecx
jne 0x405125
xor eax, eax
cmp byte [esi + 4], al
sete al
jmp 0x405129
movzx eax, byte [edx + 4]
test eax, eax
je 0x405139
mov byte [edx + 0x11], 1
jmp 0x405139
mov ecx, dword [0x4aae50]
cmp byte [esi + 8], 0
jne 0x405149
cmp byte [esi + 9], 0
je 0x4066cb
mov byte [esp + 0x2f], 0
mov dword [esp + 0x10], 0x3fff
mov dword [esp + 0x3c], 0
test bl, bl
je 0x405191
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 0x40518f
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 0x40521c
cmp byte [esi + 4], 0
je 0x405239
mov ecx, dword [0x4ab650]
cmp byte [ecx + 0xb64c], 0
jne 0x4051c7
cmp byte [ecx + 0xb76c], 0
jne 0x4051c7
xor eax, eax
jmp 0x4051cc
mov eax, 1
cmp byte [ecx + 0xb88c], 0
mov byte [ecx + 0x132c], al
jne 0x4051e8
cmp byte [ecx + 0xb9ac], 0
jne 0x4051e8
xor eax, eax
jmp 0x4051ed
mov eax, 1
cmp byte [ecx + 0xb40c], 0
mov byte [ecx + 0x144c], al
jne 0x40520f
cmp byte [ecx + 0xb52c], 0
jne 0x40520f
xor eax, eax
mov byte [ecx + 0x120c], al
jmp 0x405239
mov eax, 1
mov byte [ecx + 0x120c], al
jmp 0x405239
test ecx, ecx
jne 0x405239
push 1
call fcn.00411590
add esp, 4
mov byte [0x4aad1e], al
mov byte [0x4aad1d], al
mov byte [esp + 0xd], 1
mov eax, dword [esi]
test eax, eax
je 0x405249
cmp dword [eax], 7
mov byte [esp + 0x17], 1
je 0x40524e
mov byte [esp + 0x17], 0
mov al, byte [esi + 8]
test al, al
je 0x4053d2
test bl, bl
jne 0x4053d2
mov ecx, dword [0x4a9c2c]
test ecx, ecx
je 0x405278
cmp byte [esi + 9], bl
je 0x405278
cmp esi, ecx
jne 0x4053d2
cmp al, 1
jne 0x4052a8
cmp byte [esp + 0x2b], 0
mov eax, dword [esp + 0x34]
jne 0x40528b
movzx eax, byte [ebp + 0x18]
mov ecx, dword [esp + 0x2b]
push ecx
push eax
call fcn.00409f40
add esp, 8
test al, al
je 0x4052a8
mov byte [esp + 0xe], 1
mov dl, byte [esp + 0xe]
jmp 0x4052bf
xor dl, dl
mov byte [esp + 0xe], dl
cmp esi, dword [0x4a9c2c]
je 0x4052bf
mov dword [0x4a9c2c], esi
mov byte [esi + 0x11], dl
cmp byte [esi + 9], 0
je 0x40536d
cmp byte [esp + 0xd], 0
jne 0x4052e3
push 1
mov byte [esp + 0x11], 1
call fcn.00411590
mov dl, byte [esp + 0x12]
add esp, 4
mov al, byte [esi + 4]
mov cl, byte [0x4aad1e]
test al, al
je 0x4052f4
not al
and cl, al
test cl, cl
jne 0x405302
test dl, dl
jne 0x405302
test byte [esi + 0xb], 1
je 0x40536d
mov eax, dword [ebp + 8]
cmp eax, dword [0x4aae50]
jne 0x405325
cmp byte [esp + 0x2b], 0
je 0x405325
mov eax, dword [0x4ab648]
movzx ecx, cl
shl ecx, 9
add ecx, dword [esp + 0x34]
jmp 0x405336
movzx eax, byte [ebp + 0x18]
movzx ecx, cl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4ab644]
movzx eax, word [eax + ecx*2]
mov dword [esp + 0x10], eax
test eax, 0x4000
je 0x40534b
mov word [esi + 6], ax
jmp 0x405379
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4a8554]
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x40536d
mov ecx, dword [0x4ab64c]
mov ax, word [ecx + eax*2]
mov word [esi + 6], ax
mov ecx, 0x3fff
cmp word [esp + 0x10], cx
jne 0x4053d2
test dl, dl
je 0x405385
or byte [esi + 0xb], 8
mov byte [edi + 4], 0x23
cmp byte [esi + 4], 0
jne 0x4053b7
test byte [esi + 0xb], 1
jne 0x4053b7
cmp byte [esp + 0x17], 0
jne 0x4053b7
test dl, dl
jne 0x4053b7
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push 0
push SysReAllocString
push 0x3fff
push 0
push edx
push eax
jmp 0x404ea4
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 0x4066e0
cmp byte [esi + 9], 0
mov byte [esp + 0xf], 0
je 0x405447
test bl, bl
je 0x405447
cmp dword [0x4a9c2c], esi
jne 0x4053fa
cmp byte [esp + 0x1e], 0
je 0x405447
mov dword [0x4a9c2c], 0
cmp byte [esi + 0xa], 0
jne 0x405442
mov al, byte [esi + 0xb]
test al, 8
je 0x405410
xor cl, cl
and al, 0xf7
mov byte [esi + 0xb], al
jmp 0x405412
mov cl, 1
cmp byte [esp + 0x1e], 0
je 0x405534
test cl, cl
je 0x405534
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 0x404ea4
mov byte [esp + 0xf], 1
cmp byte [esi + 8], 0
je 0x4055fa
test bl, bl
je 0x4055fa
cmp dword [0x4a9c2c], esi
jne 0x40546b
mov dword [0x4a9c2c], 0
cmp byte [esi + 0xd], 0
je 0x40548c
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
mov byte [esi + 0xd], 0
call fcn.0040efa0
add esp, 0x18
cmp byte [esi + 0xe], 0
je 0x4054ad
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
mov byte [esi + 0xe], 0
call fcn.0040efa0
add esp, 0x18
mov ecx, dword [esp + 0x10]
mov edx, 0x3fff
cmp cx, dx
jne 0x4054e1
mov al, byte [esi + 0xb]
test al, 8
je 0x4054e1
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 0x4066e0
cmp byte [esp + 0x17], 0
mov al, byte [esi + 0x11]
je 0x40554e
cmp al, 2
jne 0x405530
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
push 0xffc3d44e
push 0
push 0
push ebx
push esi
push 1
call fcn.0040efa0
push 0xffc3d44d
push 0
push 0
push ebx
push esi
push 2
call fcn.0040efa0
mov eax, dword [ebp + 0x20]
push 0
push SysReAllocString
push 0x3fff
push eax
push ebx
push esi
jmp 0x404f4a
cmp al, 1
jne 0x405599
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 0x4066e0
test al, al
je 0x405599
cmp cx, dx
jne 0x405599
cmp byte [esi + 4], 0
je 0x40558c
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp al, 2
mov eax, dword [ebp + 0x10]
jne 0x40557b
push 1
push 0x3fff
push edi
push ebx
push eax
push ecx
push edx
jmp 0x4066e0
push 0
push 0x3fff
push edi
push ebx
push eax
push ecx
push edx
jmp 0x4066e0
test byte [esi + 0xb], 1
push 0
je 0x4055c0
jmp 0x4054c9
cmp byte [esi + 9], 0
jne 0x4055d3
cmp byte [esi + 4], 0
jne 0x4054c7
test byte [esi + 0xb], 1
jne 0x4054c7
cmp byte [esp + 0x17], 0
jne 0x4054c7
push 0
mov eax, dword [ebp + 0x20]
push SysReAllocString
push 0x3fff
push eax
jmp 0x404e9c
cmp byte [esp + 0x1f], 0
jne 0x4055fe
cmp byte [esi + 0xa], 0
jne 0x4055fe
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 0x4066e0
mov ecx, dword [esp + 0x10]
cmp byte [esp + 0xd], 0
jne 0x405619
mov eax, 0x3fff
cmp cx, ax
jne 0x405619
push 1
call fcn.00411590
add esp, 4
cmp dword [0x4a9c2c], 0
mov byte [esp + 0xe], 0
je 0x405cc8
cmp byte [ebp + 0x20], 0
je 0x40563b
cmp byte [esi + 0xa], 0
je 0x405cc8
mov edx, dword [esp + 0x10]
mov ecx, 0x3fff
cmp dx, cx
jne 0x405f49
mov edi, dword [esp + 0x18]
cmp byte [edi + 0x13], 0
mov dword [esp + 0x30], 0
jbe 0x405718
lea esi, [edi + 0x16]
jmp 0x405670
mov cl, byte [esi]
mov ebx, dword [0x4ab650]
movzx eax, cl
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + ebx + 0xc], 0
je 0x4056e6
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x4056da
cmp byte [ebp + 0x20], 0
jne 0x405700
mov ecx, 0x3fff
mov word [edi + 6], ax
cmp dx, cx
je 0x4056e6
mov dword [esp + 0x10], edx
movzx ecx, byte [esp + 0xd]
mov eax, ecx
sub eax, 0x10
je 0x4057e5
dec eax
je 0x4057c6
dec eax
je 0x4057a7
lea ebx, [ecx + ecx*8]
shl ebx, 5
add ebx, dword [0x4ab650]
jmp 0x40578c
cmp byte [ebp + 0x20], 0
jne 0x4056e6
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 0x405670
jmp 0x40570a
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 0x4056ab
cmp byte [edi + 0x14], 0
mov dword [esp + 0x30], 0
jbe 0x405849
lea esi, [edi + 0xde]
movzx ecx, word [esi]
mov ebx, dword [0x4ab654]
mov eax, ecx
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + ebx + 0xc], 0
je 0x405812
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x405804
cmp byte [ebp + 0x20], 0
jne 0x40582c
mov ecx, 0x3fff
mov word [edi + 6], ax
cmp dx, cx
je 0x405812
mov dword [esp + 0x10], edx
movzx eax, word [esp + 0x38]
lea ebx, [eax + eax*8]
shl ebx, 5
add ebx, dword [0x4ab654]
mov edx, 0x3fff
mov dword [0x4a9c2c], ebx
cmp word [esp + 0x10], dx
jne case.default.0x405861
jmp 0x40584f
mov ecx, dword [0x4ab650]
xor eax, eax
cmp byte [ecx + 0xb9ac], al
setne al
lea ebx, [eax + eax*8 + 0x5c4]
shl ebx, 5
add ebx, ecx
jmp 0x40578c
mov ecx, dword [0x4ab650]
xor eax, eax
cmp byte [ecx + 0xb76c], al
setne al
lea ebx, [eax + eax*8 + 0x5b2]
shl ebx, 5
add ebx, ecx
jmp 0x40578c
mov ecx, dword [0x4ab650]
xor eax, eax
cmp byte [ecx + 0xb52c], al
setne al
lea ebx, [eax + eax*8 + 0x5a0]
shl ebx, 5
add ebx, ecx
jmp 0x40578c
cmp byte [ebp + 0x20], 0
jne 0x405812
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 0x405730
jmp 0x405837
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 0x40577b
mov ebx, dword [0x4a9c2c]
movzx eax, byte [ebp + 0x18]
add eax, 0xffffff60
cmp eax, 5
ja case.default.0x405861
jmp dword [eax*4 + 0x4067ec]
mov al, 0x11
jmp 0x405872
mov al, 0x12
jmp 0x405872
mov al, 0x10
mov ecx, dword [0x4ab650]
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 0x405904
add esi, 0x16
mov cl, byte [esi]
mov ebx, dword [0x4ab650]
movzx eax, cl
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + ebx + 0xc], 0
je 0x4058e2
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x4058d4
cmp byte [ebp + 0x20], 0
jne 0x4058ec
mov ecx, dword [esp + 0x18]
mov word [ecx + 6], ax
mov eax, 0x3fff
cmp word [esp + 0x10], ax
jne 0x405914
jmp 0x4058e2
cmp byte [ebp + 0x20], 0
jne 0x4058e2
mov dword [esp + 0x10], eax
mov byte [esp + 0xd], cl
inc edi
add esi, 4
cmp edi, edx
jl 0x405895
jmp 0x4058fa
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 [0x4a9c2c]
mov eax, 0x3fff
cmp word [esp + 0x10], ax
je 0x40599d
movzx ecx, byte [esp + 0xd]
mov eax, ecx
sub eax, 0x10
je 0x40597b
dec eax
je 0x405959
dec eax
je 0x405937
lea ebx, [ecx + ecx*8]
shl ebx, 5
add ebx, dword [0x4ab650]
jmp 0x405a39
mov ecx, dword [0x4ab650]
xor eax, eax
cmp byte [ecx + 0xb9ac], al
setne al
lea ebx, [eax + eax*8 + 0x5c4]
shl ebx, 5
add ebx, ecx
jmp 0x405a39
mov ecx, dword [0x4ab650]
xor eax, eax
cmp byte [ecx + 0xb76c], al
setne al
lea ebx, [eax + eax*8 + 0x5b2]
shl ebx, 5
add ebx, ecx
jmp 0x405a39
mov ecx, dword [0x4ab650]
xor eax, eax
cmp byte [ecx + 0xb52c], al
setne al
lea ebx, [eax + eax*8 + 0x5a0]
shl ebx, 5
add ebx, ecx
jmp 0x405a39
movzx eax, byte [esi + 0x14]
xor edi, edi
mov dword [esp + 0x30], eax
test eax, eax
jle case.default.0x405861
add esi, 0xde
movzx ecx, word [esi]
mov eax, ecx
lea edx, [eax + eax*8]
mov eax, dword [0x4ab654]
shl edx, 5
cmp byte [edx + eax + 0xc], 0
je 0x405a01
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x4059f3
cmp byte [ebp + 0x20], 0
jne 0x405a0d
mov ecx, dword [esp + 0x18]
mov edx, 0x3fff
mov word [ecx + 6], ax
cmp word [esp + 0x10], dx
jne 0x405a28
jmp 0x405a01
cmp byte [ebp + 0x20], 0
jne 0x405a01
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], ecx
inc edi
add esi, 4
cmp edi, dword [esp + 0x30]
jl 0x4059b5
jmp 0x405a1c
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.0x405861
movzx eax, word [esp + 0x38]
lea ebx, [eax + eax*8]
shl ebx, 5
add ebx, dword [0x4ab654]
mov dword [0x4a9c2c], ebx
mov eax, dword [esp + 0x10]
mov esi, eax
mov ecx, 0x3fff
and esi, 0x3fff
cmp ax, cx
je 0x405abe
mov edx, dword [0x4a8554]
cmp si, word [edx]
jae 0x405aba
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.0040a190
add esp, 8
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x405aaa
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 0x4066e0
mov esi, dword [esp + 0x10]
mov ebx, dword [0x4a9c2c]
and esi, 0x3fff
mov byte [ebx + 0x11], 2
mov ecx, 0x3ffe
cmp si, cx
je 0x405ad6
mov edx, 0x3ffd
cmp si, dx
jne 0x405cc8
cmp byte [ebp + 0x20], 0
jne 0x405ae4
mov eax, dword [esp + 0x18]
mov byte [eax + 0xf], 1
test byte [0x4aad1d], 0xc
jne 0x405b0a
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040efa0
mov ebx, dword [0x4a9c2c]
add esp, 0x18
mov al, byte [ebp + 0x18]
cmp al, 0xa2
je 0x405b15
cmp al, 0xa3
jne 0x405b3e
cmp byte [ebp + 0x20], 0
jne 0x405b3e
mov edi, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push edi
push ecx
push 1
call fcn.0040efa0
mov ebx, dword [0x4a9c2c]
add esp, 0x18
jmp 0x405b41
mov edi, dword [ebp + 0x1c]
mov edx, 0x3ffd
mov byte [ebx + 0xd], 1
cmp si, dx
jne 0x405b7b
test byte [0x4aad1d], 0x30
jne 0x405b75
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040efa0
mov ebx, dword [0x4a9c2c]
add esp, 0x18
mov byte [ebx + 0xe], 1
jmp 0x405bf4
mov eax, 0x3ffe
cmp si, ax
jne 0x405bf4
mov al, byte [ebp + 0x18]
cmp al, 0xa0
je 0x405b90
cmp al, 0xa1
jne 0x405bae
cmp byte [ebp + 0x20], 0
jne 0x405bae
mov ecx, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push edi
push ecx
push 1
call fcn.0040efa0
add esp, 0x18
test byte [0x4aad1d], 0x10
je 0x405bd1
push 0xffc3d44d
push 0
push 0
push 0
push 0xa0
push 1
call fcn.0040efa0
add esp, 0x18
test byte [0x4aad1d], 0x20
je 0x405bf4
push 0xffc3d44d
push 0
push 0
push 0
push 0xa1
push 1
call fcn.0040efa0
add esp, 0x18
test byte [0x4aad1d], 1
je 0x405c17
push 0xffc3d44d
push 0
push 0
push 0
push 0xa2
push 1
call fcn.0040efa0
add esp, 0x18
test byte [0x4aad1d], 2
je 0x405c3a
push 0xffc3d44d
push 0
push 0
push 0
push 0xa3
push 1
call fcn.0040efa0
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040efa0
mov edx, 0x3ffd
add esp, 0x18
cmp si, dx
jne 0x405c96
mov eax, dword [0x4a9c2c]
cmp byte [eax + 0xe], 0
je 0x405c96
mov al, byte [ebp + 0x18]
cmp al, 0x60
jb 0x405c71
cmp al, 0x69
jbe 0x405c75
cmp al, 0x6e
jne 0x405c96
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040efa0
mov ecx, dword [0x4a9c2c]
add esp, 0x18
mov byte [ecx + 0xe], 0
cmp byte [ebp + 0x20], 0
mov eax, dword [esp + 0x20]
mov byte [eax + 4], 0x68
jne 0x405cac
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 0x404ea6
mov eax, 0x3fff
cmp word [esp + 0x10], ax
jne 0x405f49
mov ecx, dword [esp + 0x18]
mov cl, byte [ecx + 4]
mov al, byte [0x4aad1e]
test cl, cl
je 0x405cec
not cl
and al, cl
mov esi, dword [0x4aae50]
mov edi, dword [ebp + 8]
cmp edi, esi
jne 0x405d19
cmp byte [esp + 0x2b], 0
je 0x405d19
mov ecx, dword [0x4ab648]
movzx edx, al
shl edx, 9
add edx, dword [esp + 0x34]
movzx ecx, word [ecx + edx*2]
mov dl, byte [ebp + 0x18]
jmp 0x405d31
mov dl, byte [ebp + 0x18]
movzx ecx, al
movzx ebx, dl
shl ecx, 8
add ecx, ebx
mov ebx, dword [0x4ab644]
movzx ecx, word [ebx + ecx*2]
mov ebx, 0x3fff
mov dword [esp + 0x10], ecx
cmp cx, bx
jne 0x405da5
cmp byte [0x4a9c30], 0
je 0x405da5
cmp dl, 9
je 0x405da5
and al, 0xf3
cmp edi, esi
jne 0x405d6f
cmp byte [esp + 0x2b], 0
je 0x405d6f
movzx edx, al
mov eax, dword [0x4ab648]
shl edx, 9
add edx, dword [esp + 0x34]
movzx ecx, word [eax + edx*2]
jmp 0x405d83
movzx ecx, al
mov eax, dword [0x4ab644]
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 0x405d9f
mov edx, ebx
cmp ax, dx
jb 0x405da5
mov ecx, ebx
mov dword [esp + 0x10], ecx
test ecx, 0x4000
je 0x405df3
cmp byte [ebp + 0x20], 0
jne 0x405e95
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 0x405f07
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 0x4066e0
mov edx, ebx
cmp cx, dx
je 0x405ea3
mov edx, dword [0x4a8554]
mov eax, ecx
and eax, 0x3fff
cmp byte [ebp + 0x20], 0
je 0x405e78
cmp ax, word [edx]
jae 0x405e6f
mov edx, dword [0x4ab64c]
mov ebx, eax
add ebx, ebx
mov eax, 0x3fff
cmp word [ebx + edx], ax
je 0x405e6f
cmp byte [esp + 0xf], 0
jne 0x405e60
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.0040a190
add esp, 8
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x405e91
mov eax, dword [0x4ab64c]
movzx ecx, word [ebx + eax]
mov dword [esp + 0x10], ecx
jmp 0x405e95
cmp byte [esp + 0xf], 0
jne 0x405ea3
jmp 0x405e95
cmp ax, word [edx]
jae 0x405e95
mov edx, dword [0x4ab64c]
mov ax, word [edx + eax*2]
mov edx, dword [esp + 0x18]
mov word [edx + 6], ax
jmp 0x405e95
mov ecx, dword [esp + 0x10]
mov eax, 0x3fff
cmp cx, ax
jne 0x405f49
mov ecx, dword [ebp + 0x20]
test cl, cl
je 0x405dbf
mov eax, dword [esp + 0x18]
cmp byte [eax + 4], 0
jne 0x405ee9
test byte [eax + 0xb], 1
jne 0x405ee9
cmp byte [eax + 8], 0
je 0x405ee9
cmp byte [esp + 0x17], 0
jne 0x405ee9
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 0x404ea6
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 0x4066e0
mov ecx, dword [esp + 0x18]
push 1
push eax
add ecx, 0xb
xor esi, esi
lea eax, [esp + 0x16]
xor edi, edi
call fcn.0040a190
add esp, 8
cmp byte [esp + 0xe], 0
push edi
jne 0x406044
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 0x404ea6
mov ebx, dword [esp + 0x18]
mov al, byte [ebx + 0xb]
mov dl, byte [0x4aad1d]
add ebx, 0xb
mov dword [esp + 0x38], ebx
test al, 8
je 0x405f70
cmp byte [ebp + 0x20], 0
je 0x405f70
and al, 0xf7
mov byte [esp + 0xe], 1
mov byte [ebx], al
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4a8554]
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x406093
cmp dword [esp + 0x3c], 0
jne 0x406093
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.0040a190
add esp, 8
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x40608d
mov eax, dword [ebp + 0x20]
test al, al
je 0x40600d
mov ecx, dword [esp + 0x18]
cmp byte [ecx + 0x10], 0
push 0
je 0x405ff1
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 0x404ea6
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 0x4066e0
mov eax, dword [esp + 0x18]
add eax, 6
mov ecx, 0x3fff
cmp word [eax], cx
je 0x405dd4
push 1
push eax
xor esi, esi
lea eax, [esp + 0x16]
mov ecx, ebx
xor edi, edi
mov byte [esp + 0x16], 0
call fcn.0040a190
add esp, 8
cmp byte [esp + 0xe], 0
push edi
je 0x406061
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 0x4066e0
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 0x404ea6
mov dl, byte [0x4aad1d]
mov edi, dword [esp + 0x10]
mov esi, dword [ebp + 8]
mov ecx, dword [0x4aae50]
and edi, 0x3fff
cmp esi, ecx
jne 0x4060df
test dl, 0x3f
jne 0x406100
mov eax, dword [0x4ab650]
test dl, 0x40
je 0x4060c9
cmp byte [eax + 0x6668], 0
jne 0x4060c9
mov byte [0x4a9c34], 1
test dl, dl
jns 0x406105
cmp byte [eax + 0x6788], 0
jne 0x406105
mov byte [0x4a9c33], 1
jmp 0x406105
test dl, 0xc
jne 0x406100
mov eax, dword [0x4ab650]
test dl, 0x40
je 0x4060c9
cmp byte [eax + 0x6668], 0
jne 0x4060c9
mov byte [0x4a9c34], 1
jmp 0x406105
mov eax, dword [0x4ab650]
test dl, 4
je 0x406135
cmp byte [eax + 0xb888], 0
jne 0x406135
test ecx, ecx
je 0x406120
mov byte [0x4a9c32], 1
jmp 0x406181
movzx ecx, byte [0x4a7365]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
jmp 0x406171
test dl, 8
je 0x406181
cmp byte [eax + 0xb9a8], 0
jne 0x406181
call fcn.00411a50
test al, al
jne 0x40617b
cmp dword [0x4aae50], 0
je 0x40615e
mov byte [0x4a9c31], 1
jmp 0x40617b
movzx edx, byte [0x4a7365]
push 0xffc3d44d
push 0
push 0
push 0
push edx
push 2
call fcn.0040efa0
add esp, 0x18
mov dl, byte [0x4aad1d]
mov eax, edi
lea ecx, [eax - 0x3ffa]
cmp ecx, 4
ja case.default.0x406192
jmp dword [ecx*4 + 0x406804]
cmp byte [0x4a9c30], 0
jne case.0x406192.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 0x4066e0
xor al, al
mov byte [esp + 0xf], al
test dl, 4
je 0x4061cf
mov al, 0xa4
jmp 0x4061d6
test dl, 8
je 0x4061da
mov al, 0xa5
mov byte [esp + 0xf], al
cmp byte [0x4a9c30], 0
je 0x406250
mov ecx, 0x3ffb
cmp di, cx
je case.0x406192.16381
test al, al
movzx eax, al
jne 0x4061fd
mov eax, 0x12
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040efa0
mov edx, dword [esp + 0x30]
add esp, 0x18
cmp byte [edx + 4], 0
je 0x406244
mov eax, dword [ebp + 0x18]
cmp al, 0x5b
je 0x406244
cmp al, 0x5c
je 0x406244
cmp byte [ebp + 0x20], 0
jne 0x406244
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040efa0
add esp, 0x18
mov byte [0x4a9c30], 0
jmp 0x4064b7
mov cl, byte [ebp + 0x18]
cmp cl, 0xa4
je 0x406262
mov byte [esp + 0xd], 0
cmp cl, 0xa5
jne 0x406267
mov byte [esp + 0xd], 1
cmp cl, 0xa0
je 0x406275
cmp cl, 0xa1
je 0x406275
xor bl, bl
jmp 0x406277
mov bl, 1
mov byte [esp + 0x1f], bl
cmp cl, 0xa2
je 0x40628a
mov byte [esp + 0x1e], 0
cmp cl, 0xa3
jne 0x40628f
mov byte [esp + 0x1e], 1
xor al, al
test byte [0x4aad1d], 0x10
mov byte [esp + 0x34], al
je 0x4062a2
mov al, 0xa0
jmp 0x4062bb
test byte [0x4aad1d], 0x20
je 0x4062af
mov al, 0xa1
jmp 0x4062bb
cmp byte [ebp + 0x20], 0
jne 0x4062bf
test bl, bl
je 0x4062bf
mov al, cl
mov byte [esp + 0x34], al
mov dl, byte [0x4aad1d]
mov byte [esp + 0x2b], 0
test dl, 1
je 0x4062d6
mov byte [esp + 0x2b], 0xa2
jmp 0x4062f3
test dl, 2
je 0x4062e2
mov byte [esp + 0x2b], 0xa3
jmp 0x4062f3
cmp byte [ebp + 0x20], 0
jne 0x4062f3
cmp byte [esp + 0x1e], 0
je 0x4062f3
mov byte [esp + 0x2b], cl
mov esi, dword [esp + 0x34]
xor bl, bl
test al, al
je 0x406318
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 1
call fcn.0040efa0
mov cl, byte [ebp + 0x18]
add esp, 0x18
mov bl, 1
cmp byte [esp + 0x2b], 0
je 0x40633c
mov eax, dword [esp + 0x2b]
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040efa0
mov cl, byte [ebp + 0x18]
add esp, 0x18
cmp byte [esp + 0xd], 0
je 0x40634b
cmp byte [ebp + 0x20], 0
jne 0x406353
jmp 0x40634f
mov cl, byte [esp + 0xf]
test cl, cl
jne 0x40636a
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040efa0
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040efa0
add esp, 0x18
test bl, bl
je 0x4063a2
cmp byte [esp + 0x1f], 0
jne 0x4063a2
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 0
call fcn.0040efa0
add esp, 0x18
mov byte [0x4a9c30], 1
jmp 0x4064b7
cmp byte [0x4a9c30], 0
jne 0x4063d5
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 0x4066e0
cmp byte [ebp + 0x20], 0
mov ebx, dword [ebp + 0x18]
jne 0x40640e
cmp bl, 0xa2
je 0x4063f2
cmp bl, 0xa3
je 0x4063f2
cmp bl, 0xa0
je 0x4063f2
cmp bl, 0xa1
jne 0x40640e
push 0xffc3d44d
push 0
push 0
push 0
push ebx
push 1
call fcn.0040efa0
mov dl, byte [0x4aad1d]
add esp, 0x18
test dl, 0xc
je 0x406423
cmp byte [ebp + 0x20], 0
je 0x406440
cmp bl, 0xa4
je 0x406423
cmp bl, 0xa5
jne 0x406440
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040efa0
mov dl, byte [0x4aad1d]
add esp, 0x18
mov eax, 0x3ffd
xor bl, bl
cmp di, ax
jne 0x40646a
test dl, 0x30
jne 0x40646a
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040efa0
add esp, 0x18
mov bl, 1
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040efa0
add esp, 0x18
test bl, bl
je 0x4064b7
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040efa0
add esp, 0x18
jmp 0x4064b7
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
cmp byte [eax + 0x1e], 5
jne 0x4064b7
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 0x40651c
test bl, bl
je 0x406605
cmp byte [ecx + 8], 0
je 0x40651c
mov esi, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
push 0xffc3d44e
push 0
push 0
push esi
push ebx
push 1
call fcn.0040efa0
push 0xffc3d44d
push 0
push 0
push esi
push ebx
push 2
call fcn.0040efa0
mov edx, dword [esp + 0x54]
mov eax, dword [ebp + 0x20]
push 0
push SysReAllocString
push edx
push eax
push esi
push ebx
jmp 0x404f4a
test bl, bl
je 0x406605
cmp byte [ecx + 4], 0
je 0x406567
cmp byte [ecx + 0x10], 0
je 0x40654d
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 0x404ea4
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 0x4066e0
cmp byte [esp + 0xe], 0
je 0x40669a
mov esi, dword [ebp + 8]
cmp esi, dword [0x4aae54]
jne 0x406594
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 0x4066e0
mov eax, dword [ecx]
test eax, eax
je 0x4065a3
cmp dword [eax], 7
je 0x4065a3
mov al, 1
jmp 0x4065a5
xor al, al
cmp byte [ecx + 0x10], 0
je 0x4065d3
cmp byte [esp + 0x2f], 0
jne 0x4065d3
test al, al
jne 0x4065d7
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push eax
push ecx
push 0
call fcn.0040efa0
add esp, 0x18
jmp 0x40657d
test al, al
je 0x40657d
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.00406820
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4a9c2c]
mov byte [ecx + 0xf], 1
test eax, eax
je 0x40661c
cmp byte [eax + 4], 0
je 0x40661c
mov byte [eax + 0x11], 2
cmp byte [esp + 0xe], 0
je 0x406644
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 0x4066e0
mov ebx, dword [ebp + 0x18]
cmp bl, 0xa4
je 0x406651
cmp bl, 0xa5
jne 0x406697
mov al, byte [0x4aad1d]
test al, 0xc0
je 0x40667b
test al, 0x33
jne 0x40667b
movzx ecx, byte [0x4a7365]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
push 2
call fcn.0040efa0
add esp, 0x18
mov edx, dword [ebp + 0x1c]
push 0xffc3d44d
push 0
push 0
push edx
push ebx
push 1
call fcn.0040efa0
mov ecx, dword [esp + 0x30]
add esp, 0x18
mov ebx, dword [ebp + 0x20]
test bl, bl
jne 0x4066a2
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 0x404ea4
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.00406950
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret