Function at 0x404b30
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 + 0x30], 0x3fff
cmp eax, 0xffc3d44f
je 0x404b67
cmp eax, 0xffc3d44e
je 0x404b67
mov byte [esp + 0x11], 0
cmp eax, 0xffc3d44d
jne 0x404b6c
mov byte [esp + 0x11], 1
mov ecx, dword [0x4aa62c]
test ecx, ecx
jne 0x404b83
lea edi, [esp + 0x40]
mov dword [esp + 0x24], edi
jmp 0x404c2a
mov eax, dword [0x4aa630]
mov edi, eax
imul edi, edi, 0x70
inc eax
add edi, ecx
mov dword [esp + 0x24], edi
mov dword [0x4aa630], eax
cmp eax, dword [0x4a63a8]
jl 0x404bab
mov dword [0x4aa630], 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 [0x4ac3fc]
mov dword [0x4aa634], eax
mov dword [esp + 0x34], edx
fild dword [esp + 0x34]
jns 0x404bd9
fadd dword [0x4a0880]
fdiv qword [0x4a0878]
mov dword [0x4ac3fc], eax
fstp dword [edi + 8]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x404c1a
cmp esi, dword [0x4aa638]
je 0x404c14
mov ecx, dword [0x4a9d20]
push esi
lea eax, [edi + 0xc]
push eax
push 0x418
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x404c21
mov byte [edi + 0xc], 0
jmp 0x404c21
mov dword [edi + 0xc], 0x412f4e
mov edx, dword [ebp + 0x28]
mov dword [0x4aa638], esi
mov al, byte [ebp + 0x18]
mov ebx, dword [ebp + 0x20]
cmp al, 0xe7
jne 0x404c69
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
movzx eax, word [edx + 4]
push 0
push 0x3fff
push edi
push ebx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push ecx
mov cl, 0xe7
mov word [edi + 2], ax
mov byte [edi + 4], 0x55
call fcn.00406810
add esp, 0x1c
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 0x404c7d
xor esi, esi
mov dword [ebp + 0x1c], esi
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x4a9e54]
jne 0x404cad
and dl, 1
mov byte [esp + 0x13], dl
jne 0x404db9
test bl, bl
setne dl
dec dl
movzx eax, al
and dl, 0x80
mov byte [eax + 0x4a9d40], dl
jmp 0x404db9
shr edx, 4
and dl, 1
mov byte [esp + 0x13], dl
test esi, 0x100
jne case.0x404ced.13
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je case.0x404ced.13
movzx eax, byte [ebp + 0x18]
add eax, 0xfffffff4
cmp eax, 0x62
ja case.0x404ced.13
movzx ecx, byte [eax + 0x4065f0]
jmp dword [ecx*4 + 0x4065c0]
test bl, bl
sete dl
mov byte [0x4a8c0c], dl
jmp case.0x404ced.13
test bl, bl
sete al
mov byte [0x4a8c0d], al
jmp case.0x404ced.13
test bl, bl
sete cl
mov byte [0x4a8c0e], cl
jmp case.0x404ced.13
test bl, bl
sete dl
mov byte [0x4a8c0f], dl
jmp case.0x404ced.13
test bl, bl
sete al
mov byte [0x4a8c10], al
jmp case.0x404ced.13
test bl, bl
sete cl
mov byte [0x4a8c11], cl
jmp case.0x404ced.13
test bl, bl
sete dl
mov byte [0x4a8c12], dl
jmp case.0x404ced.13
test bl, bl
sete al
mov byte [0x4a8c13], al
jmp case.0x404ced.13
test bl, bl
sete cl
mov byte [0x4a8c14], cl
jmp case.0x404ced.13
test bl, bl
sete dl
mov byte [0x4a8c15], dl
jmp case.0x404ced.13
test bl, bl
sete al
mov byte [0x4a8c16], al
movzx esi, byte [ebp + 0x18]
mov edx, dword [0x4aa650]
lea ecx, [esi + esi*8]
shl ecx, 5
cmp byte [ecx + edx + 4], 0
jne 0x404db9
test byte [ebp + 0x28], 0x10
jne 0x404db9
mov al, byte [ebp + 0x18]
push ebx
call fcn.00407a20
add esp, 4
test al, al
je 0x404db9
test bl, bl
setne al
dec al
and al, 0x80
mov byte [esi + 0x4a9d40], al
cmp byte [esp + 0x11], 0
je 0x404dc4
mov al, 0x69
jmp 0x404dd0
mov al, byte [esp + 0x13]
neg al
sbb al, al
and al, 0x41
add al, 0x20
cmp byte [0x4a9e40], 0
mov byte [edi + 4], al
je 0x404e18
mov al, byte [ebp + 0x18]
cmp al, 0x5b
je 0x404de7
cmp al, 0x5c
jne 0x404e18
test bl, bl
jne 0x404e18
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 ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
call fcn.004066e0
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x4a8c30], 0
je 0x404ebe
cmp byte [ebp + 0x18], 0x1b
jne 0x404ebe
test bl, bl
jne 0x404ebe
push 0
push str.32771
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x404ebe
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 0x404ebe
push 0xffc3d44d
push 0
push 0
push 0
push 0x1b
push 0
call fcn.0040ee80
mov al, byte [0x4a9d1d]
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.0040ee80
mov edx, dword [ebp + 0x1c]
push 0
push SysReAllocString
push 0x3fff
push 0
push edx
push 0x1b
mov ebx, edi
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
call fcn.004066e0
add esp, 0x48
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [ebp + 0x1c]
mov ecx, dword [0x4a9e50]
mov dword [esp + 0x34], eax
lea eax, [eax + eax*8]
shl eax, 5
add eax, dword [0x4aa654]
mov dl, byte [eax + 0x12]
mov byte [esp + 0x28], dl
cmp dword [ebp + 8], ecx
jne 0x404eef
test dl, dl
je 0x404eef
mov esi, eax
mov al, byte [ebp + 0x18]
jmp 0x404f01
mov al, byte [ebp + 0x18]
movzx esi, al
lea esi, [esi + esi*8]
shl esi, 5
add esi, dword [0x4aa650]
cmp byte [esp + 0x11], 0
mov dword [esp + 0x1c], esi
je 0x404f40
cmp dword [ebp + 0x24], 0xffc3d44e
jne 0x406590
test bl, bl
je 0x406590
cmp dword [0x4a8c2c], esi
jne 0x406590
mov byte [esi + 0xc], 0
mov dword [0x4a8c2c], 0
jmp 0x40658c
test bl, bl
jne 0x404f50
mov edx, 0x3fff
mov byte [esi + 0x10], bl
mov word [esi + 6], dx
cmp dword [ebp + 8], ecx
jne 0x405000
test bl, bl
je 0x40505b
cmp byte [0x4a8c34], 0
je 0x404f6e
cmp al, 0x5b
je 0x404f9d
cmp byte [0x4a8c33], 0
je 0x404f7b
cmp al, 0x5c
je 0x404f9d
cmp byte [0x4a8c32], 0
je 0x404f88
cmp al, 0xa4
je 0x404f9d
cmp byte [0x4a8c31], 0
je 0x40505b
cmp al, 0xa5
jne 0x40505b
movzx eax, al
add eax, 0xffffffa5
cmp eax, 0x4a
ja case.0x404faf.93
movzx eax, byte [eax + 0x406668]
jmp dword [eax*4 + 0x406654]
mov byte [0x4a8c34], 0
jmp case.0x404faf.93
mov byte [0x4a8c33], 0
jmp case.0x404faf.93
mov byte [0x4a8c32], 0
jmp case.0x404faf.93
mov byte [0x4a8c31], 0
test byte [0x4a9d1d], 3
jne 0x40505b
movzx ecx, byte [0x4a6365]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
push 2
call fcn.0040ee80
add esp, 0x18
jmp 0x40505b
test al, al
jne 0x405020
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 0x4065a8
cmp al, 1
je 0x405028
cmp al, 2
jne 0x40505b
cmp dword [0x4a9eb0], 0
jne 0x406584
push 0
push str.32768
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x40505b
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4abd28]
je 0x406584
mov edx, dword [0x4a8c2c]
test edx, edx
je 0x405090
cmp edx, esi
je 0x405090
test bl, bl
jne 0x405090
mov ecx, dword [0x4a9e50]
cmp dword [ebp + 8], ecx
jne 0x405082
xor eax, eax
cmp byte [esi + 4], al
sete al
jmp 0x405086
movzx eax, byte [edx + 4]
test eax, eax
je 0x405096
mov byte [edx + 0x11], 1
jmp 0x405096
mov ecx, dword [0x4a9e50]
cmp byte [esi + 8], 0
jne 0x4050a6
cmp byte [esi + 9], 0
je 0x406590
mov dword [esp + 0x14], 0x3fff
mov dword [esp + 0x3c], 0
test bl, bl
je 0x4050e4
mov al, byte [esi + 0xf]
mov dl, byte [esi + 0xc]
mov byte [esp + 0x1b], al
movzx eax, word [esi + 6]
mov byte [esp + 0x23], dl
mov edx, 0x3fff
mov byte [esi + 0xf], 0
cmp ax, dx
je 0x4050e2
mov dword [esp + 0x14], eax
mov word [esi + 6], dx
test bl, bl
sete al
mov byte [esi + 0xc], al
mov byte [esp + 0x11], 0
cmp dword [ebp + 8], ecx
jne 0x40516f
cmp byte [esi + 4], 0
je 0x40518c
mov ecx, dword [0x4aa650]
cmp byte [ecx + 0xb64c], 0
jne 0x40511a
cmp byte [ecx + 0xb76c], 0
jne 0x40511a
xor eax, eax
jmp 0x40511f
mov eax, 1
cmp byte [ecx + 0xb88c], 0
mov byte [ecx + 0x132c], al
jne 0x40513b
cmp byte [ecx + 0xb9ac], 0
jne 0x40513b
xor eax, eax
jmp 0x405140
mov eax, 1
cmp byte [ecx + 0xb40c], 0
mov byte [ecx + 0x144c], al
jne 0x405162
cmp byte [ecx + 0xb52c], 0
jne 0x405162
xor eax, eax
mov byte [ecx + 0x120c], al
jmp 0x40518c
mov eax, 1
mov byte [ecx + 0x120c], al
jmp 0x40518c
test ecx, ecx
jne 0x40518c
push 1
call fcn.00411400
add esp, 4
mov byte [0x4a9d1e], al
mov byte [0x4a9d1d], al
mov byte [esp + 0x11], 1
mov eax, dword [esi]
test eax, eax
je 0x40519c
cmp dword [eax], 7
mov byte [esp + 0x1a], 1
je 0x4051a1
mov byte [esp + 0x1a], 0
mov al, byte [esi + 8]
test al, al
je 0x405329
test bl, bl
jne 0x405329
mov ecx, dword [0x4a8c2c]
test ecx, ecx
je 0x4051cb
cmp byte [esi + 9], bl
je 0x4051cb
cmp esi, ecx
jne 0x405329
cmp al, 1
jne 0x4051fb
cmp byte [esp + 0x28], 0
mov eax, dword [esp + 0x34]
jne 0x4051de
movzx eax, byte [ebp + 0x18]
mov ecx, dword [esp + 0x28]
push ecx
push eax
call fcn.00409ee0
add esp, 8
test al, al
je 0x4051fb
mov byte [esp + 0x12], 1
mov dl, byte [esp + 0x12]
jmp 0x405212
xor dl, dl
mov byte [esp + 0x12], dl
cmp esi, dword [0x4a8c2c]
je 0x405212
mov dword [0x4a8c2c], esi
mov byte [esi + 0x11], dl
cmp byte [esi + 9], 0
je 0x4052c0
cmp byte [esp + 0x11], 0
jne 0x405236
push 1
mov byte [esp + 0x15], 1
call fcn.00411400
mov dl, byte [esp + 0x16]
add esp, 4
mov al, byte [esi + 4]
mov cl, byte [0x4a9d1e]
test al, al
je 0x405247
not al
and cl, al
test cl, cl
jne 0x405255
test dl, dl
jne 0x405255
test byte [esi + 0xb], 1
je 0x4052c0
mov eax, dword [ebp + 8]
cmp eax, dword [0x4a9e50]
jne 0x405278
cmp byte [esp + 0x28], 0
je 0x405278
mov eax, dword [0x4aa648]
movzx ecx, cl
shl ecx, 9
add ecx, dword [esp + 0x34]
jmp 0x405289
movzx eax, byte [ebp + 0x18]
movzx ecx, cl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4aa644]
movzx eax, word [eax + ecx*2]
mov dword [esp + 0x14], eax
test eax, 0x4000
je 0x40529e
mov word [esi + 6], ax
jmp 0x4052cc
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4a7554]
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x4052c0
mov ecx, dword [0x4aa64c]
mov ax, word [ecx + eax*2]
mov word [esi + 6], ax
mov ecx, 0x3fff
cmp word [esp + 0x14], cx
jne 0x405329
test dl, dl
je 0x4052d8
or byte [esi + 0xb], 8
mov byte [edi + 4], 0x23
cmp byte [esi + 4], 0
jne 0x40530e
test byte [esi + 0xb], 1
jne 0x40530e
cmp byte [esp + 0x1a], 0
jne 0x40530e
test dl, dl
jne 0x40530e
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
jmp 0x404e01
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 0x4065a5
cmp byte [esi + 9], 0
mov byte [esp + 0x13], 0
je 0x40539e
test bl, bl
je 0x40539e
cmp dword [0x4a8c2c], esi
jne 0x405351
cmp byte [esp + 0x1b], 0
je 0x40539e
mov dword [0x4a8c2c], 0
cmp byte [esi + 0xa], 0
jne 0x405399
mov al, byte [esi + 0xb]
test al, 8
je 0x405367
xor cl, cl
and al, 0xf7
mov byte [esi + 0xb], al
jmp 0x405369
mov cl, 1
cmp byte [esp + 0x1b], 0
je 0x40548b
test cl, cl
je 0x40548b
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 0x404e01
mov byte [esp + 0x13], 1
cmp byte [esi + 8], 0
je 0x405551
test bl, bl
je 0x405551
cmp dword [0x4a8c2c], esi
jne 0x4053c2
mov dword [0x4a8c2c], 0
cmp byte [esi + 0xd], 0
je 0x4053e3
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
mov byte [esi + 0xd], 0
call fcn.0040ee80
add esp, 0x18
cmp byte [esi + 0xe], 0
je 0x405404
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
mov byte [esi + 0xe], 0
call fcn.0040ee80
add esp, 0x18
mov ecx, dword [esp + 0x14]
mov edx, 0x3fff
cmp cx, dx
jne 0x405438
mov al, byte [esi + 0xb]
test al, 8
je 0x405438
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 0x4065a5
cmp byte [esp + 0x1a], 0
mov al, byte [esi + 0x11]
je 0x4054a5
cmp al, 2
jne 0x405487
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
push 0xffc3d44e
push 0
push 0
push ebx
push esi
push 1
call fcn.0040ee80
push 0xffc3d44d
push 0
push 0
push ebx
push esi
push 2
call fcn.0040ee80
mov eax, dword [ebp + 0x20]
push 0
push SysReAllocString
push 0x3fff
push eax
push ebx
push esi
jmp 0x404ea7
cmp al, 1
jne 0x4054f0
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 0x4065a5
test al, al
je 0x4054f0
cmp cx, dx
jne 0x4054f0
cmp byte [esi + 4], 0
je 0x4054e3
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp al, 2
mov eax, dword [ebp + 0x10]
jne 0x4054d2
push 1
push 0x3fff
push edi
push ebx
push eax
push ecx
push edx
jmp 0x4065a5
push 0
push 0x3fff
push edi
push ebx
push eax
push ecx
push edx
jmp 0x4065a5
test byte [esi + 0xb], 1
push 0
je 0x405517
jmp 0x405420
cmp byte [esi + 9], 0
jne 0x40552a
cmp byte [esi + 4], 0
jne 0x40541e
test byte [esi + 0xb], 1
jne 0x40541e
cmp byte [esp + 0x1a], 0
jne 0x40541e
push 0
mov eax, dword [ebp + 0x20]
push SysReAllocString
push 0x3fff
push eax
jmp 0x404df9
cmp byte [esp + 0x23], 0
jne 0x405555
cmp byte [esi + 0xa], 0
jne 0x405555
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 0x4065a5
mov ecx, dword [esp + 0x14]
cmp byte [esp + 0x11], 0
jne 0x405570
mov eax, 0x3fff
cmp cx, ax
jne 0x405570
push 1
call fcn.00411400
add esp, 4
cmp dword [0x4a8c2c], 0
mov byte [esp + 0x12], 0
je 0x405c1b
cmp byte [ebp + 0x20], 0
je 0x405592
cmp byte [esi + 0xa], 0
je 0x405c1b
mov edx, dword [esp + 0x14]
mov ecx, 0x3fff
cmp dx, cx
jne 0x405e9c
mov edi, dword [esp + 0x1c]
cmp byte [edi + 0x13], 0
mov dword [esp + 0x2c], 0
jbe 0x405668
lea esi, [edi + 0x16]
lea ecx, [ecx]
mov cl, byte [esi]
mov ebx, dword [0x4aa650]
movzx eax, cl
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + ebx + 0xc], 0
je 0x405636
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x40562a
cmp byte [ebp + 0x20], 0
jne 0x405650
mov ecx, 0x3fff
mov word [edi + 6], ax
cmp dx, cx
je 0x405636
mov dword [esp + 0x14], edx
movzx ecx, byte [esp + 0x11]
mov eax, ecx
sub eax, 0x10
je 0x405735
dec eax
je 0x405716
dec eax
je 0x4056f7
lea ebx, [ecx + ecx*8]
shl ebx, 5
add ebx, dword [0x4aa650]
jmp 0x4056dc
cmp byte [ebp + 0x20], 0
jne 0x405636
mov edx, eax
mov byte [esp + 0x11], cl
mov eax, dword [esp + 0x2c]
movzx ecx, byte [edi + 0x13]
inc eax
add esi, 4
mov dword [esp + 0x2c], eax
cmp eax, ecx
jl 0x4055c0
jmp 0x40565a
mov al, byte [esi]
movzx edx, word [esi + 2]
mov byte [esp + 0x11], al
mov ecx, 0x3fff
mov dword [esp + 0x14], edx
cmp dx, cx
jne 0x4055fb
cmp byte [edi + 0x14], 0
mov dword [esp + 0x2c], 0
jbe 0x405799
lea esi, [edi + 0xde]
movzx ecx, word [esi]
mov ebx, dword [0x4aa654]
mov eax, ecx
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + ebx + 0xc], 0
je 0x405762
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x405754
cmp byte [ebp + 0x20], 0
jne 0x40577c
mov ecx, 0x3fff
mov word [edi + 6], ax
cmp dx, cx
je 0x405762
mov dword [esp + 0x14], edx
movzx eax, word [esp + 0x38]
lea ebx, [eax + eax*8]
shl ebx, 5
add ebx, dword [0x4aa654]
mov edx, 0x3fff
mov dword [0x4a8c2c], ebx
cmp word [esp + 0x14], dx
jne case.default.0x4057b1
jmp 0x40579f
mov ecx, dword [0x4aa650]
xor eax, eax
cmp byte [ecx + 0xb9ac], al
setne al
lea ebx, [eax + eax*8 + 0x5c4]
shl ebx, 5
add ebx, ecx
jmp 0x4056dc
mov ecx, dword [0x4aa650]
xor eax, eax
cmp byte [ecx + 0xb76c], al
setne al
lea ebx, [eax + eax*8 + 0x5b2]
shl ebx, 5
add ebx, ecx
jmp 0x4056dc
mov ecx, dword [0x4aa650]
xor eax, eax
cmp byte [ecx + 0xb52c], al
setne al
lea ebx, [eax + eax*8 + 0x5a0]
shl ebx, 5
add ebx, ecx
jmp 0x4056dc
cmp byte [ebp + 0x20], 0
jne 0x405762
mov edx, eax
mov eax, ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x2c]
movzx ecx, byte [edi + 0x14]
inc eax
add esi, 4
mov dword [esp + 0x2c], eax
cmp eax, ecx
jl 0x405680
jmp 0x405787
movzx eax, word [esi]
movzx edx, word [esi + 2]
mov dword [esp + 0x38], eax
mov ecx, 0x3fff
mov dword [esp + 0x14], edx
cmp dx, cx
jne 0x4056cb
mov ebx, dword [0x4a8c2c]
movzx eax, byte [ebp + 0x18]
add eax, 0xffffff60
cmp eax, 5
ja case.default.0x4057b1
jmp dword [eax*4 + 0x4066b4]
mov al, 0x11
jmp 0x4057c2
mov al, 0x12
jmp 0x4057c2
mov al, 0x10
mov ecx, dword [0x4aa650]
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 + 0x2c], esi
test edx, edx
jle 0x405854
add esi, 0x16
mov cl, byte [esi]
mov ebx, dword [0x4aa650]
movzx eax, cl
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + ebx + 0xc], 0
je 0x405832
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x405824
cmp byte [ebp + 0x20], 0
jne 0x40583c
mov ecx, dword [esp + 0x1c]
mov word [ecx + 6], ax
mov eax, 0x3fff
cmp word [esp + 0x14], ax
jne 0x405864
jmp 0x405832
cmp byte [ebp + 0x20], 0
jne 0x405832
mov dword [esp + 0x14], eax
mov byte [esp + 0x11], cl
inc edi
add esi, 4
cmp edi, edx
jl 0x4057e5
jmp 0x40584a
movzx ecx, word [esi + 2]
mov dl, byte [esi]
mov dword [esp + 0x14], ecx
mov byte [esp + 0x11], dl
mov esi, dword [esp + 0x2c]
mov ebx, dword [0x4a8c2c]
mov eax, 0x3fff
cmp word [esp + 0x14], ax
je 0x4058ed
movzx ecx, byte [esp + 0x11]
mov eax, ecx
sub eax, 0x10
je 0x4058cb
dec eax
je 0x4058a9
dec eax
je 0x405887
lea ebx, [ecx + ecx*8]
shl ebx, 5
add ebx, dword [0x4aa650]
jmp 0x405989
mov ecx, dword [0x4aa650]
xor eax, eax
cmp byte [ecx + 0xb9ac], al
setne al
lea ebx, [eax + eax*8 + 0x5c4]
shl ebx, 5
add ebx, ecx
jmp 0x405989
mov ecx, dword [0x4aa650]
xor eax, eax
cmp byte [ecx + 0xb76c], al
setne al
lea ebx, [eax + eax*8 + 0x5b2]
shl ebx, 5
add ebx, ecx
jmp 0x405989
mov ecx, dword [0x4aa650]
xor eax, eax
cmp byte [ecx + 0xb52c], al
setne al
lea ebx, [eax + eax*8 + 0x5a0]
shl ebx, 5
add ebx, ecx
jmp 0x405989
movzx eax, byte [esi + 0x14]
xor edi, edi
mov dword [esp + 0x2c], eax
test eax, eax
jle case.default.0x4057b1
add esi, 0xde
movzx ecx, word [esi]
mov eax, ecx
lea edx, [eax + eax*8]
mov eax, dword [0x4aa654]
shl edx, 5
cmp byte [edx + eax + 0xc], 0
je 0x405951
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x405943
cmp byte [ebp + 0x20], 0
jne 0x40595d
mov ecx, dword [esp + 0x1c]
mov edx, 0x3fff
mov word [ecx + 6], ax
cmp word [esp + 0x14], dx
jne 0x405978
jmp 0x405951
cmp byte [ebp + 0x20], 0
jne 0x405951
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], ecx
inc edi
add esi, 4
cmp edi, dword [esp + 0x2c]
jl 0x405905
jmp 0x40596c
movzx edx, word [esi + 2]
movzx eax, word [esi]
mov dword [esp + 0x14], edx
mov dword [esp + 0x38], eax
mov ecx, 0x3fff
cmp word [esp + 0x14], cx
je case.default.0x4057b1
movzx eax, word [esp + 0x38]
lea ebx, [eax + eax*8]
shl ebx, 5
add ebx, dword [0x4aa654]
mov dword [0x4a8c2c], ebx
mov eax, dword [esp + 0x14]
mov esi, eax
mov ecx, 0x3fff
and esi, 0x3fff
cmp ax, cx
je 0x405a0e
mov edx, dword [0x4a7554]
cmp si, word [edx]
jae 0x405a0a
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov edi, dword [ebp + 0x24]
push eax
lea edx, [esp + 0x18]
add ecx, 0xb
push edx
lea esi, [ebx + 4]
lea eax, [esp + 0x1a]
call fcn.0040a130
add esp, 8
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x4059fa
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 0x4065a5
mov esi, dword [esp + 0x14]
mov ebx, dword [0x4a8c2c]
and esi, 0x3fff
mov byte [ebx + 0x11], 2
mov ecx, 0x3ffe
cmp si, cx
je 0x405a26
mov edx, 0x3ffd
cmp si, dx
jne 0x405c1b
cmp byte [ebp + 0x20], 0
jne 0x405a34
mov eax, dword [esp + 0x1c]
mov byte [eax + 0xf], 1
test byte [0x4a9d1d], 0xc
jne 0x405a5a
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040ee80
mov ebx, dword [0x4a8c2c]
add esp, 0x18
mov al, byte [ebp + 0x18]
cmp al, 0xa2
je 0x405a65
cmp al, 0xa3
jne 0x405a8e
cmp byte [ebp + 0x20], 0
jne 0x405a8e
mov edi, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push edi
push ecx
push 1
call fcn.0040ee80
mov ebx, dword [0x4a8c2c]
add esp, 0x18
jmp 0x405a91
mov edi, dword [ebp + 0x1c]
mov edx, 0x3ffd
mov byte [ebx + 0xd], 1
cmp si, dx
jne 0x405ace
test byte [0x4a9d1d], 0x30
jne 0x405ac5
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040ee80
mov ebx, dword [0x4a8c2c]
add esp, 0x18
mov byte [ebx + 0xe], 1
jmp 0x405b47
mov eax, 0x3ffe
cmp si, ax
jne 0x405b47
mov al, byte [ebp + 0x18]
cmp al, 0xa0
je 0x405ae3
cmp al, 0xa1
jne 0x405b01
cmp byte [ebp + 0x20], 0
jne 0x405b01
mov ecx, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push edi
push ecx
push 1
call fcn.0040ee80
add esp, 0x18
test byte [0x4a9d1d], 0x10
je 0x405b24
push 0xffc3d44d
push 0
push 0
push 0
push 0xa0
push 1
call fcn.0040ee80
add esp, 0x18
test byte [0x4a9d1d], 0x20
je 0x405b47
push 0xffc3d44d
push 0
push 0
push 0
push 0xa1
push 1
call fcn.0040ee80
add esp, 0x18
test byte [0x4a9d1d], 1
je 0x405b6a
push 0xffc3d44d
push 0
push 0
push 0
push 0xa2
push 1
call fcn.0040ee80
add esp, 0x18
test byte [0x4a9d1d], 2
je 0x405b8d
push 0xffc3d44d
push 0
push 0
push 0
push 0xa3
push 1
call fcn.0040ee80
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040ee80
mov edx, 0x3ffd
add esp, 0x18
cmp si, dx
jne 0x405be9
mov eax, dword [0x4a8c2c]
cmp byte [eax + 0xe], 0
je 0x405be9
mov al, byte [ebp + 0x18]
cmp al, 0x60
jb 0x405bc4
cmp al, 0x69
jbe 0x405bc8
cmp al, 0x6e
jne 0x405be9
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040ee80
mov ecx, dword [0x4a8c2c]
add esp, 0x18
mov byte [ecx + 0xe], 0
cmp byte [ebp + 0x20], 0
mov eax, dword [esp + 0x24]
mov byte [eax + 4], 0x68
jne 0x405bff
mov edx, dword [esp + 0x1c]
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 0x404e03
mov eax, 0x3fff
cmp word [esp + 0x14], ax
jne 0x405e9c
mov ecx, dword [esp + 0x1c]
mov cl, byte [ecx + 4]
mov al, byte [0x4a9d1e]
test cl, cl
je 0x405c3f
not cl
and al, cl
mov esi, dword [0x4a9e50]
mov edi, dword [ebp + 8]
cmp edi, esi
jne 0x405c6c
cmp byte [esp + 0x28], 0
je 0x405c6c
mov ecx, dword [0x4aa648]
movzx edx, al
shl edx, 9
add edx, dword [esp + 0x34]
movzx ecx, word [ecx + edx*2]
mov dl, byte [ebp + 0x18]
jmp 0x405c84
mov dl, byte [ebp + 0x18]
movzx ecx, al
movzx ebx, dl
shl ecx, 8
add ecx, ebx
mov ebx, dword [0x4aa644]
movzx ecx, word [ebx + ecx*2]
mov ebx, 0x3fff
mov dword [esp + 0x14], ecx
cmp cx, bx
jne 0x405cf8
cmp byte [0x4a8c30], 0
je 0x405cf8
cmp dl, 9
je 0x405cf8
and al, 0xf3
cmp edi, esi
jne 0x405cc2
cmp byte [esp + 0x28], 0
je 0x405cc2
movzx edx, al
mov eax, dword [0x4aa648]
shl edx, 9
add edx, dword [esp + 0x34]
movzx ecx, word [eax + edx*2]
jmp 0x405cd6
movzx ecx, al
mov eax, dword [0x4aa644]
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 + 0x14], ecx
cmp ax, dx
jbe 0x405cf2
mov edx, ebx
cmp ax, dx
jb 0x405cf8
mov ecx, ebx
mov dword [esp + 0x14], ecx
test ecx, 0x4000
je 0x405d46
cmp byte [ebp + 0x20], 0
jne 0x405de8
mov eax, dword [esp + 0x1c]
mov word [eax + 6], cx
mov eax, dword [esp + 0x1c]
add eax, 6
mov ecx, 0x3fff
cmp word [eax], cx
jne 0x405e5a
mov edx, dword [esp + 0x24]
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 0x4065a5
mov edx, ebx
cmp cx, dx
je 0x405df6
mov edx, dword [0x4a7554]
mov eax, ecx
and eax, 0x3fff
cmp byte [ebp + 0x20], 0
je 0x405dcb
cmp ax, word [edx]
jae 0x405dc2
mov edx, dword [0x4aa64c]
mov ebx, eax
add ebx, ebx
mov eax, 0x3fff
cmp word [ebx + edx], ax
je 0x405dc2
cmp byte [esp + 0x13], 0
jne 0x405db3
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
mov edi, dword [ebp + 0x24]
push eax
lea edx, [esp + 0x18]
add ecx, 0xb
push edx
add esi, 4
lea eax, [esp + 0x1a]
call fcn.0040a130
add esp, 8
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x405de4
mov eax, dword [0x4aa64c]
movzx ecx, word [ebx + eax]
mov dword [esp + 0x14], ecx
jmp 0x405de8
cmp byte [esp + 0x13], 0
jne 0x405df6
jmp 0x405de8
cmp ax, word [edx]
jae 0x405de8
mov edx, dword [0x4aa64c]
mov ax, word [edx + eax*2]
mov edx, dword [esp + 0x1c]
mov word [edx + 6], ax
jmp 0x405de8
mov ecx, dword [esp + 0x14]
mov eax, 0x3fff
cmp cx, ax
jne 0x405e9c
mov ecx, dword [ebp + 0x20]
test cl, cl
je 0x405d12
mov eax, dword [esp + 0x1c]
cmp byte [eax + 4], 0
jne 0x405e3c
test byte [eax + 0xb], 1
jne 0x405e3c
cmp byte [eax + 8], 0
je 0x405e3c
cmp byte [esp + 0x1a], 0
jne 0x405e3c
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ebx, dword [esp + 0x24]
push 0
push SysReAllocString
push 0x3fff
push ecx
push edx
push eax
jmp 0x404e03
mov edx, dword [esp + 0x24]
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 0x4065a5
mov ecx, dword [esp + 0x1c]
push 1
push eax
add ecx, 0xb
xor esi, esi
lea eax, [esp + 0x1a]
xor edi, edi
call fcn.0040a130
add esp, 8
cmp byte [esp + 0x12], 0
push edi
jne 0x405f97
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov ebx, dword [esp + 0x28]
push SysReAllocString
push 0x3fff
push edi
push ecx
push edx
jmp 0x404e03
mov ebx, dword [esp + 0x1c]
mov al, byte [ebx + 0xb]
mov dl, byte [0x4a9d1d]
add ebx, 0xb
mov dword [esp + 0x38], ebx
test al, 8
je 0x405ec3
cmp byte [ebp + 0x20], 0
je 0x405ec3
and al, 0xf7
mov byte [esp + 0x12], 1
mov byte [ebx], al
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4a7554]
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x405fe6
cmp dword [esp + 0x3c], 0
jne 0x405fe6
mov edx, dword [ebp + 0x20]
mov esi, dword [esp + 0x24]
mov edi, dword [ebp + 0x24]
push edx
lea eax, [esp + 0x18]
push eax
add esi, 4
lea eax, [esp + 0x1a]
mov ecx, ebx
call fcn.0040a130
add esp, 8
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x405fe0
mov eax, dword [ebp + 0x20]
test al, al
je 0x405f60
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 0x10], 0
push 0
je 0x405f44
mov ecx, dword [ebp + 0x18]
mov ebx, dword [esp + 0x28]
push SysReAllocString
push 0x3fff
mov edx, eax
mov eax, dword [ebp + 0x1c]
push edx
push eax
push ecx
jmp 0x404e03
mov edx, dword [esp + 0x28]
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 0x4065a5
mov eax, dword [esp + 0x1c]
add eax, 6
mov ecx, 0x3fff
cmp word [eax], cx
je 0x405d27
push 1
push eax
xor esi, esi
lea eax, [esp + 0x1a]
mov ecx, ebx
xor edi, edi
mov byte [esp + 0x1a], 0
call fcn.0040a130
add esp, 8
cmp byte [esp + 0x12], 0
push edi
je 0x405fb4
mov eax, dword [esp + 0x28]
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 0x4065a5
mov eax, dword [esp + 0x3c]
mov edx, dword [ebp + 0x1c]
and byte [eax], 0xf7
mov ecx, dword [esp + 0x20]
mov eax, dword [ebp + 0x18]
mov ebx, dword [esp + 0x28]
push SysReAllocString
push 0x3fff
push 0
push edx
mov byte [ecx + 0x10], 1
push eax
jmp 0x404e03
mov dl, byte [0x4a9d1d]
mov edi, dword [esp + 0x14]
mov esi, dword [ebp + 8]
mov ecx, dword [0x4a9e50]
and edi, 0x3fff
cmp esi, ecx
jne 0x406032
test dl, 0x3f
jne 0x406053
mov eax, dword [0x4aa650]
test dl, 0x40
je 0x40601c
cmp byte [eax + 0x6668], 0
jne 0x40601c
mov byte [0x4a8c34], 1
test dl, dl
jns 0x406058
cmp byte [eax + 0x6788], 0
jne 0x406058
mov byte [0x4a8c33], 1
jmp 0x406058
test dl, 0xc
jne 0x406053
mov eax, dword [0x4aa650]
test dl, 0x40
je 0x40601c
cmp byte [eax + 0x6668], 0
jne 0x40601c
mov byte [0x4a8c34], 1
jmp 0x406058
mov eax, dword [0x4aa650]
test dl, 4
je 0x406088
cmp byte [eax + 0xb888], 0
jne 0x406088
test ecx, ecx
je 0x406073
mov byte [0x4a8c32], 1
jmp 0x4060d4
movzx ecx, byte [0x4a6365]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
jmp 0x4060c4
test dl, 8
je 0x4060d4
cmp byte [eax + 0xb9a8], 0
jne 0x4060d4
call fcn.004118f0
test al, al
jne 0x4060ce
cmp dword [0x4a9e50], 0
je 0x4060b1
mov byte [0x4a8c31], 1
jmp 0x4060ce
movzx edx, byte [0x4a6365]
push 0xffc3d44d
push 0
push 0
push 0
push edx
push 2
call fcn.0040ee80
add esp, 0x18
mov dl, byte [0x4a9d1d]
mov eax, edi
lea ecx, [eax - 0x3ffa]
cmp ecx, 4
ja case.default.0x4060e5
jmp dword [ecx*4 + 0x4066cc]
cmp byte [0x4a8c30], 0
jne case.0x4060e5.16379
mov eax, dword [esp + 0x24]
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 0x4065a5
xor al, al
mov byte [esp + 0x13], al
test dl, 4
je 0x406122
mov al, 0xa4
jmp 0x406129
test dl, 8
je 0x40612d
mov al, 0xa5
mov byte [esp + 0x13], al
cmp byte [0x4a8c30], 0
je 0x4061a3
mov ecx, 0x3ffb
cmp di, cx
je case.0x4060e5.16381
test al, al
movzx eax, al
jne 0x406150
mov eax, 0x12
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040ee80
mov edx, dword [esp + 0x34]
add esp, 0x18
cmp byte [edx + 4], 0
je 0x406197
mov eax, dword [ebp + 0x18]
cmp al, 0x5b
je 0x406197
cmp al, 0x5c
je 0x406197
cmp byte [ebp + 0x20], 0
jne 0x406197
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040ee80
add esp, 0x18
mov byte [0x4a8c30], 0
jmp 0x40640c
mov cl, byte [ebp + 0x18]
cmp cl, 0xa4
je 0x4061b5
mov byte [esp + 0x11], 0
cmp cl, 0xa5
jne 0x4061ba
mov byte [esp + 0x11], 1
cmp cl, 0xa0
je 0x4061c8
cmp cl, 0xa1
je 0x4061c8
xor bl, bl
jmp 0x4061ca
mov bl, 1
mov byte [esp + 0x23], bl
cmp cl, 0xa2
je 0x4061dd
mov byte [esp + 0x1b], 0
cmp cl, 0xa3
jne 0x4061e2
mov byte [esp + 0x1b], 1
xor al, al
test byte [0x4a9d1d], 0x10
mov byte [esp + 0x34], al
je 0x4061f5
mov al, 0xa0
jmp 0x40620e
test byte [0x4a9d1d], 0x20
je 0x406202
mov al, 0xa1
jmp 0x40620e
cmp byte [ebp + 0x20], 0
jne 0x406212
test bl, bl
je 0x406212
mov al, cl
mov byte [esp + 0x34], al
mov dl, byte [0x4a9d1d]
mov byte [esp + 0x28], 0
test dl, 1
je 0x406229
mov byte [esp + 0x28], 0xa2
jmp 0x406246
test dl, 2
je 0x406235
mov byte [esp + 0x28], 0xa3
jmp 0x406246
cmp byte [ebp + 0x20], 0
jne 0x406246
cmp byte [esp + 0x1b], 0
je 0x406246
mov byte [esp + 0x28], cl
mov esi, dword [esp + 0x34]
xor bl, bl
test al, al
je 0x40626b
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 1
call fcn.0040ee80
mov cl, byte [ebp + 0x18]
add esp, 0x18
mov bl, 1
cmp byte [esp + 0x28], 0
je 0x40628f
mov eax, dword [esp + 0x28]
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040ee80
mov cl, byte [ebp + 0x18]
add esp, 0x18
cmp byte [esp + 0x11], 0
je 0x40629e
cmp byte [ebp + 0x20], 0
jne 0x4062a6
jmp 0x4062a2
mov cl, byte [esp + 0x13]
test cl, cl
jne 0x4062bd
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040ee80
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040ee80
add esp, 0x18
test bl, bl
je 0x4062f5
cmp byte [esp + 0x23], 0
jne 0x4062f5
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 0
call fcn.0040ee80
add esp, 0x18
mov byte [0x4a8c30], 1
jmp 0x40640c
cmp byte [0x4a8c30], 0
jne 0x406328
mov ecx, dword [esp + 0x24]
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 0x4065a5
cmp byte [ebp + 0x20], 0
mov ebx, dword [ebp + 0x18]
jne 0x406361
cmp bl, 0xa2
je 0x406345
cmp bl, 0xa3
je 0x406345
cmp bl, 0xa0
je 0x406345
cmp bl, 0xa1
jne 0x406361
push 0xffc3d44d
push 0
push 0
push 0
push ebx
push 1
call fcn.0040ee80
mov dl, byte [0x4a9d1d]
add esp, 0x18
test dl, 0xc
je 0x406376
cmp byte [ebp + 0x20], 0
je 0x406393
cmp bl, 0xa4
je 0x406376
cmp bl, 0xa5
jne 0x406393
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040ee80
mov dl, byte [0x4a9d1d]
add esp, 0x18
mov eax, 0x3ffd
xor bl, bl
cmp di, ax
jne 0x4063bd
test dl, 0x30
jne 0x4063bd
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040ee80
add esp, 0x18
mov bl, 1
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040ee80
add esp, 0x18
test bl, bl
je 0x40640c
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040ee80
add esp, 0x18
jmp 0x40640c
mov ecx, dword [esp + 0x3c]
cmp byte [ecx + 0x1e], 5
mov dword [esp + 0x30], eax
jne 0x40640c
mov edx, ecx
movzx eax, word [edx + 0x1c]
shl eax, 0x10
or dword [esp + 0x30], eax
cmp byte [esp + 0x1a], 0
mov ebx, dword [esp + 0x24]
mov ecx, dword [ebp + 0x20]
mov esi, dword [esp + 0x1c]
mov byte [ebx + 4], 0x68
je 0x406471
test cl, cl
je 0x4064ca
cmp byte [esi + 8], 0
je 0x406471
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
push 0xffc3d44e
push 0
push 0
push esi
push edi
push 1
call fcn.0040ee80
push 0xffc3d44d
push 0
push 0
push esi
push edi
push 2
call fcn.0040ee80
mov ecx, dword [esp + 0x60]
mov edx, dword [ebp + 0x20]
push 0
push SysReAllocString
push ecx
push edx
push esi
push edi
jmp 0x404ea9
test cl, cl
je 0x4064ca
cmp byte [esi + 4], 0
je 0x40649f
cmp byte [esi + 0x10], 0
jne 0x406567
mov edx, dword [esp + 0x30]
mov eax, dword [ebp + 0x10]
push 1
push edx
mov edx, dword [ebp + 8]
push ebx
push ecx
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push edx
jmp 0x4065a5
cmp byte [esp + 0x12], 0
je 0x40655f
mov edx, dword [esp + 0x30]
mov eax, dword [ebp + 8]
cmp eax, dword [0x4a9e54]
push 0
push edx
mov edx, dword [ebp + 0xc]
push ebx
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
push edx
push eax
jmp 0x4065a5
mov eax, dword [0x4a8c2c]
mov byte [esi + 0xf], 1
test eax, eax
je 0x4064e1
cmp byte [eax + 4], 0
je 0x4064e1
mov byte [eax + 0x11], 2
cmp byte [esp + 0x12], 0
je 0x406509
mov eax, dword [esp + 0x38]
or byte [eax], 8
mov eax, dword [esp + 0x30]
mov edx, dword [ebp + 0xc]
push 0
push eax
mov eax, dword [ebp + 8]
push ebx
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
push edx
push eax
jmp 0x4065a5
mov eax, dword [ebp + 0x18]
cmp al, 0xa4
je 0x406514
cmp al, 0xa5
jne 0x40655f
mov cl, byte [0x4a9d1d]
test cl, 0xc0
je 0x406544
test cl, 0x33
jne 0x406544
movzx ecx, byte [0x4a6365]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
push 2
call fcn.0040ee80
mov eax, dword [ebp + 0x18]
add esp, 0x18
mov edx, dword [ebp + 0x1c]
push 0xffc3d44d
push 0
push 0
push edx
push eax
push 1
call fcn.0040ee80
mov ecx, dword [ebp + 0x20]
add esp, 0x18
test cl, cl
jne 0x406567
mov byte [esi + 0x10], 1
mov eax, dword [esp + 0x30]
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 0x404e03
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.00406810
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret