Function at 0x404780
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 0x4047b7
cmp eax, 0xffc3d44e
je 0x4047b7
mov byte [esp + 0xd], 0
cmp eax, 0xffc3d44d
jne 0x4047bc
mov byte [esp + 0xd], 1
mov ecx, dword [0x4a85f4]
test ecx, ecx
jne 0x4047d3
lea edi, [esp + 0x40]
mov dword [esp + 0x20], edi
jmp 0x40487a
mov eax, dword [0x4a85f8]
mov edi, eax
imul edi, edi, 0x70
inc eax
add edi, ecx
mov dword [esp + 0x20], edi
mov dword [0x4a85f8], eax
cmp eax, dword [0x4a43a8]
jl 0x4047fb
mov dword [0x4a85f8], 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 [0x4aa43c]
mov dword [0x4a85fc], eax
mov dword [esp + 0x34], edx
fild dword [esp + 0x34]
jns 0x404829
fadd dword [0x49e830]
fdiv qword [0x49e828]
mov dword [0x4aa43c], eax
fstp dword [edi + 8]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x40486a
cmp esi, dword [0x4a8600]
je 0x404864
mov ecx, dword [0x4a7ce0]
push esi
lea eax, [edi + 0xc]
push eax
push 0x418
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x404871
mov byte [edi + 0xc], 0
jmp 0x404871
mov dword [edi + 0xc], 0x412f4e
mov edx, dword [ebp + 0x28]
mov dword [0x4a8600], esi
mov al, byte [ebp + 0x18]
mov ebx, dword [ebp + 0x20]
cmp al, 0xe7
jne 0x40489c
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 0x4048b0
xor esi, esi
mov dword [ebp + 0x1c], esi
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x4a7e14]
jne 0x4048e0
and dl, 1
mov byte [esp + 0xf], dl
jne 0x4049ec
test bl, bl
setne dl
dec dl
movzx eax, al
and dl, 0x80
mov byte [eax + 0x4a7d00], dl
jmp 0x4049ec
shr edx, 4
and dl, 1
mov byte [esp + 0xf], dl
test esi, 0x100
jne case.0x404920.13
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je case.0x404920.13
movzx eax, byte [ebp + 0x18]
add eax, 0xfffffff4
cmp eax, 0x62
ja case.0x404920.13
movzx ecx, byte [eax + 0x4062b8]
jmp dword [ecx*4 + 0x406288]
test bl, bl
sete dl
mov byte [0x4a6bcc], dl
jmp case.0x404920.13
test bl, bl
sete al
mov byte [0x4a6bcd], al
jmp case.0x404920.13
test bl, bl
sete cl
mov byte [0x4a6bce], cl
jmp case.0x404920.13
test bl, bl
sete dl
mov byte [0x4a6bcf], dl
jmp case.0x404920.13
test bl, bl
sete al
mov byte [0x4a6bd0], al
jmp case.0x404920.13
test bl, bl
sete cl
mov byte [0x4a6bd1], cl
jmp case.0x404920.13
test bl, bl
sete dl
mov byte [0x4a6bd2], dl
jmp case.0x404920.13
test bl, bl
sete al
mov byte [0x4a6bd3], al
jmp case.0x404920.13
test bl, bl
sete cl
mov byte [0x4a6bd4], cl
jmp case.0x404920.13
test bl, bl
sete dl
mov byte [0x4a6bd5], dl
jmp case.0x404920.13
test bl, bl
sete al
mov byte [0x4a6bd6], al
movzx esi, byte [ebp + 0x18]
mov edx, dword [0x4a8618]
lea ecx, [esi + esi*8]
shl ecx, 5
cmp byte [ecx + edx + 4], 0
jne 0x4049ec
test byte [ebp + 0x28], 0x10
jne 0x4049ec
mov al, byte [ebp + 0x18]
push ebx
call fcn.00407680
add esp, 4
test al, al
je 0x4049ec
test bl, bl
setne al
dec al
and al, 0x80
mov byte [esi + 0x4a7d00], al
cmp byte [esp + 0xd], 0
je 0x4049f7
mov al, 0x69
jmp 0x404a03
mov al, byte [esp + 0xf]
neg al
sbb al, al
and al, 0x41
add al, 0x20
cmp byte [0x4a7e00], 0
mov byte [edi + 4], al
je 0x404a4b
mov al, byte [ebp + 0x18]
cmp al, 0x5b
je 0x404a1a
cmp al, 0x5c
jne 0x404a4b
test bl, bl
jne 0x404a4b
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.004063b0
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x4a6bf0], 0
je 0x404af1
cmp byte [ebp + 0x18], 0x1b
jne 0x404af1
test bl, bl
jne 0x404af1
push 0
push str.32771
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x404af1
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 0x404af1
push 0xffc3d44d
push 0
push 0
push 0
push 0x1b
push 0
call fcn.0040e9d0
mov al, byte [0x4a7cdd]
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.0040e9d0
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.004063b0
add esp, 0x48
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [ebp + 0x1c]
mov ecx, dword [0x4a7e10]
mov dword [esp + 0x34], eax
lea eax, [eax + eax*8]
shl eax, 5
add eax, dword [0x4a861c]
mov dl, byte [eax + 0x12]
mov byte [esp + 0x2b], dl
cmp dword [ebp + 8], ecx
jne 0x404b22
test dl, dl
je 0x404b22
mov esi, eax
mov al, byte [ebp + 0x18]
jmp 0x404b34
mov al, byte [ebp + 0x18]
movzx esi, al
lea esi, [esi + esi*8]
shl esi, 5
add esi, dword [0x4a8618]
cmp byte [esp + 0xd], 0
mov dword [esp + 0x18], esi
je 0x404b73
cmp dword [ebp + 0x24], 0xffc3d44e
jne 0x40625b
test bl, bl
je 0x40625b
cmp dword [0x4a6bec], esi
jne 0x40625b
mov byte [esi + 0xc], 0
mov dword [0x4a6bec], 0
jmp 0x406257
test bl, bl
jne 0x404b83
mov edx, 0x3fff
mov byte [esi + 0x10], bl
mov word [esi + 6], dx
cmp dword [ebp + 8], ecx
jne 0x404c33
test bl, bl
je 0x404c8e
cmp byte [0x4a6bf4], 0
je 0x404ba1
cmp al, 0x5b
je 0x404bd0
cmp byte [0x4a6bf3], 0
je 0x404bae
cmp al, 0x5c
je 0x404bd0
cmp byte [0x4a6bf2], 0
je 0x404bbb
cmp al, 0xa4
je 0x404bd0
cmp byte [0x4a6bf1], 0
je 0x404c8e
cmp al, 0xa5
jne 0x404c8e
movzx eax, al
add eax, 0xffffffa5
cmp eax, 0x4a
ja case.0x404be2.93
movzx eax, byte [eax + 0x406330]
jmp dword [eax*4 + 0x40631c]
mov byte [0x4a6bf4], 0
jmp case.0x404be2.93
mov byte [0x4a6bf3], 0
jmp case.0x404be2.93
mov byte [0x4a6bf2], 0
jmp case.0x404be2.93
mov byte [0x4a6bf1], 0
test byte [0x4a7cdd], 3
jne 0x404c8e
movzx ecx, byte [0x4a4365]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
push 2
call fcn.0040e9d0
add esp, 0x18
jmp 0x404c8e
test al, al
jne 0x404c53
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 0x406273
cmp al, 1
je 0x404c5b
cmp al, 2
jne 0x404c8e
cmp dword [0x4a7e70], 0
jne 0x40624f
push 0
push str.32768
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x404c8e
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4a9cf0]
je 0x40624f
mov edx, dword [0x4a6bec]
test edx, edx
je 0x404cc3
cmp edx, esi
je 0x404cc3
test bl, bl
jne 0x404cc3
mov ecx, dword [0x4a7e10]
cmp dword [ebp + 8], ecx
jne 0x404cb5
xor eax, eax
cmp byte [esi + 4], al
sete al
jmp 0x404cb9
movzx eax, byte [edx + 4]
test eax, eax
je 0x404cc9
mov byte [edx + 0x11], 1
jmp 0x404cc9
mov ecx, dword [0x4a7e10]
cmp byte [esi + 8], 0
jne 0x404cd9
cmp byte [esi + 9], 0
je 0x40625b
mov byte [esp + 0x2f], 0
mov dword [esp + 0x10], 0x3fff
mov dword [esp + 0x3c], 0
test bl, bl
je 0x404d21
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 0x404d1f
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 0x404dac
cmp byte [esi + 4], 0
je 0x404dc9
mov ecx, dword [0x4a8618]
cmp byte [ecx + 0xb64c], 0
jne 0x404d57
cmp byte [ecx + 0xb76c], 0
jne 0x404d57
xor eax, eax
jmp 0x404d5c
mov eax, 1
cmp byte [ecx + 0xb88c], 0
mov byte [ecx + 0x132c], al
jne 0x404d78
cmp byte [ecx + 0xb9ac], 0
jne 0x404d78
xor eax, eax
jmp 0x404d7d
mov eax, 1
cmp byte [ecx + 0xb40c], 0
mov byte [ecx + 0x144c], al
jne 0x404d9f
cmp byte [ecx + 0xb52c], 0
jne 0x404d9f
xor eax, eax
mov byte [ecx + 0x120c], al
jmp 0x404dc9
mov eax, 1
mov byte [ecx + 0x120c], al
jmp 0x404dc9
test ecx, ecx
jne 0x404dc9
push 1
call fcn.00410fc0
add esp, 4
mov byte [0x4a7cde], al
mov byte [0x4a7cdd], al
mov byte [esp + 0xd], 1
mov eax, dword [esi]
test eax, eax
je 0x404dd9
cmp dword [eax], 7
mov byte [esp + 0x17], 1
je 0x404dde
mov byte [esp + 0x17], 0
mov al, byte [esi + 8]
test al, al
je 0x404f62
test bl, bl
jne 0x404f62
mov ecx, dword [0x4a6bec]
test ecx, ecx
je 0x404e08
cmp byte [esi + 9], bl
je 0x404e08
cmp esi, ecx
jne 0x404f62
cmp al, 1
jne 0x404e38
cmp byte [esp + 0x2b], 0
mov eax, dword [esp + 0x34]
jne 0x404e1b
movzx eax, byte [ebp + 0x18]
mov ecx, dword [esp + 0x2b]
push ecx
push eax
call fcn.004099e0
add esp, 8
test al, al
je 0x404e38
mov byte [esp + 0xe], 1
mov dl, byte [esp + 0xe]
jmp 0x404e4f
xor dl, dl
mov byte [esp + 0xe], dl
cmp esi, dword [0x4a6bec]
je 0x404e4f
mov dword [0x4a6bec], esi
mov byte [esi + 0x11], dl
cmp byte [esi + 9], 0
je 0x404efd
cmp byte [esp + 0xd], 0
jne 0x404e73
push 1
mov byte [esp + 0x11], 1
call fcn.00410fc0
mov dl, byte [esp + 0x12]
add esp, 4
mov al, byte [esi + 4]
mov cl, byte [0x4a7cde]
test al, al
je 0x404e84
not al
and cl, al
test cl, cl
jne 0x404e92
test dl, dl
jne 0x404e92
test byte [esi + 0xb], 1
je 0x404efd
mov eax, dword [ebp + 8]
cmp eax, dword [0x4a7e10]
jne 0x404eb5
cmp byte [esp + 0x2b], 0
je 0x404eb5
mov eax, dword [0x4a8610]
movzx ecx, cl
shl ecx, 9
add ecx, dword [esp + 0x34]
jmp 0x404ec6
movzx eax, byte [ebp + 0x18]
movzx ecx, cl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4a860c]
movzx eax, word [eax + ecx*2]
mov dword [esp + 0x10], eax
test eax, 0x4000
je 0x404edb
mov word [esi + 6], ax
jmp 0x404f09
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4a5538]
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x404efd
mov ecx, dword [0x4a8614]
mov ax, word [ecx + eax*2]
mov word [esi + 6], ax
mov ecx, 0x3fff
cmp word [esp + 0x10], cx
jne 0x404f62
test dl, dl
je 0x404f15
or byte [esi + 0xb], 8
mov byte [edi + 4], 0x23
cmp byte [esi + 4], 0
jne 0x404f47
test byte [esi + 0xb], 1
jne 0x404f47
cmp byte [esp + 0x17], 0
jne 0x404f47
test dl, dl
jne 0x404f47
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push 0
push SysReAllocString
push 0x3fff
push 0
push edx
push eax
jmp 0x404a34
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 0x406270
cmp byte [esi + 9], 0
mov byte [esp + 0xf], 0
je 0x404fd7
test bl, bl
je 0x404fd7
cmp dword [0x4a6bec], esi
jne 0x404f8a
cmp byte [esp + 0x1e], 0
je 0x404fd7
mov dword [0x4a6bec], 0
cmp byte [esi + 0xa], 0
jne 0x404fd2
mov al, byte [esi + 0xb]
test al, 8
je 0x404fa0
xor cl, cl
and al, 0xf7
mov byte [esi + 0xb], al
jmp 0x404fa2
mov cl, 1
cmp byte [esp + 0x1e], 0
je 0x4050c4
test cl, cl
je 0x4050c4
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 0x404a34
mov byte [esp + 0xf], 1
cmp byte [esi + 8], 0
je 0x40518a
test bl, bl
je 0x40518a
cmp dword [0x4a6bec], esi
jne 0x404ffb
mov dword [0x4a6bec], 0
cmp byte [esi + 0xd], 0
je 0x40501c
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
mov byte [esi + 0xd], 0
call fcn.0040e9d0
add esp, 0x18
cmp byte [esi + 0xe], 0
je 0x40503d
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
mov byte [esi + 0xe], 0
call fcn.0040e9d0
add esp, 0x18
mov ecx, dword [esp + 0x10]
mov edx, 0x3fff
cmp cx, dx
jne 0x405071
mov al, byte [esi + 0xb]
test al, 8
je 0x405071
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 0x406270
cmp byte [esp + 0x17], 0
mov al, byte [esi + 0x11]
je 0x4050de
cmp al, 2
jne 0x4050c0
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
push 0xffc3d44e
push 0
push 0
push ebx
push esi
push 1
call fcn.0040e9d0
push 0xffc3d44d
push 0
push 0
push ebx
push esi
push 2
call fcn.0040e9d0
mov eax, dword [ebp + 0x20]
push 0
push SysReAllocString
push 0x3fff
push eax
push ebx
push esi
jmp 0x404ada
cmp al, 1
jne 0x405129
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 0x406270
test al, al
je 0x405129
cmp cx, dx
jne 0x405129
cmp byte [esi + 4], 0
je 0x40511c
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp al, 2
mov eax, dword [ebp + 0x10]
jne 0x40510b
push 1
push 0x3fff
push edi
push ebx
push eax
push ecx
push edx
jmp 0x406270
push 0
push 0x3fff
push edi
push ebx
push eax
push ecx
push edx
jmp 0x406270
test byte [esi + 0xb], 1
push 0
je 0x405150
jmp 0x405059
cmp byte [esi + 9], 0
jne 0x405163
cmp byte [esi + 4], 0
jne 0x405057
test byte [esi + 0xb], 1
jne 0x405057
cmp byte [esp + 0x17], 0
jne 0x405057
push 0
mov eax, dword [ebp + 0x20]
push SysReAllocString
push 0x3fff
push eax
jmp 0x404a2c
cmp byte [esp + 0x1f], 0
jne 0x40518e
cmp byte [esi + 0xa], 0
jne 0x40518e
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 0x406270
mov ecx, dword [esp + 0x10]
cmp byte [esp + 0xd], 0
jne 0x4051a9
mov eax, 0x3fff
cmp cx, ax
jne 0x4051a9
push 1
call fcn.00410fc0
add esp, 4
cmp dword [0x4a6bec], 0
mov byte [esp + 0xe], 0
je 0x405858
cmp byte [ebp + 0x20], 0
je 0x4051cb
cmp byte [esi + 0xa], 0
je 0x405858
mov edx, dword [esp + 0x10]
mov ecx, 0x3fff
cmp dx, cx
jne 0x405ad9
mov edi, dword [esp + 0x18]
cmp byte [edi + 0x13], 0
mov dword [esp + 0x30], 0
jbe 0x4052a8
lea esi, [edi + 0x16]
jmp 0x405200
mov cl, byte [esi]
mov ebx, dword [0x4a8618]
movzx eax, cl
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + ebx + 0xc], 0
je 0x405276
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x40526a
cmp byte [ebp + 0x20], 0
jne 0x405290
mov ecx, 0x3fff
mov word [edi + 6], ax
cmp dx, cx
je 0x405276
mov dword [esp + 0x10], edx
movzx ecx, byte [esp + 0xd]
mov eax, ecx
sub eax, 0x10
je 0x405375
dec eax
je 0x405356
dec eax
je 0x405337
lea ebx, [ecx + ecx*8]
shl ebx, 5
add ebx, dword [0x4a8618]
jmp 0x40531c
cmp byte [ebp + 0x20], 0
jne 0x405276
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 0x405200
jmp 0x40529a
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 0x40523b
cmp byte [edi + 0x14], 0
mov dword [esp + 0x30], 0
jbe 0x4053d9
lea esi, [edi + 0xde]
movzx ecx, word [esi]
mov ebx, dword [0x4a861c]
mov eax, ecx
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + ebx + 0xc], 0
je 0x4053a2
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x405394
cmp byte [ebp + 0x20], 0
jne 0x4053bc
mov ecx, 0x3fff
mov word [edi + 6], ax
cmp dx, cx
je 0x4053a2
mov dword [esp + 0x10], edx
movzx eax, word [esp + 0x38]
lea ebx, [eax + eax*8]
shl ebx, 5
add ebx, dword [0x4a861c]
mov edx, 0x3fff
mov dword [0x4a6bec], ebx
cmp word [esp + 0x10], dx
jne case.default.0x4053f1
jmp 0x4053df
mov ecx, dword [0x4a8618]
xor eax, eax
cmp byte [ecx + 0xb9ac], al
setne al
lea ebx, [eax + eax*8 + 0x5c4]
shl ebx, 5
add ebx, ecx
jmp 0x40531c
mov ecx, dword [0x4a8618]
xor eax, eax
cmp byte [ecx + 0xb76c], al
setne al
lea ebx, [eax + eax*8 + 0x5b2]
shl ebx, 5
add ebx, ecx
jmp 0x40531c
mov ecx, dword [0x4a8618]
xor eax, eax
cmp byte [ecx + 0xb52c], al
setne al
lea ebx, [eax + eax*8 + 0x5a0]
shl ebx, 5
add ebx, ecx
jmp 0x40531c
cmp byte [ebp + 0x20], 0
jne 0x4053a2
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 0x4052c0
jmp 0x4053c7
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 0x40530b
mov ebx, dword [0x4a6bec]
movzx eax, byte [ebp + 0x18]
add eax, 0xffffff60
cmp eax, 5
ja case.default.0x4053f1
jmp dword [eax*4 + 0x40637c]
mov al, 0x11
jmp 0x405402
mov al, 0x12
jmp 0x405402
mov al, 0x10
mov ecx, dword [0x4a8618]
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 0x405494
add esi, 0x16
mov cl, byte [esi]
mov ebx, dword [0x4a8618]
movzx eax, cl
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + ebx + 0xc], 0
je 0x405472
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x405464
cmp byte [ebp + 0x20], 0
jne 0x40547c
mov ecx, dword [esp + 0x18]
mov word [ecx + 6], ax
mov eax, 0x3fff
cmp word [esp + 0x10], ax
jne 0x4054a4
jmp 0x405472
cmp byte [ebp + 0x20], 0
jne 0x405472
mov dword [esp + 0x10], eax
mov byte [esp + 0xd], cl
inc edi
add esi, 4
cmp edi, edx
jl 0x405425
jmp 0x40548a
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 [0x4a6bec]
mov eax, 0x3fff
cmp word [esp + 0x10], ax
je 0x40552d
movzx ecx, byte [esp + 0xd]
mov eax, ecx
sub eax, 0x10
je 0x40550b
dec eax
je 0x4054e9
dec eax
je 0x4054c7
lea ebx, [ecx + ecx*8]
shl ebx, 5
add ebx, dword [0x4a8618]
jmp 0x4055c9
mov ecx, dword [0x4a8618]
xor eax, eax
cmp byte [ecx + 0xb9ac], al
setne al
lea ebx, [eax + eax*8 + 0x5c4]
shl ebx, 5
add ebx, ecx
jmp 0x4055c9
mov ecx, dword [0x4a8618]
xor eax, eax
cmp byte [ecx + 0xb76c], al
setne al
lea ebx, [eax + eax*8 + 0x5b2]
shl ebx, 5
add ebx, ecx
jmp 0x4055c9
mov ecx, dword [0x4a8618]
xor eax, eax
cmp byte [ecx + 0xb52c], al
setne al
lea ebx, [eax + eax*8 + 0x5a0]
shl ebx, 5
add ebx, ecx
jmp 0x4055c9
movzx eax, byte [esi + 0x14]
xor edi, edi
mov dword [esp + 0x30], eax
test eax, eax
jle case.default.0x4053f1
add esi, 0xde
movzx ecx, word [esi]
mov eax, ecx
lea edx, [eax + eax*8]
mov eax, dword [0x4a861c]
shl edx, 5
cmp byte [edx + eax + 0xc], 0
je 0x405591
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x405583
cmp byte [ebp + 0x20], 0
jne 0x40559d
mov ecx, dword [esp + 0x18]
mov edx, 0x3fff
mov word [ecx + 6], ax
cmp word [esp + 0x10], dx
jne 0x4055b8
jmp 0x405591
cmp byte [ebp + 0x20], 0
jne 0x405591
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], ecx
inc edi
add esi, 4
cmp edi, dword [esp + 0x30]
jl 0x405545
jmp 0x4055ac
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.0x4053f1
movzx eax, word [esp + 0x38]
lea ebx, [eax + eax*8]
shl ebx, 5
add ebx, dword [0x4a861c]
mov dword [0x4a6bec], ebx
mov eax, dword [esp + 0x10]
mov esi, eax
mov ecx, 0x3fff
and esi, 0x3fff
cmp ax, cx
je 0x40564e
mov edx, dword [0x4a5538]
cmp si, word [edx]
jae 0x40564a
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.00409c40
add esp, 8
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x40563a
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 0x406270
mov esi, dword [esp + 0x10]
mov ebx, dword [0x4a6bec]
and esi, 0x3fff
mov byte [ebx + 0x11], 2
mov ecx, 0x3ffe
cmp si, cx
je 0x405666
mov edx, 0x3ffd
cmp si, dx
jne 0x405858
cmp byte [ebp + 0x20], 0
jne 0x405674
mov eax, dword [esp + 0x18]
mov byte [eax + 0xf], 1
test byte [0x4a7cdd], 0xc
jne 0x40569a
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040e9d0
mov ebx, dword [0x4a6bec]
add esp, 0x18
mov al, byte [ebp + 0x18]
cmp al, 0xa2
je 0x4056a5
cmp al, 0xa3
jne 0x4056ce
cmp byte [ebp + 0x20], 0
jne 0x4056ce
mov edi, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push edi
push ecx
push 1
call fcn.0040e9d0
mov ebx, dword [0x4a6bec]
add esp, 0x18
jmp 0x4056d1
mov edi, dword [ebp + 0x1c]
mov edx, 0x3ffd
mov byte [ebx + 0xd], 1
cmp si, dx
jne 0x40570b
test byte [0x4a7cdd], 0x30
jne 0x405705
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040e9d0
mov ebx, dword [0x4a6bec]
add esp, 0x18
mov byte [ebx + 0xe], 1
jmp 0x405784
mov eax, 0x3ffe
cmp si, ax
jne 0x405784
mov al, byte [ebp + 0x18]
cmp al, 0xa0
je 0x405720
cmp al, 0xa1
jne 0x40573e
cmp byte [ebp + 0x20], 0
jne 0x40573e
mov ecx, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push edi
push ecx
push 1
call fcn.0040e9d0
add esp, 0x18
test byte [0x4a7cdd], 0x10
je 0x405761
push 0xffc3d44d
push 0
push 0
push 0
push 0xa0
push 1
call fcn.0040e9d0
add esp, 0x18
test byte [0x4a7cdd], 0x20
je 0x405784
push 0xffc3d44d
push 0
push 0
push 0
push 0xa1
push 1
call fcn.0040e9d0
add esp, 0x18
test byte [0x4a7cdd], 1
je 0x4057a7
push 0xffc3d44d
push 0
push 0
push 0
push 0xa2
push 1
call fcn.0040e9d0
add esp, 0x18
test byte [0x4a7cdd], 2
je 0x4057ca
push 0xffc3d44d
push 0
push 0
push 0
push 0xa3
push 1
call fcn.0040e9d0
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040e9d0
mov edx, 0x3ffd
add esp, 0x18
cmp si, dx
jne 0x405826
mov eax, dword [0x4a6bec]
cmp byte [eax + 0xe], 0
je 0x405826
mov al, byte [ebp + 0x18]
cmp al, 0x60
jb 0x405801
cmp al, 0x69
jbe 0x405805
cmp al, 0x6e
jne 0x405826
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040e9d0
mov ecx, dword [0x4a6bec]
add esp, 0x18
mov byte [ecx + 0xe], 0
cmp byte [ebp + 0x20], 0
mov eax, dword [esp + 0x20]
mov byte [eax + 4], 0x68
jne 0x40583c
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 0x404a36
mov eax, 0x3fff
cmp word [esp + 0x10], ax
jne 0x405ad9
mov ecx, dword [esp + 0x18]
mov cl, byte [ecx + 4]
mov al, byte [0x4a7cde]
test cl, cl
je 0x40587c
not cl
and al, cl
mov esi, dword [0x4a7e10]
mov edi, dword [ebp + 8]
cmp edi, esi
jne 0x4058a9
cmp byte [esp + 0x2b], 0
je 0x4058a9
mov ecx, dword [0x4a8610]
movzx edx, al
shl edx, 9
add edx, dword [esp + 0x34]
movzx ecx, word [ecx + edx*2]
mov dl, byte [ebp + 0x18]
jmp 0x4058c1
mov dl, byte [ebp + 0x18]
movzx ecx, al
movzx ebx, dl
shl ecx, 8
add ecx, ebx
mov ebx, dword [0x4a860c]
movzx ecx, word [ebx + ecx*2]
mov ebx, 0x3fff
mov dword [esp + 0x10], ecx
cmp cx, bx
jne 0x405935
cmp byte [0x4a6bf0], 0
je 0x405935
cmp dl, 9
je 0x405935
and al, 0xf3
cmp edi, esi
jne 0x4058ff
cmp byte [esp + 0x2b], 0
je 0x4058ff
movzx edx, al
mov eax, dword [0x4a8610]
shl edx, 9
add edx, dword [esp + 0x34]
movzx ecx, word [eax + edx*2]
jmp 0x405913
movzx ecx, al
mov eax, dword [0x4a860c]
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 0x40592f
mov edx, ebx
cmp ax, dx
jb 0x405935
mov ecx, ebx
mov dword [esp + 0x10], ecx
test ecx, 0x4000
je 0x405983
cmp byte [ebp + 0x20], 0
jne 0x405a25
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 0x405a97
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 0x406270
mov edx, ebx
cmp cx, dx
je 0x405a33
mov edx, dword [0x4a5538]
mov eax, ecx
and eax, 0x3fff
cmp byte [ebp + 0x20], 0
je 0x405a08
cmp ax, word [edx]
jae 0x4059ff
mov edx, dword [0x4a8614]
mov ebx, eax
add ebx, ebx
mov eax, 0x3fff
cmp word [ebx + edx], ax
je 0x4059ff
cmp byte [esp + 0xf], 0
jne 0x4059f0
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.00409c40
add esp, 8
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x405a21
mov eax, dword [0x4a8614]
movzx ecx, word [ebx + eax]
mov dword [esp + 0x10], ecx
jmp 0x405a25
cmp byte [esp + 0xf], 0
jne 0x405a33
jmp 0x405a25
cmp ax, word [edx]
jae 0x405a25
mov edx, dword [0x4a8614]
mov ax, word [edx + eax*2]
mov edx, dword [esp + 0x18]
mov word [edx + 6], ax
jmp 0x405a25
mov ecx, dword [esp + 0x10]
mov eax, 0x3fff
cmp cx, ax
jne 0x405ad9
mov ecx, dword [ebp + 0x20]
test cl, cl
je 0x40594f
mov eax, dword [esp + 0x18]
cmp byte [eax + 4], 0
jne 0x405a79
test byte [eax + 0xb], 1
jne 0x405a79
cmp byte [eax + 8], 0
je 0x405a79
cmp byte [esp + 0x17], 0
jne 0x405a79
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 0x404a36
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 0x406270
mov ecx, dword [esp + 0x18]
push 1
push eax
add ecx, 0xb
xor esi, esi
lea eax, [esp + 0x16]
xor edi, edi
call fcn.00409c40
add esp, 8
cmp byte [esp + 0xe], 0
push edi
jne 0x405bd4
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 0x404a36
mov ebx, dword [esp + 0x18]
mov al, byte [ebx + 0xb]
mov dl, byte [0x4a7cdd]
add ebx, 0xb
mov dword [esp + 0x38], ebx
test al, 8
je 0x405b00
cmp byte [ebp + 0x20], 0
je 0x405b00
and al, 0xf7
mov byte [esp + 0xe], 1
mov byte [ebx], al
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4a5538]
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x405c23
cmp dword [esp + 0x3c], 0
jne 0x405c23
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.00409c40
add esp, 8
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x405c1d
mov eax, dword [ebp + 0x20]
test al, al
je 0x405b9d
mov ecx, dword [esp + 0x18]
cmp byte [ecx + 0x10], 0
push 0
je 0x405b81
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 0x404a36
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 0x406270
mov eax, dword [esp + 0x18]
add eax, 6
mov ecx, 0x3fff
cmp word [eax], cx
je 0x405964
push 1
push eax
xor esi, esi
lea eax, [esp + 0x16]
mov ecx, ebx
xor edi, edi
mov byte [esp + 0x16], 0
call fcn.00409c40
add esp, 8
cmp byte [esp + 0xe], 0
push edi
je 0x405bf1
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 0x406270
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 0x404a36
mov dl, byte [0x4a7cdd]
mov edi, dword [esp + 0x10]
mov esi, dword [ebp + 8]
mov ecx, dword [0x4a7e10]
and edi, 0x3fff
cmp esi, ecx
jne 0x405c6f
test dl, 0x3f
jne 0x405c90
mov eax, dword [0x4a8618]
test dl, 0x40
je 0x405c59
cmp byte [eax + 0x6668], 0
jne 0x405c59
mov byte [0x4a6bf4], 1
test dl, dl
jns 0x405c95
cmp byte [eax + 0x6788], 0
jne 0x405c95
mov byte [0x4a6bf3], 1
jmp 0x405c95
test dl, 0xc
jne 0x405c90
mov eax, dword [0x4a8618]
test dl, 0x40
je 0x405c59
cmp byte [eax + 0x6668], 0
jne 0x405c59
mov byte [0x4a6bf4], 1
jmp 0x405c95
mov eax, dword [0x4a8618]
test dl, 4
je 0x405cc5
cmp byte [eax + 0xb888], 0
jne 0x405cc5
test ecx, ecx
je 0x405cb0
mov byte [0x4a6bf2], 1
jmp 0x405d11
movzx ecx, byte [0x4a4365]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
jmp 0x405d01
test dl, 8
je 0x405d11
cmp byte [eax + 0xb9a8], 0
jne 0x405d11
call fcn.00411480
test al, al
jne 0x405d0b
cmp dword [0x4a7e10], 0
je 0x405cee
mov byte [0x4a6bf1], 1
jmp 0x405d0b
movzx edx, byte [0x4a4365]
push 0xffc3d44d
push 0
push 0
push 0
push edx
push 2
call fcn.0040e9d0
add esp, 0x18
mov dl, byte [0x4a7cdd]
mov eax, edi
lea ecx, [eax - 0x3ffa]
cmp ecx, 4
ja case.default.0x405d22
jmp dword [ecx*4 + 0x406394]
cmp byte [0x4a6bf0], 0
jne case.0x405d22.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 0x406270
xor al, al
mov byte [esp + 0xf], al
test dl, 4
je 0x405d5f
mov al, 0xa4
jmp 0x405d66
test dl, 8
je 0x405d6a
mov al, 0xa5
mov byte [esp + 0xf], al
cmp byte [0x4a6bf0], 0
je 0x405de0
mov ecx, 0x3ffb
cmp di, cx
je case.0x405d22.16381
test al, al
movzx eax, al
jne 0x405d8d
mov eax, 0x12
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040e9d0
mov edx, dword [esp + 0x30]
add esp, 0x18
cmp byte [edx + 4], 0
je 0x405dd4
mov eax, dword [ebp + 0x18]
cmp al, 0x5b
je 0x405dd4
cmp al, 0x5c
je 0x405dd4
cmp byte [ebp + 0x20], 0
jne 0x405dd4
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040e9d0
add esp, 0x18
mov byte [0x4a6bf0], 0
jmp 0x406047
mov cl, byte [ebp + 0x18]
cmp cl, 0xa4
je 0x405df2
mov byte [esp + 0xd], 0
cmp cl, 0xa5
jne 0x405df7
mov byte [esp + 0xd], 1
cmp cl, 0xa0
je 0x405e05
cmp cl, 0xa1
je 0x405e05
xor bl, bl
jmp 0x405e07
mov bl, 1
mov byte [esp + 0x1f], bl
cmp cl, 0xa2
je 0x405e1a
mov byte [esp + 0x1e], 0
cmp cl, 0xa3
jne 0x405e1f
mov byte [esp + 0x1e], 1
xor al, al
test byte [0x4a7cdd], 0x10
mov byte [esp + 0x34], al
je 0x405e32
mov al, 0xa0
jmp 0x405e4b
test byte [0x4a7cdd], 0x20
je 0x405e3f
mov al, 0xa1
jmp 0x405e4b
cmp byte [ebp + 0x20], 0
jne 0x405e4f
test bl, bl
je 0x405e4f
mov al, cl
mov byte [esp + 0x34], al
mov dl, byte [0x4a7cdd]
mov byte [esp + 0x2b], 0
test dl, 1
je 0x405e66
mov byte [esp + 0x2b], 0xa2
jmp 0x405e83
test dl, 2
je 0x405e72
mov byte [esp + 0x2b], 0xa3
jmp 0x405e83
cmp byte [ebp + 0x20], 0
jne 0x405e83
cmp byte [esp + 0x1e], 0
je 0x405e83
mov byte [esp + 0x2b], cl
mov esi, dword [esp + 0x34]
xor bl, bl
test al, al
je 0x405ea8
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 1
call fcn.0040e9d0
mov cl, byte [ebp + 0x18]
add esp, 0x18
mov bl, 1
cmp byte [esp + 0x2b], 0
je 0x405ecc
mov eax, dword [esp + 0x2b]
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040e9d0
mov cl, byte [ebp + 0x18]
add esp, 0x18
cmp byte [esp + 0xd], 0
je 0x405edb
cmp byte [ebp + 0x20], 0
jne 0x405ee3
jmp 0x405edf
mov cl, byte [esp + 0xf]
test cl, cl
jne 0x405efa
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040e9d0
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040e9d0
add esp, 0x18
test bl, bl
je 0x405f32
cmp byte [esp + 0x1f], 0
jne 0x405f32
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 0
call fcn.0040e9d0
add esp, 0x18
mov byte [0x4a6bf0], 1
jmp 0x406047
cmp byte [0x4a6bf0], 0
jne 0x405f65
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 0x406270
cmp byte [ebp + 0x20], 0
mov ebx, dword [ebp + 0x18]
jne 0x405f9e
cmp bl, 0xa2
je 0x405f82
cmp bl, 0xa3
je 0x405f82
cmp bl, 0xa0
je 0x405f82
cmp bl, 0xa1
jne 0x405f9e
push 0xffc3d44d
push 0
push 0
push 0
push ebx
push 1
call fcn.0040e9d0
mov dl, byte [0x4a7cdd]
add esp, 0x18
test dl, 0xc
je 0x405fb3
cmp byte [ebp + 0x20], 0
je 0x405fd0
cmp bl, 0xa4
je 0x405fb3
cmp bl, 0xa5
jne 0x405fd0
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040e9d0
mov dl, byte [0x4a7cdd]
add esp, 0x18
mov eax, 0x3ffd
xor bl, bl
cmp di, ax
jne 0x405ffa
test dl, 0x30
jne 0x405ffa
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040e9d0
add esp, 0x18
mov bl, 1
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040e9d0
add esp, 0x18
test bl, bl
je 0x406047
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040e9d0
add esp, 0x18
jmp 0x406047
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
cmp byte [eax + 0x1e], 5
jne 0x406047
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 0x4060ac
test bl, bl
je 0x406195
cmp byte [ecx + 8], 0
je 0x4060ac
mov esi, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
push 0xffc3d44e
push 0
push 0
push esi
push ebx
push 1
call fcn.0040e9d0
push 0xffc3d44d
push 0
push 0
push esi
push ebx
push 2
call fcn.0040e9d0
mov edx, dword [esp + 0x54]
mov eax, dword [ebp + 0x20]
push 0
push SysReAllocString
push edx
push eax
push esi
push ebx
jmp 0x404ada
test bl, bl
je 0x406195
cmp byte [ecx + 4], 0
je 0x4060f7
cmp byte [ecx + 0x10], 0
je 0x4060dd
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 0x404a34
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 0x406270
cmp byte [esp + 0xe], 0
je 0x40622a
mov esi, dword [ebp + 8]
cmp esi, dword [0x4a7e14]
jne 0x406124
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 0x406270
mov eax, dword [ecx]
test eax, eax
je 0x406133
cmp dword [eax], 7
je 0x406133
mov al, 1
jmp 0x406135
xor al, al
cmp byte [ecx + 0x10], 0
je 0x406163
cmp byte [esp + 0x2f], 0
jne 0x406163
test al, al
jne 0x406167
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push eax
push ecx
push 0
call fcn.0040e9d0
add esp, 0x18
jmp 0x40610d
test al, al
je 0x40610d
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.004063b0
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4a6bec]
mov byte [ecx + 0xf], 1
test eax, eax
je 0x4061ac
cmp byte [eax + 4], 0
je 0x4061ac
mov byte [eax + 0x11], 2
cmp byte [esp + 0xe], 0
je 0x4061d4
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 0x406270
mov ebx, dword [ebp + 0x18]
cmp bl, 0xa4
je 0x4061e1
cmp bl, 0xa5
jne 0x406227
mov al, byte [0x4a7cdd]
test al, 0xc0
je 0x40620b
test al, 0x33
jne 0x40620b
movzx ecx, byte [0x4a4365]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
push 2
call fcn.0040e9d0
add esp, 0x18
mov edx, dword [ebp + 0x1c]
push 0xffc3d44d
push 0
push 0
push edx
push ebx
push 1
call fcn.0040e9d0
mov ecx, dword [esp + 0x30]
add esp, 0x18
mov ebx, dword [ebp + 0x20]
test bl, bl
jne 0x406232
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 0x404a34
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.004064e0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret