Function at 0x404bd0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [ebp + 0x24]
mov dl, byte [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x20]
push esi
push edi
mov dword [esp + 0x28], 0x3fff
cmp eax, 0xffc3d44f
je 0x404c0a
cmp eax, 0xffc3d44e
je 0x404c0a
mov byte [esp + 0xf], 0
cmp eax, 0xffc3d44d
jne 0x404c0f
mov byte [esp + 0xf], 1
mov ecx, dword [0x4abb3c]
test ecx, ecx
jne 0x404c26
lea edi, [esp + 0x40]
mov dword [esp + 0x1c], edi
jmp 0x404cc9
mov eax, dword [0x4abb40]
mov edi, eax
imul edi, edi, 0x70
inc eax
add edi, ecx
mov dword [esp + 0x1c], edi
mov dword [0x4abb40], eax
cmp eax, dword [0x4a7888]
jl 0x404c4e
mov dword [0x4abb40], 0
mov al, byte [ebp + 0x18]
mov byte [edi], al
mov byte [edi + 5], bl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [0x4ad90c]
mov dword [0x4abb44], eax
mov dword [esp + 0x34], ecx
fild dword [esp + 0x34]
jns 0x404c79
fadd dword [0x4a1c28]
fdiv qword [0x4a1c20]
mov dword [0x4ad90c], eax
fstp dword [edi + 8]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x404cb9
cmp esi, dword [0x4abb48]
je 0x404cb3
mov eax, dword [0x4ab22c]
push esi
lea edx, [edi + 0xc]
push edx
push 0x418
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x404cc0
mov byte [edi + 0xc], 0
jmp 0x404cc0
mov dword [edi + 0xc], 0x412f4e
mov dl, byte [ebp + 0x18]
mov dword [0x4abb48], esi
cmp dl, 0xe7
jne 0x404d04
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
movzx eax, word [ecx + 4]
push 0x3fff
push edi
push ebx
push 0xe7
push edx
mov edx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push edx
mov word [edi + 2], ax
mov byte [edi + 4], 0x55
call fcn.004067b0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x1c]
lea eax, [edx + 0x64]
mov word [edi + 2], si
cmp al, 3
ja 0x404d17
xor esi, esi
mov dword [ebp + 0x1c], esi
mov ecx, dword [0x4ab360]
cmp dword [ebp + 8], ecx
jne 0x404d48
mov al, byte [ebp + 0x28]
and al, 1
mov byte [esp + 0xe], al
jne 0x404e59
test bl, bl
setne al
dec al
movzx ecx, dl
and al, 0x80
mov byte [ecx + 0x4ab250], al
jmp 0x404e59
mov edx, dword [ebp + 0x28]
shr edx, 4
and dl, 1
mov byte [esp + 0xe], dl
test esi, 0x100
jne case.0x404d8b.13
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je case.0x404d8b.13
movzx eax, byte [ebp + 0x18]
add eax, 0xfffffff4
cmp eax, 0x62
ja case.0x404d8b.13
movzx eax, byte [eax + 0x4065ec]
jmp dword [eax*4 + 0x4065bc]
test bl, bl
sete cl
mov byte [0x4aa11c], cl
jmp case.0x404d8b.13
test bl, bl
sete dl
mov byte [0x4aa11d], dl
jmp case.0x404d8b.13
test bl, bl
sete al
mov byte [0x4aa11e], al
jmp case.0x404d8b.13
test bl, bl
sete cl
mov byte [0x4aa11f], cl
jmp case.0x404d8b.13
test bl, bl
sete dl
mov byte [0x4aa120], dl
jmp case.0x404d8b.13
test bl, bl
sete al
mov byte [0x4aa121], al
jmp case.0x404d8b.13
test bl, bl
sete cl
mov byte [0x4aa122], cl
jmp case.0x404d8b.13
test bl, bl
sete dl
mov byte [0x4aa123], dl
jmp case.0x404d8b.13
test bl, bl
sete al
mov byte [0x4aa124], al
jmp case.0x404d8b.13
test bl, bl
sete cl
mov byte [0x4aa125], cl
jmp case.0x404d8b.13
test bl, bl
sete dl
mov byte [0x4aa126], dl
movzx esi, byte [ebp + 0x18]
mov ecx, dword [0x4abb60]
lea eax, [esi + esi*8]
shl eax, 5
cmp byte [eax + ecx + 4], 0
jne 0x404e59
test byte [ebp + 0x28], 0x10
jne 0x404e59
mov al, byte [ebp + 0x18]
push ebx
call fcn.00407b50
add esp, 4
test al, al
je 0x404e59
test bl, bl
setne dl
dec dl
and dl, 0x80
mov byte [esi + 0x4ab250], dl
cmp byte [esp + 0xf], 0
je 0x404e64
mov al, 0x69
jmp 0x404e70
mov al, byte [esp + 0xe]
neg al
sbb al, al
and al, 0x41
add al, 0x20
cmp byte [0x4ab24c], 0
mov byte [edi + 4], al
je 0x404ea8
mov al, byte [ebp + 0x18]
cmp al, 0x5b
je 0x404e87
cmp al, 0x5c
jne 0x404ea8
test bl, bl
jne 0x404ea8
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push 0
push SysReAllocString
push 0x3fff
push 0
push eax
push ecx
mov ebx, edi
jmp 0x4065a5
cmp byte [0x4aa140], 0
je 0x404f51
cmp byte [ebp + 0x18], 0x1b
jne 0x404f51
test bl, bl
jne 0x404f51
push 0
push str.32771
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x404f51
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 0x404f51
push 0xffc3d44d
push 0
push 0
push 0
push 0x1b
push 0
call fcn.0040ef10
mov dl, byte [0x4ab229]
push 0xffc3d44d
shr dl, 3
push 0
and dl, 1
or dl, 0xa4
push 0
movzx eax, dl
push 0
push eax
push 1
call fcn.0040ef10
mov ecx, dword [ebp + 0x1c]
push 0
push SysReAllocString
push 0x3fff
push 0
push ecx
push 0x1b
mov ebx, edi
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
call fcn.00406680
add esp, 0x48
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [ebp + 0x1c]
lea edx, [eax + eax*8]
mov dword [esp + 0x2c], eax
mov eax, dword [0x4abb64]
shl edx, 5
mov cl, byte [eax + edx + 0x12]
add eax, edx
mov edx, dword [0x4ab35c]
mov byte [esp + 0x20], cl
cmp dword [ebp + 8], edx
jne 0x404f85
test cl, cl
je 0x404f85
mov esi, eax
mov dword [esp + 0x14], eax
jmp 0x404f99
movzx esi, byte [ebp + 0x18]
lea esi, [esi + esi*8]
shl esi, 5
add esi, dword [0x4abb60]
mov dword [esp + 0x14], esi
cmp byte [esp + 0xf], 0
je 0x404ff3
cmp dword [ebp + 0x24], 0xffc3d44e
jne 0x404fc7
test bl, bl
je 0x404fc7
cmp dword [0x4aa13c], esi
jne 0x404fc7
mov byte [esi + 0xc], 0
mov byte [esi + 0xf], 0
mov dword [0x4aa13c], 0
push 0x3fff
push edi
push ebx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x14]
call fcn.004067b0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test bl, bl
jne 0x405003
mov ecx, 0x3fff
mov byte [esi + 0x10], bl
mov word [esi + 6], cx
mov edx, dword [0x4ab360]
cmp dword [ebp + 8], edx
jne 0x4050ae
mov al, byte [ebp + 0x18]
test al, al
jne 0x405043
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0x3fff
push edi
push ebx
push 0
push eax
mov eax, dword [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
call fcn.004067b0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 1
je 0x40504b
cmp al, 2
jne 0x4050ae
cmp dword [0x4ab3bc], 0
jne 0x405076
push 0
push str.32768
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x4050ae
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ad238]
jne 0x4050ae
test bl, bl
sete al
mov byte [esi + 0xf], 0
mov byte [esi + 0xc], al
push 0x3fff
push edi
push ebx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
mov eax, dword [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.004067b0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [0x4aa13c]
test edx, edx
je 0x4050e0
cmp edx, esi
je 0x4050e0
test bl, bl
jne 0x4050e0
mov eax, dword [0x4ab35c]
cmp dword [ebp + 8], eax
jne 0x4050d4
xor eax, eax
cmp byte [esi + 4], al
sete al
jmp 0x4050d8
movzx eax, byte [edx + 4]
test eax, eax
je 0x4050e0
mov byte [edx + 0x11], 1
cmp byte [esi + 8], 0
jne 0x4050ec
cmp byte [esi + 9], 0
je 0x405082
cmp byte [ebp + 0x20], 0
mov ebx, 0x3fff
mov dword [esp + 0x10], ebx
mov dword [esp + 0x30], 0
je 0x405130
mov al, byte [esi + 0xc]
mov cl, byte [esi + 0xf]
mov byte [esp + 0x1b], al
movzx eax, word [esi + 6]
mov byte [esp + 0x1a], cl
mov ecx, ebx
mov byte [esi + 0xf], 0
cmp ax, cx
je 0x40512c
mov ebx, eax
mov eax, ecx
mov dword [esp + 0x10], ebx
mov word [esi + 6], ax
cmp byte [ebp + 0x20], 0
mov eax, dword [0x4ab35c]
sete cl
mov byte [esi + 0xc], cl
mov byte [esp + 0xd], 0
cmp dword [ebp + 8], eax
jne 0x4051bf
cmp byte [esi + 4], 0
je 0x4051e2
mov eax, dword [0x4abb60]
cmp byte [eax + 0xb64c], 0
jne 0x40516a
cmp byte [eax + 0xb76c], 0
jne 0x40516a
xor ecx, ecx
jmp 0x40516f
mov ecx, 1
cmp byte [eax + 0xb88c], 0
mov byte [eax + 0x132c], cl
jne 0x40518b
cmp byte [eax + 0xb9ac], 0
jne 0x40518b
xor ecx, ecx
jmp 0x405190
mov ecx, 1
cmp byte [eax + 0xb40c], 0
mov byte [eax + 0x144c], cl
jne 0x4051b2
cmp byte [eax + 0xb52c], 0
jne 0x4051b2
xor ecx, ecx
mov byte [eax + 0x120c], cl
jmp 0x4051e2
mov ecx, 1
mov byte [eax + 0x120c], cl
jmp 0x4051e2
test eax, eax
jne 0x4051e2
push 1
call fcn.00411480
mov edx, dword [0x4aa13c]
add esp, 4
mov byte [0x4ab22a], al
mov byte [0x4ab229], al
mov byte [esp + 0xd], 1
mov eax, dword [esi]
test eax, eax
je 0x4051f2
cmp dword [eax], 7
mov byte [esp + 0xf], 1
je 0x4051f7
mov byte [esp + 0xf], 0
mov al, byte [esi + 8]
test al, al
je 0x405377
cmp byte [ebp + 0x20], 0
jne 0x405377
test edx, edx
je 0x40521e
cmp byte [esi + 9], 0
je 0x40521e
cmp esi, edx
jne 0x405377
cmp al, 1
jne 0x405250
cmp byte [esp + 0x20], 0
mov eax, dword [esp + 0x2c]
jne 0x405231
movzx eax, byte [ebp + 0x18]
mov edx, dword [esp + 0x20]
push edx
push eax
call fcn.0040a150
mov edx, dword [0x4aa13c]
add esp, 8
test al, al
je 0x405250
mov byte [esp + 0xc], 1
jmp 0x405265
mov byte [esp + 0xc], 0
cmp esi, edx
je 0x405265
mov edx, esi
mov dword [0x4aa13c], edx
mov byte [esi + 0x11], 0
cmp byte [esi + 9], 0
je 0x405318
cmp byte [esp + 0xd], 0
jne 0x40528b
push 1
mov byte [esp + 0x11], 1
call fcn.00411480
mov edx, dword [0x4aa13c]
add esp, 4
mov al, byte [esi + 4]
mov cl, byte [0x4ab22a]
test al, al
je 0x40529c
not al
and cl, al
test cl, cl
jne 0x4052ac
cmp byte [esp + 0xc], cl
jne 0x4052ac
test byte [esi + 0xb], 1
je 0x405318
mov eax, dword [0x4ab35c]
cmp dword [ebp + 8], eax
jne 0x4052ce
cmp byte [esp + 0x20], 0
je 0x4052ce
mov eax, dword [0x4abb58]
movzx ecx, cl
shl ecx, 9
add ecx, dword [esp + 0x2c]
jmp 0x4052df
movzx eax, byte [ebp + 0x18]
movzx ecx, cl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4abb54]
movzx ebx, word [eax + ecx*2]
mov dword [esp + 0x10], ebx
test ebx, 0x4000
je 0x4052f5
mov word [esi + 6], bx
jmp 0x405322
mov ecx, dword [0x4a8a2c]
mov eax, ebx
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x405318
mov ecx, dword [0x4abb5c]
movzx eax, ax
mov ax, word [ecx + eax*2]
mov word [esi + 6], ax
mov ecx, 0x3fff
cmp bx, cx
jne 0x405377
mov al, byte [esp + 0xc]
test al, al
je 0x405332
or byte [esi + 0xb], 8
mov byte [edi + 4], 0x23
cmp byte [esi + 4], 0
jne 0x40536a
test byte [esi + 0xb], 1
jne 0x40536a
cmp byte [esp + 0xf], 0
jne 0x40536a
test al, al
jne 0x40536a
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push 0
push SysReAllocString
push 0x3fff
push 0
push edx
mov byte [esi + 0x10], 1
push eax
mov ebx, edi
jmp 0x4065a5
push 0x3fff
push edi
push 0
jmp 0x405089
cmp byte [esi + 9], 0
mov byte [esp + 0xe], 0
je 0x4053ea
cmp byte [ebp + 0x20], 0
je 0x4053ea
cmp edx, esi
jne 0x40539b
cmp byte [esp + 0x1a], 0
je 0x4053ea
xor edx, edx
mov dword [0x4aa13c], edx
cmp byte [esi + 0xa], 0
jne 0x4053e5
mov al, byte [esi + 0xb]
test al, 8
je 0x4053b1
xor cl, cl
and al, 0xf7
mov byte [esi + 0xb], al
jmp 0x4053b3
mov cl, 1
cmp byte [esp + 0x1a], 0
je 0x40546e
test cl, cl
je 0x40546e
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push 0
push SysReAllocString
push 0x3fff
push edx
push eax
push ecx
mov ebx, edi
jmp 0x4065a5
mov byte [esp + 0xe], 1
cmp byte [esi + 8], 0
je 0x405592
cmp byte [ebp + 0x20], 0
je 0x405592
cmp edx, esi
jne 0x40540a
xor edx, edx
mov dword [0x4aa13c], edx
cmp byte [esi + 0xd], 0
je 0x405431
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
mov byte [esi + 0xd], 0
call fcn.0040ef10
mov edx, dword [0x4aa13c]
add esp, 0x18
cmp byte [esi + 0xe], 0
je 0x405458
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
mov byte [esi + 0xe], 0
call fcn.0040ef10
mov edx, dword [0x4aa13c]
add esp, 0x18
mov ecx, 0x3fff
cmp bx, cx
jne 0x40547d
mov al, byte [esi + 0xb]
test al, 8
je 0x40547d
and al, 0xf7
mov byte [esi + 0xb], al
mov edx, dword [ebp + 0x20]
push 0x3fff
push edi
push edx
jmp 0x404fce
mov cl, byte [esp + 0xf]
test cl, cl
je 0x4054e4
mov al, byte [esi + 0x11]
cmp al, 2
jne 0x4054cd
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
push 0xffc3d44e
push 0
push 0
push ebx
push esi
push 1
call fcn.0040ef10
push 0xffc3d44d
push 0
push 0
push ebx
push esi
push 2
call fcn.0040ef10
mov ecx, dword [ebp + 0x20]
push 0
push SysReAllocString
push 0x3fff
push ecx
push ebx
push esi
jmp 0x404f3a
cmp al, 1
jne 0x40555a
mov edx, dword [ebp + 0x20]
push 0x3fff
push edi
push edx
jmp 0x404fce
cmp byte [esi + 0x11], 0
je 0x40555a
mov eax, 0x3fff
cmp bx, ax
jne 0x40555a
cmp byte [esi + 4], 0
je 0x405519
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
push 0x3fff
push edi
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
jmp 0x404fde
test byte [esi + 0xb], 1
mov ecx, dword [ebp + 0x18]
je 0x40553e
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x10]
push 0x3fff
push edi
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
jmp 0x404fde
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
push 0
push SysReAllocString
push 0x3fff
push edx
push eax
push ecx
mov ebx, edi
jmp 0x4065a5
cmp byte [esi + 9], 0
jne 0x405581
cmp byte [esi + 4], 0
jne 0x40546e
test byte [esi + 0xb], 1
jne 0x40546e
test cl, cl
jne 0x40546e
jmp 0x4053c6
cmp byte [esp + 0x1b], 0
jne 0x405592
cmp byte [esi + 0xa], 0
je 0x4054fa
cmp byte [esp + 0xd], 0
jne 0x4055b3
mov eax, 0x3fff
cmp bx, ax
jne 0x4055b3
push 1
call fcn.00411480
mov edx, dword [0x4aa13c]
add esp, 4
mov byte [esp + 0xc], 0
test edx, edx
je 0x405c8e
cmp byte [ebp + 0x20], 0
je 0x4055d0
cmp byte [esi + 0xa], 0
je 0x405c8e
mov ecx, 0x3fff
cmp bx, cx
jne 0x405f1e
mov esi, dword [esp + 0x14]
cmp byte [esi + 0x13], 0
mov dword [esp + 0x24], 0
jbe 0x405712
add esi, 0x16
jmp 0x405600
mov cl, byte [esi]
mov edi, dword [0x4abb60]
movzx eax, cl
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + edi + 0xc], 0
je 0x405653
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x40563d
cmp byte [ebp + 0x20], 0
jne 0x40566d
mov ecx, dword [esp + 0x14]
mov word [ecx + 6], ax
mov eax, 0x3fff
cmp bx, ax
jne 0x405689
jmp 0x405653
cmp byte [ebp + 0x20], 0
jne 0x40564f
mov ebx, eax
mov dword [esp + 0x10], ebx
mov byte [esp + 0xd], cl
jmp 0x405653
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
movzx ecx, byte [ecx + 0x13]
inc eax
add esi, 4
mov dword [esp + 0x24], eax
cmp eax, ecx
jl 0x405600
jmp 0x40567b
movzx ebx, word [esi + 2]
mov al, byte [esi]
mov dword [esp + 0x10], ebx
mov byte [esp + 0xd], al
mov ecx, 0x3fff
cmp bx, cx
je 0x405712
movzx ecx, byte [esp + 0xd]
mov eax, ecx
sub eax, 0x10
je 0x4056f0
dec eax
je 0x4056ce
dec eax
je 0x4056ac
lea edx, [ecx + ecx*8]
shl edx, 5
add edx, dword [0x4abb60]
jmp 0x4057c7
mov ecx, dword [0x4abb60]
xor eax, eax
cmp byte [ecx + 0xb9ac], al
setne al
lea edx, [eax + eax*8 + 0x5c4]
shl edx, 5
add edx, ecx
jmp 0x4057c7
mov ecx, dword [0x4abb60]
xor eax, eax
cmp byte [ecx + 0xb76c], al
setne al
lea edx, [eax + eax*8 + 0x5b2]
shl edx, 5
add edx, ecx
jmp 0x4057c7
mov ecx, dword [0x4abb60]
xor eax, eax
cmp byte [ecx + 0xb52c], al
setne al
lea edx, [eax + eax*8 + 0x5a0]
shl edx, 5
add edx, ecx
jmp 0x4057c7
mov esi, dword [esp + 0x14]
cmp byte [esi + 0x14], 0
mov dword [esp + 0x24], 0
jbe 0x4057db
add esi, 0xde
mov edi, edi
movzx ecx, word [esi]
mov edi, dword [0x4abb64]
mov eax, ecx
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + edi + 0xc], 0
je 0x405783
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x40576d
cmp byte [ebp + 0x20], 0
jne 0x40579d
mov ecx, dword [esp + 0x14]
mov word [ecx + 6], ax
mov eax, 0x3fff
cmp bx, ax
jne 0x4057b6
jmp 0x405783
cmp byte [ebp + 0x20], 0
jne 0x40577f
mov ebx, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], ecx
jmp 0x405783
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
movzx ecx, byte [ecx + 0x14]
inc eax
add esi, 4
mov dword [esp + 0x24], eax
cmp eax, ecx
jl 0x405730
jmp 0x4057ac
movzx ebx, word [esi + 2]
movzx eax, word [esi]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], eax
mov ecx, 0x3fff
cmp bx, cx
je 0x4057db
movzx edx, word [esp + 0x38]
lea edx, [edx + edx*8]
shl edx, 5
add edx, dword [0x4abb64]
mov eax, 0x3fff
mov dword [0x4aa13c], edx
cmp bx, ax
jne case.default.0x4057ed
movzx eax, byte [ebp + 0x18]
add eax, 0xffffff60
cmp eax, 5
ja case.default.0x4057ed
jmp dword [eax*4 + 0x406650]
mov al, 0x11
jmp 0x4057fe
mov al, 0x12
jmp 0x4057fe
mov al, 0x10
mov ecx, dword [0x4abb60]
movzx eax, al
lea esi, [eax + eax*8]
shl esi, 5
movzx eax, byte [esi + ecx + 0x13]
add esi, ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], 0
test eax, eax
jle 0x4058de
add esi, 0x16
nop
mov cl, byte [esi]
mov edi, dword [0x4abb60]
movzx eax, cl
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + edi + 0xc], 0
je 0x4058ae
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x405898
cmp byte [ebp + 0x20], 0
jne 0x4058c6
mov ecx, dword [esp + 0x14]
mov word [ecx + 6], ax
mov eax, 0x3fff
cmp bx, ax
je 0x4058ae
mov ecx, edi
movzx edx, byte [esp + 0xd]
mov eax, edx
sub eax, 0x10
je 0x40598e
dec eax
je 0x405975
dec eax
je 0x405959
lea edx, [edx + edx*8]
shl edx, 5
add edx, ecx
jmp 0x4059ff
cmp byte [ebp + 0x20], 0
jne 0x4058aa
mov ebx, eax
mov dword [esp + 0x10], ebx
mov byte [esp + 0xd], cl
jmp 0x4058ae
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
inc eax
add esi, 4
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x3c]
jl 0x405830
jmp 0x4058d4
movzx ebx, word [esi + 2]
mov cl, byte [esi]
mov dword [esp + 0x10], ebx
mov byte [esp + 0xd], cl
mov esi, dword [esp + 0x34]
mov ecx, dword [0x4abb60]
mov eax, 0x3fff
cmp bx, ax
jne 0x40586d
movzx eax, byte [esi + 0x14]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], 0
test eax, eax
jle case.default.0x4057ed
add esi, 0xde
jmp 0x405910
movzx ecx, word [esi]
mov edi, dword [0x4abb64]
mov eax, ecx
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + edi + 0xc], 0
je 0x4059bd
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x4059a7
cmp byte [ebp + 0x20], 0
jne 0x4059d5
mov ecx, dword [esp + 0x14]
mov word [ecx + 6], ax
mov eax, 0x3fff
cmp bx, ax
jne 0x4059ee
jmp 0x4059bd
xor eax, eax
cmp byte [ecx + 0xb9ac], al
setne al
lea edx, [eax + eax*8 + 0x5c4]
shl edx, 5
add edx, ecx
jmp 0x4059ff
xor eax, eax
cmp byte [ecx + 0xb76c], al
setne al
lea edx, [eax + eax*8 + 0x5b2]
shl edx, 5
add edx, ecx
jmp 0x4059ff
xor eax, eax
cmp byte [ecx + 0xb52c], al
setne al
lea edx, [eax + eax*8 + 0x5a0]
shl edx, 5
add edx, ecx
jmp 0x4059ff
cmp byte [ebp + 0x20], 0
jne 0x4059b9
mov ebx, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], ecx
jmp 0x4059bd
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
inc eax
add esi, 4
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x3c]
jl 0x405910
jmp 0x4059e4
movzx ebx, word [esi + 2]
movzx eax, word [esi]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], eax
mov ecx, 0x3fff
cmp bx, cx
je case.default.0x4057ed
movzx edx, word [esp + 0x38]
lea edx, [edx + edx*8]
shl edx, 5
add edx, dword [0x4abb64]
mov dword [0x4aa13c], edx
mov eax, ebx
and eax, 0x3fff
mov ecx, 0x3fff
mov esi, eax
cmp bx, cx
je 0x405a86
mov eax, dword [0x4a8a2c]
cmp si, word [eax]
jae 0x405a82
mov edx, dword [ebp + 0x20]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov edi, dword [ebp + 0x24]
push edx
lea eax, [esp + 0x14]
push eax
add ecx, 0xb
lea esi, [ebx + 4]
lea eax, [esp + 0x14]
call fcn.0040a380
add esp, 8
mov dword [esp + 0x30], eax
test eax, eax
jne 0x405a6f
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
push 0x3fff
push ebx
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
jmp 0x404fde
mov ebx, dword [esp + 0x10]
mov edx, dword [0x4aa13c]
mov eax, ebx
and eax, 0x3fff
mov esi, eax
mov byte [edx + 0x11], 2
mov ecx, 0x3ffe
cmp si, cx
je 0x405a9e
mov eax, 0x3ffd
cmp si, ax
jne 0x405c8e
cmp byte [ebp + 0x20], 0
jne 0x405aac
mov ecx, dword [esp + 0x14]
mov byte [ecx + 0xf], 1
test byte [0x4ab229], 0xc
jne 0x405ad2
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040ef10
mov edx, dword [0x4aa13c]
add esp, 0x18
mov al, byte [ebp + 0x18]
cmp al, 0xa2
je 0x405add
cmp al, 0xa3
jne 0x405b09
cmp byte [ebp + 0x20], 0
jne 0x405b09
mov edi, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push edi
push edx
push 1
call fcn.0040ef10
mov edx, dword [0x4aa13c]
mov al, byte [ebp + 0x18]
add esp, 0x18
jmp 0x405b0c
mov edi, dword [ebp + 0x1c]
mov ecx, 0x3ffd
mov byte [edx + 0xd], 1
cmp si, cx
jne 0x405b46
test byte [0x4ab229], 0x30
jne 0x405b40
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040ef10
mov edx, dword [0x4aa13c]
add esp, 0x18
mov byte [edx + 0xe], 1
jmp 0x405bbc
mov edx, 0x3ffe
cmp si, dx
jne 0x405bbc
cmp al, 0xa0
je 0x405b58
cmp al, 0xa1
jne 0x405b76
cmp byte [ebp + 0x20], 0
jne 0x405b76
mov eax, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push edi
push eax
push 1
call fcn.0040ef10
add esp, 0x18
test byte [0x4ab229], 0x10
je 0x405b99
push 0xffc3d44d
push 0
push 0
push 0
push 0xa0
push 1
call fcn.0040ef10
add esp, 0x18
test byte [0x4ab229], 0x20
je 0x405bbc
push 0xffc3d44d
push 0
push 0
push 0
push 0xa1
push 1
call fcn.0040ef10
add esp, 0x18
test byte [0x4ab229], 1
je 0x405bdf
push 0xffc3d44d
push 0
push 0
push 0
push 0xa2
push 1
call fcn.0040ef10
add esp, 0x18
test byte [0x4ab229], 2
je 0x405c02
push 0xffc3d44d
push 0
push 0
push 0
push 0xa3
push 1
call fcn.0040ef10
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040ef10
mov ecx, 0x3ffd
add esp, 0x18
cmp si, cx
jne 0x405c5e
mov edx, dword [0x4aa13c]
cmp byte [edx + 0xe], 0
je 0x405c5e
mov al, byte [ebp + 0x18]
cmp al, 0x60
jb 0x405c3a
cmp al, 0x69
jbe 0x405c3e
cmp al, 0x6e
jne 0x405c5e
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040ef10
mov eax, dword [0x4aa13c]
add esp, 0x18
mov byte [eax + 0xe], 0
cmp byte [ebp + 0x20], 0
mov ebx, dword [esp + 0x1c]
mov byte [ebx + 4], 0x68
jne 0x405c74
mov ecx, dword [esp + 0x14]
mov byte [ecx + 0x10], 1
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
push 0
push SysReAllocString
push 0x3fff
push edx
push edi
push eax
jmp 0x4065a5
mov ecx, 0x3fff
cmp bx, cx
jne 0x405f1e
mov edx, dword [esp + 0x14]
mov cl, byte [edx + 4]
mov al, byte [0x4ab22a]
test cl, cl
je 0x405cb0
not cl
and al, cl
mov edi, dword [ebp + 8]
mov esi, dword [0x4ab35c]
cmp edi, esi
jne 0x405cd6
cmp byte [esp + 0x20], 0
je 0x405cd6
mov edx, dword [0x4abb58]
movzx ecx, al
shl ecx, 9
add ecx, dword [esp + 0x2c]
jmp 0x405ce8
movzx edx, byte [ebp + 0x18]
movzx ecx, al
shl ecx, 8
add ecx, edx
mov edx, dword [0x4abb54]
movzx ecx, word [edx + ecx*2]
mov edx, 0x3fff
mov dword [esp + 0x10], ecx
cmp cx, dx
jne 0x405d6b
cmp byte [0x4aa140], 0
je 0x405d6b
mov dl, byte [ebp + 0x18]
cmp dl, 9
je 0x405d6b
and al, 0xf3
cmp edi, esi
jne 0x405d2e
cmp byte [esp + 0x20], 0
je 0x405d2e
mov ecx, dword [0x4abb58]
movzx eax, al
shl eax, 9
add eax, dword [esp + 0x2c]
movzx ecx, word [ecx + eax*2]
jmp 0x405d43
movzx eax, al
movzx ecx, dl
mov edx, dword [0x4abb54]
shl eax, 8
add eax, ecx
movzx ecx, word [edx + eax*2]
mov eax, ecx
and eax, 0x3fff
mov edx, 0x3ff9
mov dword [esp + 0x10], ecx
cmp ax, dx
jbe 0x405d62
mov edx, 0x3fff
cmp ax, dx
jb 0x405d6b
mov ecx, 0x3fff
mov dword [esp + 0x10], ecx
test ecx, 0x4000
je 0x405db4
cmp byte [ebp + 0x20], 0
jne 0x405e5a
mov eax, dword [esp + 0x14]
mov word [eax + 6], cx
mov eax, dword [esp + 0x14]
add eax, 6
mov ecx, 0x3fff
cmp word [eax], cx
jne 0x405ece
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push 0
push eax
push ecx
push edx
push edi
jmp 0x404fde
mov edx, 0x3fff
cmp cx, dx
je 0x405e6b
mov eax, ecx
and eax, edx
mov edx, dword [ebp + 0x20]
test dl, dl
je 0x405e37
mov esi, dword [0x4a8a2c]
cmp ax, word [esi]
jae 0x405e2e
mov esi, dword [0x4abb5c]
mov ebx, eax
add ebx, ebx
mov eax, 0x3fff
cmp word [ebx + esi], ax
je 0x405e2e
cmp byte [esp + 0xe], 0
jne 0x405e1f
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov edi, dword [ebp + 0x24]
push edx
lea edx, [esp + 0x14]
add ecx, 0xb
push edx
add esi, 4
lea eax, [esp + 0x14]
call fcn.0040a380
add esp, 8
mov dword [esp + 0x30], eax
test eax, eax
jne 0x405e56
mov eax, dword [0x4abb5c]
movzx ecx, word [ebx + eax]
mov dword [esp + 0x10], ecx
jmp 0x405e5a
cmp byte [esp + 0xe], 0
jne 0x405e6b
jmp 0x405e5a
mov edx, dword [0x4a8a2c]
cmp ax, word [edx]
jae 0x405e5a
mov edx, dword [0x4abb5c]
mov ax, word [edx + eax*2]
mov edx, dword [esp + 0x14]
mov word [edx + 6], ax
jmp 0x405e5a
mov ecx, dword [esp + 0x10]
mov eax, 0x3fff
cmp cx, ax
jne 0x405f1e
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x20]
test cl, cl
je 0x405d85
mov eax, dword [esp + 0x14]
cmp byte [eax + 4], 0
jne 0x405eb1
test byte [eax + 0xb], 1
jne 0x405eb1
cmp byte [eax + 8], 0
je 0x405eb1
cmp byte [esp + 0xf], 0
jne 0x405eb1
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ebx, dword [esp + 0x1c]
push 0
push SysReAllocString
push 0x3fff
push ecx
push edx
push eax
jmp 0x4065a5
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x18]
push 0x3fff
push edx
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
push ecx
push edx
push edi
jmp 0x404fde
mov ecx, dword [esp + 0x14]
push 1
push eax
add ecx, 0xb
xor esi, esi
lea eax, [esp + 0x14]
xor edi, edi
call fcn.0040a380
add esp, 8
cmp byte [esp + 0xc], 0
je 0x405eff
mov eax, dword [esp + 0x1c]
push 0x3fff
push eax
push edi
jmp 0x406163
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ebx, dword [esp + 0x1c]
push 0
push SysReAllocString
push 0x3fff
push 0
push edx
push eax
jmp 0x4065a5
mov ebx, dword [esp + 0x14]
mov al, byte [ebx + 0xb]
add ebx, 0xb
mov dword [esp + 0x34], ebx
test al, 8
je 0x405f3f
cmp byte [ebp + 0x20], 0
je 0x405f3f
and al, 0xf7
mov byte [esp + 0xc], 1
mov byte [ebx], al
mov ecx, dword [esp + 0x10]
mov edx, dword [0x4a8a2c]
and ecx, 0x3fff
cmp cx, word [edx]
jae 0x406063
cmp dword [esp + 0x30], 0
jne 0x406063
mov eax, dword [ebp + 0x20]
mov esi, dword [esp + 0x1c]
mov edi, dword [ebp + 0x24]
push eax
lea ecx, [esp + 0x14]
push ecx
add esi, 4
lea eax, [esp + 0x14]
mov ecx, ebx
call fcn.0040a380
add esp, 8
mov dword [esp + 0x30], eax
test eax, eax
jne 0x406063
cmp byte [ebp + 0x20], al
je 0x405fde
mov edx, dword [esp + 0x14]
cmp byte [edx + 0x10], al
mov edx, dword [ebp + 0x18]
je 0x405fbe
mov ecx, dword [ebp + 0x1c]
mov ebx, dword [esp + 0x1c]
push eax
mov eax, dword [ebp + 0x20]
push SysReAllocString
push 0x3fff
push eax
push ecx
push edx
jmp 0x4065a5
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x20]
push 0x3fff
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
jmp 0x404fde
mov eax, dword [esp + 0x14]
add eax, 6
mov ecx, 0x3fff
cmp word [eax], cx
jne 0x405ffc
mov edx, dword [esp + 0x1c]
push ecx
push edx
push 0
jmp 0x404fce
push 1
push eax
xor esi, esi
lea eax, [esp + 0x14]
mov ecx, ebx
xor edi, edi
mov byte [esp + 0x14], 0
call fcn.0040a380
mov edx, dword [ebp + 0x18]
add esp, 8
cmp byte [esp + 0xc], 0
je 0x40603d
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x10]
push 0x3fff
push ecx
mov ecx, dword [ebp + 0xc]
push edi
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
jmp 0x404fde
mov eax, dword [esp + 0x34]
and byte [eax], 0xf7
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
push 0
push SysReAllocString
push 0x3fff
mov byte [eax + 0x10], 1
push 0
jmp 0x4065a0
mov esi, dword [esp + 0x10]
mov dl, byte [0x4ab229]
and esi, 0x3fff
test dl, 0xcc
je 0x406134
cmp byte [esp + 0xc], 0
jne 0x406134
cmp byte [0x4aa141], 0
jne 0x40609f
mov eax, dword [ebp + 8]
cmp eax, dword [0x4ab360]
jne 0x406134
mov bl, byte [0x4ab22b]
test dl, 0xc0
je 0x4060d1
test bl, 0xc0
jne 0x4060c8
push 0xc0
mov eax, esi
call fcn.0040a5d0
mov dl, byte [0x4ab229]
add esp, 4
test al, al
je 0x4060d1
mov byte [0x4aa142], 1
jmp 0x406134
cmp byte [0x4aa142], 0
jne 0x406134
test dl, 0xc
je 0x406134
test dl, 3
jne 0x406134
test bl, 0xc
jne 0x4060ff
push 0xc
mov eax, esi
call fcn.0040a5d0
mov dl, byte [0x4ab229]
add esp, 4
test al, al
je 0x406134
cmp dword [0x4ab35c], 0
je 0x406111
mov byte [0x4aa142], 1
jmp 0x406134
movzx ecx, byte [0x4a7365]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
push 2
call fcn.0040ef10
mov dl, byte [0x4ab229]
add esp, 0x18
mov eax, esi
lea ecx, [eax - 0x3ffa]
cmp ecx, 4
ja case.default.0x406145
jmp dword [ecx*4 + 0x406668]
cmp byte [0x4aa140], 0
jne case.0x406145.16379
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x20]
push 0x3fff
push edx
push eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
jmp 0x404fde
xor al, al
mov byte [esp + 0xe], al
test dl, 4
je 0x406187
mov al, 0xa4
jmp 0x40618e
test dl, 8
je 0x406192
mov al, 0xa5
mov byte [esp + 0xe], al
cmp byte [0x4aa140], 0
je 0x406208
mov ecx, 0x3ffb
cmp si, cx
je case.0x406145.16381
test al, al
movzx eax, al
jne 0x4061b5
mov eax, 0x12
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040ef10
mov edx, dword [esp + 0x2c]
add esp, 0x18
cmp byte [edx + 4], 0
je 0x4061fc
mov eax, dword [ebp + 0x18]
cmp al, 0x5b
je 0x4061fc
cmp al, 0x5c
je 0x4061fc
cmp byte [ebp + 0x20], 0
jne 0x4061fc
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040ef10
add esp, 0x18
mov byte [0x4aa140], 0
jmp 0x40646c
mov cl, byte [ebp + 0x18]
cmp cl, 0xa4
je 0x40621a
mov byte [esp + 0xd], 0
cmp cl, 0xa5
jne 0x40621f
mov byte [esp + 0xd], 1
cmp cl, 0xa0
je 0x40622d
cmp cl, 0xa1
je 0x40622d
xor bl, bl
jmp 0x40622f
mov bl, 1
mov byte [esp + 0x1b], bl
cmp cl, 0xa2
je 0x406242
mov byte [esp + 0x1a], 0
cmp cl, 0xa3
jne 0x406247
mov byte [esp + 0x1a], 1
xor al, al
mov byte [esp + 0x2c], al
test dl, 0x10
je 0x40625a
mov al, 0xa0
mov byte [esp + 0x2c], al
jmp 0x40627d
test dl, 0x20
je 0x406267
mov al, 0xa1
mov byte [esp + 0x2c], al
jmp 0x40627d
cmp byte [ebp + 0x20], 0
jne 0x406277
test bl, bl
je 0x406277
mov al, cl
mov byte [esp + 0x2c], al
mov dl, byte [0x4ab229]
mov byte [esp + 0x20], 0
test dl, 1
je 0x40628e
mov byte [esp + 0x20], 0xa2
jmp 0x4062ab
test dl, 2
je 0x40629a
mov byte [esp + 0x20], 0xa3
jmp 0x4062ab
cmp byte [ebp + 0x20], 0
jne 0x4062ab
cmp byte [esp + 0x1a], 0
je 0x4062ab
mov byte [esp + 0x20], cl
mov esi, dword [esp + 0x2c]
xor bl, bl
test al, al
je 0x4062d0
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 1
call fcn.0040ef10
mov cl, byte [ebp + 0x18]
add esp, 0x18
mov bl, 1
cmp byte [esp + 0x20], 0
je 0x4062f4
mov eax, dword [esp + 0x20]
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040ef10
mov cl, byte [ebp + 0x18]
add esp, 0x18
cmp byte [esp + 0xd], 0
je 0x406303
cmp byte [ebp + 0x20], 0
jne 0x40630b
jmp 0x406307
mov cl, byte [esp + 0xe]
test cl, cl
jne 0x406322
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040ef10
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040ef10
add esp, 0x18
test bl, bl
je 0x40635a
cmp byte [esp + 0x1b], 0
jne 0x40635a
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 0
call fcn.0040ef10
add esp, 0x18
mov byte [0x4aa140], 1
jmp 0x40646c
cmp byte [0x4aa140], 0
jne 0x406382
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 0x20]
push 0x3fff
push ecx
push edx
jmp 0x404fce
cmp byte [ebp + 0x20], 0
mov al, byte [ebp + 0x18]
jne 0x4063bd
cmp al, 0xa2
je 0x40639b
cmp al, 0xa3
je 0x40639b
cmp al, 0xa0
je 0x40639b
cmp al, 0xa1
jne 0x4063bd
mov ecx, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
push 1
call fcn.0040ef10
mov al, byte [ebp + 0x18]
mov dl, byte [0x4ab229]
add esp, 0x18
test dl, 0xc
je 0x4063d0
cmp byte [ebp + 0x20], 0
je 0x4063e7
cmp al, 0xa4
je 0x4063d0
cmp al, 0xa5
jne 0x4063e7
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040ef10
add esp, 0x18
mov edx, 0x3ffd
xor bl, bl
cmp si, dx
jne 0x406415
test byte [0x4ab229], 0x30
jne 0x406415
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040ef10
add esp, 0x18
mov bl, 1
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040ef10
add esp, 0x18
test bl, bl
je 0x40646c
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040ef10
add esp, 0x18
jmp 0x40646c
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 4]
test eax, eax
je 0x40646c
cmp byte [eax], 5
jb 0x40646c
mov ecx, dword [esp + 0x30]
movzx edx, word [ecx + 0x14]
shl edx, 0x10
or dword [esp + 0x28], edx
cmp byte [esp + 0xf], 0
mov esi, dword [esp + 0x1c]
mov ebx, dword [ebp + 0x20]
mov edi, dword [esp + 0x14]
mov byte [esi + 4], 0x68
je 0x4064d3
test bl, bl
je 0x406530
cmp byte [edi + 8], 0
je 0x4064d3
mov edi, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
push 0xffc3d44e
push 0
push 0
push edi
push ebx
push 1
call fcn.0040ef10
push 0xffc3d44d
push 0
push 0
push edi
push ebx
push 2
call fcn.0040ef10
mov eax, dword [esp + 0x58]
mov ecx, dword [ebp + 0x20]
push 0
push SysReAllocString
push eax
push ecx
push edi
push ebx
mov ebx, esi
jmp 0x404f3c
test bl, bl
je 0x406530
cmp byte [edi + 4], 0
je 0x4064f3
cmp byte [edi + 0x10], 0
jne 0x40658b
mov eax, dword [esp + 0x28]
push eax
push esi
push ebx
jmp 0x406163
cmp byte [esp + 0xc], 0
je 0x406583
mov edx, dword [esp + 0x28]
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
cmp eax, dword [0x4ab360]
push edx
mov edx, dword [ebp + 0x10]
push esi
push ebx
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push ecx
mov ecx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x1c]
call fcn.004067b0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4aa13c]
mov byte [edi + 0xf], 1
test eax, eax
je 0x406547
cmp byte [eax + 4], 0
je 0x406547
mov byte [eax + 0x11], 2
cmp byte [esp + 0xc], 0
je 0x406560
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
or byte [eax], 8
push edx
push esi
jmp 0x404fcd
mov eax, dword [ebp + 0x18]
cmp al, 0xa4
je 0x40656b
cmp al, 0xa5
jne 0x406583
mov ecx, dword [ebp + 0x1c]
push 0xffc3d450
push 0
push 0
push ecx
push eax
push 1
call fcn.0040ef10
add esp, 0x18
test bl, bl
jne 0x40658b
mov byte [edi + 0x10], 1
mov edx, dword [esp + 0x28]
mov eax, dword [ebp + 0x20]
push 0
push SysReAllocString
push edx
mov edx, dword [ebp + 0x18]
mov ebx, esi
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
push edx
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
call fcn.00406680
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret