Function at 0x404ba0
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 0x404bd7
cmp eax, 0xffc3d44e
je 0x404bd7
mov byte [esp + 0x11], 0
cmp eax, 0xffc3d44d
jne 0x404bdc
mov byte [esp + 0x11], 1
mov ecx, dword [0x4aab3c]
test ecx, ecx
jne 0x404bf3
lea edi, [esp + 0x40]
mov dword [esp + 0x24], edi
jmp 0x404c9a
mov eax, dword [0x4aab40]
mov edi, eax
imul edi, edi, 0x70
inc eax
add edi, ecx
mov dword [esp + 0x24], edi
mov dword [0x4aab40], eax
cmp eax, dword [0x4a6888]
jl 0x404c1b
mov dword [0x4aab40], 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 [0x4ac90c]
mov dword [0x4aab44], eax
mov dword [esp + 0x34], edx
fild dword [esp + 0x34]
jns 0x404c49
fadd dword [0x4a0aa0]
fdiv qword [0x4a0a98]
mov dword [0x4ac90c], eax
fstp dword [edi + 8]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x404c8a
cmp esi, dword [0x4aab48]
je 0x404c84
mov ecx, dword [0x4aa230]
push esi
lea eax, [edi + 0xc]
push eax
push 0x418
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x404c91
mov byte [edi + 0xc], 0
jmp 0x404c91
mov dword [edi + 0xc], 0x412f4e
mov edx, dword [ebp + 0x28]
mov dword [0x4aab48], esi
mov al, byte [ebp + 0x18]
mov ebx, dword [ebp + 0x20]
cmp al, 0xe7
jne 0x404cd9
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.00406880
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 0x404ced
xor esi, esi
mov dword [ebp + 0x1c], esi
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x4aa364]
jne 0x404d1d
and dl, 1
mov byte [esp + 0x13], dl
jne 0x404e29
test bl, bl
setne dl
dec dl
movzx eax, al
and dl, 0x80
mov byte [eax + 0x4aa250], dl
jmp 0x404e29
shr edx, 4
and dl, 1
mov byte [esp + 0x13], dl
test esi, 0x100
jne case.0x404d5d.13
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je case.0x404d5d.13
movzx eax, byte [ebp + 0x18]
add eax, 0xfffffff4
cmp eax, 0x62
ja case.0x404d5d.13
movzx ecx, byte [eax + 0x406660]
jmp dword [ecx*4 + 0x406630]
test bl, bl
sete dl
mov byte [0x4a911c], dl
jmp case.0x404d5d.13
test bl, bl
sete al
mov byte [0x4a911d], al
jmp case.0x404d5d.13
test bl, bl
sete cl
mov byte [0x4a911e], cl
jmp case.0x404d5d.13
test bl, bl
sete dl
mov byte [0x4a911f], dl
jmp case.0x404d5d.13
test bl, bl
sete al
mov byte [0x4a9120], al
jmp case.0x404d5d.13
test bl, bl
sete cl
mov byte [0x4a9121], cl
jmp case.0x404d5d.13
test bl, bl
sete dl
mov byte [0x4a9122], dl
jmp case.0x404d5d.13
test bl, bl
sete al
mov byte [0x4a9123], al
jmp case.0x404d5d.13
test bl, bl
sete cl
mov byte [0x4a9124], cl
jmp case.0x404d5d.13
test bl, bl
sete dl
mov byte [0x4a9125], dl
jmp case.0x404d5d.13
test bl, bl
sete al
mov byte [0x4a9126], al
movzx esi, byte [ebp + 0x18]
mov edx, dword [0x4aab60]
lea ecx, [esi + esi*8]
shl ecx, 5
cmp byte [ecx + edx + 4], 0
jne 0x404e29
test byte [ebp + 0x28], 0x10
jne 0x404e29
mov al, byte [ebp + 0x18]
push ebx
call fcn.00407a90
add esp, 4
test al, al
je 0x404e29
test bl, bl
setne al
dec al
and al, 0x80
mov byte [esi + 0x4aa250], al
cmp byte [esp + 0x11], 0
je 0x404e34
mov al, 0x69
jmp 0x404e40
mov al, byte [esp + 0x13]
neg al
sbb al, al
and al, 0x41
add al, 0x20
cmp byte [0x4aa350], 0
mov byte [edi + 4], al
je 0x404e88
mov al, byte [ebp + 0x18]
cmp al, 0x5b
je 0x404e57
cmp al, 0x5c
jne 0x404e88
test bl, bl
jne 0x404e88
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.00406750
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x4a9140], 0
je 0x404f2e
cmp byte [ebp + 0x18], 0x1b
jne 0x404f2e
test bl, bl
jne 0x404f2e
push 0
push str.32771
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x404f2e
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 0x404f2e
push 0xffc3d44d
push 0
push 0
push 0
push 0x1b
push 0
call fcn.0040ef00
mov al, byte [0x4aa22d]
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.0040ef00
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.00406750
add esp, 0x48
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [ebp + 0x1c]
mov ecx, dword [0x4aa360]
mov dword [esp + 0x34], eax
lea eax, [eax + eax*8]
shl eax, 5
add eax, dword [0x4aab64]
mov dl, byte [eax + 0x12]
mov byte [esp + 0x28], dl
cmp dword [ebp + 8], ecx
jne 0x404f5f
test dl, dl
je 0x404f5f
mov esi, eax
mov al, byte [ebp + 0x18]
jmp 0x404f71
mov al, byte [ebp + 0x18]
movzx esi, al
lea esi, [esi + esi*8]
shl esi, 5
add esi, dword [0x4aab60]
cmp byte [esp + 0x11], 0
mov dword [esp + 0x1c], esi
je 0x404fb0
cmp dword [ebp + 0x24], 0xffc3d44e
jne 0x406600
test bl, bl
je 0x406600
cmp dword [0x4a913c], esi
jne 0x406600
mov byte [esi + 0xc], 0
mov dword [0x4a913c], 0
jmp 0x4065fc
test bl, bl
jne 0x404fc0
mov edx, 0x3fff
mov byte [esi + 0x10], bl
mov word [esi + 6], dx
cmp dword [ebp + 8], ecx
jne 0x405070
test bl, bl
je 0x4050cb
cmp byte [0x4a9144], 0
je 0x404fde
cmp al, 0x5b
je 0x40500d
cmp byte [0x4a9143], 0
je 0x404feb
cmp al, 0x5c
je 0x40500d
cmp byte [0x4a9142], 0
je 0x404ff8
cmp al, 0xa4
je 0x40500d
cmp byte [0x4a9141], 0
je 0x4050cb
cmp al, 0xa5
jne 0x4050cb
movzx eax, al
add eax, 0xffffffa5
cmp eax, 0x4a
ja case.0x40501f.93
movzx eax, byte [eax + 0x4066d8]
jmp dword [eax*4 + 0x4066c4]
mov byte [0x4a9144], 0
jmp case.0x40501f.93
mov byte [0x4a9143], 0
jmp case.0x40501f.93
mov byte [0x4a9142], 0
jmp case.0x40501f.93
mov byte [0x4a9141], 0
test byte [0x4aa22d], 3
jne 0x4050cb
movzx ecx, byte [0x4a6365]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
push 2
call fcn.0040ef00
add esp, 0x18
jmp 0x4050cb
test al, al
jne 0x405090
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 0x406618
cmp al, 1
je 0x405098
cmp al, 2
jne 0x4050cb
cmp dword [0x4aa3c0], 0
jne 0x4065f4
push 0
push str.32768
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x4050cb
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ac238]
je 0x4065f4
mov edx, dword [0x4a913c]
test edx, edx
je 0x405100
cmp edx, esi
je 0x405100
test bl, bl
jne 0x405100
mov ecx, dword [0x4aa360]
cmp dword [ebp + 8], ecx
jne 0x4050f2
xor eax, eax
cmp byte [esi + 4], al
sete al
jmp 0x4050f6
movzx eax, byte [edx + 4]
test eax, eax
je 0x405106
mov byte [edx + 0x11], 1
jmp 0x405106
mov ecx, dword [0x4aa360]
cmp byte [esi + 8], 0
jne 0x405116
cmp byte [esi + 9], 0
je 0x406600
mov dword [esp + 0x14], 0x3fff
mov dword [esp + 0x3c], 0
test bl, bl
je 0x405154
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 0x405152
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 0x4051df
cmp byte [esi + 4], 0
je 0x4051fc
mov ecx, dword [0x4aab60]
cmp byte [ecx + 0xb64c], 0
jne 0x40518a
cmp byte [ecx + 0xb76c], 0
jne 0x40518a
xor eax, eax
jmp 0x40518f
mov eax, 1
cmp byte [ecx + 0xb88c], 0
mov byte [ecx + 0x132c], al
jne 0x4051ab
cmp byte [ecx + 0xb9ac], 0
jne 0x4051ab
xor eax, eax
jmp 0x4051b0
mov eax, 1
cmp byte [ecx + 0xb40c], 0
mov byte [ecx + 0x144c], al
jne 0x4051d2
cmp byte [ecx + 0xb52c], 0
jne 0x4051d2
xor eax, eax
mov byte [ecx + 0x120c], al
jmp 0x4051fc
mov eax, 1
mov byte [ecx + 0x120c], al
jmp 0x4051fc
test ecx, ecx
jne 0x4051fc
push 1
call fcn.00411480
add esp, 4
mov byte [0x4aa22e], al
mov byte [0x4aa22d], al
mov byte [esp + 0x11], 1
mov eax, dword [esi]
test eax, eax
je 0x40520c
cmp dword [eax], 7
mov byte [esp + 0x1a], 1
je 0x405211
mov byte [esp + 0x1a], 0
mov al, byte [esi + 8]
test al, al
je 0x405399
test bl, bl
jne 0x405399
mov ecx, dword [0x4a913c]
test ecx, ecx
je 0x40523b
cmp byte [esi + 9], bl
je 0x40523b
cmp esi, ecx
jne 0x405399
cmp al, 1
jne 0x40526b
cmp byte [esp + 0x28], 0
mov eax, dword [esp + 0x34]
jne 0x40524e
movzx eax, byte [ebp + 0x18]
mov ecx, dword [esp + 0x28]
push ecx
push eax
call fcn.00409f30
add esp, 8
test al, al
je 0x40526b
mov byte [esp + 0x12], 1
mov dl, byte [esp + 0x12]
jmp 0x405282
xor dl, dl
mov byte [esp + 0x12], dl
cmp esi, dword [0x4a913c]
je 0x405282
mov dword [0x4a913c], esi
mov byte [esi + 0x11], dl
cmp byte [esi + 9], 0
je 0x405330
cmp byte [esp + 0x11], 0
jne 0x4052a6
push 1
mov byte [esp + 0x15], 1
call fcn.00411480
mov dl, byte [esp + 0x16]
add esp, 4
mov al, byte [esi + 4]
mov cl, byte [0x4aa22e]
test al, al
je 0x4052b7
not al
and cl, al
test cl, cl
jne 0x4052c5
test dl, dl
jne 0x4052c5
test byte [esi + 0xb], 1
je 0x405330
mov eax, dword [ebp + 8]
cmp eax, dword [0x4aa360]
jne 0x4052e8
cmp byte [esp + 0x28], 0
je 0x4052e8
mov eax, dword [0x4aab58]
movzx ecx, cl
shl ecx, 9
add ecx, dword [esp + 0x34]
jmp 0x4052f9
movzx eax, byte [ebp + 0x18]
movzx ecx, cl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4aab54]
movzx eax, word [eax + ecx*2]
mov dword [esp + 0x14], eax
test eax, 0x4000
je 0x40530e
mov word [esi + 6], ax
jmp 0x40533c
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4a7a34]
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x405330
mov ecx, dword [0x4aab5c]
mov ax, word [ecx + eax*2]
mov word [esi + 6], ax
mov ecx, 0x3fff
cmp word [esp + 0x14], cx
jne 0x405399
test dl, dl
je 0x405348
or byte [esi + 0xb], 8
mov byte [edi + 4], 0x23
cmp byte [esi + 4], 0
jne 0x40537e
test byte [esi + 0xb], 1
jne 0x40537e
cmp byte [esp + 0x1a], 0
jne 0x40537e
test dl, dl
jne 0x40537e
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 0x404e71
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 0x406615
cmp byte [esi + 9], 0
mov byte [esp + 0x13], 0
je 0x40540e
test bl, bl
je 0x40540e
cmp dword [0x4a913c], esi
jne 0x4053c1
cmp byte [esp + 0x1b], 0
je 0x40540e
mov dword [0x4a913c], 0
cmp byte [esi + 0xa], 0
jne 0x405409
mov al, byte [esi + 0xb]
test al, 8
je 0x4053d7
xor cl, cl
and al, 0xf7
mov byte [esi + 0xb], al
jmp 0x4053d9
mov cl, 1
cmp byte [esp + 0x1b], 0
je 0x4054fb
test cl, cl
je 0x4054fb
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 0x404e71
mov byte [esp + 0x13], 1
cmp byte [esi + 8], 0
je 0x4055c1
test bl, bl
je 0x4055c1
cmp dword [0x4a913c], esi
jne 0x405432
mov dword [0x4a913c], 0
cmp byte [esi + 0xd], 0
je 0x405453
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
mov byte [esi + 0xd], 0
call fcn.0040ef00
add esp, 0x18
cmp byte [esi + 0xe], 0
je 0x405474
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
mov byte [esi + 0xe], 0
call fcn.0040ef00
add esp, 0x18
mov ecx, dword [esp + 0x14]
mov edx, 0x3fff
cmp cx, dx
jne 0x4054a8
mov al, byte [esi + 0xb]
test al, 8
je 0x4054a8
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 0x406615
cmp byte [esp + 0x1a], 0
mov al, byte [esi + 0x11]
je 0x405515
cmp al, 2
jne 0x4054f7
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
push 0xffc3d44e
push 0
push 0
push ebx
push esi
push 1
call fcn.0040ef00
push 0xffc3d44d
push 0
push 0
push ebx
push esi
push 2
call fcn.0040ef00
mov eax, dword [ebp + 0x20]
push 0
push SysReAllocString
push 0x3fff
push eax
push ebx
push esi
jmp 0x404f17
cmp al, 1
jne 0x405560
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 0x406615
test al, al
je 0x405560
cmp cx, dx
jne 0x405560
cmp byte [esi + 4], 0
je 0x405553
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp al, 2
mov eax, dword [ebp + 0x10]
jne 0x405542
push 1
push 0x3fff
push edi
push ebx
push eax
push ecx
push edx
jmp 0x406615
push 0
push 0x3fff
push edi
push ebx
push eax
push ecx
push edx
jmp 0x406615
test byte [esi + 0xb], 1
push 0
je 0x405587
jmp 0x405490
cmp byte [esi + 9], 0
jne 0x40559a
cmp byte [esi + 4], 0
jne 0x40548e
test byte [esi + 0xb], 1
jne 0x40548e
cmp byte [esp + 0x1a], 0
jne 0x40548e
push 0
mov eax, dword [ebp + 0x20]
push SysReAllocString
push 0x3fff
push eax
jmp 0x404e69
cmp byte [esp + 0x23], 0
jne 0x4055c5
cmp byte [esi + 0xa], 0
jne 0x4055c5
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 0x406615
mov ecx, dword [esp + 0x14]
cmp byte [esp + 0x11], 0
jne 0x4055e0
mov eax, 0x3fff
cmp cx, ax
jne 0x4055e0
push 1
call fcn.00411480
add esp, 4
cmp dword [0x4a913c], 0
mov byte [esp + 0x12], 0
je 0x405c8b
cmp byte [ebp + 0x20], 0
je 0x405602
cmp byte [esi + 0xa], 0
je 0x405c8b
mov edx, dword [esp + 0x14]
mov ecx, 0x3fff
cmp dx, cx
jne 0x405f0c
mov edi, dword [esp + 0x1c]
cmp byte [edi + 0x13], 0
mov dword [esp + 0x2c], 0
jbe 0x4056d8
lea esi, [edi + 0x16]
lea ecx, [ecx]
mov cl, byte [esi]
mov ebx, dword [0x4aab60]
movzx eax, cl
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + ebx + 0xc], 0
je 0x4056a6
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x40569a
cmp byte [ebp + 0x20], 0
jne 0x4056c0
mov ecx, 0x3fff
mov word [edi + 6], ax
cmp dx, cx
je 0x4056a6
mov dword [esp + 0x14], edx
movzx ecx, byte [esp + 0x11]
mov eax, ecx
sub eax, 0x10
je 0x4057a5
dec eax
je 0x405786
dec eax
je 0x405767
lea ebx, [ecx + ecx*8]
shl ebx, 5
add ebx, dword [0x4aab60]
jmp 0x40574c
cmp byte [ebp + 0x20], 0
jne 0x4056a6
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 0x405630
jmp 0x4056ca
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 0x40566b
cmp byte [edi + 0x14], 0
mov dword [esp + 0x2c], 0
jbe 0x405809
lea esi, [edi + 0xde]
movzx ecx, word [esi]
mov ebx, dword [0x4aab64]
mov eax, ecx
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + ebx + 0xc], 0
je 0x4057d2
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x4057c4
cmp byte [ebp + 0x20], 0
jne 0x4057ec
mov ecx, 0x3fff
mov word [edi + 6], ax
cmp dx, cx
je 0x4057d2
mov dword [esp + 0x14], edx
movzx eax, word [esp + 0x38]
lea ebx, [eax + eax*8]
shl ebx, 5
add ebx, dword [0x4aab64]
mov edx, 0x3fff
mov dword [0x4a913c], ebx
cmp word [esp + 0x14], dx
jne case.default.0x405821
jmp 0x40580f
mov ecx, dword [0x4aab60]
xor eax, eax
cmp byte [ecx + 0xb9ac], al
setne al
lea ebx, [eax + eax*8 + 0x5c4]
shl ebx, 5
add ebx, ecx
jmp 0x40574c
mov ecx, dword [0x4aab60]
xor eax, eax
cmp byte [ecx + 0xb76c], al
setne al
lea ebx, [eax + eax*8 + 0x5b2]
shl ebx, 5
add ebx, ecx
jmp 0x40574c
mov ecx, dword [0x4aab60]
xor eax, eax
cmp byte [ecx + 0xb52c], al
setne al
lea ebx, [eax + eax*8 + 0x5a0]
shl ebx, 5
add ebx, ecx
jmp 0x40574c
cmp byte [ebp + 0x20], 0
jne 0x4057d2
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 0x4056f0
jmp 0x4057f7
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 0x40573b
mov ebx, dword [0x4a913c]
movzx eax, byte [ebp + 0x18]
add eax, 0xffffff60
cmp eax, 5
ja case.default.0x405821
jmp dword [eax*4 + 0x406724]
mov al, 0x11
jmp 0x405832
mov al, 0x12
jmp 0x405832
mov al, 0x10
mov ecx, dword [0x4aab60]
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 0x4058c4
add esi, 0x16
mov cl, byte [esi]
mov ebx, dword [0x4aab60]
movzx eax, cl
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + ebx + 0xc], 0
je 0x4058a2
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x405894
cmp byte [ebp + 0x20], 0
jne 0x4058ac
mov ecx, dword [esp + 0x1c]
mov word [ecx + 6], ax
mov eax, 0x3fff
cmp word [esp + 0x14], ax
jne 0x4058d4
jmp 0x4058a2
cmp byte [ebp + 0x20], 0
jne 0x4058a2
mov dword [esp + 0x14], eax
mov byte [esp + 0x11], cl
inc edi
add esi, 4
cmp edi, edx
jl 0x405855
jmp 0x4058ba
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 [0x4a913c]
mov eax, 0x3fff
cmp word [esp + 0x14], ax
je 0x40595d
movzx ecx, byte [esp + 0x11]
mov eax, ecx
sub eax, 0x10
je 0x40593b
dec eax
je 0x405919
dec eax
je 0x4058f7
lea ebx, [ecx + ecx*8]
shl ebx, 5
add ebx, dword [0x4aab60]
jmp 0x4059f9
mov ecx, dword [0x4aab60]
xor eax, eax
cmp byte [ecx + 0xb9ac], al
setne al
lea ebx, [eax + eax*8 + 0x5c4]
shl ebx, 5
add ebx, ecx
jmp 0x4059f9
mov ecx, dword [0x4aab60]
xor eax, eax
cmp byte [ecx + 0xb76c], al
setne al
lea ebx, [eax + eax*8 + 0x5b2]
shl ebx, 5
add ebx, ecx
jmp 0x4059f9
mov ecx, dword [0x4aab60]
xor eax, eax
cmp byte [ecx + 0xb52c], al
setne al
lea ebx, [eax + eax*8 + 0x5a0]
shl ebx, 5
add ebx, ecx
jmp 0x4059f9
movzx eax, byte [esi + 0x14]
xor edi, edi
mov dword [esp + 0x2c], eax
test eax, eax
jle case.default.0x405821
add esi, 0xde
movzx ecx, word [esi]
mov eax, ecx
lea edx, [eax + eax*8]
mov eax, dword [0x4aab64]
shl edx, 5
cmp byte [edx + eax + 0xc], 0
je 0x4059c1
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x4059b3
cmp byte [ebp + 0x20], 0
jne 0x4059cd
mov ecx, dword [esp + 0x1c]
mov edx, 0x3fff
mov word [ecx + 6], ax
cmp word [esp + 0x14], dx
jne 0x4059e8
jmp 0x4059c1
cmp byte [ebp + 0x20], 0
jne 0x4059c1
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], ecx
inc edi
add esi, 4
cmp edi, dword [esp + 0x2c]
jl 0x405975
jmp 0x4059dc
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.0x405821
movzx eax, word [esp + 0x38]
lea ebx, [eax + eax*8]
shl ebx, 5
add ebx, dword [0x4aab64]
mov dword [0x4a913c], ebx
mov eax, dword [esp + 0x14]
mov esi, eax
mov ecx, 0x3fff
and esi, 0x3fff
cmp ax, cx
je 0x405a7e
mov edx, dword [0x4a7a34]
cmp si, word [edx]
jae 0x405a7a
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.0040a180
add esp, 8
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x405a6a
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 0x406615
mov esi, dword [esp + 0x14]
mov ebx, dword [0x4a913c]
and esi, 0x3fff
mov byte [ebx + 0x11], 2
mov ecx, 0x3ffe
cmp si, cx
je 0x405a96
mov edx, 0x3ffd
cmp si, dx
jne 0x405c8b
cmp byte [ebp + 0x20], 0
jne 0x405aa4
mov eax, dword [esp + 0x1c]
mov byte [eax + 0xf], 1
test byte [0x4aa22d], 0xc
jne 0x405aca
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040ef00
mov ebx, dword [0x4a913c]
add esp, 0x18
mov al, byte [ebp + 0x18]
cmp al, 0xa2
je 0x405ad5
cmp al, 0xa3
jne 0x405afe
cmp byte [ebp + 0x20], 0
jne 0x405afe
mov edi, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push edi
push ecx
push 1
call fcn.0040ef00
mov ebx, dword [0x4a913c]
add esp, 0x18
jmp 0x405b01
mov edi, dword [ebp + 0x1c]
mov edx, 0x3ffd
mov byte [ebx + 0xd], 1
cmp si, dx
jne 0x405b3e
test byte [0x4aa22d], 0x30
jne 0x405b35
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040ef00
mov ebx, dword [0x4a913c]
add esp, 0x18
mov byte [ebx + 0xe], 1
jmp 0x405bb7
mov eax, 0x3ffe
cmp si, ax
jne 0x405bb7
mov al, byte [ebp + 0x18]
cmp al, 0xa0
je 0x405b53
cmp al, 0xa1
jne 0x405b71
cmp byte [ebp + 0x20], 0
jne 0x405b71
mov ecx, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push edi
push ecx
push 1
call fcn.0040ef00
add esp, 0x18
test byte [0x4aa22d], 0x10
je 0x405b94
push 0xffc3d44d
push 0
push 0
push 0
push 0xa0
push 1
call fcn.0040ef00
add esp, 0x18
test byte [0x4aa22d], 0x20
je 0x405bb7
push 0xffc3d44d
push 0
push 0
push 0
push 0xa1
push 1
call fcn.0040ef00
add esp, 0x18
test byte [0x4aa22d], 1
je 0x405bda
push 0xffc3d44d
push 0
push 0
push 0
push 0xa2
push 1
call fcn.0040ef00
add esp, 0x18
test byte [0x4aa22d], 2
je 0x405bfd
push 0xffc3d44d
push 0
push 0
push 0
push 0xa3
push 1
call fcn.0040ef00
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040ef00
mov edx, 0x3ffd
add esp, 0x18
cmp si, dx
jne 0x405c59
mov eax, dword [0x4a913c]
cmp byte [eax + 0xe], 0
je 0x405c59
mov al, byte [ebp + 0x18]
cmp al, 0x60
jb 0x405c34
cmp al, 0x69
jbe 0x405c38
cmp al, 0x6e
jne 0x405c59
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040ef00
mov ecx, dword [0x4a913c]
add esp, 0x18
mov byte [ecx + 0xe], 0
cmp byte [ebp + 0x20], 0
mov eax, dword [esp + 0x24]
mov byte [eax + 4], 0x68
jne 0x405c6f
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 0x404e73
mov eax, 0x3fff
cmp word [esp + 0x14], ax
jne 0x405f0c
mov ecx, dword [esp + 0x1c]
mov cl, byte [ecx + 4]
mov al, byte [0x4aa22e]
test cl, cl
je 0x405caf
not cl
and al, cl
mov esi, dword [0x4aa360]
mov edi, dword [ebp + 8]
cmp edi, esi
jne 0x405cdc
cmp byte [esp + 0x28], 0
je 0x405cdc
mov ecx, dword [0x4aab58]
movzx edx, al
shl edx, 9
add edx, dword [esp + 0x34]
movzx ecx, word [ecx + edx*2]
mov dl, byte [ebp + 0x18]
jmp 0x405cf4
mov dl, byte [ebp + 0x18]
movzx ecx, al
movzx ebx, dl
shl ecx, 8
add ecx, ebx
mov ebx, dword [0x4aab54]
movzx ecx, word [ebx + ecx*2]
mov ebx, 0x3fff
mov dword [esp + 0x14], ecx
cmp cx, bx
jne 0x405d68
cmp byte [0x4a9140], 0
je 0x405d68
cmp dl, 9
je 0x405d68
and al, 0xf3
cmp edi, esi
jne 0x405d32
cmp byte [esp + 0x28], 0
je 0x405d32
movzx edx, al
mov eax, dword [0x4aab58]
shl edx, 9
add edx, dword [esp + 0x34]
movzx ecx, word [eax + edx*2]
jmp 0x405d46
movzx ecx, al
mov eax, dword [0x4aab54]
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 0x405d62
mov edx, ebx
cmp ax, dx
jb 0x405d68
mov ecx, ebx
mov dword [esp + 0x14], ecx
test ecx, 0x4000
je 0x405db6
cmp byte [ebp + 0x20], 0
jne 0x405e58
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 0x405eca
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 0x406615
mov edx, ebx
cmp cx, dx
je 0x405e66
mov edx, dword [0x4a7a34]
mov eax, ecx
and eax, 0x3fff
cmp byte [ebp + 0x20], 0
je 0x405e3b
cmp ax, word [edx]
jae 0x405e32
mov edx, dword [0x4aab5c]
mov ebx, eax
add ebx, ebx
mov eax, 0x3fff
cmp word [ebx + edx], ax
je 0x405e32
cmp byte [esp + 0x13], 0
jne 0x405e23
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.0040a180
add esp, 8
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x405e54
mov eax, dword [0x4aab5c]
movzx ecx, word [ebx + eax]
mov dword [esp + 0x14], ecx
jmp 0x405e58
cmp byte [esp + 0x13], 0
jne 0x405e66
jmp 0x405e58
cmp ax, word [edx]
jae 0x405e58
mov edx, dword [0x4aab5c]
mov ax, word [edx + eax*2]
mov edx, dword [esp + 0x1c]
mov word [edx + 6], ax
jmp 0x405e58
mov ecx, dword [esp + 0x14]
mov eax, 0x3fff
cmp cx, ax
jne 0x405f0c
mov ecx, dword [ebp + 0x20]
test cl, cl
je 0x405d82
mov eax, dword [esp + 0x1c]
cmp byte [eax + 4], 0
jne 0x405eac
test byte [eax + 0xb], 1
jne 0x405eac
cmp byte [eax + 8], 0
je 0x405eac
cmp byte [esp + 0x1a], 0
jne 0x405eac
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 0x404e73
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 0x406615
mov ecx, dword [esp + 0x1c]
push 1
push eax
add ecx, 0xb
xor esi, esi
lea eax, [esp + 0x1a]
xor edi, edi
call fcn.0040a180
add esp, 8
cmp byte [esp + 0x12], 0
push edi
jne 0x406007
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 0x404e73
mov ebx, dword [esp + 0x1c]
mov al, byte [ebx + 0xb]
mov dl, byte [0x4aa22d]
add ebx, 0xb
mov dword [esp + 0x38], ebx
test al, 8
je 0x405f33
cmp byte [ebp + 0x20], 0
je 0x405f33
and al, 0xf7
mov byte [esp + 0x12], 1
mov byte [ebx], al
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4a7a34]
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x406056
cmp dword [esp + 0x3c], 0
jne 0x406056
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.0040a180
add esp, 8
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x406050
mov eax, dword [ebp + 0x20]
test al, al
je 0x405fd0
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 0x10], 0
push 0
je 0x405fb4
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 0x404e73
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 0x406615
mov eax, dword [esp + 0x1c]
add eax, 6
mov ecx, 0x3fff
cmp word [eax], cx
je 0x405d97
push 1
push eax
xor esi, esi
lea eax, [esp + 0x1a]
mov ecx, ebx
xor edi, edi
mov byte [esp + 0x1a], 0
call fcn.0040a180
add esp, 8
cmp byte [esp + 0x12], 0
push edi
je 0x406024
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 0x406615
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 0x404e73
mov dl, byte [0x4aa22d]
mov edi, dword [esp + 0x14]
mov esi, dword [ebp + 8]
mov ecx, dword [0x4aa360]
and edi, 0x3fff
cmp esi, ecx
jne 0x4060a2
test dl, 0x3f
jne 0x4060c3
mov eax, dword [0x4aab60]
test dl, 0x40
je 0x40608c
cmp byte [eax + 0x6668], 0
jne 0x40608c
mov byte [0x4a9144], 1
test dl, dl
jns 0x4060c8
cmp byte [eax + 0x6788], 0
jne 0x4060c8
mov byte [0x4a9143], 1
jmp 0x4060c8
test dl, 0xc
jne 0x4060c3
mov eax, dword [0x4aab60]
test dl, 0x40
je 0x40608c
cmp byte [eax + 0x6668], 0
jne 0x40608c
mov byte [0x4a9144], 1
jmp 0x4060c8
mov eax, dword [0x4aab60]
test dl, 4
je 0x4060f8
cmp byte [eax + 0xb888], 0
jne 0x4060f8
test ecx, ecx
je 0x4060e3
mov byte [0x4a9142], 1
jmp 0x406144
movzx ecx, byte [0x4a6365]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
jmp 0x406134
test dl, 8
je 0x406144
cmp byte [eax + 0xb9a8], 0
jne 0x406144
call fcn.00411970
test al, al
jne 0x40613e
cmp dword [0x4aa360], 0
je 0x406121
mov byte [0x4a9141], 1
jmp 0x40613e
movzx edx, byte [0x4a6365]
push 0xffc3d44d
push 0
push 0
push 0
push edx
push 2
call fcn.0040ef00
add esp, 0x18
mov dl, byte [0x4aa22d]
mov eax, edi
lea ecx, [eax - 0x3ffa]
cmp ecx, 4
ja case.default.0x406155
jmp dword [ecx*4 + 0x40673c]
cmp byte [0x4a9140], 0
jne case.0x406155.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 0x406615
xor al, al
mov byte [esp + 0x13], al
test dl, 4
je 0x406192
mov al, 0xa4
jmp 0x406199
test dl, 8
je 0x40619d
mov al, 0xa5
mov byte [esp + 0x13], al
cmp byte [0x4a9140], 0
je 0x406213
mov ecx, 0x3ffb
cmp di, cx
je case.0x406155.16381
test al, al
movzx eax, al
jne 0x4061c0
mov eax, 0x12
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040ef00
mov edx, dword [esp + 0x34]
add esp, 0x18
cmp byte [edx + 4], 0
je 0x406207
mov eax, dword [ebp + 0x18]
cmp al, 0x5b
je 0x406207
cmp al, 0x5c
je 0x406207
cmp byte [ebp + 0x20], 0
jne 0x406207
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040ef00
add esp, 0x18
mov byte [0x4a9140], 0
jmp 0x40647c
mov cl, byte [ebp + 0x18]
cmp cl, 0xa4
je 0x406225
mov byte [esp + 0x11], 0
cmp cl, 0xa5
jne 0x40622a
mov byte [esp + 0x11], 1
cmp cl, 0xa0
je 0x406238
cmp cl, 0xa1
je 0x406238
xor bl, bl
jmp 0x40623a
mov bl, 1
mov byte [esp + 0x23], bl
cmp cl, 0xa2
je 0x40624d
mov byte [esp + 0x1b], 0
cmp cl, 0xa3
jne 0x406252
mov byte [esp + 0x1b], 1
xor al, al
test byte [0x4aa22d], 0x10
mov byte [esp + 0x34], al
je 0x406265
mov al, 0xa0
jmp 0x40627e
test byte [0x4aa22d], 0x20
je 0x406272
mov al, 0xa1
jmp 0x40627e
cmp byte [ebp + 0x20], 0
jne 0x406282
test bl, bl
je 0x406282
mov al, cl
mov byte [esp + 0x34], al
mov dl, byte [0x4aa22d]
mov byte [esp + 0x28], 0
test dl, 1
je 0x406299
mov byte [esp + 0x28], 0xa2
jmp 0x4062b6
test dl, 2
je 0x4062a5
mov byte [esp + 0x28], 0xa3
jmp 0x4062b6
cmp byte [ebp + 0x20], 0
jne 0x4062b6
cmp byte [esp + 0x1b], 0
je 0x4062b6
mov byte [esp + 0x28], cl
mov esi, dword [esp + 0x34]
xor bl, bl
test al, al
je 0x4062db
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 1
call fcn.0040ef00
mov cl, byte [ebp + 0x18]
add esp, 0x18
mov bl, 1
cmp byte [esp + 0x28], 0
je 0x4062ff
mov eax, dword [esp + 0x28]
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040ef00
mov cl, byte [ebp + 0x18]
add esp, 0x18
cmp byte [esp + 0x11], 0
je 0x40630e
cmp byte [ebp + 0x20], 0
jne 0x406316
jmp 0x406312
mov cl, byte [esp + 0x13]
test cl, cl
jne 0x40632d
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040ef00
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040ef00
add esp, 0x18
test bl, bl
je 0x406365
cmp byte [esp + 0x23], 0
jne 0x406365
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 0
call fcn.0040ef00
add esp, 0x18
mov byte [0x4a9140], 1
jmp 0x40647c
cmp byte [0x4a9140], 0
jne 0x406398
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 0x406615
cmp byte [ebp + 0x20], 0
mov ebx, dword [ebp + 0x18]
jne 0x4063d1
cmp bl, 0xa2
je 0x4063b5
cmp bl, 0xa3
je 0x4063b5
cmp bl, 0xa0
je 0x4063b5
cmp bl, 0xa1
jne 0x4063d1
push 0xffc3d44d
push 0
push 0
push 0
push ebx
push 1
call fcn.0040ef00
mov dl, byte [0x4aa22d]
add esp, 0x18
test dl, 0xc
je 0x4063e6
cmp byte [ebp + 0x20], 0
je 0x406403
cmp bl, 0xa4
je 0x4063e6
cmp bl, 0xa5
jne 0x406403
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040ef00
mov dl, byte [0x4aa22d]
add esp, 0x18
mov eax, 0x3ffd
xor bl, bl
cmp di, ax
jne 0x40642d
test dl, 0x30
jne 0x40642d
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040ef00
add esp, 0x18
mov bl, 1
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040ef00
add esp, 0x18
test bl, bl
je 0x40647c
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040ef00
add esp, 0x18
jmp 0x40647c
mov ecx, dword [esp + 0x3c]
cmp byte [ecx + 0x1e], 5
mov dword [esp + 0x30], eax
jne 0x40647c
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 0x4064e1
test cl, cl
je 0x40653a
cmp byte [esi + 8], 0
je 0x4064e1
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
push 0xffc3d44e
push 0
push 0
push esi
push edi
push 1
call fcn.0040ef00
push 0xffc3d44d
push 0
push 0
push esi
push edi
push 2
call fcn.0040ef00
mov ecx, dword [esp + 0x60]
mov edx, dword [ebp + 0x20]
push 0
push SysReAllocString
push ecx
push edx
push esi
push edi
jmp 0x404f19
test cl, cl
je 0x40653a
cmp byte [esi + 4], 0
je 0x40650f
cmp byte [esi + 0x10], 0
jne 0x4065d7
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 0x406615
cmp byte [esp + 0x12], 0
je 0x4065cf
mov edx, dword [esp + 0x30]
mov eax, dword [ebp + 8]
cmp eax, dword [0x4aa364]
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 0x406615
mov eax, dword [0x4a913c]
mov byte [esi + 0xf], 1
test eax, eax
je 0x406551
cmp byte [eax + 4], 0
je 0x406551
mov byte [eax + 0x11], 2
cmp byte [esp + 0x12], 0
je 0x406579
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 0x406615
mov eax, dword [ebp + 0x18]
cmp al, 0xa4
je 0x406584
cmp al, 0xa5
jne 0x4065cf
mov cl, byte [0x4aa22d]
test cl, 0xc0
je 0x4065b4
test cl, 0x33
jne 0x4065b4
movzx ecx, byte [0x4a6365]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
push 2
call fcn.0040ef00
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.0040ef00
mov ecx, dword [ebp + 0x20]
add esp, 0x18
test cl, cl
jne 0x4065d7
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 0x404e73
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.00406880
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret