Function at 0x404bc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [ebp + 0x24]
mov dl, byte [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x20]
push esi
push edi
mov dword [esp + 0x28], 0x3fff
cmp eax, 0xffc3d44f
je 0x404bfa
cmp eax, 0xffc3d44e
je 0x404bfa
mov byte [esp + 0xf], 0
cmp eax, 0xffc3d44d
jne 0x404bff
mov byte [esp + 0xf], 1
mov ecx, dword [0x4abb80]
test ecx, ecx
jne 0x404c16
lea edi, [esp + 0x40]
mov dword [esp + 0x1c], edi
jmp 0x404cb9
mov eax, dword [0x4abb84]
mov edi, eax
imul edi, edi, 0x70
inc eax
add edi, ecx
mov dword [esp + 0x1c], edi
mov dword [0x4abb84], eax
cmp eax, dword [0x4a78b4]
jl 0x404c3e
mov dword [0x4abb84], 0
mov al, byte [ebp + 0x18]
mov byte [edi], al
mov byte [edi + 5], bl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [0x4adaa4]
mov dword [0x4abb88], eax
mov dword [esp + 0x34], ecx
fild dword [esp + 0x34]
jns 0x404c69
fadd dword [0x4a1cf0]
fdiv qword [0x4a1ce8]
mov dword [0x4adaa4], eax
fstp dword [edi + 8]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x404ca9
cmp esi, dword [0x4abb8c]
je 0x404ca3
mov eax, dword [0x4ab270]
push esi
lea edx, [edi + 0xc]
push edx
push 0x418
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x404cb0
mov byte [edi + 0xc], 0
jmp 0x404cb0
mov dword [edi + 0xc], 0x412f4e
mov dl, byte [ebp + 0x18]
mov dword [0x4abb8c], esi
cmp dl, 0xe7
jne 0x404cf5
mov ecx, dword [ebp + 0x14]
movzx eax, word [ecx + 4]
mov edx, dword [ebp + 0xc]
push 0x3fff
push edi
push ebx
push 0xe7
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
push edx
push ecx
mov word [edi + 2], ax
mov byte [edi + 4], 0x55
call fcn.00406860
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x1c]
lea eax, [edx + 0x64]
mov word [edi + 2], si
cmp al, 3
ja 0x404d08
xor esi, esi
mov dword [ebp + 0x1c], esi
mov ecx, dword [0x4ab3a4]
cmp dword [ebp + 8], ecx
jne 0x404d39
mov al, byte [ebp + 0x28]
and al, 1
mov byte [esp + 0xe], al
jne 0x404e4a
test bl, bl
setne al
dec al
movzx ecx, dl
and al, 0x80
mov byte [ecx + 0x4ab290], al
jmp 0x404e4a
mov edx, dword [ebp + 0x28]
shr edx, 4
and dl, 1
mov byte [esp + 0xe], dl
test esi, 0x100
jne case.0x404d7c.13
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je case.0x404d7c.13
movzx eax, byte [ebp + 0x18]
add eax, 0xfffffff4
cmp eax, 0x62
ja case.0x404d7c.13
movzx eax, byte [eax + 0x40669c]
jmp dword [eax*4 + 0x40666c]
test bl, bl
sete cl
mov byte [0x4aa15c], cl
jmp case.0x404d7c.13
test bl, bl
sete dl
mov byte [0x4aa15d], dl
jmp case.0x404d7c.13
test bl, bl
sete al
mov byte [0x4aa15e], al
jmp case.0x404d7c.13
test bl, bl
sete cl
mov byte [0x4aa15f], cl
jmp case.0x404d7c.13
test bl, bl
sete dl
mov byte [0x4aa160], dl
jmp case.0x404d7c.13
test bl, bl
sete al
mov byte [0x4aa161], al
jmp case.0x404d7c.13
test bl, bl
sete cl
mov byte [0x4aa162], cl
jmp case.0x404d7c.13
test bl, bl
sete dl
mov byte [0x4aa163], dl
jmp case.0x404d7c.13
test bl, bl
sete al
mov byte [0x4aa164], al
jmp case.0x404d7c.13
test bl, bl
sete cl
mov byte [0x4aa165], cl
jmp case.0x404d7c.13
test bl, bl
sete dl
mov byte [0x4aa166], dl
movzx esi, byte [ebp + 0x18]
mov ecx, dword [0x4abba8]
lea eax, [esi + esi*8]
shl eax, 5
cmp byte [eax + ecx + 4], 0
jne 0x404e4a
test byte [ebp + 0x28], 0x10
jne 0x404e4a
mov al, byte [ebp + 0x18]
push ebx
call fcn.00407bf0
add esp, 4
test al, al
je 0x404e4a
test bl, bl
setne dl
dec dl
and dl, 0x80
mov byte [esi + 0x4ab290], dl
cmp byte [esp + 0xf], 0
je 0x404e55
mov al, 0x69
jmp 0x404e61
mov al, byte [esp + 0xe]
neg al
sbb al, al
and al, 0x41
add al, 0x20
cmp byte [0x4ab390], 0
mov byte [edi + 4], al
je 0x404e99
mov al, byte [ebp + 0x18]
cmp al, 0x5b
je 0x404e78
cmp al, 0x5c
jne 0x404e99
test bl, bl
jne 0x404e99
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push 0
push SysReAllocString
push 0x3fff
push 0
push eax
push ecx
mov ebx, edi
jmp 0x406655
cmp byte [0x4aa17b], 0
je 0x404f42
cmp byte [ebp + 0x18], 0x1b
jne 0x404f42
test bl, bl
jne 0x404f42
push 0
push str.32771
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x404f42
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 0x404f42
push 0xffc3d44d
push 0
push 0
push 0
push 0x1b
push 0
call fcn.0040f7a0
mov dl, byte [0x4ab26d]
push 0xffc3d44d
shr dl, 3
push 0
and dl, 1
or dl, 0xa4
push 0
movzx eax, dl
push 0
push eax
push 1
call fcn.0040f7a0
mov ecx, dword [ebp + 0x1c]
push 0
push SysReAllocString
push 0x3fff
push 0
push ecx
push 0x1b
mov ebx, edi
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
call fcn.00406730
add esp, 0x48
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [ebp + 0x1c]
lea edx, [eax + eax*8]
mov dword [esp + 0x2c], eax
mov eax, dword [0x4abbac]
shl edx, 5
mov cl, byte [eax + edx + 0x12]
add eax, edx
mov edx, dword [0x4ab3a0]
mov byte [esp + 0x20], cl
cmp dword [ebp + 8], edx
jne 0x404f76
test cl, cl
je 0x404f76
mov esi, eax
mov dword [esp + 0x14], eax
jmp 0x404f8a
movzx esi, byte [ebp + 0x18]
lea esi, [esi + esi*8]
shl esi, 5
add esi, dword [0x4abba8]
mov dword [esp + 0x14], esi
cmp byte [esp + 0xf], 0
je 0x404fe5
cmp dword [ebp + 0x24], 0xffc3d44e
jne 0x404fb8
test bl, bl
je 0x404fb8
cmp dword [0x4aa180], esi
jne 0x404fb8
mov byte [esi + 0xc], 0
mov dword [0x4aa180], 0
mov byte [esi + 0xf], 0
push 0x3fff
push edi
push ebx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
mov eax, dword [ebp + 0x1c]
push ecx
call fcn.00406860
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test bl, bl
jne 0x404ff5
mov edx, 0x3fff
mov byte [esi + 0x10], bl
mov word [esi + 6], dx
mov eax, dword [0x4ab3a4]
cmp dword [ebp + 8], eax
jne 0x405051
mov al, byte [ebp + 0x18]
test al, al
jne 0x405011
push 0x3fff
push edi
push ebx
push 0
jmp 0x404fc3
cmp al, 1
je 0x405019
cmp al, 2
jne 0x405051
cmp dword [0x4ab400], 0
jne 0x405044
push 0
push str.32768
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x405051
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ad284]
jne 0x405051
test bl, bl
sete dl
mov byte [esi + 0xc], dl
jmp 0x404fb4
mov edx, dword [0x4aa180]
test edx, edx
je 0x405083
cmp edx, esi
je 0x405083
test bl, bl
jne 0x405083
mov eax, dword [0x4ab3a0]
cmp dword [ebp + 8], eax
jne 0x405077
xor eax, eax
cmp byte [esi + 4], al
sete al
jmp 0x40507b
movzx eax, byte [edx + 4]
test eax, eax
je 0x405083
mov byte [edx + 0x11], 1
cmp byte [esi + 8], 0
jne 0x4050bc
cmp byte [esi + 9], 0
jne 0x4050bc
push 0x3fff
push edi
mov ecx, dword [ebp + 0x18]
push ebx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x1c]
push ecx
push edx
call fcn.00406860
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x20], 0
mov ebx, 0x3fff
mov dword [esp + 0x10], ebx
mov dword [esp + 0x30], 0
je 0x405100
mov al, byte [esi + 0xc]
mov cl, byte [esi + 0xf]
mov byte [esp + 0x1b], al
movzx eax, word [esi + 6]
mov byte [esp + 0x1a], cl
mov ecx, ebx
mov byte [esi + 0xf], 0
cmp ax, cx
je 0x4050fc
mov ebx, eax
mov eax, ecx
mov dword [esp + 0x10], ebx
mov word [esi + 6], ax
cmp byte [ebp + 0x20], 0
mov eax, dword [0x4ab3a0]
sete cl
mov byte [esi + 0xc], cl
mov byte [esp + 0xd], 0
cmp dword [ebp + 8], eax
jne 0x40518f
cmp byte [esi + 4], 0
je 0x4051b2
mov eax, dword [0x4abba8]
cmp byte [eax + 0xb64c], 0
jne 0x40513a
cmp byte [eax + 0xb76c], 0
jne 0x40513a
xor ecx, ecx
jmp 0x40513f
mov ecx, 1
cmp byte [eax + 0xb88c], 0
mov byte [eax + 0x132c], cl
jne 0x40515b
cmp byte [eax + 0xb9ac], 0
jne 0x40515b
xor ecx, ecx
jmp 0x405160
mov ecx, 1
cmp byte [eax + 0xb40c], 0
mov byte [eax + 0x144c], cl
jne 0x405182
cmp byte [eax + 0xb52c], 0
jne 0x405182
xor ecx, ecx
mov byte [eax + 0x120c], cl
jmp 0x4051b2
mov ecx, 1
mov byte [eax + 0x120c], cl
jmp 0x4051b2
test eax, eax
jne 0x4051b2
push 1
call fcn.00411ca0
mov edx, dword [0x4aa180]
add esp, 4
mov byte [0x4ab26e], al
mov byte [0x4ab26d], al
mov byte [esp + 0xd], 1
mov eax, dword [esi]
test eax, eax
je 0x4051c2
cmp dword [eax], 7
mov byte [esp + 0xf], 1
je 0x4051c7
mov byte [esp + 0xf], 0
mov al, byte [esi + 8]
test al, al
je 0x405368
cmp byte [ebp + 0x20], 0
jne 0x405368
test edx, edx
je 0x4051ee
cmp byte [esi + 9], 0
je 0x4051ee
cmp esi, edx
jne 0x405368
cmp al, 1
jne 0x405220
cmp byte [esp + 0x20], 0
mov eax, dword [esp + 0x2c]
jne 0x405201
movzx eax, byte [ebp + 0x18]
mov edx, dword [esp + 0x20]
push edx
push eax
call fcn.0040a230
mov edx, dword [0x4aa180]
add esp, 8
test al, al
je 0x405220
mov byte [esp + 0xc], 1
jmp 0x405235
mov byte [esp + 0xc], 0
cmp esi, edx
je 0x405235
mov edx, esi
mov dword [0x4aa180], edx
mov byte [esi + 0x11], 0
cmp byte [esi + 9], 0
je 0x4052e8
cmp byte [esp + 0xd], 0
jne 0x40525b
push 1
mov byte [esp + 0x11], 1
call fcn.00411ca0
mov edx, dword [0x4aa180]
add esp, 4
mov al, byte [esi + 4]
mov cl, byte [0x4ab26e]
test al, al
je 0x40526c
not al
and cl, al
test cl, cl
jne 0x40527c
cmp byte [esp + 0xc], cl
jne 0x40527c
test byte [esi + 0xb], 1
je 0x4052e8
mov eax, dword [0x4ab3a0]
cmp dword [ebp + 8], eax
jne 0x40529e
cmp byte [esp + 0x20], 0
je 0x40529e
mov eax, dword [0x4abba0]
movzx ecx, cl
shl ecx, 9
add ecx, dword [esp + 0x2c]
jmp 0x4052af
movzx eax, byte [ebp + 0x18]
movzx ecx, cl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4abb9c]
movzx ebx, word [eax + ecx*2]
mov dword [esp + 0x10], ebx
test ebx, 0x4000
je 0x4052c5
mov word [esi + 6], bx
jmp 0x4052f2
mov ecx, dword [0x4a8a50]
mov eax, ebx
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x4052e8
mov ecx, dword [0x4abba4]
movzx eax, ax
mov ax, word [ecx + eax*2]
mov word [esi + 6], ax
mov ecx, 0x3fff
cmp bx, cx
jne 0x405368
mov al, byte [esp + 0xc]
test al, al
je 0x405302
or byte [esi + 0xb], 8
mov byte [edi + 4], 0x23
cmp byte [esi + 4], 0
jne 0x40533a
test byte [esi + 0xb], 1
jne 0x40533a
cmp byte [esp + 0xf], 0
jne 0x40533a
test al, al
jne 0x40533a
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
mov ebx, edi
jmp 0x406655
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push 0x3fff
push edi
push 0
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x1c]
push ecx
push edx
call fcn.00406860
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 9], 0
mov byte [esp + 0xe], 0
je 0x40540b
cmp byte [ebp + 0x20], 0
je 0x40540b
cmp edx, esi
jne 0x405394
cmp byte [esp + 0x1a], 0
je 0x40540b
xor edx, edx
mov dword [0x4aa180], edx
cmp byte [esi + 0xa], 0
jne 0x405406
mov al, byte [esi + 0xb]
test al, 8
je 0x4053aa
xor cl, cl
and al, 0xf7
mov byte [esi + 0xb], al
jmp 0x4053ac
mov cl, 1
cmp byte [esp + 0x1a], 0
je 0x4053d6
test cl, cl
je 0x4053d6
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push 0
push SysReAllocString
push 0x3fff
push eax
push ecx
push edx
mov ebx, edi
jmp 0x406655
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push 0x3fff
push edi
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x1c]
push ecx
push edx
call fcn.00406860
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esp + 0xe], 1
cmp byte [esi + 8], 0
je 0x4055dc
cmp byte [ebp + 0x20], 0
je 0x4055dc
cmp edx, esi
jne 0x40542b
xor edx, edx
mov dword [0x4aa180], edx
cmp byte [esi + 0xd], 0
je 0x405452
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
mov byte [esi + 0xd], 0
call fcn.0040f7a0
mov edx, dword [0x4aa180]
add esp, 0x18
cmp byte [esi + 0xe], 0
je 0x405479
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
mov byte [esi + 0xe], 0
call fcn.0040f7a0
mov edx, dword [0x4aa180]
add esp, 0x18
mov eax, 0x3fff
cmp bx, ax
jne 0x4054bf
mov al, byte [esi + 0xb]
test al, 8
je 0x4054bf
and al, 0xf7
mov byte [esi + 0xb], al
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
push 0x3fff
push edi
push ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
mov eax, dword [ebp + 0x1c]
call fcn.00406860
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov cl, byte [esp + 0xf]
test cl, cl
je 0x405522
mov al, byte [esi + 0x11]
cmp al, 2
jne 0x40550f
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
push 0xffc3d44e
push 0
push 0
push ebx
push esi
push 1
call fcn.0040f7a0
push 0xffc3d44d
push 0
push 0
push ebx
push esi
push 2
call fcn.0040f7a0
mov ecx, dword [ebp + 0x20]
push 0
push SysReAllocString
push 0x3fff
push ecx
push ebx
push esi
jmp 0x404f2b
cmp al, 1
jne 0x40558a
mov edx, dword [ebp + 0x20]
push 0x3fff
push edi
push edx
jmp 0x404fbf
cmp byte [esi + 0x11], 0
je 0x40558a
mov eax, 0x3fff
cmp bx, ax
jne 0x40558a
cmp byte [esi + 4], 0
jne 0x40548f
test byte [esi + 0xb], 1
mov ecx, dword [ebp + 0x20]
je 0x40556e
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push edi
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
mov eax, dword [ebp + 0x1c]
call fcn.00406860
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push 0
push SysReAllocString
push 0x3fff
push ecx
push edx
push eax
mov ebx, edi
jmp 0x406655
cmp byte [esi + 9], 0
jne 0x4055cb
cmp byte [esi + 4], 0
jne 0x40548f
test byte [esi + 0xb], 1
jne 0x40548f
test cl, cl
jne 0x40548f
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
mov ebx, edi
jmp 0x406655
cmp byte [esp + 0x1b], 0
jne 0x4055dc
cmp byte [esi + 0xa], 0
je 0x40548f
cmp byte [esp + 0xd], 0
jne 0x4055fd
mov ecx, 0x3fff
cmp bx, cx
jne 0x4055fd
push 1
call fcn.00411ca0
mov edx, dword [0x4aa180]
add esp, 4
mov byte [esp + 0xc], 0
test edx, edx
je 0x405ce1
cmp byte [ebp + 0x20], 0
je 0x40561a
cmp byte [esi + 0xa], 0
je 0x405ce1
mov eax, 0x3fff
cmp bx, ax
jne 0x405f70
mov esi, dword [esp + 0x14]
cmp byte [esi + 0x13], 0
mov dword [esp + 0x24], 0
jbe 0x405753
add esi, 0x16
mov cl, byte [esi]
mov edi, dword [0x4abba8]
movzx eax, cl
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + edi + 0xc], 0
je 0x405694
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x40567e
cmp byte [ebp + 0x20], 0
jne 0x4056ae
mov ecx, dword [esp + 0x14]
mov word [ecx + 6], ax
mov eax, 0x3fff
cmp bx, ax
jne 0x4056ca
jmp 0x405694
cmp byte [ebp + 0x20], 0
jne 0x405690
mov ebx, eax
mov dword [esp + 0x10], ebx
mov byte [esp + 0xd], cl
jmp 0x405694
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
movzx ecx, byte [ecx + 0x13]
inc eax
add esi, 4
mov dword [esp + 0x24], eax
cmp eax, ecx
jl 0x405641
jmp 0x4056bc
movzx ebx, word [esi + 2]
mov al, byte [esi]
mov dword [esp + 0x10], ebx
mov byte [esp + 0xd], al
mov ecx, 0x3fff
cmp bx, cx
je 0x405753
movzx ecx, byte [esp + 0xd]
mov eax, ecx
sub eax, 0x10
je 0x405731
dec eax
je 0x40570f
dec eax
je 0x4056ed
lea edx, [ecx + ecx*8]
shl edx, 5
add edx, dword [0x4abba8]
jmp 0x405807
mov ecx, dword [0x4abba8]
xor eax, eax
cmp byte [ecx + 0xb9ac], al
setne al
lea edx, [eax + eax*8 + 0x5c4]
shl edx, 5
add edx, ecx
jmp 0x405807
mov ecx, dword [0x4abba8]
xor eax, eax
cmp byte [ecx + 0xb76c], al
setne al
lea edx, [eax + eax*8 + 0x5b2]
shl edx, 5
add edx, ecx
jmp 0x405807
mov ecx, dword [0x4abba8]
xor eax, eax
cmp byte [ecx + 0xb52c], al
setne al
lea edx, [eax + eax*8 + 0x5a0]
shl edx, 5
add edx, ecx
jmp 0x405807
mov esi, dword [esp + 0x14]
cmp byte [esi + 0x14], 0
mov dword [esp + 0x24], 0
jbe 0x40581b
add esi, 0xde
nop
movzx ecx, word [esi]
mov edi, dword [0x4abbac]
mov eax, ecx
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + edi + 0xc], 0
je 0x4057c3
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x4057ad
cmp byte [ebp + 0x20], 0
jne 0x4057dd
mov ecx, dword [esp + 0x14]
mov word [ecx + 6], ax
mov eax, 0x3fff
cmp bx, ax
jne 0x4057f6
jmp 0x4057c3
cmp byte [ebp + 0x20], 0
jne 0x4057bf
mov ebx, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], ecx
jmp 0x4057c3
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
movzx ecx, byte [ecx + 0x14]
inc eax
add esi, 4
mov dword [esp + 0x24], eax
cmp eax, ecx
jl 0x405770
jmp 0x4057ec
movzx ebx, word [esi + 2]
movzx eax, word [esi]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], eax
mov ecx, 0x3fff
cmp bx, cx
je 0x40581b
movzx edx, word [esp + 0x38]
lea edx, [edx + edx*8]
shl edx, 5
add edx, dword [0x4abbac]
mov eax, 0x3fff
mov dword [0x4aa180], edx
cmp bx, ax
jne case.default.0x40582d
movzx eax, byte [ebp + 0x18]
add eax, 0xffffff60
cmp eax, 5
ja case.default.0x40582d
jmp dword [eax*4 + 0x406700]
mov al, 0x11
jmp 0x40583e
mov al, 0x12
jmp 0x40583e
mov al, 0x10
mov ecx, dword [0x4abba8]
movzx eax, al
lea esi, [eax + eax*8]
shl esi, 5
movzx eax, byte [esi + ecx + 0x13]
add esi, ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], 0
test eax, eax
jle 0x40591e
add esi, 0x16
nop
mov cl, byte [esi]
mov edi, dword [0x4abba8]
movzx eax, cl
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + edi + 0xc], 0
je 0x4058ee
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x4058d8
cmp byte [ebp + 0x20], 0
jne 0x405906
mov ecx, dword [esp + 0x14]
mov word [ecx + 6], ax
mov eax, 0x3fff
cmp bx, ax
je 0x4058ee
mov ecx, edi
movzx edx, byte [esp + 0xd]
mov eax, edx
sub eax, 0x10
je 0x4059ce
dec eax
je 0x4059b5
dec eax
je 0x405999
lea edx, [edx + edx*8]
shl edx, 5
add edx, ecx
jmp 0x405a3f
cmp byte [ebp + 0x20], 0
jne 0x4058ea
mov ebx, eax
mov dword [esp + 0x10], ebx
mov byte [esp + 0xd], cl
jmp 0x4058ee
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
inc eax
add esi, 4
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x3c]
jl 0x405870
jmp 0x405914
movzx ebx, word [esi + 2]
mov cl, byte [esi]
mov dword [esp + 0x10], ebx
mov byte [esp + 0xd], cl
mov esi, dword [esp + 0x34]
mov ecx, dword [0x4abba8]
mov eax, 0x3fff
cmp bx, ax
jne 0x4058ad
movzx eax, byte [esi + 0x14]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], 0
test eax, eax
jle case.default.0x40582d
add esi, 0xde
jmp 0x405950
movzx ecx, word [esi]
mov edi, dword [0x4abbac]
mov eax, ecx
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + edi + 0xc], 0
je 0x4059fd
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x4059e7
cmp byte [ebp + 0x20], 0
jne 0x405a15
mov ecx, dword [esp + 0x14]
mov word [ecx + 6], ax
mov eax, 0x3fff
cmp bx, ax
jne 0x405a2e
jmp 0x4059fd
xor eax, eax
cmp byte [ecx + 0xb9ac], al
setne al
lea edx, [eax + eax*8 + 0x5c4]
shl edx, 5
add edx, ecx
jmp 0x405a3f
xor eax, eax
cmp byte [ecx + 0xb76c], al
setne al
lea edx, [eax + eax*8 + 0x5b2]
shl edx, 5
add edx, ecx
jmp 0x405a3f
xor eax, eax
cmp byte [ecx + 0xb52c], al
setne al
lea edx, [eax + eax*8 + 0x5a0]
shl edx, 5
add edx, ecx
jmp 0x405a3f
cmp byte [ebp + 0x20], 0
jne 0x4059f9
mov ebx, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], ecx
jmp 0x4059fd
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
inc eax
add esi, 4
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x3c]
jl 0x405950
jmp 0x405a24
movzx ebx, word [esi + 2]
movzx eax, word [esi]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], eax
mov ecx, 0x3fff
cmp bx, cx
je case.default.0x40582d
movzx edx, word [esp + 0x38]
lea edx, [edx + edx*8]
shl edx, 5
add edx, dword [0x4abbac]
mov dword [0x4aa180], edx
mov esi, ebx
mov ecx, 0x3fff
and esi, 0x3fff
cmp bx, cx
je 0x405ad9
mov eax, dword [0x4a8a50]
cmp si, word [eax]
jae 0x405ad5
mov edx, dword [ebp + 0x20]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov edi, dword [ebp + 0x24]
push edx
lea eax, [esp + 0x14]
push eax
add ecx, 0xb
lea esi, [ebx + 4]
lea eax, [esp + 0x14]
call fcn.0040a460
add esp, 8
mov dword [esp + 0x30], eax
test eax, eax
jne 0x405ac3
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push 0x3fff
push ebx
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
mov eax, dword [ebp + 0x1c]
call fcn.00406860
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x10]
mov edx, dword [0x4aa180]
mov esi, ebx
and esi, 0x3fff
mov byte [edx + 0x11], 2
mov eax, 0x3ffe
cmp si, ax
je 0x405af1
mov ecx, 0x3ffd
cmp si, cx
jne 0x405ce1
cmp byte [ebp + 0x20], 0
jne 0x405aff
mov eax, dword [esp + 0x14]
mov byte [eax + 0xf], 1
test byte [0x4ab26d], 0xc
jne 0x405b25
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040f7a0
mov edx, dword [0x4aa180]
add esp, 0x18
mov al, byte [ebp + 0x18]
cmp al, 0xa2
je 0x405b30
cmp al, 0xa3
jne 0x405b5c
cmp byte [ebp + 0x20], 0
jne 0x405b5c
mov edi, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push edi
push ecx
push 1
call fcn.0040f7a0
mov edx, dword [0x4aa180]
mov al, byte [ebp + 0x18]
add esp, 0x18
jmp 0x405b5f
mov edi, dword [ebp + 0x1c]
mov ecx, 0x3ffd
mov byte [edx + 0xd], 1
cmp si, cx
jne 0x405b99
test byte [0x4ab26d], 0x30
jne 0x405b93
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040f7a0
mov edx, dword [0x4aa180]
add esp, 0x18
mov byte [edx + 0xe], 1
jmp 0x405c0f
mov edx, 0x3ffe
cmp si, dx
jne 0x405c0f
cmp al, 0xa0
je 0x405bab
cmp al, 0xa1
jne 0x405bc9
cmp byte [ebp + 0x20], 0
jne 0x405bc9
mov eax, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push edi
push eax
push 1
call fcn.0040f7a0
add esp, 0x18
test byte [0x4ab26d], 0x10
je 0x405bec
push 0xffc3d44d
push 0
push 0
push 0
push 0xa0
push 1
call fcn.0040f7a0
add esp, 0x18
test byte [0x4ab26d], 0x20
je 0x405c0f
push 0xffc3d44d
push 0
push 0
push 0
push 0xa1
push 1
call fcn.0040f7a0
add esp, 0x18
test byte [0x4ab26d], 1
je 0x405c32
push 0xffc3d44d
push 0
push 0
push 0
push 0xa2
push 1
call fcn.0040f7a0
add esp, 0x18
test byte [0x4ab26d], 2
je 0x405c55
push 0xffc3d44d
push 0
push 0
push 0
push 0xa3
push 1
call fcn.0040f7a0
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040f7a0
mov ecx, 0x3ffd
add esp, 0x18
cmp si, cx
jne 0x405cb1
mov edx, dword [0x4aa180]
cmp byte [edx + 0xe], 0
je 0x405cb1
mov al, byte [ebp + 0x18]
cmp al, 0x60
jb 0x405c8d
cmp al, 0x69
jbe 0x405c91
cmp al, 0x6e
jne 0x405cb1
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040f7a0
mov eax, dword [0x4aa180]
add esp, 0x18
mov byte [eax + 0xe], 0
cmp byte [ebp + 0x20], 0
mov ebx, dword [esp + 0x1c]
mov byte [ebx + 4], 0x68
jne 0x405cc7
mov ecx, dword [esp + 0x14]
mov byte [ecx + 0x10], 1
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
push 0
push SysReAllocString
push 0x3fff
push edx
push edi
push eax
jmp 0x406655
mov ecx, 0x3fff
cmp bx, cx
jne 0x405f70
mov edx, dword [esp + 0x14]
mov cl, byte [edx + 4]
mov al, byte [0x4ab26e]
test cl, cl
je 0x405d03
not cl
and al, cl
mov edi, dword [ebp + 8]
mov esi, dword [0x4ab3a0]
cmp edi, esi
jne 0x405d29
cmp byte [esp + 0x20], 0
je 0x405d29
mov edx, dword [0x4abba0]
movzx ecx, al
shl ecx, 9
add ecx, dword [esp + 0x2c]
jmp 0x405d3b
movzx edx, byte [ebp + 0x18]
movzx ecx, al
shl ecx, 8
add ecx, edx
mov edx, dword [0x4abb9c]
movzx ecx, word [edx + ecx*2]
mov edx, 0x3fff
mov dword [esp + 0x10], ecx
cmp cx, dx
jne 0x405dbe
cmp byte [0x4aa17b], 0
je 0x405dbe
mov dl, byte [ebp + 0x18]
cmp dl, 9
je 0x405dbe
and al, 0xf3
cmp edi, esi
jne 0x405d81
cmp byte [esp + 0x20], 0
je 0x405d81
mov ecx, dword [0x4abba0]
movzx eax, al
shl eax, 9
add eax, dword [esp + 0x2c]
movzx ecx, word [ecx + eax*2]
jmp 0x405d96
movzx eax, al
movzx ecx, dl
mov edx, dword [0x4abb9c]
shl eax, 8
add eax, ecx
movzx ecx, word [edx + eax*2]
mov eax, ecx
and eax, 0x3fff
mov edx, 0x3ff9
mov dword [esp + 0x10], ecx
cmp ax, dx
jbe 0x405db5
mov edx, 0x3fff
cmp ax, dx
jb 0x405dbe
mov ecx, 0x3fff
mov dword [esp + 0x10], ecx
test ecx, 0x4000
je 0x405dfa
cmp byte [ebp + 0x20], 0
jne 0x405ea0
mov eax, dword [esp + 0x14]
mov word [eax + 6], cx
mov eax, dword [esp + 0x14]
add eax, 6
mov ecx, 0x3fff
cmp word [eax], cx
jne 0x405f25
mov edx, dword [esp + 0x1c]
push ecx
push edx
push 0
jmp 0x405f02
mov edx, 0x3fff
cmp cx, dx
je 0x405eb1
mov eax, ecx
and eax, edx
mov edx, dword [ebp + 0x20]
test dl, dl
je 0x405e7d
mov esi, dword [0x4a8a50]
cmp ax, word [esi]
jae 0x405e74
mov esi, dword [0x4abba4]
mov ebx, eax
add ebx, ebx
mov eax, 0x3fff
cmp word [ebx + esi], ax
je 0x405e74
cmp byte [esp + 0xe], 0
jne 0x405e65
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov edi, dword [ebp + 0x24]
push edx
lea edx, [esp + 0x14]
add ecx, 0xb
push edx
add esi, 4
lea eax, [esp + 0x14]
call fcn.0040a460
add esp, 8
mov dword [esp + 0x30], eax
test eax, eax
jne 0x405e9c
mov eax, dword [0x4abba4]
movzx ecx, word [ebx + eax]
mov dword [esp + 0x10], ecx
jmp 0x405ea0
cmp byte [esp + 0xe], 0
jne 0x405eb1
jmp 0x405ea0
mov edx, dword [0x4a8a50]
cmp ax, word [edx]
jae 0x405ea0
mov edx, dword [0x4abba4]
mov ax, word [edx + eax*2]
mov edx, dword [esp + 0x14]
mov word [edx + 6], ax
jmp 0x405ea0
mov ecx, dword [esp + 0x10]
mov eax, 0x3fff
cmp cx, ax
jne 0x405f70
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x20]
test cl, cl
je 0x405dd8
mov eax, dword [esp + 0x14]
cmp byte [eax + 4], 0
jne 0x405ef7
test byte [eax + 0xb], 1
jne 0x405ef7
cmp byte [eax + 8], 0
je 0x405ef7
cmp byte [esp + 0xf], 0
jne 0x405ef7
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ebx, dword [esp + 0x1c]
push 0
push SysReAllocString
push 0x3fff
push ecx
push edx
push eax
jmp 0x406655
mov edx, dword [esp + 0x1c]
push 0x3fff
push edx
push ecx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
mov eax, dword [ebp + 0x1c]
push edi
call fcn.00406860
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x14]
push 1
push eax
add ecx, 0xb
xor esi, esi
lea eax, [esp + 0x14]
xor edi, edi
call fcn.0040a460
mov edx, dword [ebp + 0x18]
add esp, 8
cmp byte [esp + 0xc], 0
je 0x405f59
mov ecx, dword [esp + 0x1c]
push 0x3fff
push ecx
push edi
jmp 0x40549c
mov ebx, dword [esp + 0x1c]
push 0
push SysReAllocString
push 0x3fff
push 0
jmp 0x406650
mov ebx, dword [esp + 0x14]
mov al, byte [ebx + 0xb]
add ebx, 0xb
mov dword [esp + 0x34], ebx
test al, 8
je 0x405f91
cmp byte [ebp + 0x20], 0
je 0x405f91
and al, 0xf7
mov byte [esp + 0xc], 1
mov byte [ebx], al
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4a8a50]
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x406091
cmp dword [esp + 0x30], 0
jne 0x406091
mov edx, dword [ebp + 0x20]
mov esi, dword [esp + 0x1c]
mov edi, dword [ebp + 0x24]
push edx
lea eax, [esp + 0x14]
push eax
add esi, 4
lea eax, [esp + 0x14]
mov ecx, ebx
call fcn.0040a460
add esp, 8
mov dword [esp + 0x30], eax
test eax, eax
jne 0x406091
cmp byte [ebp + 0x20], al
je 0x406022
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0x10], al
mov ecx, dword [ebp + 0x18]
je 0x40600f
mov edx, dword [ebp + 0x20]
mov ebx, dword [esp + 0x1c]
push eax
mov eax, dword [ebp + 0x1c]
push SysReAllocString
push 0x3fff
push edx
push eax
push ecx
jmp 0x406655
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x20]
push 0x3fff
push edx
push eax
jmp 0x405099
mov eax, dword [esp + 0x14]
add eax, 6
mov ecx, 0x3fff
cmp word [eax], cx
jne 0x406044
mov edx, dword [esp + 0x1c]
push 0x3fff
push edx
push 0
jmp 0x404fbf
push 1
push eax
xor esi, esi
lea eax, [esp + 0x14]
mov ecx, ebx
xor edi, edi
mov byte [esp + 0x14], 0
call fcn.0040a460
add esp, 8
cmp byte [esp + 0xc], 0
jne 0x406033
mov eax, dword [esp + 0x34]
and byte [eax], 0xf7
mov eax, dword [ebp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [ebp + 0x18]
mov ebx, dword [esp + 0x1c]
push edi
push SysReAllocString
push 0x3fff
push edi
push eax
mov byte [edx + 0x10], 1
push ecx
jmp 0x406655
mov esi, dword [esp + 0x10]
mov dl, byte [0x4ab26d]
and esi, 0x3fff
test dl, 0xcc
je 0x406168
cmp byte [esp + 0xc], 0
jne 0x406168
cmp byte [0x4aa17e], 0
jne 0x4060cd
mov eax, dword [ebp + 8]
cmp eax, dword [0x4ab3a4]
jne 0x406168
mov bl, byte [0x4ab26f]
test dl, 0xc0
je 0x4060ff
test bl, 0xc0
jne 0x4060f6
push 0xc0
mov eax, esi
call fcn.0040a6b0
mov dl, byte [0x4ab26d]
add esp, 4
test al, al
je 0x4060ff
mov byte [0x4aa17f], 1
jmp 0x406168
cmp byte [0x4aa17f], 0
jne 0x406168
test dl, 0xc
je 0x406168
test dl, 3
jne 0x406168
test bl, 0xc
jne 0x40612d
push 0xc
mov eax, esi
call fcn.0040a6b0
mov dl, byte [0x4ab26d]
add esp, 4
test al, al
je 0x406168
cmp dword [0x4ab3a0], 0
je 0x40613f
mov byte [0x4aa17f], 1
jmp 0x406168
movzx ecx, word [0x4a78a4]
movzx edx, byte [0x4a7365]
push 0xffc3d44d
push 0
push 0
push ecx
push edx
push 2
call fcn.0040f7a0
mov dl, byte [0x4ab26d]
add esp, 0x18
mov eax, esi
lea ecx, [eax - 0x3ffa]
cmp ecx, 4
ja case.default.0x406179
jmp dword [ecx*4 + 0x406718]
cmp byte [0x4aa17b], 0
jne case.0x406179.16379
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
push 0x3fff
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
mov eax, dword [ebp + 0x1c]
call fcn.00406860
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov byte [esp + 0xe], al
test dl, 4
je 0x4061cc
mov al, 0xa4
jmp 0x4061d3
test dl, 8
je 0x4061d7
mov al, 0xa5
mov byte [esp + 0xe], al
cmp byte [0x4aa17b], 0
je 0x40624d
mov ecx, 0x3ffb
cmp si, cx
je case.0x406179.16381
test al, al
movzx eax, al
jne 0x4061fa
mov eax, 0x12
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040f7a0
mov edx, dword [esp + 0x2c]
add esp, 0x18
cmp byte [edx + 4], 0
je 0x406241
mov eax, dword [ebp + 0x18]
cmp al, 0x5b
je 0x406241
cmp al, 0x5c
je 0x406241
cmp byte [ebp + 0x20], 0
jne 0x406241
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040f7a0
add esp, 0x18
mov byte [0x4aa17b], 0
jmp 0x4064af
mov cl, byte [ebp + 0x18]
cmp cl, 0xa4
je 0x40625f
mov byte [esp + 0xd], 0
cmp cl, 0xa5
jne 0x406264
mov byte [esp + 0xd], 1
cmp cl, 0xa0
je 0x406272
cmp cl, 0xa1
je 0x406272
xor bl, bl
jmp 0x406274
mov bl, 1
mov byte [esp + 0x1b], bl
cmp cl, 0xa2
je 0x406287
mov byte [esp + 0x1a], 0
cmp cl, 0xa3
jne 0x40628c
mov byte [esp + 0x1a], 1
xor al, al
mov byte [esp + 0x2c], al
test dl, 0x10
je 0x40629f
mov al, 0xa0
mov byte [esp + 0x2c], al
jmp 0x4062c2
test dl, 0x20
je 0x4062ac
mov al, 0xa1
mov byte [esp + 0x2c], al
jmp 0x4062c2
cmp byte [ebp + 0x20], 0
jne 0x4062bc
test bl, bl
je 0x4062bc
mov al, cl
mov byte [esp + 0x2c], al
mov dl, byte [0x4ab26d]
mov byte [esp + 0x20], 0
test dl, 1
je 0x4062d3
mov byte [esp + 0x20], 0xa2
jmp 0x4062f0
test dl, 2
je 0x4062df
mov byte [esp + 0x20], 0xa3
jmp 0x4062f0
cmp byte [ebp + 0x20], 0
jne 0x4062f0
cmp byte [esp + 0x1a], 0
je 0x4062f0
mov byte [esp + 0x20], cl
mov esi, dword [esp + 0x2c]
xor bl, bl
test al, al
je 0x406315
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 1
call fcn.0040f7a0
mov cl, byte [ebp + 0x18]
add esp, 0x18
mov bl, 1
cmp byte [esp + 0x20], 0
je 0x406339
mov eax, dword [esp + 0x20]
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040f7a0
mov cl, byte [ebp + 0x18]
add esp, 0x18
cmp byte [esp + 0xd], 0
je 0x406348
cmp byte [ebp + 0x20], 0
jne 0x406350
jmp 0x40634c
mov cl, byte [esp + 0xe]
test cl, cl
jne 0x406367
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040f7a0
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040f7a0
add esp, 0x18
test bl, bl
je 0x40639f
cmp byte [esp + 0x1b], 0
jne 0x40639f
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 0
call fcn.0040f7a0
add esp, 0x18
mov byte [0x4aa17b], 1
jmp 0x4064af
cmp byte [0x4aa17b], 0
jne 0x4063c7
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 0x20]
push 0x3fff
push ecx
push edx
jmp 0x404fbf
cmp byte [ebp + 0x20], 0
mov al, byte [ebp + 0x18]
jne 0x406402
cmp al, 0xa2
je 0x4063e0
cmp al, 0xa3
je 0x4063e0
cmp al, 0xa0
je 0x4063e0
cmp al, 0xa1
jne 0x406402
mov edx, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push 0
push edx
push 1
call fcn.0040f7a0
mov al, byte [ebp + 0x18]
mov dl, byte [0x4ab26d]
add esp, 0x18
test dl, 0xc
je 0x406415
cmp byte [ebp + 0x20], 0
je 0x40642c
cmp al, 0xa4
je 0x406415
cmp al, 0xa5
jne 0x40642c
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040f7a0
add esp, 0x18
mov eax, 0x3ffd
xor bl, bl
cmp si, ax
jne 0x40645a
test byte [0x4ab26d], 0x30
jne 0x40645a
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040f7a0
add esp, 0x18
mov bl, 1
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040f7a0
add esp, 0x18
test bl, bl
je 0x4064af
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040f7a0
add esp, 0x18
jmp 0x4064af
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x4064af
cmp byte [eax], 5
jb 0x4064af
mov edx, ecx
movzx eax, word [edx + 0x14]
shl eax, 0x10
or dword [esp + 0x28], eax
cmp byte [esp + 0xf], 0
mov esi, dword [esp + 0x1c]
mov ebx, dword [ebp + 0x20]
mov edi, dword [esp + 0x14]
mov byte [esi + 4], 0x68
je 0x406516
test bl, bl
je 0x4065e0
cmp byte [edi + 8], 0
je 0x406516
mov edi, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
push 0xffc3d44e
push 0
push 0
push edi
push ebx
push 1
call fcn.0040f7a0
push 0xffc3d44d
push 0
push 0
push edi
push ebx
push 2
call fcn.0040f7a0
mov ecx, dword [esp + 0x58]
mov edx, dword [ebp + 0x20]
push 0
push SysReAllocString
push ecx
push edx
push edi
push ebx
mov ebx, esi
jmp 0x404f2d
test bl, bl
je 0x4065e0
cmp byte [edi + 4], 0
je 0x406576
cmp byte [edi + 0x10], 0
je 0x406549
mov eax, dword [esp + 0x28]
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
mov ebx, esi
jmp 0x406655
mov ecx, dword [esp + 0x28]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push esi
push ebx
push edx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
mov eax, dword [ebp + 0x1c]
call fcn.00406860
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0xc], 0
je 0x406633
mov eax, dword [ebp + 8]
cmp eax, dword [0x4ab3a4]
jne 0x4065b6
mov ecx, dword [esp + 0x28]
mov edx, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x14]
push esi
push ebx
push edx
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push ecx
push eax
mov eax, dword [ebp + 0x1c]
call fcn.00406860
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x28]
mov ecx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
push esi
push ebx
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push ecx
push edx
push eax
mov eax, dword [ebp + 0x1c]
call fcn.00406860
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4aa180]
mov byte [edi + 0xf], 1
test eax, eax
je 0x4065f7
cmp byte [eax + 4], 0
je 0x4065f7
mov byte [eax + 0x11], 2
cmp byte [esp + 0xc], 0
je 0x406610
mov eax, dword [esp + 0x34]
or byte [eax], 8
mov eax, dword [esp + 0x28]
push eax
push esi
jmp 0x405095
mov eax, dword [ebp + 0x18]
cmp al, 0xa4
je 0x40661b
cmp al, 0xa5
jne 0x406633
mov ecx, dword [ebp + 0x1c]
push 0xffc3d450
push 0
push 0
push ecx
push eax
push 1
call fcn.0040f7a0
add esp, 0x18
test bl, bl
jne 0x40663b
mov byte [edi + 0x10], 1
mov edx, dword [esp + 0x28]
mov eax, dword [ebp + 0x20]
push 0
push SysReAllocString
push edx
mov edx, dword [ebp + 0x18]
push eax
mov ebx, esi
mov ecx, dword [ebp + 0x1c]
push ecx
push edx
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
call fcn.00406730
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret