Function at 0x404c10
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 0x404c47
cmp eax, 0xffc3d44e
je 0x404c47
mov byte [esp + 0xd], 0
cmp eax, 0xffc3d44d
jne 0x404c4c
mov byte [esp + 0xd], 1
mov ecx, dword [0x4aa62c]
test ecx, ecx
jne 0x404c63
lea edi, [esp + 0x40]
mov dword [esp + 0x20], edi
jmp 0x404d0a
mov eax, dword [0x4aa630]
mov edi, eax
imul edi, edi, 0x70
inc eax
add edi, ecx
mov dword [esp + 0x20], edi
mov dword [0x4aa630], eax
cmp eax, dword [0x4a63a8]
jl 0x404c8b
mov dword [0x4aa630], 0
mov al, byte [ebp + 0x18]
mov cl, byte [ebp + 0x20]
mov byte [edi], al
mov byte [edi + 5], cl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
sub edx, dword [0x4ac3fc]
mov dword [0x4aa634], eax
mov dword [esp + 0x34], edx
fild dword [esp + 0x34]
jns 0x404cb9
fadd dword [0x4a08e0]
fdiv qword [0x4a08d8]
mov dword [0x4ac3fc], eax
fstp dword [edi + 8]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x404cfa
cmp esi, dword [0x4aa638]
je 0x404cf4
mov ecx, dword [0x4a9d20]
push esi
lea eax, [edi + 0xc]
push eax
push 0x418
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x404d01
mov byte [edi + 0xc], 0
jmp 0x404d01
mov dword [edi + 0xc], 0x412f4e
mov edx, dword [ebp + 0x28]
mov dword [0x4aa638], esi
mov al, byte [ebp + 0x18]
mov ebx, dword [ebp + 0x20]
cmp al, 0xe7
jne 0x404d2c
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 0x404d40
xor esi, esi
mov dword [ebp + 0x1c], esi
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x4a9e54]
jne 0x404d70
and dl, 1
mov byte [esp + 0xf], dl
jne 0x404e7c
test bl, bl
setne dl
dec dl
movzx eax, al
and dl, 0x80
mov byte [eax + 0x4a9d40], dl
jmp 0x404e7c
shr edx, 4
and dl, 1
mov byte [esp + 0xf], dl
test esi, 0x100
jne case.0x404db0.13
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je case.0x404db0.13
movzx eax, byte [ebp + 0x18]
add eax, 0xfffffff4
cmp eax, 0x62
ja case.0x404db0.13
movzx ecx, byte [eax + 0x406748]
jmp dword [ecx*4 + 0x406718]
test bl, bl
sete dl
mov byte [0x4a8c0c], dl
jmp case.0x404db0.13
test bl, bl
sete al
mov byte [0x4a8c0d], al
jmp case.0x404db0.13
test bl, bl
sete cl
mov byte [0x4a8c0e], cl
jmp case.0x404db0.13
test bl, bl
sete dl
mov byte [0x4a8c0f], dl
jmp case.0x404db0.13
test bl, bl
sete al
mov byte [0x4a8c10], al
jmp case.0x404db0.13
test bl, bl
sete cl
mov byte [0x4a8c11], cl
jmp case.0x404db0.13
test bl, bl
sete dl
mov byte [0x4a8c12], dl
jmp case.0x404db0.13
test bl, bl
sete al
mov byte [0x4a8c13], al
jmp case.0x404db0.13
test bl, bl
sete cl
mov byte [0x4a8c14], cl
jmp case.0x404db0.13
test bl, bl
sete dl
mov byte [0x4a8c15], dl
jmp case.0x404db0.13
test bl, bl
sete al
mov byte [0x4a8c16], al
movzx esi, byte [ebp + 0x18]
mov edx, dword [0x4aa650]
lea ecx, [esi + esi*8]
shl ecx, 5
cmp byte [ecx + edx + 4], 0
jne 0x404e7c
test byte [ebp + 0x28], 0x10
jne 0x404e7c
mov al, byte [ebp + 0x18]
push ebx
call fcn.00407b50
add esp, 4
test al, al
je 0x404e7c
test bl, bl
setne al
dec al
and al, 0x80
mov byte [esi + 0x4a9d40], al
cmp byte [esp + 0xd], 0
je 0x404e87
mov al, 0x69
jmp 0x404e93
mov al, byte [esp + 0xf]
neg al
sbb al, al
and al, 0x41
add al, 0x20
cmp byte [0x4a9e40], 0
mov byte [edi + 4], al
je 0x404edb
mov al, byte [ebp + 0x18]
cmp al, 0x5b
je 0x404eaa
cmp al, 0x5c
jne 0x404edb
test bl, bl
jne 0x404edb
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.00406840
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x4a8c30], 0
je 0x404f81
cmp byte [ebp + 0x18], 0x1b
jne 0x404f81
test bl, bl
jne 0x404f81
push 0
push 0x499968
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x404f81
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 0x404f81
push 0xffc3d44d
push 0
push 0
push 0
push 0x1b
push 0
call fcn.0040f020
mov al, byte [0x4a9d1d]
push 0xffc3d44d
shr al, 3
push 0
and al, 1
or al, 0xa4
push 0
movzx ecx, al
push 0
push ecx
push 1
call fcn.0040f020
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.00406840
add esp, 0x48
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [ebp + 0x1c]
mov ecx, dword [0x4a9e50]
mov dword [esp + 0x34], eax
lea eax, [eax + eax*8]
shl eax, 5
add eax, dword [0x4aa654]
mov dl, byte [eax + 0x12]
mov byte [esp + 0x2b], dl
cmp dword [ebp + 8], ecx
jne 0x404fb2
test dl, dl
je 0x404fb2
mov esi, eax
mov al, byte [ebp + 0x18]
jmp 0x404fc4
mov al, byte [ebp + 0x18]
movzx esi, al
lea esi, [esi + esi*8]
shl esi, 5
add esi, dword [0x4aa650]
cmp byte [esp + 0xd], 0
mov dword [esp + 0x18], esi
je 0x405003
cmp dword [ebp + 0x24], 0xffc3d44e
jne 0x4066eb
test bl, bl
je 0x4066eb
cmp dword [0x4a8c2c], esi
jne 0x4066eb
mov byte [esi + 0xc], 0
mov dword [0x4a8c2c], 0
jmp 0x4066e7
test bl, bl
jne 0x405013
mov edx, 0x3fff
mov byte [esi + 0x10], bl
mov word [esi + 6], dx
cmp dword [ebp + 8], ecx
jne 0x4050c3
test bl, bl
je 0x40511e
cmp byte [0x4a8c34], 0
je 0x405031
cmp al, 0x5b
je 0x405060
cmp byte [0x4a8c33], 0
je 0x40503e
cmp al, 0x5c
je 0x405060
cmp byte [0x4a8c32], 0
je 0x40504b
cmp al, 0xa4
je 0x405060
cmp byte [0x4a8c31], 0
je 0x40511e
cmp al, 0xa5
jne 0x40511e
movzx eax, al
add eax, 0xffffffa5
cmp eax, 0x4a
ja case.0x405072.93
movzx eax, byte [eax + 0x4067c0]
jmp dword [eax*4 + 0x4067ac]
mov byte [0x4a8c34], 0
jmp case.0x405072.93
mov byte [0x4a8c33], 0
jmp case.0x405072.93
mov byte [0x4a8c32], 0
jmp case.0x405072.93
mov byte [0x4a8c31], 0
test byte [0x4a9d1d], 3
jne 0x40511e
movzx ecx, byte [0x4a6365]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
push 2
call fcn.0040f020
add esp, 0x18
jmp 0x40511e
test al, al
jne 0x4050e3
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 0x406703
cmp al, 1
je 0x4050eb
cmp al, 2
jne 0x40511e
cmp dword [0x4a9eb0], 0
jne 0x4066df
push 0
push 0x499970
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x40511e
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4abd28]
je 0x4066df
mov edx, dword [0x4a8c2c]
test edx, edx
je 0x405153
cmp edx, esi
je 0x405153
test bl, bl
jne 0x405153
mov ecx, dword [0x4a9e50]
cmp dword [ebp + 8], ecx
jne 0x405145
xor eax, eax
cmp byte [esi + 4], al
sete al
jmp 0x405149
movzx eax, byte [edx + 4]
test eax, eax
je 0x405159
mov byte [edx + 0x11], 1
jmp 0x405159
mov ecx, dword [0x4a9e50]
cmp byte [esi + 8], 0
jne 0x405169
cmp byte [esi + 9], 0
je 0x4066eb
mov byte [esp + 0x2f], 0
mov dword [esp + 0x10], 0x3fff
mov dword [esp + 0x3c], 0
test bl, bl
je 0x4051b1
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 0x4051af
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 0x40523c
cmp byte [esi + 4], 0
je 0x405259
mov ecx, dword [0x4aa650]
cmp byte [ecx + 0xb64c], 0
jne 0x4051e7
cmp byte [ecx + 0xb76c], 0
jne 0x4051e7
xor eax, eax
jmp 0x4051ec
mov eax, 1
cmp byte [ecx + 0xb88c], 0
mov byte [ecx + 0x132c], al
jne 0x405208
cmp byte [ecx + 0xb9ac], 0
jne 0x405208
xor eax, eax
jmp 0x40520d
mov eax, 1
cmp byte [ecx + 0xb40c], 0
mov byte [ecx + 0x144c], al
jne 0x40522f
cmp byte [ecx + 0xb52c], 0
jne 0x40522f
xor eax, eax
mov byte [ecx + 0x120c], al
jmp 0x405259
mov eax, 1
mov byte [ecx + 0x120c], al
jmp 0x405259
test ecx, ecx
jne 0x405259
push 1
call fcn.00411590
add esp, 4
mov byte [0x4a9d1e], al
mov byte [0x4a9d1d], al
mov byte [esp + 0xd], 1
mov eax, dword [esi]
test eax, eax
je 0x405269
cmp dword [eax], 7
mov byte [esp + 0x17], 1
je 0x40526e
mov byte [esp + 0x17], 0
mov al, byte [esi + 8]
test al, al
je 0x4053f2
test bl, bl
jne 0x4053f2
mov ecx, dword [0x4a8c2c]
test ecx, ecx
je 0x405298
cmp byte [esi + 9], bl
je 0x405298
cmp esi, ecx
jne 0x4053f2
cmp al, 1
jne 0x4052c8
cmp byte [esp + 0x2b], 0
mov eax, dword [esp + 0x34]
jne 0x4052ab
movzx eax, byte [ebp + 0x18]
mov ecx, dword [esp + 0x2b]
push ecx
push eax
call fcn.00409fe0
add esp, 8
test al, al
je 0x4052c8
mov byte [esp + 0xe], 1
mov dl, byte [esp + 0xe]
jmp 0x4052df
xor dl, dl
mov byte [esp + 0xe], dl
cmp esi, dword [0x4a8c2c]
je 0x4052df
mov dword [0x4a8c2c], esi
mov byte [esi + 0x11], dl
cmp byte [esi + 9], 0
je 0x40538d
cmp byte [esp + 0xd], 0
jne 0x405303
push 1
mov byte [esp + 0x11], 1
call fcn.00411590
mov dl, byte [esp + 0x12]
add esp, 4
mov al, byte [esi + 4]
mov cl, byte [0x4a9d1e]
test al, al
je 0x405314
not al
and cl, al
test cl, cl
jne 0x405322
test dl, dl
jne 0x405322
test byte [esi + 0xb], 1
je 0x40538d
mov eax, dword [ebp + 8]
cmp eax, dword [0x4a9e50]
jne 0x405345
cmp byte [esp + 0x2b], 0
je 0x405345
mov eax, dword [0x4aa648]
movzx ecx, cl
shl ecx, 9
add ecx, dword [esp + 0x34]
jmp 0x405356
movzx eax, byte [ebp + 0x18]
movzx ecx, cl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4aa644]
movzx eax, word [eax + ecx*2]
mov dword [esp + 0x10], eax
test eax, 0x4000
je 0x40536b
mov word [esi + 6], ax
jmp 0x405399
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4a7554]
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x40538d
mov ecx, dword [0x4aa64c]
mov ax, word [ecx + eax*2]
mov word [esi + 6], ax
mov ecx, 0x3fff
cmp word [esp + 0x10], cx
jne 0x4053f2
test dl, dl
je 0x4053a5
or byte [esi + 0xb], 8
mov byte [edi + 4], 0x23
cmp byte [esi + 4], 0
jne 0x4053d7
test byte [esi + 0xb], 1
jne 0x4053d7
cmp byte [esp + 0x17], 0
jne 0x4053d7
test dl, dl
jne 0x4053d7
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push 0
push SysReAllocString
push 0x3fff
push 0
push edx
push eax
jmp 0x404ec4
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 0x406700
cmp byte [esi + 9], 0
mov byte [esp + 0xf], 0
je 0x405467
test bl, bl
je 0x405467
cmp dword [0x4a8c2c], esi
jne 0x40541a
cmp byte [esp + 0x1e], 0
je 0x405467
mov dword [0x4a8c2c], 0
cmp byte [esi + 0xa], 0
jne 0x405462
mov al, byte [esi + 0xb]
test al, 8
je 0x405430
xor cl, cl
and al, 0xf7
mov byte [esi + 0xb], al
jmp 0x405432
mov cl, 1
cmp byte [esp + 0x1e], 0
je 0x405554
test cl, cl
je 0x405554
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 0x404ec4
mov byte [esp + 0xf], 1
cmp byte [esi + 8], 0
je 0x40561a
test bl, bl
je 0x40561a
cmp dword [0x4a8c2c], esi
jne 0x40548b
mov dword [0x4a8c2c], 0
cmp byte [esi + 0xd], 0
je 0x4054ac
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
mov byte [esi + 0xd], 0
call fcn.0040f020
add esp, 0x18
cmp byte [esi + 0xe], 0
je 0x4054cd
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
mov byte [esi + 0xe], 0
call fcn.0040f020
add esp, 0x18
mov ecx, dword [esp + 0x10]
mov edx, 0x3fff
cmp cx, dx
jne 0x405501
mov al, byte [esi + 0xb]
test al, 8
je 0x405501
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 0x406700
cmp byte [esp + 0x17], 0
mov al, byte [esi + 0x11]
je 0x40556e
cmp al, 2
jne 0x405550
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
push 0xffc3d44e
push 0
push 0
push ebx
push esi
push 1
call fcn.0040f020
push 0xffc3d44d
push 0
push 0
push ebx
push esi
push 2
call fcn.0040f020
mov eax, dword [ebp + 0x20]
push 0
push SysReAllocString
push 0x3fff
push eax
push ebx
push esi
jmp 0x404f6a
cmp al, 1
jne 0x4055b9
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 0x406700
test al, al
je 0x4055b9
cmp cx, dx
jne 0x4055b9
cmp byte [esi + 4], 0
je 0x4055ac
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp al, 2
mov eax, dword [ebp + 0x10]
jne 0x40559b
push 1
push 0x3fff
push edi
push ebx
push eax
push ecx
push edx
jmp 0x406700
push 0
push 0x3fff
push edi
push ebx
push eax
push ecx
push edx
jmp 0x406700
test byte [esi + 0xb], 1
push 0
je 0x4055e0
jmp 0x4054e9
cmp byte [esi + 9], 0
jne 0x4055f3
cmp byte [esi + 4], 0
jne 0x4054e7
test byte [esi + 0xb], 1
jne 0x4054e7
cmp byte [esp + 0x17], 0
jne 0x4054e7
push 0
mov eax, dword [ebp + 0x20]
push SysReAllocString
push 0x3fff
push eax
jmp 0x404ebc
cmp byte [esp + 0x1f], 0
jne 0x40561e
cmp byte [esi + 0xa], 0
jne 0x40561e
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 0x406700
mov ecx, dword [esp + 0x10]
cmp byte [esp + 0xd], 0
jne 0x405639
mov eax, 0x3fff
cmp cx, ax
jne 0x405639
push 1
call fcn.00411590
add esp, 4
cmp dword [0x4a8c2c], 0
mov byte [esp + 0xe], 0
je 0x405ce8
cmp byte [ebp + 0x20], 0
je 0x40565b
cmp byte [esi + 0xa], 0
je 0x405ce8
mov edx, dword [esp + 0x10]
mov ecx, 0x3fff
cmp dx, cx
jne 0x405f69
mov edi, dword [esp + 0x18]
cmp byte [edi + 0x13], 0
mov dword [esp + 0x30], 0
jbe 0x405738
lea esi, [edi + 0x16]
jmp 0x405690
mov cl, byte [esi]
mov ebx, dword [0x4aa650]
movzx eax, cl
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + ebx + 0xc], 0
je 0x405706
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x4056fa
cmp byte [ebp + 0x20], 0
jne 0x405720
mov ecx, 0x3fff
mov word [edi + 6], ax
cmp dx, cx
je 0x405706
mov dword [esp + 0x10], edx
movzx ecx, byte [esp + 0xd]
mov eax, ecx
sub eax, 0x10
je 0x405805
dec eax
je 0x4057e6
dec eax
je 0x4057c7
lea ebx, [ecx + ecx*8]
shl ebx, 5
add ebx, dword [0x4aa650]
jmp 0x4057ac
cmp byte [ebp + 0x20], 0
jne 0x405706
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 0x405690
jmp 0x40572a
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 0x4056cb
cmp byte [edi + 0x14], 0
mov dword [esp + 0x30], 0
jbe 0x405869
lea esi, [edi + 0xde]
movzx ecx, word [esi]
mov ebx, dword [0x4aa654]
mov eax, ecx
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + ebx + 0xc], 0
je 0x405832
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x405824
cmp byte [ebp + 0x20], 0
jne 0x40584c
mov ecx, 0x3fff
mov word [edi + 6], ax
cmp dx, cx
je 0x405832
mov dword [esp + 0x10], edx
movzx eax, word [esp + 0x38]
lea ebx, [eax + eax*8]
shl ebx, 5
add ebx, dword [0x4aa654]
mov edx, 0x3fff
mov dword [0x4a8c2c], ebx
cmp word [esp + 0x10], dx
jne case.default.0x405881
jmp 0x40586f
mov ecx, dword [0x4aa650]
xor eax, eax
cmp byte [ecx + 0xb9ac], al
setne al
lea ebx, [eax + eax*8 + 0x5c4]
shl ebx, 5
add ebx, ecx
jmp 0x4057ac
mov ecx, dword [0x4aa650]
xor eax, eax
cmp byte [ecx + 0xb76c], al
setne al
lea ebx, [eax + eax*8 + 0x5b2]
shl ebx, 5
add ebx, ecx
jmp 0x4057ac
mov ecx, dword [0x4aa650]
xor eax, eax
cmp byte [ecx + 0xb52c], al
setne al
lea ebx, [eax + eax*8 + 0x5a0]
shl ebx, 5
add ebx, ecx
jmp 0x4057ac
cmp byte [ebp + 0x20], 0
jne 0x405832
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 0x405750
jmp 0x405857
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 0x40579b
mov ebx, dword [0x4a8c2c]
movzx eax, byte [ebp + 0x18]
add eax, 0xffffff60
cmp eax, 5
ja case.default.0x405881
jmp dword [eax*4 + 0x40680c]
mov al, 0x11
jmp 0x405892
mov al, 0x12
jmp 0x405892
mov al, 0x10
mov ecx, dword [0x4aa650]
movzx eax, al
lea esi, [eax + eax*8]
shl esi, 5
movzx edx, byte [esi + ecx + 0x13]
add esi, ecx
xor edi, edi
mov dword [esp + 0x30], esi
test edx, edx
jle 0x405924
add esi, 0x16
mov cl, byte [esi]
mov ebx, dword [0x4aa650]
movzx eax, cl
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + ebx + 0xc], 0
je 0x405902
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x4058f4
cmp byte [ebp + 0x20], 0
jne 0x40590c
mov ecx, dword [esp + 0x18]
mov word [ecx + 6], ax
mov eax, 0x3fff
cmp word [esp + 0x10], ax
jne 0x405934
jmp 0x405902
cmp byte [ebp + 0x20], 0
jne 0x405902
mov dword [esp + 0x10], eax
mov byte [esp + 0xd], cl
inc edi
add esi, 4
cmp edi, edx
jl 0x4058b5
jmp 0x40591a
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 [0x4a8c2c]
mov eax, 0x3fff
cmp word [esp + 0x10], ax
je 0x4059bd
movzx ecx, byte [esp + 0xd]
mov eax, ecx
sub eax, 0x10
je 0x40599b
dec eax
je 0x405979
dec eax
je 0x405957
lea ebx, [ecx + ecx*8]
shl ebx, 5
add ebx, dword [0x4aa650]
jmp 0x405a59
mov ecx, dword [0x4aa650]
xor eax, eax
cmp byte [ecx + 0xb9ac], al
setne al
lea ebx, [eax + eax*8 + 0x5c4]
shl ebx, 5
add ebx, ecx
jmp 0x405a59
mov ecx, dword [0x4aa650]
xor eax, eax
cmp byte [ecx + 0xb76c], al
setne al
lea ebx, [eax + eax*8 + 0x5b2]
shl ebx, 5
add ebx, ecx
jmp 0x405a59
mov ecx, dword [0x4aa650]
xor eax, eax
cmp byte [ecx + 0xb52c], al
setne al
lea ebx, [eax + eax*8 + 0x5a0]
shl ebx, 5
add ebx, ecx
jmp 0x405a59
movzx eax, byte [esi + 0x14]
xor edi, edi
mov dword [esp + 0x30], eax
test eax, eax
jle case.default.0x405881
add esi, 0xde
movzx ecx, word [esi]
mov eax, ecx
lea edx, [eax + eax*8]
mov eax, dword [0x4aa654]
shl edx, 5
cmp byte [edx + eax + 0xc], 0
je 0x405a21
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x405a13
cmp byte [ebp + 0x20], 0
jne 0x405a2d
mov ecx, dword [esp + 0x18]
mov edx, 0x3fff
mov word [ecx + 6], ax
cmp word [esp + 0x10], dx
jne 0x405a48
jmp 0x405a21
cmp byte [ebp + 0x20], 0
jne 0x405a21
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], ecx
inc edi
add esi, 4
cmp edi, dword [esp + 0x30]
jl 0x4059d5
jmp 0x405a3c
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.0x405881
movzx eax, word [esp + 0x38]
lea ebx, [eax + eax*8]
shl ebx, 5
add ebx, dword [0x4aa654]
mov dword [0x4a8c2c], ebx
mov eax, dword [esp + 0x10]
mov esi, eax
mov ecx, 0x3fff
and esi, 0x3fff
cmp ax, cx
je 0x405ade
mov edx, dword [0x4a7554]
cmp si, word [edx]
jae 0x405ada
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.0040a230
add esp, 8
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x405aca
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 0x406700
mov esi, dword [esp + 0x10]
mov ebx, dword [0x4a8c2c]
and esi, 0x3fff
mov byte [ebx + 0x11], 2
mov ecx, 0x3ffe
cmp si, cx
je 0x405af6
mov edx, 0x3ffd
cmp si, dx
jne 0x405ce8
cmp byte [ebp + 0x20], 0
jne 0x405b04
mov eax, dword [esp + 0x18]
mov byte [eax + 0xf], 1
test byte [0x4a9d1d], 0xc
jne 0x405b2a
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040f020
mov ebx, dword [0x4a8c2c]
add esp, 0x18
mov al, byte [ebp + 0x18]
cmp al, 0xa2
je 0x405b35
cmp al, 0xa3
jne 0x405b5e
cmp byte [ebp + 0x20], 0
jne 0x405b5e
mov edi, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push edi
push ecx
push 1
call fcn.0040f020
mov ebx, dword [0x4a8c2c]
add esp, 0x18
jmp 0x405b61
mov edi, dword [ebp + 0x1c]
mov edx, 0x3ffd
mov byte [ebx + 0xd], 1
cmp si, dx
jne 0x405b9b
test byte [0x4a9d1d], 0x30
jne 0x405b95
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040f020
mov ebx, dword [0x4a8c2c]
add esp, 0x18
mov byte [ebx + 0xe], 1
jmp 0x405c14
mov eax, 0x3ffe
cmp si, ax
jne 0x405c14
mov al, byte [ebp + 0x18]
cmp al, 0xa0
je 0x405bb0
cmp al, 0xa1
jne 0x405bce
cmp byte [ebp + 0x20], 0
jne 0x405bce
mov ecx, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push edi
push ecx
push 1
call fcn.0040f020
add esp, 0x18
test byte [0x4a9d1d], 0x10
je 0x405bf1
push 0xffc3d44d
push 0
push 0
push 0
push 0xa0
push 1
call fcn.0040f020
add esp, 0x18
test byte [0x4a9d1d], 0x20
je 0x405c14
push 0xffc3d44d
push 0
push 0
push 0
push 0xa1
push 1
call fcn.0040f020
add esp, 0x18
test byte [0x4a9d1d], 1
je 0x405c37
push 0xffc3d44d
push 0
push 0
push 0
push 0xa2
push 1
call fcn.0040f020
add esp, 0x18
test byte [0x4a9d1d], 2
je 0x405c5a
push 0xffc3d44d
push 0
push 0
push 0
push 0xa3
push 1
call fcn.0040f020
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040f020
mov edx, 0x3ffd
add esp, 0x18
cmp si, dx
jne 0x405cb6
mov eax, dword [0x4a8c2c]
cmp byte [eax + 0xe], 0
je 0x405cb6
mov al, byte [ebp + 0x18]
cmp al, 0x60
jb 0x405c91
cmp al, 0x69
jbe 0x405c95
cmp al, 0x6e
jne 0x405cb6
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040f020
mov ecx, dword [0x4a8c2c]
add esp, 0x18
mov byte [ecx + 0xe], 0
cmp byte [ebp + 0x20], 0
mov eax, dword [esp + 0x20]
mov byte [eax + 4], 0x68
jne 0x405ccc
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 0x404ec6
mov eax, 0x3fff
cmp word [esp + 0x10], ax
jne 0x405f69
mov ecx, dword [esp + 0x18]
mov cl, byte [ecx + 4]
mov al, byte [0x4a9d1e]
test cl, cl
je 0x405d0c
not cl
and al, cl
mov esi, dword [0x4a9e50]
mov edi, dword [ebp + 8]
cmp edi, esi
jne 0x405d39
cmp byte [esp + 0x2b], 0
je 0x405d39
mov ecx, dword [0x4aa648]
movzx edx, al
shl edx, 9
add edx, dword [esp + 0x34]
movzx ecx, word [ecx + edx*2]
mov dl, byte [ebp + 0x18]
jmp 0x405d51
mov dl, byte [ebp + 0x18]
movzx ecx, al
movzx ebx, dl
shl ecx, 8
add ecx, ebx
mov ebx, dword [0x4aa644]
movzx ecx, word [ebx + ecx*2]
mov ebx, 0x3fff
mov dword [esp + 0x10], ecx
cmp cx, bx
jne 0x405dc5
cmp byte [0x4a8c30], 0
je 0x405dc5
cmp dl, 9
je 0x405dc5
and al, 0xf3
cmp edi, esi
jne 0x405d8f
cmp byte [esp + 0x2b], 0
je 0x405d8f
movzx edx, al
mov eax, dword [0x4aa648]
shl edx, 9
add edx, dword [esp + 0x34]
movzx ecx, word [eax + edx*2]
jmp 0x405da3
movzx ecx, al
mov eax, dword [0x4aa644]
movzx edx, dl
shl ecx, 8
add ecx, edx
movzx ecx, word [eax + ecx*2]
mov eax, ecx
and eax, 0x3fff
mov edx, 0x3ff9
mov dword [esp + 0x10], ecx
cmp ax, dx
jbe 0x405dbf
mov edx, ebx
cmp ax, dx
jb 0x405dc5
mov ecx, ebx
mov dword [esp + 0x10], ecx
test ecx, 0x4000
je 0x405e13
cmp byte [ebp + 0x20], 0
jne 0x405eb5
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 0x405f27
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 0x406700
mov edx, ebx
cmp cx, dx
je 0x405ec3
mov edx, dword [0x4a7554]
mov eax, ecx
and eax, 0x3fff
cmp byte [ebp + 0x20], 0
je 0x405e98
cmp ax, word [edx]
jae 0x405e8f
mov edx, dword [0x4aa64c]
mov ebx, eax
add ebx, ebx
mov eax, 0x3fff
cmp word [ebx + edx], ax
je 0x405e8f
cmp byte [esp + 0xf], 0
jne 0x405e80
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.0040a230
add esp, 8
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x405eb1
mov eax, dword [0x4aa64c]
movzx ecx, word [ebx + eax]
mov dword [esp + 0x10], ecx
jmp 0x405eb5
cmp byte [esp + 0xf], 0
jne 0x405ec3
jmp 0x405eb5
cmp ax, word [edx]
jae 0x405eb5
mov edx, dword [0x4aa64c]
mov ax, word [edx + eax*2]
mov edx, dword [esp + 0x18]
mov word [edx + 6], ax
jmp 0x405eb5
mov ecx, dword [esp + 0x10]
mov eax, 0x3fff
cmp cx, ax
jne 0x405f69
mov ecx, dword [ebp + 0x20]
test cl, cl
je 0x405ddf
mov eax, dword [esp + 0x18]
cmp byte [eax + 4], 0
jne 0x405f09
test byte [eax + 0xb], 1
jne 0x405f09
cmp byte [eax + 8], 0
je 0x405f09
cmp byte [esp + 0x17], 0
jne 0x405f09
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 0x404ec6
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 0x406700
mov ecx, dword [esp + 0x18]
push 1
push eax
add ecx, 0xb
xor esi, esi
lea eax, [esp + 0x16]
xor edi, edi
call fcn.0040a230
add esp, 8
cmp byte [esp + 0xe], 0
push edi
jne 0x406064
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 0x404ec6
mov ebx, dword [esp + 0x18]
mov al, byte [ebx + 0xb]
mov dl, byte [0x4a9d1d]
add ebx, 0xb
mov dword [esp + 0x38], ebx
test al, 8
je 0x405f90
cmp byte [ebp + 0x20], 0
je 0x405f90
and al, 0xf7
mov byte [esp + 0xe], 1
mov byte [ebx], al
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4a7554]
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x4060b3
cmp dword [esp + 0x3c], 0
jne 0x4060b3
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.0040a230
add esp, 8
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x4060ad
mov eax, dword [ebp + 0x20]
test al, al
je 0x40602d
mov ecx, dword [esp + 0x18]
cmp byte [ecx + 0x10], 0
push 0
je 0x406011
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 0x404ec6
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 0x406700
mov eax, dword [esp + 0x18]
add eax, 6
mov ecx, 0x3fff
cmp word [eax], cx
je 0x405df4
push 1
push eax
xor esi, esi
lea eax, [esp + 0x16]
mov ecx, ebx
xor edi, edi
mov byte [esp + 0x16], 0
call fcn.0040a230
add esp, 8
cmp byte [esp + 0xe], 0
push edi
je 0x406081
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 0x406700
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 0x404ec6
mov dl, byte [0x4a9d1d]
mov edi, dword [esp + 0x10]
mov esi, dword [ebp + 8]
mov ecx, dword [0x4a9e50]
and edi, 0x3fff
cmp esi, ecx
jne 0x4060ff
test dl, 0x3f
jne 0x406120
mov eax, dword [0x4aa650]
test dl, 0x40
je 0x4060e9
cmp byte [eax + 0x6668], 0
jne 0x4060e9
mov byte [0x4a8c34], 1
test dl, dl
jns 0x406125
cmp byte [eax + 0x6788], 0
jne 0x406125
mov byte [0x4a8c33], 1
jmp 0x406125
test dl, 0xc
jne 0x406120
mov eax, dword [0x4aa650]
test dl, 0x40
je 0x4060e9
cmp byte [eax + 0x6668], 0
jne 0x4060e9
mov byte [0x4a8c34], 1
jmp 0x406125
mov eax, dword [0x4aa650]
test dl, 4
je 0x406155
cmp byte [eax + 0xb888], 0
jne 0x406155
test ecx, ecx
je 0x406140
mov byte [0x4a8c32], 1
jmp 0x4061a1
movzx ecx, byte [0x4a6365]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
jmp 0x406191
test dl, 8
je 0x4061a1
cmp byte [eax + 0xb9a8], 0
jne 0x4061a1
call fcn.00411a80
test al, al
jne 0x40619b
cmp dword [0x4a9e50], 0
je 0x40617e
mov byte [0x4a8c31], 1
jmp 0x40619b
movzx edx, byte [0x4a6365]
push 0xffc3d44d
push 0
push 0
push 0
push edx
push 2
call fcn.0040f020
add esp, 0x18
mov dl, byte [0x4a9d1d]
mov eax, edi
lea ecx, [eax - 0x3ffa]
cmp ecx, 4
ja case.default.0x4061b2
jmp dword [ecx*4 + 0x406824]
cmp byte [0x4a8c30], 0
jne case.0x4061b2.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 0x406700
xor al, al
mov byte [esp + 0xf], al
test dl, 4
je 0x4061ef
mov al, 0xa4
jmp 0x4061f6
test dl, 8
je 0x4061fa
mov al, 0xa5
mov byte [esp + 0xf], al
cmp byte [0x4a8c30], 0
je 0x406270
mov ecx, 0x3ffb
cmp di, cx
je case.0x4061b2.16381
test al, al
movzx eax, al
jne 0x40621d
mov eax, 0x12
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040f020
mov edx, dword [esp + 0x30]
add esp, 0x18
cmp byte [edx + 4], 0
je 0x406264
mov eax, dword [ebp + 0x18]
cmp al, 0x5b
je 0x406264
cmp al, 0x5c
je 0x406264
cmp byte [ebp + 0x20], 0
jne 0x406264
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040f020
add esp, 0x18
mov byte [0x4a8c30], 0
jmp 0x4064d7
mov cl, byte [ebp + 0x18]
cmp cl, 0xa4
je 0x406282
mov byte [esp + 0xd], 0
cmp cl, 0xa5
jne 0x406287
mov byte [esp + 0xd], 1
cmp cl, 0xa0
je 0x406295
cmp cl, 0xa1
je 0x406295
xor bl, bl
jmp 0x406297
mov bl, 1
mov byte [esp + 0x1f], bl
cmp cl, 0xa2
je 0x4062aa
mov byte [esp + 0x1e], 0
cmp cl, 0xa3
jne 0x4062af
mov byte [esp + 0x1e], 1
xor al, al
test byte [0x4a9d1d], 0x10
mov byte [esp + 0x34], al
je 0x4062c2
mov al, 0xa0
jmp 0x4062db
test byte [0x4a9d1d], 0x20
je 0x4062cf
mov al, 0xa1
jmp 0x4062db
cmp byte [ebp + 0x20], 0
jne 0x4062df
test bl, bl
je 0x4062df
mov al, cl
mov byte [esp + 0x34], al
mov dl, byte [0x4a9d1d]
mov byte [esp + 0x2b], 0
test dl, 1
je 0x4062f6
mov byte [esp + 0x2b], 0xa2
jmp 0x406313
test dl, 2
je 0x406302
mov byte [esp + 0x2b], 0xa3
jmp 0x406313
cmp byte [ebp + 0x20], 0
jne 0x406313
cmp byte [esp + 0x1e], 0
je 0x406313
mov byte [esp + 0x2b], cl
mov esi, dword [esp + 0x34]
xor bl, bl
test al, al
je 0x406338
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 1
call fcn.0040f020
mov cl, byte [ebp + 0x18]
add esp, 0x18
mov bl, 1
cmp byte [esp + 0x2b], 0
je 0x40635c
mov eax, dword [esp + 0x2b]
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040f020
mov cl, byte [ebp + 0x18]
add esp, 0x18
cmp byte [esp + 0xd], 0
je 0x40636b
cmp byte [ebp + 0x20], 0
jne 0x406373
jmp 0x40636f
mov cl, byte [esp + 0xf]
test cl, cl
jne 0x40638a
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040f020
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040f020
add esp, 0x18
test bl, bl
je 0x4063c2
cmp byte [esp + 0x1f], 0
jne 0x4063c2
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 0
call fcn.0040f020
add esp, 0x18
mov byte [0x4a8c30], 1
jmp 0x4064d7
cmp byte [0x4a8c30], 0
jne 0x4063f5
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 0x406700
cmp byte [ebp + 0x20], 0
mov ebx, dword [ebp + 0x18]
jne 0x40642e
cmp bl, 0xa2
je 0x406412
cmp bl, 0xa3
je 0x406412
cmp bl, 0xa0
je 0x406412
cmp bl, 0xa1
jne 0x40642e
push 0xffc3d44d
push 0
push 0
push 0
push ebx
push 1
call fcn.0040f020
mov dl, byte [0x4a9d1d]
add esp, 0x18
test dl, 0xc
je 0x406443
cmp byte [ebp + 0x20], 0
je 0x406460
cmp bl, 0xa4
je 0x406443
cmp bl, 0xa5
jne 0x406460
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040f020
mov dl, byte [0x4a9d1d]
add esp, 0x18
mov eax, 0x3ffd
xor bl, bl
cmp di, ax
jne 0x40648a
test dl, 0x30
jne 0x40648a
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040f020
add esp, 0x18
mov bl, 1
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040f020
add esp, 0x18
test bl, bl
je 0x4064d7
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040f020
add esp, 0x18
jmp 0x4064d7
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
cmp byte [eax + 0x1e], 5
jne 0x4064d7
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 0x40653c
test bl, bl
je 0x406625
cmp byte [ecx + 8], 0
je 0x40653c
mov esi, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
push 0xffc3d44e
push 0
push 0
push esi
push ebx
push 1
call fcn.0040f020
push 0xffc3d44d
push 0
push 0
push esi
push ebx
push 2
call fcn.0040f020
mov edx, dword [esp + 0x54]
mov eax, dword [ebp + 0x20]
push 0
push SysReAllocString
push edx
push eax
push esi
push ebx
jmp 0x404f6a
test bl, bl
je 0x406625
cmp byte [ecx + 4], 0
je 0x406587
cmp byte [ecx + 0x10], 0
je 0x40656d
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 0x404ec4
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 0x406700
cmp byte [esp + 0xe], 0
je 0x4066ba
mov esi, dword [ebp + 8]
cmp esi, dword [0x4a9e54]
jne 0x4065b4
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 0x406700
mov eax, dword [ecx]
test eax, eax
je 0x4065c3
cmp dword [eax], 7
je 0x4065c3
mov al, 1
jmp 0x4065c5
xor al, al
cmp byte [ecx + 0x10], 0
je 0x4065f3
cmp byte [esp + 0x2f], 0
jne 0x4065f3
test al, al
jne 0x4065f7
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push eax
push ecx
push 0
call fcn.0040f020
add esp, 0x18
jmp 0x40659d
test al, al
je 0x40659d
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.00406840
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4a8c2c]
mov byte [ecx + 0xf], 1
test eax, eax
je 0x40663c
cmp byte [eax + 4], 0
je 0x40663c
mov byte [eax + 0x11], 2
cmp byte [esp + 0xe], 0
je 0x406664
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 0x406700
mov ebx, dword [ebp + 0x18]
cmp bl, 0xa4
je 0x406671
cmp bl, 0xa5
jne 0x4066b7
mov al, byte [0x4a9d1d]
test al, 0xc0
je 0x40669b
test al, 0x33
jne 0x40669b
movzx ecx, byte [0x4a6365]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
push 2
call fcn.0040f020
add esp, 0x18
mov edx, dword [ebp + 0x1c]
push 0xffc3d44d
push 0
push 0
push edx
push ebx
push 1
call fcn.0040f020
mov ecx, dword [esp + 0x30]
add esp, 0x18
mov ebx, dword [ebp + 0x20]
test bl, bl
jne 0x4066c2
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 0x404ec4
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.00406970
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret