Function at 0x4047b0
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 0x4047e7
cmp eax, 0xffc3d44e
je 0x4047e7
mov byte [esp + 0xd], 0
cmp eax, 0xffc3d44d
jne 0x4047ec
mov byte [esp + 0xd], 1
mov ecx, dword [0x4a7584]
test ecx, ecx
jne 0x404803
lea edi, [esp + 0x40]
mov dword [esp + 0x20], edi
jmp 0x4048aa
mov eax, dword [0x4a7588]
mov edi, eax
imul edi, edi, 0x70
inc eax
add edi, ecx
mov dword [esp + 0x20], edi
mov dword [0x4a7588], eax
cmp eax, dword [0x4a33a8]
jl 0x40482b
mov dword [0x4a7588], 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 [0x4a94cc]
mov dword [0x4a758c], eax
mov dword [esp + 0x34], edx
fild dword [esp + 0x34]
jns 0x404859
fadd dword [0x49d6b8]
fdiv qword [0x49d6b0]
mov dword [0x4a94cc], eax
fstp dword [edi + 8]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x40489a
cmp esi, dword [0x4a7590]
je 0x404894
mov ecx, dword [0x4a6c70]
push esi
lea eax, [edi + 0xc]
push eax
push 0x418
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4048a1
mov byte [edi + 0xc], 0
jmp 0x4048a1
mov dword [edi + 0xc], 0x412f4e
mov edx, dword [ebp + 0x28]
mov dword [0x4a7590], esi
mov al, byte [ebp + 0x18]
mov ebx, dword [ebp + 0x20]
cmp al, 0xe7
jne 0x4048cc
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 0x4048e0
xor esi, esi
mov dword [ebp + 0x1c], esi
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x4a6da4]
jne 0x404910
and dl, 1
mov byte [esp + 0xf], dl
jne 0x404a1c
test bl, bl
setne dl
dec dl
movzx eax, al
and dl, 0x80
mov byte [eax + 0x4a6c90], dl
jmp 0x404a1c
shr edx, 4
and dl, 1
mov byte [esp + 0xf], dl
test esi, 0x100
jne case.0x404950.13
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je case.0x404950.13
movzx eax, byte [ebp + 0x18]
add eax, 0xfffffff4
cmp eax, 0x62
ja case.0x404950.13
movzx ecx, byte [eax + 0x4062e8]
jmp dword [ecx*4 + 0x4062b8]
test bl, bl
sete dl
mov byte [0x4a5b64], dl
jmp case.0x404950.13
test bl, bl
sete al
mov byte [0x4a5b65], al
jmp case.0x404950.13
test bl, bl
sete cl
mov byte [0x4a5b66], cl
jmp case.0x404950.13
test bl, bl
sete dl
mov byte [0x4a5b67], dl
jmp case.0x404950.13
test bl, bl
sete al
mov byte [0x4a5b68], al
jmp case.0x404950.13
test bl, bl
sete cl
mov byte [0x4a5b69], cl
jmp case.0x404950.13
test bl, bl
sete dl
mov byte [0x4a5b6a], dl
jmp case.0x404950.13
test bl, bl
sete al
mov byte [0x4a5b6b], al
jmp case.0x404950.13
test bl, bl
sete cl
mov byte [0x4a5b6c], cl
jmp case.0x404950.13
test bl, bl
sete dl
mov byte [0x4a5b6d], dl
jmp case.0x404950.13
test bl, bl
sete al
mov byte [0x4a5b6e], al
movzx esi, byte [ebp + 0x18]
mov edx, dword [0x4a75a8]
lea ecx, [esi + esi*8]
shl ecx, 5
cmp byte [ecx + edx + 4], 0
jne 0x404a1c
test byte [ebp + 0x28], 0x10
jne 0x404a1c
mov al, byte [ebp + 0x18]
push ebx
call fcn.004076b0
add esp, 4
test al, al
je 0x404a1c
test bl, bl
setne al
dec al
and al, 0x80
mov byte [esi + 0x4a6c90], al
cmp byte [esp + 0xd], 0
je 0x404a27
mov al, 0x69
jmp 0x404a33
mov al, byte [esp + 0xf]
neg al
sbb al, al
and al, 0x41
add al, 0x20
cmp byte [0x4a6d90], 0
mov byte [edi + 4], al
je 0x404a7b
mov al, byte [ebp + 0x18]
cmp al, 0x5b
je 0x404a4a
cmp al, 0x5c
jne 0x404a7b
test bl, bl
jne 0x404a7b
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.004063e0
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x4a5b88], 0
je 0x404b21
cmp byte [ebp + 0x18], 0x1b
jne 0x404b21
test bl, bl
jne 0x404b21
push 0
push str.32771
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x404b21
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 0x404b21
push 0xffc3d44d
push 0
push 0
push 0
push 0x1b
push 0
call fcn.0040ea30
mov al, byte [0x4a6c6d]
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.0040ea30
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.004063e0
add esp, 0x48
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [ebp + 0x1c]
mov ecx, dword [0x4a6da0]
mov dword [esp + 0x34], eax
lea eax, [eax + eax*8]
shl eax, 5
add eax, dword [0x4a75ac]
mov dl, byte [eax + 0x12]
mov byte [esp + 0x2b], dl
cmp dword [ebp + 8], ecx
jne 0x404b52
test dl, dl
je 0x404b52
mov esi, eax
mov al, byte [ebp + 0x18]
jmp 0x404b64
mov al, byte [ebp + 0x18]
movzx esi, al
lea esi, [esi + esi*8]
shl esi, 5
add esi, dword [0x4a75a8]
cmp byte [esp + 0xd], 0
mov dword [esp + 0x18], esi
je 0x404ba3
cmp dword [ebp + 0x24], 0xffc3d44e
jne 0x40628b
test bl, bl
je 0x40628b
cmp dword [0x4a5b84], esi
jne 0x40628b
mov byte [esi + 0xc], 0
mov dword [0x4a5b84], 0
jmp 0x406287
test bl, bl
jne 0x404bb3
mov edx, 0x3fff
mov byte [esi + 0x10], bl
mov word [esi + 6], dx
cmp dword [ebp + 8], ecx
jne 0x404c63
test bl, bl
je 0x404cbe
cmp byte [0x4a5b8c], 0
je 0x404bd1
cmp al, 0x5b
je 0x404c00
cmp byte [0x4a5b8b], 0
je 0x404bde
cmp al, 0x5c
je 0x404c00
cmp byte [0x4a5b8a], 0
je 0x404beb
cmp al, 0xa4
je 0x404c00
cmp byte [0x4a5b89], 0
je 0x404cbe
cmp al, 0xa5
jne 0x404cbe
movzx eax, al
add eax, 0xffffffa5
cmp eax, 0x4a
ja case.0x404c12.93
movzx eax, byte [eax + 0x406360]
jmp dword [eax*4 + 0x40634c]
mov byte [0x4a5b8c], 0
jmp case.0x404c12.93
mov byte [0x4a5b8b], 0
jmp case.0x404c12.93
mov byte [0x4a5b8a], 0
jmp case.0x404c12.93
mov byte [0x4a5b89], 0
test byte [0x4a6c6d], 3
jne 0x404cbe
movzx ecx, byte [0x4a3365]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
push 2
call fcn.0040ea30
add esp, 0x18
jmp 0x404cbe
test al, al
jne 0x404c83
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 0x4062a3
cmp al, 1
je 0x404c8b
cmp al, 2
jne 0x404cbe
cmp dword [0x4a6dfc], 0
jne 0x40627f
push 0
push str.32768
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x404cbe
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4a8c80]
je 0x40627f
mov edx, dword [0x4a5b84]
test edx, edx
je 0x404cf3
cmp edx, esi
je 0x404cf3
test bl, bl
jne 0x404cf3
mov ecx, dword [0x4a6da0]
cmp dword [ebp + 8], ecx
jne 0x404ce5
xor eax, eax
cmp byte [esi + 4], al
sete al
jmp 0x404ce9
movzx eax, byte [edx + 4]
test eax, eax
je 0x404cf9
mov byte [edx + 0x11], 1
jmp 0x404cf9
mov ecx, dword [0x4a6da0]
cmp byte [esi + 8], 0
jne 0x404d09
cmp byte [esi + 9], 0
je 0x40628b
mov byte [esp + 0x2f], 0
mov dword [esp + 0x10], 0x3fff
mov dword [esp + 0x3c], 0
test bl, bl
je 0x404d51
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 0x404d4f
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 0x404ddc
cmp byte [esi + 4], 0
je 0x404df9
mov ecx, dword [0x4a75a8]
cmp byte [ecx + 0xb64c], 0
jne 0x404d87
cmp byte [ecx + 0xb76c], 0
jne 0x404d87
xor eax, eax
jmp 0x404d8c
mov eax, 1
cmp byte [ecx + 0xb88c], 0
mov byte [ecx + 0x132c], al
jne 0x404da8
cmp byte [ecx + 0xb9ac], 0
jne 0x404da8
xor eax, eax
jmp 0x404dad
mov eax, 1
cmp byte [ecx + 0xb40c], 0
mov byte [ecx + 0x144c], al
jne 0x404dcf
cmp byte [ecx + 0xb52c], 0
jne 0x404dcf
xor eax, eax
mov byte [ecx + 0x120c], al
jmp 0x404df9
mov eax, 1
mov byte [ecx + 0x120c], al
jmp 0x404df9
test ecx, ecx
jne 0x404df9
push 1
call fcn.00411020
add esp, 4
mov byte [0x4a6c6e], al
mov byte [0x4a6c6d], al
mov byte [esp + 0xd], 1
mov eax, dword [esi]
test eax, eax
je 0x404e09
cmp dword [eax], 7
mov byte [esp + 0x17], 1
je 0x404e0e
mov byte [esp + 0x17], 0
mov al, byte [esi + 8]
test al, al
je 0x404f92
test bl, bl
jne 0x404f92
mov ecx, dword [0x4a5b84]
test ecx, ecx
je 0x404e38
cmp byte [esi + 9], bl
je 0x404e38
cmp esi, ecx
jne 0x404f92
cmp al, 1
jne 0x404e68
cmp byte [esp + 0x2b], 0
mov eax, dword [esp + 0x34]
jne 0x404e4b
movzx eax, byte [ebp + 0x18]
mov ecx, dword [esp + 0x2b]
push ecx
push eax
call fcn.004099b0
add esp, 8
test al, al
je 0x404e68
mov byte [esp + 0xe], 1
mov dl, byte [esp + 0xe]
jmp 0x404e7f
xor dl, dl
mov byte [esp + 0xe], dl
cmp esi, dword [0x4a5b84]
je 0x404e7f
mov dword [0x4a5b84], esi
mov byte [esi + 0x11], dl
cmp byte [esi + 9], 0
je 0x404f2d
cmp byte [esp + 0xd], 0
jne 0x404ea3
push 1
mov byte [esp + 0x11], 1
call fcn.00411020
mov dl, byte [esp + 0x12]
add esp, 4
mov al, byte [esi + 4]
mov cl, byte [0x4a6c6e]
test al, al
je 0x404eb4
not al
and cl, al
test cl, cl
jne 0x404ec2
test dl, dl
jne 0x404ec2
test byte [esi + 0xb], 1
je 0x404f2d
mov eax, dword [ebp + 8]
cmp eax, dword [0x4a6da0]
jne 0x404ee5
cmp byte [esp + 0x2b], 0
je 0x404ee5
mov eax, dword [0x4a75a0]
movzx ecx, cl
shl ecx, 9
add ecx, dword [esp + 0x34]
jmp 0x404ef6
movzx eax, byte [ebp + 0x18]
movzx ecx, cl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4a759c]
movzx eax, word [eax + ecx*2]
mov dword [esp + 0x10], eax
test eax, 0x4000
je 0x404f0b
mov word [esi + 6], ax
jmp 0x404f39
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4a4538]
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x404f2d
mov ecx, dword [0x4a75a4]
mov ax, word [ecx + eax*2]
mov word [esi + 6], ax
mov ecx, 0x3fff
cmp word [esp + 0x10], cx
jne 0x404f92
test dl, dl
je 0x404f45
or byte [esi + 0xb], 8
mov byte [edi + 4], 0x23
cmp byte [esi + 4], 0
jne 0x404f77
test byte [esi + 0xb], 1
jne 0x404f77
cmp byte [esp + 0x17], 0
jne 0x404f77
test dl, dl
jne 0x404f77
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push 0
push SysReAllocString
push 0x3fff
push 0
push edx
push eax
jmp 0x404a64
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 0x4062a0
cmp byte [esi + 9], 0
mov byte [esp + 0xf], 0
je 0x405007
test bl, bl
je 0x405007
cmp dword [0x4a5b84], esi
jne 0x404fba
cmp byte [esp + 0x1e], 0
je 0x405007
mov dword [0x4a5b84], 0
cmp byte [esi + 0xa], 0
jne 0x405002
mov al, byte [esi + 0xb]
test al, 8
je 0x404fd0
xor cl, cl
and al, 0xf7
mov byte [esi + 0xb], al
jmp 0x404fd2
mov cl, 1
cmp byte [esp + 0x1e], 0
je 0x4050f4
test cl, cl
je 0x4050f4
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 0x404a64
mov byte [esp + 0xf], 1
cmp byte [esi + 8], 0
je 0x4051ba
test bl, bl
je 0x4051ba
cmp dword [0x4a5b84], esi
jne 0x40502b
mov dword [0x4a5b84], 0
cmp byte [esi + 0xd], 0
je 0x40504c
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
mov byte [esi + 0xd], 0
call fcn.0040ea30
add esp, 0x18
cmp byte [esi + 0xe], 0
je 0x40506d
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
mov byte [esi + 0xe], 0
call fcn.0040ea30
add esp, 0x18
mov ecx, dword [esp + 0x10]
mov edx, 0x3fff
cmp cx, dx
jne 0x4050a1
mov al, byte [esi + 0xb]
test al, 8
je 0x4050a1
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 0x4062a0
cmp byte [esp + 0x17], 0
mov al, byte [esi + 0x11]
je 0x40510e
cmp al, 2
jne 0x4050f0
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
push 0xffc3d44e
push 0
push 0
push ebx
push esi
push 1
call fcn.0040ea30
push 0xffc3d44d
push 0
push 0
push ebx
push esi
push 2
call fcn.0040ea30
mov eax, dword [ebp + 0x20]
push 0
push SysReAllocString
push 0x3fff
push eax
push ebx
push esi
jmp 0x404b0a
cmp al, 1
jne 0x405159
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 0x4062a0
test al, al
je 0x405159
cmp cx, dx
jne 0x405159
cmp byte [esi + 4], 0
je 0x40514c
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp al, 2
mov eax, dword [ebp + 0x10]
jne 0x40513b
push 1
push 0x3fff
push edi
push ebx
push eax
push ecx
push edx
jmp 0x4062a0
push 0
push 0x3fff
push edi
push ebx
push eax
push ecx
push edx
jmp 0x4062a0
test byte [esi + 0xb], 1
push 0
je 0x405180
jmp 0x405089
cmp byte [esi + 9], 0
jne 0x405193
cmp byte [esi + 4], 0
jne 0x405087
test byte [esi + 0xb], 1
jne 0x405087
cmp byte [esp + 0x17], 0
jne 0x405087
push 0
mov eax, dword [ebp + 0x20]
push SysReAllocString
push 0x3fff
push eax
jmp 0x404a5c
cmp byte [esp + 0x1f], 0
jne 0x4051be
cmp byte [esi + 0xa], 0
jne 0x4051be
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 0x4062a0
mov ecx, dword [esp + 0x10]
cmp byte [esp + 0xd], 0
jne 0x4051d9
mov eax, 0x3fff
cmp cx, ax
jne 0x4051d9
push 1
call fcn.00411020
add esp, 4
cmp dword [0x4a5b84], 0
mov byte [esp + 0xe], 0
je 0x405888
cmp byte [ebp + 0x20], 0
je 0x4051fb
cmp byte [esi + 0xa], 0
je 0x405888
mov edx, dword [esp + 0x10]
mov ecx, 0x3fff
cmp dx, cx
jne 0x405b09
mov edi, dword [esp + 0x18]
cmp byte [edi + 0x13], 0
mov dword [esp + 0x30], 0
jbe 0x4052d8
lea esi, [edi + 0x16]
jmp 0x405230
mov cl, byte [esi]
mov ebx, dword [0x4a75a8]
movzx eax, cl
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + ebx + 0xc], 0
je 0x4052a6
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x40529a
cmp byte [ebp + 0x20], 0
jne 0x4052c0
mov ecx, 0x3fff
mov word [edi + 6], ax
cmp dx, cx
je 0x4052a6
mov dword [esp + 0x10], edx
movzx ecx, byte [esp + 0xd]
mov eax, ecx
sub eax, 0x10
je 0x4053a5
dec eax
je 0x405386
dec eax
je 0x405367
lea ebx, [ecx + ecx*8]
shl ebx, 5
add ebx, dword [0x4a75a8]
jmp 0x40534c
cmp byte [ebp + 0x20], 0
jne 0x4052a6
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 0x405230
jmp 0x4052ca
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 0x40526b
cmp byte [edi + 0x14], 0
mov dword [esp + 0x30], 0
jbe 0x405409
lea esi, [edi + 0xde]
movzx ecx, word [esi]
mov ebx, dword [0x4a75ac]
mov eax, ecx
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + ebx + 0xc], 0
je 0x4053d2
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x4053c4
cmp byte [ebp + 0x20], 0
jne 0x4053ec
mov ecx, 0x3fff
mov word [edi + 6], ax
cmp dx, cx
je 0x4053d2
mov dword [esp + 0x10], edx
movzx eax, word [esp + 0x38]
lea ebx, [eax + eax*8]
shl ebx, 5
add ebx, dword [0x4a75ac]
mov edx, 0x3fff
mov dword [0x4a5b84], ebx
cmp word [esp + 0x10], dx
jne case.default.0x405421
jmp 0x40540f
mov ecx, dword [0x4a75a8]
xor eax, eax
cmp byte [ecx + 0xb9ac], al
setne al
lea ebx, [eax + eax*8 + 0x5c4]
shl ebx, 5
add ebx, ecx
jmp 0x40534c
mov ecx, dword [0x4a75a8]
xor eax, eax
cmp byte [ecx + 0xb76c], al
setne al
lea ebx, [eax + eax*8 + 0x5b2]
shl ebx, 5
add ebx, ecx
jmp 0x40534c
mov ecx, dword [0x4a75a8]
xor eax, eax
cmp byte [ecx + 0xb52c], al
setne al
lea ebx, [eax + eax*8 + 0x5a0]
shl ebx, 5
add ebx, ecx
jmp 0x40534c
cmp byte [ebp + 0x20], 0
jne 0x4053d2
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 0x4052f0
jmp 0x4053f7
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 0x40533b
mov ebx, dword [0x4a5b84]
movzx eax, byte [ebp + 0x18]
add eax, 0xffffff60
cmp eax, 5
ja case.default.0x405421
jmp dword [eax*4 + 0x4063ac]
mov al, 0x11
jmp 0x405432
mov al, 0x12
jmp 0x405432
mov al, 0x10
mov ecx, dword [0x4a75a8]
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 0x4054c4
add esi, 0x16
mov cl, byte [esi]
mov ebx, dword [0x4a75a8]
movzx eax, cl
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + ebx + 0xc], 0
je 0x4054a2
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x405494
cmp byte [ebp + 0x20], 0
jne 0x4054ac
mov ecx, dword [esp + 0x18]
mov word [ecx + 6], ax
mov eax, 0x3fff
cmp word [esp + 0x10], ax
jne 0x4054d4
jmp 0x4054a2
cmp byte [ebp + 0x20], 0
jne 0x4054a2
mov dword [esp + 0x10], eax
mov byte [esp + 0xd], cl
inc edi
add esi, 4
cmp edi, edx
jl 0x405455
jmp 0x4054ba
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 [0x4a5b84]
mov eax, 0x3fff
cmp word [esp + 0x10], ax
je 0x40555d
movzx ecx, byte [esp + 0xd]
mov eax, ecx
sub eax, 0x10
je 0x40553b
dec eax
je 0x405519
dec eax
je 0x4054f7
lea ebx, [ecx + ecx*8]
shl ebx, 5
add ebx, dword [0x4a75a8]
jmp 0x4055f9
mov ecx, dword [0x4a75a8]
xor eax, eax
cmp byte [ecx + 0xb9ac], al
setne al
lea ebx, [eax + eax*8 + 0x5c4]
shl ebx, 5
add ebx, ecx
jmp 0x4055f9
mov ecx, dword [0x4a75a8]
xor eax, eax
cmp byte [ecx + 0xb76c], al
setne al
lea ebx, [eax + eax*8 + 0x5b2]
shl ebx, 5
add ebx, ecx
jmp 0x4055f9
mov ecx, dword [0x4a75a8]
xor eax, eax
cmp byte [ecx + 0xb52c], al
setne al
lea ebx, [eax + eax*8 + 0x5a0]
shl ebx, 5
add ebx, ecx
jmp 0x4055f9
movzx eax, byte [esi + 0x14]
xor edi, edi
mov dword [esp + 0x30], eax
test eax, eax
jle case.default.0x405421
add esi, 0xde
movzx ecx, word [esi]
mov eax, ecx
lea edx, [eax + eax*8]
mov eax, dword [0x4a75ac]
shl edx, 5
cmp byte [edx + eax + 0xc], 0
je 0x4055c1
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x4055b3
cmp byte [ebp + 0x20], 0
jne 0x4055cd
mov ecx, dword [esp + 0x18]
mov edx, 0x3fff
mov word [ecx + 6], ax
cmp word [esp + 0x10], dx
jne 0x4055e8
jmp 0x4055c1
cmp byte [ebp + 0x20], 0
jne 0x4055c1
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], ecx
inc edi
add esi, 4
cmp edi, dword [esp + 0x30]
jl 0x405575
jmp 0x4055dc
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.0x405421
movzx eax, word [esp + 0x38]
lea ebx, [eax + eax*8]
shl ebx, 5
add ebx, dword [0x4a75ac]
mov dword [0x4a5b84], ebx
mov eax, dword [esp + 0x10]
mov esi, eax
mov ecx, 0x3fff
and esi, 0x3fff
cmp ax, cx
je 0x40567e
mov edx, dword [0x4a4538]
cmp si, word [edx]
jae 0x40567a
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.00409c10
add esp, 8
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x40566a
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 0x4062a0
mov esi, dword [esp + 0x10]
mov ebx, dword [0x4a5b84]
and esi, 0x3fff
mov byte [ebx + 0x11], 2
mov ecx, 0x3ffe
cmp si, cx
je 0x405696
mov edx, 0x3ffd
cmp si, dx
jne 0x405888
cmp byte [ebp + 0x20], 0
jne 0x4056a4
mov eax, dword [esp + 0x18]
mov byte [eax + 0xf], 1
test byte [0x4a6c6d], 0xc
jne 0x4056ca
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040ea30
mov ebx, dword [0x4a5b84]
add esp, 0x18
mov al, byte [ebp + 0x18]
cmp al, 0xa2
je 0x4056d5
cmp al, 0xa3
jne 0x4056fe
cmp byte [ebp + 0x20], 0
jne 0x4056fe
mov edi, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push edi
push ecx
push 1
call fcn.0040ea30
mov ebx, dword [0x4a5b84]
add esp, 0x18
jmp 0x405701
mov edi, dword [ebp + 0x1c]
mov edx, 0x3ffd
mov byte [ebx + 0xd], 1
cmp si, dx
jne 0x40573b
test byte [0x4a6c6d], 0x30
jne 0x405735
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040ea30
mov ebx, dword [0x4a5b84]
add esp, 0x18
mov byte [ebx + 0xe], 1
jmp 0x4057b4
mov eax, 0x3ffe
cmp si, ax
jne 0x4057b4
mov al, byte [ebp + 0x18]
cmp al, 0xa0
je 0x405750
cmp al, 0xa1
jne 0x40576e
cmp byte [ebp + 0x20], 0
jne 0x40576e
mov ecx, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push edi
push ecx
push 1
call fcn.0040ea30
add esp, 0x18
test byte [0x4a6c6d], 0x10
je 0x405791
push 0xffc3d44d
push 0
push 0
push 0
push 0xa0
push 1
call fcn.0040ea30
add esp, 0x18
test byte [0x4a6c6d], 0x20
je 0x4057b4
push 0xffc3d44d
push 0
push 0
push 0
push 0xa1
push 1
call fcn.0040ea30
add esp, 0x18
test byte [0x4a6c6d], 1
je 0x4057d7
push 0xffc3d44d
push 0
push 0
push 0
push 0xa2
push 1
call fcn.0040ea30
add esp, 0x18
test byte [0x4a6c6d], 2
je 0x4057fa
push 0xffc3d44d
push 0
push 0
push 0
push 0xa3
push 1
call fcn.0040ea30
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040ea30
mov edx, 0x3ffd
add esp, 0x18
cmp si, dx
jne 0x405856
mov eax, dword [0x4a5b84]
cmp byte [eax + 0xe], 0
je 0x405856
mov al, byte [ebp + 0x18]
cmp al, 0x60
jb 0x405831
cmp al, 0x69
jbe 0x405835
cmp al, 0x6e
jne 0x405856
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040ea30
mov ecx, dword [0x4a5b84]
add esp, 0x18
mov byte [ecx + 0xe], 0
cmp byte [ebp + 0x20], 0
mov eax, dword [esp + 0x20]
mov byte [eax + 4], 0x68
jne 0x40586c
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 0x404a66
mov eax, 0x3fff
cmp word [esp + 0x10], ax
jne 0x405b09
mov ecx, dword [esp + 0x18]
mov cl, byte [ecx + 4]
mov al, byte [0x4a6c6e]
test cl, cl
je 0x4058ac
not cl
and al, cl
mov esi, dword [0x4a6da0]
mov edi, dword [ebp + 8]
cmp edi, esi
jne 0x4058d9
cmp byte [esp + 0x2b], 0
je 0x4058d9
mov ecx, dword [0x4a75a0]
movzx edx, al
shl edx, 9
add edx, dword [esp + 0x34]
movzx ecx, word [ecx + edx*2]
mov dl, byte [ebp + 0x18]
jmp 0x4058f1
mov dl, byte [ebp + 0x18]
movzx ecx, al
movzx ebx, dl
shl ecx, 8
add ecx, ebx
mov ebx, dword [0x4a759c]
movzx ecx, word [ebx + ecx*2]
mov ebx, 0x3fff
mov dword [esp + 0x10], ecx
cmp cx, bx
jne 0x405965
cmp byte [0x4a5b88], 0
je 0x405965
cmp dl, 9
je 0x405965
and al, 0xf3
cmp edi, esi
jne 0x40592f
cmp byte [esp + 0x2b], 0
je 0x40592f
movzx edx, al
mov eax, dword [0x4a75a0]
shl edx, 9
add edx, dword [esp + 0x34]
movzx ecx, word [eax + edx*2]
jmp 0x405943
movzx ecx, al
mov eax, dword [0x4a759c]
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 0x40595f
mov edx, ebx
cmp ax, dx
jb 0x405965
mov ecx, ebx
mov dword [esp + 0x10], ecx
test ecx, 0x4000
je 0x4059b3
cmp byte [ebp + 0x20], 0
jne 0x405a55
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 0x405ac7
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 0x4062a0
mov edx, ebx
cmp cx, dx
je 0x405a63
mov edx, dword [0x4a4538]
mov eax, ecx
and eax, 0x3fff
cmp byte [ebp + 0x20], 0
je 0x405a38
cmp ax, word [edx]
jae 0x405a2f
mov edx, dword [0x4a75a4]
mov ebx, eax
add ebx, ebx
mov eax, 0x3fff
cmp word [ebx + edx], ax
je 0x405a2f
cmp byte [esp + 0xf], 0
jne 0x405a20
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.00409c10
add esp, 8
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x405a51
mov eax, dword [0x4a75a4]
movzx ecx, word [ebx + eax]
mov dword [esp + 0x10], ecx
jmp 0x405a55
cmp byte [esp + 0xf], 0
jne 0x405a63
jmp 0x405a55
cmp ax, word [edx]
jae 0x405a55
mov edx, dword [0x4a75a4]
mov ax, word [edx + eax*2]
mov edx, dword [esp + 0x18]
mov word [edx + 6], ax
jmp 0x405a55
mov ecx, dword [esp + 0x10]
mov eax, 0x3fff
cmp cx, ax
jne 0x405b09
mov ecx, dword [ebp + 0x20]
test cl, cl
je 0x40597f
mov eax, dword [esp + 0x18]
cmp byte [eax + 4], 0
jne 0x405aa9
test byte [eax + 0xb], 1
jne 0x405aa9
cmp byte [eax + 8], 0
je 0x405aa9
cmp byte [esp + 0x17], 0
jne 0x405aa9
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 0x404a66
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 0x4062a0
mov ecx, dword [esp + 0x18]
push 1
push eax
add ecx, 0xb
xor esi, esi
lea eax, [esp + 0x16]
xor edi, edi
call fcn.00409c10
add esp, 8
cmp byte [esp + 0xe], 0
push edi
jne 0x405c04
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 0x404a66
mov ebx, dword [esp + 0x18]
mov al, byte [ebx + 0xb]
mov dl, byte [0x4a6c6d]
add ebx, 0xb
mov dword [esp + 0x38], ebx
test al, 8
je 0x405b30
cmp byte [ebp + 0x20], 0
je 0x405b30
and al, 0xf7
mov byte [esp + 0xe], 1
mov byte [ebx], al
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4a4538]
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x405c53
cmp dword [esp + 0x3c], 0
jne 0x405c53
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.00409c10
add esp, 8
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x405c4d
mov eax, dword [ebp + 0x20]
test al, al
je 0x405bcd
mov ecx, dword [esp + 0x18]
cmp byte [ecx + 0x10], 0
push 0
je 0x405bb1
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 0x404a66
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 0x4062a0
mov eax, dword [esp + 0x18]
add eax, 6
mov ecx, 0x3fff
cmp word [eax], cx
je 0x405994
push 1
push eax
xor esi, esi
lea eax, [esp + 0x16]
mov ecx, ebx
xor edi, edi
mov byte [esp + 0x16], 0
call fcn.00409c10
add esp, 8
cmp byte [esp + 0xe], 0
push edi
je 0x405c21
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 0x4062a0
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 0x404a66
mov dl, byte [0x4a6c6d]
mov edi, dword [esp + 0x10]
mov esi, dword [ebp + 8]
mov ecx, dword [0x4a6da0]
and edi, 0x3fff
cmp esi, ecx
jne 0x405c9f
test dl, 0x3f
jne 0x405cc0
mov eax, dword [0x4a75a8]
test dl, 0x40
je 0x405c89
cmp byte [eax + 0x6668], 0
jne 0x405c89
mov byte [0x4a5b8c], 1
test dl, dl
jns 0x405cc5
cmp byte [eax + 0x6788], 0
jne 0x405cc5
mov byte [0x4a5b8b], 1
jmp 0x405cc5
test dl, 0xc
jne 0x405cc0
mov eax, dword [0x4a75a8]
test dl, 0x40
je 0x405c89
cmp byte [eax + 0x6668], 0
jne 0x405c89
mov byte [0x4a5b8c], 1
jmp 0x405cc5
mov eax, dword [0x4a75a8]
test dl, 4
je 0x405cf5
cmp byte [eax + 0xb888], 0
jne 0x405cf5
test ecx, ecx
je 0x405ce0
mov byte [0x4a5b8a], 1
jmp 0x405d41
movzx ecx, byte [0x4a3365]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
jmp 0x405d31
test dl, 8
je 0x405d41
cmp byte [eax + 0xb9a8], 0
jne 0x405d41
call fcn.004114e0
test al, al
jne 0x405d3b
cmp dword [0x4a6da0], 0
je 0x405d1e
mov byte [0x4a5b89], 1
jmp 0x405d3b
movzx edx, byte [0x4a3365]
push 0xffc3d44d
push 0
push 0
push 0
push edx
push 2
call fcn.0040ea30
add esp, 0x18
mov dl, byte [0x4a6c6d]
mov eax, edi
lea ecx, [eax - 0x3ffa]
cmp ecx, 4
ja case.default.0x405d52
jmp dword [ecx*4 + 0x4063c4]
cmp byte [0x4a5b88], 0
jne case.0x405d52.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 0x4062a0
xor al, al
mov byte [esp + 0xf], al
test dl, 4
je 0x405d8f
mov al, 0xa4
jmp 0x405d96
test dl, 8
je 0x405d9a
mov al, 0xa5
mov byte [esp + 0xf], al
cmp byte [0x4a5b88], 0
je 0x405e10
mov ecx, 0x3ffb
cmp di, cx
je case.0x405d52.16381
test al, al
movzx eax, al
jne 0x405dbd
mov eax, 0x12
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040ea30
mov edx, dword [esp + 0x30]
add esp, 0x18
cmp byte [edx + 4], 0
je 0x405e04
mov eax, dword [ebp + 0x18]
cmp al, 0x5b
je 0x405e04
cmp al, 0x5c
je 0x405e04
cmp byte [ebp + 0x20], 0
jne 0x405e04
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040ea30
add esp, 0x18
mov byte [0x4a5b88], 0
jmp 0x406077
mov cl, byte [ebp + 0x18]
cmp cl, 0xa4
je 0x405e22
mov byte [esp + 0xd], 0
cmp cl, 0xa5
jne 0x405e27
mov byte [esp + 0xd], 1
cmp cl, 0xa0
je 0x405e35
cmp cl, 0xa1
je 0x405e35
xor bl, bl
jmp 0x405e37
mov bl, 1
mov byte [esp + 0x1f], bl
cmp cl, 0xa2
je 0x405e4a
mov byte [esp + 0x1e], 0
cmp cl, 0xa3
jne 0x405e4f
mov byte [esp + 0x1e], 1
xor al, al
test byte [0x4a6c6d], 0x10
mov byte [esp + 0x34], al
je 0x405e62
mov al, 0xa0
jmp 0x405e7b
test byte [0x4a6c6d], 0x20
je 0x405e6f
mov al, 0xa1
jmp 0x405e7b
cmp byte [ebp + 0x20], 0
jne 0x405e7f
test bl, bl
je 0x405e7f
mov al, cl
mov byte [esp + 0x34], al
mov dl, byte [0x4a6c6d]
mov byte [esp + 0x2b], 0
test dl, 1
je 0x405e96
mov byte [esp + 0x2b], 0xa2
jmp 0x405eb3
test dl, 2
je 0x405ea2
mov byte [esp + 0x2b], 0xa3
jmp 0x405eb3
cmp byte [ebp + 0x20], 0
jne 0x405eb3
cmp byte [esp + 0x1e], 0
je 0x405eb3
mov byte [esp + 0x2b], cl
mov esi, dword [esp + 0x34]
xor bl, bl
test al, al
je 0x405ed8
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 1
call fcn.0040ea30
mov cl, byte [ebp + 0x18]
add esp, 0x18
mov bl, 1
cmp byte [esp + 0x2b], 0
je 0x405efc
mov eax, dword [esp + 0x2b]
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040ea30
mov cl, byte [ebp + 0x18]
add esp, 0x18
cmp byte [esp + 0xd], 0
je 0x405f0b
cmp byte [ebp + 0x20], 0
jne 0x405f13
jmp 0x405f0f
mov cl, byte [esp + 0xf]
test cl, cl
jne 0x405f2a
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040ea30
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040ea30
add esp, 0x18
test bl, bl
je 0x405f62
cmp byte [esp + 0x1f], 0
jne 0x405f62
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 0
call fcn.0040ea30
add esp, 0x18
mov byte [0x4a5b88], 1
jmp 0x406077
cmp byte [0x4a5b88], 0
jne 0x405f95
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 0x4062a0
cmp byte [ebp + 0x20], 0
mov ebx, dword [ebp + 0x18]
jne 0x405fce
cmp bl, 0xa2
je 0x405fb2
cmp bl, 0xa3
je 0x405fb2
cmp bl, 0xa0
je 0x405fb2
cmp bl, 0xa1
jne 0x405fce
push 0xffc3d44d
push 0
push 0
push 0
push ebx
push 1
call fcn.0040ea30
mov dl, byte [0x4a6c6d]
add esp, 0x18
test dl, 0xc
je 0x405fe3
cmp byte [ebp + 0x20], 0
je 0x406000
cmp bl, 0xa4
je 0x405fe3
cmp bl, 0xa5
jne 0x406000
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040ea30
mov dl, byte [0x4a6c6d]
add esp, 0x18
mov eax, 0x3ffd
xor bl, bl
cmp di, ax
jne 0x40602a
test dl, 0x30
jne 0x40602a
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040ea30
add esp, 0x18
mov bl, 1
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040ea30
add esp, 0x18
test bl, bl
je 0x406077
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040ea30
add esp, 0x18
jmp 0x406077
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
cmp byte [eax + 0x1e], 5
jne 0x406077
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 0x4060dc
test bl, bl
je 0x4061c5
cmp byte [ecx + 8], 0
je 0x4060dc
mov esi, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
push 0xffc3d44e
push 0
push 0
push esi
push ebx
push 1
call fcn.0040ea30
push 0xffc3d44d
push 0
push 0
push esi
push ebx
push 2
call fcn.0040ea30
mov edx, dword [esp + 0x54]
mov eax, dword [ebp + 0x20]
push 0
push SysReAllocString
push edx
push eax
push esi
push ebx
jmp 0x404b0a
test bl, bl
je 0x4061c5
cmp byte [ecx + 4], 0
je 0x406127
cmp byte [ecx + 0x10], 0
je 0x40610d
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 0x404a64
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 0x4062a0
cmp byte [esp + 0xe], 0
je 0x40625a
mov esi, dword [ebp + 8]
cmp esi, dword [0x4a6da4]
jne 0x406154
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 0x4062a0
mov eax, dword [ecx]
test eax, eax
je 0x406163
cmp dword [eax], 7
je 0x406163
mov al, 1
jmp 0x406165
xor al, al
cmp byte [ecx + 0x10], 0
je 0x406193
cmp byte [esp + 0x2f], 0
jne 0x406193
test al, al
jne 0x406197
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push eax
push ecx
push 0
call fcn.0040ea30
add esp, 0x18
jmp 0x40613d
test al, al
je 0x40613d
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.004063e0
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4a5b84]
mov byte [ecx + 0xf], 1
test eax, eax
je 0x4061dc
cmp byte [eax + 4], 0
je 0x4061dc
mov byte [eax + 0x11], 2
cmp byte [esp + 0xe], 0
je 0x406204
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 0x4062a0
mov ebx, dword [ebp + 0x18]
cmp bl, 0xa4
je 0x406211
cmp bl, 0xa5
jne 0x406257
mov al, byte [0x4a6c6d]
test al, 0xc0
je 0x40623b
test al, 0x33
jne 0x40623b
movzx ecx, byte [0x4a3365]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
push 2
call fcn.0040ea30
add esp, 0x18
mov edx, dword [ebp + 0x1c]
push 0xffc3d44d
push 0
push 0
push edx
push ebx
push 1
call fcn.0040ea30
mov ecx, dword [esp + 0x30]
add esp, 0x18
mov ebx, dword [ebp + 0x20]
test bl, bl
jne 0x406262
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 0x404a64
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.00406510
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret