Function at 0x404af0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x104
mov eax, dword [esp + 0x124]
mov dl, byte [esp + 0x118]
push ebx
mov ebx, dword [esp + 0x124]
push ebp
push esi
push edi
mov edi, dword [esp + 0x12c]
mov dword [esp + 0x28], 0x3fff
cmp eax, 0xffc3d44f
je 0x404b38
cmp eax, 0xffc3d44e
je 0x404b38
mov byte [esp + 0x11], 0
cmp eax, 0xffc3d44d
jne 0x404b3d
mov byte [esp + 0x11], 1
mov ecx, dword [0x4c7eb8]
test ecx, ecx
jne 0x404b54
lea ebp, [esp + 0x40]
mov dword [esp + 0x3c], ebp
jmp 0x404c1c
mov eax, dword [0x4c7ebc]
mov ebp, eax
imul ebp, ebp, 0xd4
inc eax
add ebp, ecx
mov dword [esp + 0x3c], ebp
mov dword [0x4c7ebc], eax
cmp eax, dword [0x4c38b8]
jl 0x404b7f
mov dword [0x4c7ebc], 0
mov al, byte [esp + 0x128]
mov byte [ebp], al
mov byte [ebp + 6], bl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [0x4ca2c4]
mov dword [0x4c7ec0], eax
mov dword [esp + 0x30], ecx
fild dword [esp + 0x30]
jns 0x404baf
fadd dword [0x4bd750]
fdiv qword [0x4bd748]
mov dword [0x4ca2c4], eax
fstp dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x404bf1
cmp esi, dword [0x4c7ec4]
je 0x404be9
mov eax, dword [0x4c74a8]
push esi
lea edx, [ebp + 0xc]
push edx
push 0x418
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x404c0f
xor ecx, ecx
mov word [ebp + 0xc], cx
jmp 0x404c0f
mov eax, 0x4a28b8
lea edx, [ebp + 0xc]
sub edx, eax
jmp 0x404c00
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404c00
mov dl, byte [esp + 0x128]
mov dword [0x4c7ec4], esi
cmp dl, 0xe7
jne 0x404c6f
mov edx, dword [esp + 0x124]
movzx eax, word [edx + 4]
push 0
push 0x3fff
push ebp
mov ecx, 0x55
mov word [ebp + 4], cx
mov ecx, dword [esp + 0x12c]
push ebx
push ecx
mov ecx, dword [esp + 0x130]
push ecx
mov ecx, dword [esp + 0x130]
push ecx
mov cl, 0xe7
mov word [ebp + 2], ax
call fcn.00406a60
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
lea eax, [edx + 0x64]
mov word [ebp + 2], di
cmp al, 3
ja 0x404c83
xor edi, edi
mov dword [esp + 0x12c], edi
mov ecx, dword [esp + 0x118]
cmp ecx, dword [0x4c75dc]
jne 0x404cbc
mov al, byte [esp + 0x138]
and al, 1
mov byte [esp + 0x13], al
jne 0x404de4
test bl, bl
setne al
dec al
movzx ecx, dl
and al, 0x80
mov byte [ecx + 0x4c74c8], al
jmp 0x404de4
mov edx, dword [esp + 0x138]
shr edx, 4
and dl, 1
mov byte [esp + 0x13], dl
test edi, 0x100
jne case.0x404d07.13
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je case.0x404d07.13
movzx eax, byte [esp + 0x128]
add eax, 0xfffffff4
cmp eax, 0x62
ja case.0x404d07.13
movzx eax, byte [eax + 0x406840]
jmp dword [eax*4 + 0x406810]
test bl, bl
sete cl
mov byte [0x4c6394], cl
jmp case.0x404d07.13
test bl, bl
sete dl
mov byte [0x4c6395], dl
jmp case.0x404d07.13
test bl, bl
sete al
mov byte [0x4c6396], al
jmp case.0x404d07.13
test bl, bl
sete cl
mov byte [0x4c6397], cl
jmp case.0x404d07.13
test bl, bl
sete dl
mov byte [0x4c6398], dl
jmp case.0x404d07.13
test bl, bl
sete al
mov byte [0x4c6399], al
jmp case.0x404d07.13
test bl, bl
sete cl
mov byte [0x4c639a], cl
jmp case.0x404d07.13
test bl, bl
sete dl
mov byte [0x4c639b], dl
jmp case.0x404d07.13
test bl, bl
sete al
mov byte [0x4c639c], al
jmp case.0x404d07.13
test bl, bl
sete cl
mov byte [0x4c639d], cl
jmp case.0x404d07.13
test bl, bl
sete dl
mov byte [0x4c639e], dl
movzx esi, byte [esp + 0x128]
mov ecx, dword [0x4c7edc]
lea eax, [esi + esi*8]
shl eax, 5
cmp byte [eax + ecx + 4], 0
jne 0x404de4
test byte [esp + 0x138], 0x10
jne 0x404de4
mov al, byte [esp + 0x128]
push ebx
call fcn.00407d50
add esp, 4
test al, al
je 0x404de4
test bl, bl
setne dl
dec dl
and dl, 0x80
mov byte [esi + 0x4c74c8], dl
cmp byte [esp + 0x11], 0
je 0x404def
mov al, 0x69
jmp 0x404dfb
mov al, byte [esp + 0x13]
neg al
sbb al, al
and al, 0x41
add al, 0x20
cmp byte [0x4c75c8], 0
cbw
mov word [ebp + 4], ax
je 0x404e21
mov al, byte [esp + 0x128]
cmp al, 0x5b
je 0x404e19
cmp al, 0x5c
jne 0x404e21
test bl, bl
je 0x405375
cmp byte [0x4c63b6], 0
je 0x404edb
cmp byte [esp + 0x128], 0x1b
jne 0x404edb
test bl, bl
jne 0x404edb
push 0
push str.32771
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x404edb
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 0x404edb
push 0xffc3d44d
push 0
push 0
push 0
push 0x1b
push 0
call fcn.0040f400
mov dl, byte [0x4c74a5]
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.0040f400
push 0
push SysReAllocString
push 0x3fff
push 0
push edi
push 0x1b
mov eax, dword [esp + 0x16c]
mov ecx, dword [esp + 0x160]
mov ebx, ebp
call fcn.00406930
add esp, 0x48
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
movzx eax, di
mov dword [esp + 0x2c], eax
lea eax, [eax + eax*8]
shl eax, 5
add eax, dword [0x4c7ee0]
mov cl, byte [eax + 0x12]
mov byte [esp + 0x34], cl
mov ecx, dword [0x4c75d8]
cmp dword [esp + 0x118], ecx
jne 0x404f13
cmp byte [esp + 0x34], 0
je 0x404f13
mov esi, eax
mov dword [esp + 0x1c], eax
jmp 0x404f2b
movzx eax, byte [esp + 0x128]
lea esi, [eax + eax*8]
shl esi, 5
add esi, dword [0x4c7edc]
mov dword [esp + 0x1c], esi
cmp byte [esp + 0x11], 0
je 0x404f83
cmp dword [esp + 0x134], 0xffc3d44e
jne 0x404f5d
test bl, bl
je 0x404f5d
cmp dword [0x4c63b8], esi
jne 0x404f5d
mov byte [esi + 0xc], 0
mov byte [esi + 0xf], 0
mov dword [0x4c63b8], 0
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
mov ecx, dword [esp + 0x118]
push 0
push 0x3fff
push ebp
push ebx
push edx
push eax
push ecx
jmp 0x4067ed
test bl, bl
jne 0x404f93
mov edx, 0x3fff
mov byte [esi + 0x10], bl
mov word [esi + 6], dx
cmp dword [esp + 0x118], ecx
jne 0x405052
test bl, bl
je 0x4050c0
cmp byte [0x4c63be], 0
mov al, byte [esp + 0x128]
je 0x404fbc
cmp al, 0x5b
je 0x404feb
cmp byte [0x4c63bd], 0
je 0x404fc9
cmp al, 0x5c
je 0x404feb
cmp byte [0x4c63bc], 0
je 0x404fd6
cmp al, 0xa4
je 0x404feb
cmp byte [0x4c63b7], 0
je 0x4050c0
cmp al, 0xa5
jne 0x4050c0
movzx eax, al
add eax, 0xffffffa5
cmp eax, 0x4a
ja case.0x404ffd.93
movzx eax, byte [eax + 0x4068b8]
jmp dword [eax*4 + 0x4068a4]
mov byte [0x4c63be], 0
jmp case.0x404ffd.93
mov byte [0x4c63bd], 0
jmp case.0x404ffd.93
mov byte [0x4c63bc], 0
jmp case.0x404ffd.93
mov byte [0x4c63b7], 0
test byte [0x4c74a5], 3
jne 0x4050c0
movzx ecx, byte [0x4c3385]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
push 2
call fcn.0040f400
add esp, 0x18
jmp 0x4050c0
mov al, byte [esp + 0x128]
test al, al
jne 0x405085
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
mov ecx, dword [esp + 0x118]
push 0
push 0x3fff
push ebp
push ebx
push edx
push eax
push ecx
xor cl, cl
jmp 0x4067f4
cmp al, 1
je 0x40508d
cmp al, 2
jne 0x4050c0
cmp dword [0x4c7634], 0
jne 0x4067c0
push 0
push str.32768
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4050c0
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c95bc]
je 0x4067c0
mov edx, dword [0x4c63b8]
test edx, edx
je 0x4050f9
cmp edx, esi
je 0x4050f9
test bl, bl
jne 0x4050f9
mov ecx, dword [0x4c75d8]
cmp dword [esp + 0x118], ecx
jne 0x4050eb
xor eax, eax
cmp byte [esi + 4], al
sete al
jmp 0x4050ef
movzx eax, byte [edx + 4]
test eax, eax
je 0x4050ff
mov byte [edx + 0x11], 1
jmp 0x4050ff
mov ecx, dword [0x4c75d8]
cmp byte [esi + 8], 0
jne 0x40510f
cmp byte [esi + 9], 0
je 0x404f5d
mov dword [esp + 0x14], 0x3fff
mov dword [esp + 0x38], 0
test bl, bl
je 0x40514d
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 0x40514b
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 [esp + 0x118], ecx
jne 0x4051dc
cmp byte [esi + 4], 0
je 0x4051f9
mov ecx, dword [0x4c7edc]
cmp byte [ecx + 0xb64c], 0
jne 0x405187
cmp byte [ecx + 0xb76c], 0
jne 0x405187
xor eax, eax
jmp 0x40518c
mov eax, 1
cmp byte [ecx + 0xb88c], 0
mov byte [ecx + 0x132c], al
jne 0x4051a8
cmp byte [ecx + 0xb9ac], 0
jne 0x4051a8
xor eax, eax
jmp 0x4051ad
mov eax, 1
cmp byte [ecx + 0xb40c], 0
mov byte [ecx + 0x144c], al
jne 0x4051cf
cmp byte [ecx + 0xb52c], 0
jne 0x4051cf
xor eax, eax
mov byte [ecx + 0x120c], al
jmp 0x4051f9
mov eax, 1
mov byte [ecx + 0x120c], al
jmp 0x4051f9
test ecx, ecx
jne 0x4051f9
push 1
call fcn.00411990
add esp, 4
mov byte [0x4c74a6], al
mov byte [0x4c74a5], al
mov byte [esp + 0x11], 1
mov eax, dword [esi]
test eax, eax
je 0x405209
cmp dword [eax], 7
mov byte [esp + 0x1a], 1
je 0x40520e
mov byte [esp + 0x1a], 0
mov al, byte [esi + 8]
test al, al
je 0x4053d6
test bl, bl
jne 0x4053d6
mov ecx, dword [0x4c63b8]
test ecx, ecx
je 0x405238
cmp byte [esi + 9], bl
je 0x405238
cmp esi, ecx
jne 0x4053d6
cmp al, 1
jne 0x40526c
cmp byte [esp + 0x34], 0
mov eax, dword [esp + 0x2c]
jne 0x40524f
movzx eax, byte [esp + 0x128]
mov ecx, dword [esp + 0x34]
push ecx
push eax
call fcn.0040a380
add esp, 8
test al, al
je 0x40526c
mov byte [esp + 0x12], 1
mov dl, byte [esp + 0x12]
jmp 0x405283
xor dl, dl
mov byte [esp + 0x12], dl
cmp esi, dword [0x4c63b8]
je 0x405283
mov dword [0x4c63b8], esi
mov byte [esi + 0x11], dl
cmp byte [esi + 9], 0
je 0x405339
cmp byte [esp + 0x11], 0
jne 0x4052a7
push 1
mov byte [esp + 0x15], 1
call fcn.00411990
mov dl, byte [esp + 0x16]
add esp, 4
mov al, byte [esi + 4]
mov cl, byte [0x4c74a6]
test al, al
je 0x4052b8
not al
and cl, al
test cl, cl
jne 0x4052c6
test dl, dl
jne 0x4052c6
test byte [esi + 0xb], 1
je 0x405339
mov eax, dword [esp + 0x118]
cmp eax, dword [0x4c75d8]
jne 0x4052ed
cmp byte [esp + 0x34], 0
je 0x4052ed
mov eax, dword [0x4c7ed4]
movzx ecx, cl
shl ecx, 9
add ecx, dword [esp + 0x2c]
jmp 0x405302
movzx eax, byte [esp + 0x128]
movzx ecx, cl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4c7ed0]
movzx eax, word [eax + ecx*2]
mov dword [esp + 0x14], eax
test eax, 0x4000
je 0x405317
mov word [esi + 6], ax
jmp 0x405349
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4c4ac0]
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x405339
mov ecx, dword [0x4c7ed8]
mov ax, word [ecx + eax*2]
mov word [esi + 6], ax
mov ecx, 0x3fff
cmp word [esp + 0x14], cx
jne 0x4053d6
test dl, dl
je 0x40535a
or byte [esi + 0xb], 8
mov eax, 0x23
mov word [ebp + 4], ax
cmp byte [esi + 4], 0
jne 0x4053af
test byte [esi + 0xb], 1
jne 0x4053af
cmp byte [esp + 0x1a], 0
jne 0x4053af
test dl, dl
jne 0x4053af
mov byte [esi + 0x10], 1
push 0
push SysReAllocString
push 0x3fff
push 0
push edi
mov ecx, dword [esp + 0x13c]
push ecx
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x130]
mov ebx, ebp
call fcn.00406930
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
mov ecx, dword [esp + 0x118]
push 0
push 0x3fff
push ebp
push 0
push edx
push eax
push ecx
jmp 0x4067ed
cmp byte [esi + 9], 0
mov byte [esp + 0x13], 0
je 0x405450
test bl, bl
je 0x405450
cmp dword [0x4c63b8], esi
jne 0x4053fe
cmp byte [esp + 0x1b], 0
je 0x405450
mov dword [0x4c63b8], 0
cmp byte [esi + 0xa], 0
jne 0x40544b
mov al, byte [esi + 0xb]
test al, 8
je 0x405414
xor cl, cl
and al, 0xf7
mov byte [esi + 0xb], al
jmp 0x405416
mov cl, 1
cmp byte [esp + 0x1b], 0
je 0x4067cc
test cl, cl
je 0x4067cc
mov edx, dword [esp + 0x130]
mov eax, dword [esp + 0x128]
push 0
push SysReAllocString
push 0x3fff
push edx
push edi
push eax
jmp 0x40538c
mov byte [esp + 0x13], 1
cmp byte [esi + 8], 0
je 0x40560e
test bl, bl
je 0x40560e
cmp dword [0x4c63b8], esi
jne 0x405474
mov dword [0x4c63b8], 0
cmp byte [esi + 0xd], 0
je 0x405495
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
mov byte [esi + 0xd], 0
call fcn.0040f400
add esp, 0x18
cmp byte [esi + 0xe], 0
je 0x4054b6
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
mov byte [esi + 0xe], 0
call fcn.0040f400
add esp, 0x18
mov ecx, dword [esp + 0x14]
mov edx, 0x3fff
cmp cx, dx
jne 0x4054f6
mov al, byte [esi + 0xb]
test al, 8
je 0x4054f6
and al, 0xf7
mov byte [esi + 0xb], al
push 0
mov eax, dword [esp + 0x124]
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x11c]
push 0x3fff
push ebp
push ebx
push eax
push ecx
push edx
jmp 0x4067ed
cmp byte [esp + 0x1a], 0
mov al, byte [esi + 0x11]
je 0x4055a1
cmp al, 2
jne 0x40554e
mov esi, dword [esp + 0x128]
push 0xffc3d44e
push 0
push 0
push edi
push esi
push 1
call fcn.0040f400
push 0xffc3d44d
push 0
push 0
push edi
push esi
push 2
call fcn.0040f400
mov eax, dword [esp + 0x160]
push 0
push SysReAllocString
push 0x3fff
push eax
push edi
push esi
jmp 0x404eb8
cmp al, 1
je 0x4067cc
cmp byte [esi + 9], 0
jne 0x4055fc
cmp byte [esi + 4], 0
jne 0x4067cc
test byte [esi + 0xb], 1
jne 0x4067cc
cmp byte [esp + 0x1a], 0
jne 0x4067cc
mov edx, dword [esp + 0x130]
mov eax, dword [esp + 0x128]
push 0
push SysReAllocString
push 0x3fff
push edx
push edi
push eax
jmp 0x40538c
test al, al
je 0x405556
cmp cx, dx
jne 0x405556
cmp byte [esi + 4], 0
je 0x4055eb
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x118]
cmp al, 2
mov eax, dword [esp + 0x120]
jne 0x4055da
push 1
push 0x3fff
push ebp
push ebx
push eax
push ecx
push edx
jmp 0x4067ed
push 0
push 0x3fff
push ebp
push ebx
push eax
push ecx
push edx
jmp 0x4067ed
test byte [esi + 0xb], 1
push 0
je 0x405d4c
jmp 0x4054d2
cmp byte [esp + 0x23], 0
jne 0x405612
cmp byte [esi + 0xa], 0
jne 0x405612
jmp 0x4067cc
mov ecx, dword [esp + 0x14]
cmp byte [esp + 0x11], 0
jne 0x40562d
mov edx, 0x3fff
cmp cx, dx
jne 0x40562d
push 1
call fcn.00411990
add esp, 4
cmp dword [0x4c63b8], 0
mov byte [esp + 0x12], 0
je 0x405d63
test bl, bl
je 0x405651
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0xa], 0
je 0x405d63
mov ecx, 0x3fff
cmp word [esp + 0x14], cx
jne 0x406005
mov ebp, dword [esp + 0x1c]
cmp byte [ebp + 0x13], 0
mov edi, dword [esp + 0x14]
mov dword [esp + 0x24], 0
jbe 0x405726
mov bl, byte [esp + 0x130]
mov edx, dword [0x4c7edc]
lea esi, [ebp + 0x16]
jmp 0x405690
mov cl, byte [esi]
movzx eax, cl
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + edx + 0xc], 0
je 0x4056f8
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x4056ee
test bl, bl
jne 0x40570e
mov ecx, 0x3fff
mov word [ebp + 6], ax
cmp di, cx
je 0x4056f8
mov dword [esp + 0x14], edi
movzx ecx, byte [esp + 0x11]
mov eax, ecx
sub eax, 0x10
je 0x4057ed
dec eax
je 0x4057d4
dec eax
je 0x4057bb
lea ebx, [ecx + ecx*8]
shl ebx, 5
add ebx, edx
jmp 0x4057a0
test bl, bl
jne 0x4056f8
mov edi, eax
mov byte [esp + 0x11], cl
mov eax, dword [esp + 0x24]
movzx ecx, byte [ebp + 0x13]
inc eax
add esi, 4
mov dword [esp + 0x24], eax
cmp eax, ecx
jl 0x405690
jmp 0x405718
mov al, byte [esi]
movzx edi, word [esi + 2]
mov byte [esp + 0x11], al
mov ecx, 0x3fff
mov dword [esp + 0x14], edi
cmp di, cx
jne 0x4056c3
xor edx, edx
cmp byte [ebp + 0x14], dl
jbe 0x405847
lea esi, [ebp + 0xde]
jmp 0x405740
movzx ecx, word [esi]
mov ebx, dword [0x4c7ee0]
mov eax, ecx
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + ebx + 0xc], 0
je 0x405818
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x405806
cmp byte [esp + 0x130], 0
jne 0x40582a
mov ecx, 0x3fff
mov word [ebp + 6], ax
cmp di, cx
je 0x405818
mov dword [esp + 0x14], edi
movzx eax, word [esp + 0x24]
lea ebx, [eax + eax*8]
shl ebx, 5
add ebx, dword [0x4c7ee0]
mov ecx, 0x3fff
mov dword [0x4c63b8], ebx
cmp word [esp + 0x14], cx
jne case.default.0x405863
jmp 0x40584d
xor eax, eax
cmp byte [edx + 0xb9ac], al
setne al
lea ebx, [eax + eax*8 + 0x5c4]
shl ebx, 5
add ebx, edx
jmp 0x4057a0
xor eax, eax
cmp byte [edx + 0xb76c], al
setne al
lea ebx, [eax + eax*8 + 0x5b2]
shl ebx, 5
add ebx, edx
jmp 0x4057a0
xor eax, eax
cmp byte [edx + 0xb52c], al
setne al
lea ebx, [eax + eax*8 + 0x5a0]
shl ebx, 5
add ebx, edx
jmp 0x4057a0
cmp byte [esp + 0x130], 0
jne 0x405818
mov edi, eax
mov eax, ecx
mov dword [esp + 0x24], eax
movzx ecx, byte [ebp + 0x14]
inc edx
add esi, 4
cmp edx, ecx
jl 0x405740
jmp 0x405835
movzx edx, word [esi]
movzx edi, word [esi + 2]
mov dword [esp + 0x24], edx
mov eax, 0x3fff
mov dword [esp + 0x14], edi
cmp di, ax
jne 0x40578f
mov ebx, dword [0x4c63b8]
movzx eax, byte [esp + 0x128]
add eax, 0xffffff60
cmp eax, 5
ja case.default.0x405863
jmp dword [eax*4 + 0x406904]
mov al, 0x11
jmp 0x405874
mov al, 0x12
jmp 0x405874
mov al, 0x10
mov edx, dword [esp + 0x14]
movzx eax, al
lea esi, [eax + eax*8]
shl esi, 5
add esi, dword [0x4c7edc]
xor edi, edi
movzx ebp, byte [esi + 0x13]
mov dword [esp + 0x30], esi
test ebp, ebp
jle 0x405948
add esi, 0x16
lea esp, [esp]
mov cl, byte [esi]
mov ebx, dword [0x4c7edc]
movzx eax, cl
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + ebx + 0xc], 0
je 0x405922
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x405912
cmp byte [esp + 0x130], 0
jne 0x405930
mov ecx, dword [esp + 0x1c]
mov word [ecx + 6], ax
mov eax, 0x3fff
cmp dx, ax
je 0x405922
mov dword [esp + 0x14], edx
movzx ecx, byte [esp + 0x11]
mov eax, ecx
sub eax, 0x10
je 0x405ab2
dec eax
je 0x405a90
dec eax
je 0x405a6e
lea ebx, [ecx + ecx*8]
shl ebx, 5
add ebx, dword [0x4c7edc]
jmp 0x4059d3
cmp byte [esp + 0x130], 0
jne 0x405922
mov edx, eax
mov byte [esp + 0x11], cl
inc edi
add esi, 4
cmp edi, ebp
jl 0x4058a0
jmp 0x40593a
mov cl, byte [esi]
movzx edx, word [esi + 2]
mov byte [esp + 0x11], cl
mov esi, dword [esp + 0x30]
mov ebx, dword [0x4c63b8]
mov dword [esp + 0x14], edx
mov eax, 0x3fff
cmp dx, ax
jne 0x4058e3
movzx eax, byte [esi + 0x14]
xor edi, edi
mov dword [esp + 0x30], eax
test eax, eax
jle case.default.0x405863
mov ebp, dword [esp + 0x14]
add esi, 0xde
lea ebx, [ebx]
movzx ecx, word [esi]
mov eax, ecx
lea edx, [eax + eax*8]
mov eax, dword [0x4c7ee0]
shl edx, 5
cmp byte [edx + eax + 0xc], 0
je 0x405ae6
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x405ad4
cmp byte [esp + 0x130], 0
jne 0x405af6
mov ecx, dword [esp + 0x1c]
mov edx, 0x3fff
mov word [ecx + 6], ax
cmp bp, dx
je 0x405ae6
mov dword [esp + 0x14], ebp
movzx eax, word [esp + 0x24]
lea ebx, [eax + eax*8]
shl ebx, 5
add ebx, dword [0x4c7ee0]
mov dword [0x4c63b8], ebx
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x3c]
mov esi, eax
mov edx, 0x3fff
and esi, 0x3fff
cmp ax, dx
je 0x405b2c
mov eax, dword [0x4c4ac0]
cmp si, word [eax]
jae 0x405b28
mov ebx, dword [esp + 0x130]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x134]
lea edx, [esp + 0x14]
push ebx
add ecx, 0xb
push edx
lea esi, [ebp + 4]
lea eax, [esp + 0x1a]
call fcn.0040a5a0
add esp, 8
mov dword [esp + 0x38], eax
test eax, eax
jne 0x405b18
push eax
push 0x3fff
push ebp
push ebx
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0x12c]
mov edx, dword [esp + 0x128]
push eax
mov eax, dword [esp + 0x140]
push ecx
mov cl, byte [esp + 0x140]
push edx
jmp 0x4067f6
mov ecx, dword [0x4c7edc]
xor eax, eax
cmp byte [ecx + 0xb9ac], al
setne al
lea ebx, [eax + eax*8 + 0x5c4]
shl ebx, 5
add ebx, ecx
jmp 0x4059d3
mov ecx, dword [0x4c7edc]
xor eax, eax
cmp byte [ecx + 0xb76c], al
setne al
lea ebx, [eax + eax*8 + 0x5b2]
shl ebx, 5
add ebx, ecx
jmp 0x4059d3
mov ecx, dword [0x4c7edc]
xor eax, eax
cmp byte [ecx + 0xb52c], al
setne al
lea ebx, [eax + eax*8 + 0x5a0]
shl ebx, 5
add ebx, ecx
jmp 0x4059d3
cmp byte [esp + 0x130], 0
jne 0x405ae6
mov ebp, eax
mov eax, ecx
mov dword [esp + 0x24], eax
inc edi
add esi, 4
cmp edi, dword [esp + 0x30]
jl 0x405970
jmp 0x405b01
movzx ecx, word [esi]
movzx ebp, word [esi + 2]
mov dword [esp + 0x24], ecx
mov edx, 0x3fff
mov dword [esp + 0x14], ebp
cmp bp, dx
je case.default.0x405863
jmp 0x4059c2
mov esi, dword [esp + 0x14]
mov ebx, dword [0x4c63b8]
and esi, 0x3fff
mov byte [ebx + 0x11], 2
mov eax, 0x3ffe
cmp si, ax
je 0x405b44
mov ecx, 0x3ffd
cmp si, cx
jne 0x405d63
cmp byte [esp + 0x130], 0
jne 0x405b56
mov edx, dword [esp + 0x1c]
mov byte [edx + 0xf], 1
test byte [0x4c74a5], 0xc
jne 0x405b7c
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040f400
mov ebx, dword [0x4c63b8]
add esp, 0x18
mov al, byte [esp + 0x128]
cmp al, 0xa2
je 0x405b8b
cmp al, 0xa3
jne 0x405bc0
cmp byte [esp + 0x130], 0
jne 0x405bc0
mov edi, dword [esp + 0x12c]
mov eax, dword [esp + 0x128]
push 0xffc3d44d
push 0
push 0
push edi
push eax
push 1
call fcn.0040f400
mov ebx, dword [0x4c63b8]
add esp, 0x18
jmp 0x405bc7
mov edi, dword [esp + 0x12c]
mov ecx, 0x3ffd
mov byte [ebx + 0xd], 1
cmp si, cx
jne 0x405c04
test byte [0x4c74a5], 0x30
jne 0x405bfb
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040f400
mov ebx, dword [0x4c63b8]
add esp, 0x18
mov byte [ebx + 0xe], 1
jmp 0x405c89
mov edx, 0x3ffe
cmp si, dx
jne 0x405c89
mov al, byte [esp + 0x128]
cmp al, 0xa0
je 0x405c1d
cmp al, 0xa1
jne 0x405c43
cmp byte [esp + 0x130], 0
jne 0x405c43
mov eax, dword [esp + 0x128]
push 0xffc3d44d
push 0
push 0
push edi
push eax
push 1
call fcn.0040f400
add esp, 0x18
test byte [0x4c74a5], 0x10
je 0x405c66
push 0xffc3d44d
push 0
push 0
push 0
push 0xa0
push 1
call fcn.0040f400
add esp, 0x18
test byte [0x4c74a5], 0x20
je 0x405c89
push 0xffc3d44d
push 0
push 0
push 0
push 0xa1
push 1
call fcn.0040f400
add esp, 0x18
test byte [0x4c74a5], 1
je 0x405cac
push 0xffc3d44d
push 0
push 0
push 0
push 0xa2
push 1
call fcn.0040f400
add esp, 0x18
test byte [0x4c74a5], 2
je 0x405ccf
push 0xffc3d44d
push 0
push 0
push 0
push 0xa3
push 1
call fcn.0040f400
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040f400
mov ecx, 0x3ffd
add esp, 0x18
cmp si, cx
jne 0x405d2f
mov edx, dword [0x4c63b8]
cmp byte [edx + 0xe], 0
je 0x405d2f
mov al, byte [esp + 0x128]
cmp al, 0x60
jb 0x405d0b
cmp al, 0x69
jbe 0x405d0f
cmp al, 0x6e
jne 0x405d2f
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040f400
mov eax, dword [0x4c63b8]
add esp, 0x18
mov byte [eax + 0xe], 0
cmp byte [esp + 0x130], 0
mov ecx, 0x68
mov word [ebp + 4], cx
jne 0x405d4a
mov edx, dword [esp + 0x1c]
mov byte [edx + 0x10], 1
push 0
mov eax, dword [esp + 0x134]
push SysReAllocString
push 0x3fff
push eax
jmp 0x405383
mov edx, 0x3fff
cmp word [esp + 0x14], dx
jne 0x406005
mov ecx, dword [esp + 0x1c]
mov cl, byte [ecx + 4]
mov al, byte [0x4c74a6]
test cl, cl
je 0x405d87
not cl
and al, cl
mov edx, dword [esp + 0x118]
mov edi, dword [0x4c75d8]
cmp edx, edi
jne 0x405dbc
cmp byte [esp + 0x34], 0
je 0x405dbc
mov esi, dword [0x4c7ed4]
movzx ecx, al
shl ecx, 9
add ecx, dword [esp + 0x2c]
movzx esi, word [esi + ecx*2]
mov cl, byte [esp + 0x128]
jmp 0x405dd8
mov cl, byte [esp + 0x128]
movzx esi, al
movzx ebx, cl
shl esi, 8
add esi, ebx
mov ebx, dword [0x4c7ed0]
movzx esi, word [ebx + esi*2]
mov ebx, 0x3fff
mov dword [esp + 0x14], esi
cmp si, bx
jne 0x405e4c
cmp byte [0x4c63b6], 0
je 0x405e4c
cmp cl, 9
je 0x405e4c
and al, 0xf3
cmp edx, edi
jne 0x405e16
cmp byte [esp + 0x34], 0
je 0x405e16
movzx edx, al
mov eax, dword [0x4c7ed4]
shl edx, 9
add edx, dword [esp + 0x2c]
movzx esi, word [eax + edx*2]
jmp 0x405e2b
movzx edx, al
movzx eax, cl
mov ecx, dword [0x4c7ed0]
shl edx, 8
add edx, eax
movzx esi, word [ecx + edx*2]
mov edx, esi
and edx, ebx
mov eax, edx
mov ecx, 0x3ff9
mov dword [esp + 0x14], esi
cmp ax, cx
jbe 0x405e46
mov edx, ebx
cmp ax, dx
jb 0x405e4c
mov esi, ebx
mov dword [esp + 0x14], esi
test esi, 0x4000
je 0x405e8f
cmp byte [esp + 0x130], 0
jne 0x405f37
mov ecx, dword [esp + 0x1c]
mov ax, word [esp + 0x14]
mov word [ecx + 6], ax
lea eax, [ecx + 6]
mov edx, 0x3fff
cmp word [eax], dx
jne 0x405fcb
push 0
push 0x3fff
push ebp
push 0
jmp 0x405a43
mov ecx, ebx
cmp si, cx
je 0x405f47
and esi, ecx
cmp byte [esp + 0x130], 0
mov eax, esi
je 0x405f18
mov edx, dword [0x4c4ac0]
cmp ax, word [edx]
jae 0x405f0f
movzx ebx, ax
mov eax, ecx
mov ecx, dword [0x4c7ed8]
add ebx, ebx
cmp word [ebx + ecx], ax
je 0x405f0f
cmp byte [esp + 0x13], 0
jne 0x405eff
mov edx, dword [esp + 0x130]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x134]
push edx
lea eax, [esp + 0x18]
push eax
add ecx, 0xb
lea esi, [ebp + 4]
lea eax, [esp + 0x1a]
call fcn.0040a5a0
add esp, 8
mov dword [esp + 0x38], eax
test eax, eax
jne 0x405f37
mov ecx, dword [0x4c7ed8]
movzx edx, word [ebx + ecx]
mov dword [esp + 0x14], edx
jmp 0x405f37
cmp byte [esp + 0x13], 0
jne 0x405f47
jmp 0x405f37
mov ecx, dword [0x4c4ac0]
cmp ax, word [ecx]
jae 0x405f37
movzx edx, ax
mov eax, dword [0x4c7ed8]
mov cx, word [eax + edx*2]
mov edx, dword [esp + 0x1c]
mov word [edx + 6], cx
mov eax, 0x3fff
cmp word [esp + 0x14], ax
jne 0x406005
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0x1c]
test al, al
je 0x405e6f
cmp byte [ecx + 4], 0
jne 0x405f97
test byte [ecx + 0xb], 1
jne 0x405f97
cmp byte [ecx + 8], 0
je 0x405f97
cmp byte [esp + 0x1a], 0
jne 0x405f97
mov edx, dword [esp + 0x12c]
push 0
push SysReAllocString
push 0x3fff
mov ecx, eax
mov eax, dword [esp + 0x134]
push ecx
push edx
push eax
jmp 0x40538c
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x11c]
push 0
push 0x3fff
push ebp
push eax
mov eax, dword [esp + 0x128]
push ecx
mov cl, byte [esp + 0x13c]
push edx
push eax
mov eax, dword [esp + 0x148]
jmp 0x4067f6
push 1
push eax
add ecx, 0xb
xor esi, esi
lea eax, [esp + 0x1a]
xor edi, edi
call fcn.0040a5a0
add esp, 8
cmp byte [esp + 0x12], 0
push edi
jne 0x405e82
mov eax, dword [esp + 0x130]
push SysReAllocString
push 0x3fff
push edi
push eax
jmp 0x405384
mov ebx, dword [esp + 0x1c]
mov al, byte [ebx + 0xb]
mov dl, byte [0x4c74a5]
add ebx, 0xb
mov dword [esp + 0x30], ebx
test al, 8
je 0x406030
cmp byte [esp + 0x130], 0
je 0x406030
and al, 0xf7
mov byte [esp + 0x12], 1
mov byte [ebx], al
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4c4ac0]
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x406157
cmp dword [esp + 0x38], 0
jne 0x406157
mov edx, dword [esp + 0x130]
mov edi, dword [esp + 0x134]
push edx
lea eax, [esp + 0x18]
push eax
lea esi, [ebp + 4]
lea eax, [esp + 0x1a]
mov ecx, ebx
call fcn.0040a5a0
add esp, 8
mov dword [esp + 0x38], eax
test eax, eax
jne 0x406151
mov eax, dword [esp + 0x130]
test al, al
je 0x4060e7
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 0x10], 0
push 0
je 0x4060b5
push SysReAllocString
push 0x3fff
mov edx, eax
mov eax, dword [esp + 0x138]
push edx
push eax
jmp 0x405384
mov edx, dword [esp + 0x124]
mov ecx, dword [esp + 0x11c]
push 0x3fff
push ebp
push eax
mov eax, dword [esp + 0x12c]
push edx
push eax
mov eax, dword [esp + 0x144]
push ecx
mov cl, byte [esp + 0x144]
jmp 0x4067f6
mov eax, dword [esp + 0x1c]
add eax, 6
mov edx, 0x3fff
cmp word [eax], dx
je 0x405e80
push 1
push eax
xor esi, esi
lea eax, [esp + 0x1a]
mov ecx, ebx
xor edi, edi
mov byte [esp + 0x1a], 0
call fcn.0040a5a0
add esp, 8
cmp byte [esp + 0x12], 0
push edi
jne 0x405e82
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x130]
and byte [eax], 0xf7
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x12c]
push SysReAllocString
push 0x3fff
push edi
push ecx
mov byte [eax + 0x10], 1
push edx
jmp 0x40538c
mov dl, byte [0x4c74a5]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x118]
mov ecx, dword [0x4c75d8]
and edi, 0x3fff
cmp esi, ecx
jne 0x4061a7
test dl, 0x3f
jne 0x4061c8
mov eax, dword [0x4c7edc]
test dl, 0x40
je 0x406191
cmp byte [eax + 0x6668], 0
jne 0x406191
mov byte [0x4c63be], 1
test dl, dl
jns 0x4061cd
cmp byte [eax + 0x6788], 0
jne 0x4061cd
mov byte [0x4c63bd], 1
jmp 0x4061cd
test dl, 0xc
jne 0x4061c8
mov eax, dword [0x4c7edc]
test dl, 0x40
je 0x406191
cmp byte [eax + 0x6668], 0
jne 0x406191
mov byte [0x4c63be], 1
jmp 0x4061cd
mov eax, dword [0x4c7edc]
test dl, 4
je 0x4061fd
cmp byte [eax + 0xb888], 0
jne 0x4061fd
test ecx, ecx
je 0x4061e8
mov byte [0x4c63bc], 1
jmp 0x406249
movzx eax, byte [0x4c3385]
push 0xffc3d44d
push 0
push 0
push 0
push eax
jmp 0x406239
test dl, 8
je 0x406249
cmp byte [eax + 0xb9a8], 0
jne 0x406249
call fcn.00411f20
test al, al
jne 0x406243
cmp dword [0x4c75d8], 0
je 0x406226
mov byte [0x4c63b7], 1
jmp 0x406243
movzx ecx, byte [0x4c3385]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
push 2
call fcn.0040f400
add esp, 0x18
mov dl, byte [0x4c74a5]
mov eax, edi
lea ecx, [eax - 0x3ffa]
cmp ecx, 4
ja case.default.0x40625a
jmp dword [ecx*4 + 0x40691c]
cmp byte [0x4c63b6], 0
jne case.0x40625a.16379
mov edx, dword [esp + 0x130]
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x11c]
push 0
push 0x3fff
push ebp
push edx
push eax
mov eax, dword [esp + 0x140]
push ecx
mov cl, byte [esp + 0x140]
push esi
jmp 0x4067f6
xor al, al
mov byte [esp + 0x13], al
test dl, 4
je 0x4062ad
mov al, 0xa4
jmp 0x4062b4
test dl, 8
je 0x4062b8
mov al, 0xa5
mov byte [esp + 0x13], al
cmp byte [0x4c63b6], 0
je 0x406336
mov ecx, 0x3ffb
cmp di, cx
je case.0x40625a.16381
test al, al
movzx eax, al
jne 0x4062db
mov eax, 0x12
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040f400
mov edx, dword [esp + 0x34]
add esp, 0x18
cmp byte [edx + 4], 0
je 0x40632a
mov eax, dword [esp + 0x128]
cmp al, 0x5b
je 0x40632a
cmp al, 0x5c
je 0x40632a
cmp byte [esp + 0x130], 0
jne 0x40632a
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040f400
add esp, 0x18
mov byte [0x4c63b6], 0
jmp 0x4065d6
mov al, byte [esp + 0x128]
cmp al, 0xa4
je 0x40634a
mov byte [esp + 0x11], 0
cmp al, 0xa5
jne 0x40634f
mov byte [esp + 0x11], 1
cmp al, 0xa0
je 0x40635b
cmp al, 0xa1
je 0x40635b
xor dl, dl
jmp 0x40635d
mov dl, 1
mov byte [esp + 0x23], dl
cmp al, 0xa2
je 0x40636e
mov byte [esp + 0x1b], 0
cmp al, 0xa3
jne 0x406373
mov byte [esp + 0x1b], 1
mov bl, byte [0x4c74a5]
xor cl, cl
mov byte [esp + 0x2c], cl
test bl, 0x10
je 0x40638c
mov cl, 0xa0
mov byte [esp + 0x2c], cl
jmp 0x4063b3
test bl, 0x20
je 0x406399
mov cl, 0xa1
mov byte [esp + 0x2c], cl
jmp 0x4063b3
cmp byte [esp + 0x130], 0
jne 0x4063ad
test dl, dl
je 0x4063ad
mov cl, al
mov byte [esp + 0x2c], cl
mov bl, byte [0x4c74a5]
mov byte [esp + 0x24], 0
test bl, 1
je 0x4063c4
mov byte [esp + 0x24], 0xa2
jmp 0x4063e5
test bl, 2
je 0x4063d0
mov byte [esp + 0x24], 0xa3
jmp 0x4063e5
cmp byte [esp + 0x130], 0
jne 0x4063e5
cmp byte [esp + 0x1b], 0
je 0x4063e5
mov byte [esp + 0x24], al
mov esi, dword [esp + 0x2c]
xor bl, bl
test cl, cl
je 0x406407
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 1
call fcn.0040f400
add esp, 0x18
mov bl, 1
cmp byte [esp + 0x24], 0
je 0x406428
mov eax, dword [esp + 0x24]
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040f400
add esp, 0x18
cmp byte [esp + 0x11], 0
je 0x406442
cmp byte [esp + 0x130], 0
jne 0x40644a
mov al, byte [esp + 0x128]
jmp 0x406446
mov al, byte [esp + 0x13]
test al, al
jne 0x406461
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040f400
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040f400
add esp, 0x18
test bl, bl
je 0x406499
cmp byte [esp + 0x23], 0
jne 0x406499
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 0
call fcn.0040f400
add esp, 0x18
mov byte [0x4c63b6], 1
jmp 0x4065d6
cmp byte [0x4c63b6], 0
jne 0x4064e2
mov ecx, dword [esp + 0x130]
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
push 0
push 0x3fff
push ebp
push ecx
mov cl, byte [esp + 0x138]
push edx
push eax
mov eax, dword [esp + 0x144]
push esi
jmp 0x4067f6
cmp byte [esp + 0x130], 0
mov ebx, dword [esp + 0x128]
jne 0x406523
cmp bl, 0xa2
je 0x406507
cmp bl, 0xa3
je 0x406507
cmp bl, 0xa0
je 0x406507
cmp bl, 0xa1
jne 0x406523
push 0xffc3d44d
push 0
push 0
push 0
push ebx
push 1
call fcn.0040f400
mov dl, byte [0x4c74a5]
add esp, 0x18
test dl, 0xc
je 0x40653c
cmp byte [esp + 0x130], 0
je 0x406559
cmp bl, 0xa4
je 0x40653c
cmp bl, 0xa5
jne 0x406559
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040f400
mov dl, byte [0x4c74a5]
add esp, 0x18
mov ecx, 0x3ffd
xor bl, bl
cmp di, cx
jne 0x406583
test dl, 0x30
jne 0x406583
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040f400
add esp, 0x18
mov bl, 1
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040f400
add esp, 0x18
test bl, bl
je 0x4065d6
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040f400
add esp, 0x18
jmp 0x4065d6
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x4065d6
cmp byte [eax], 5
jb 0x4065d6
movzx edx, word [ecx + 0x14]
shl edx, 0x10
or dword [esp + 0x28], edx
cmp byte [esp + 0x1a], 0
mov ebx, dword [esp + 0x130]
mov esi, dword [esp + 0x1c]
mov eax, 0x68
mov word [ebp + 4], ax
je 0x406647
test bl, bl
je 0x40672a
cmp byte [esi + 8], 0
je 0x406647
mov edi, dword [esp + 0x12c]
mov esi, dword [esp + 0x128]
push 0xffc3d44e
push 0
push 0
push edi
push esi
push 1
call fcn.0040f400
push 0xffc3d44d
push 0
push 0
push edi
push esi
push 2
call fcn.0040f400
mov ecx, dword [esp + 0x58]
push 0
push SysReAllocString
push ecx
mov edx, ebx
push edx
push edi
push esi
jmp 0x404eb8
test bl, bl
je 0x40672a
cmp byte [esi + 4], 0
je 0x4066b8
cmp byte [esi + 0x10], 0
je 0x406684
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x130]
mov edx, dword [esp + 0x12c]
push 0
push SysReAllocString
push eax
mov eax, dword [esp + 0x134]
push ecx
push edx
push eax
jmp 0x40538c
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
push 1
push ecx
mov ecx, dword [esp + 0x120]
push ebp
push ebx
push edx
push eax
mov eax, dword [esp + 0x144]
push ecx
mov cl, byte [esp + 0x144]
jmp 0x4067f6
cmp byte [esp + 0x12], 0
je 0x40678f
mov eax, dword [esp + 0x118]
push 0
cmp eax, dword [0x4c75dc]
jne 0x4066ff
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x124]
push edx
mov edx, dword [esp + 0x124]
push ebp
push ebx
push ecx
mov cl, byte [esp + 0x13c]
push edx
push eax
mov eax, dword [esp + 0x148]
jmp 0x4067f6
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x124]
push ecx
mov ecx, dword [esp + 0x124]
push ebp
push ebx
push edx
push ecx
mov cl, byte [esp + 0x140]
push eax
mov eax, dword [esp + 0x148]
jmp 0x4067f6
mov eax, dword [0x4c63b8]
mov byte [esi + 0xf], 1
test eax, eax
je 0x406741
cmp byte [eax + 4], 0
je 0x406741
mov byte [eax + 0x11], 2
cmp byte [esp + 0x12], 0
je 0x40675b
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
or byte [eax], 8
push 0
push edx
jmp 0x405a41
mov eax, dword [esp + 0x128]
cmp al, 0xa4
je 0x40676a
cmp al, 0xa5
jne 0x40678f
cmp dword [0x4ca26c], 0xa
jae 0x40678f
mov ecx, dword [esp + 0x12c]
push 0xffc3d450
push 0
push 0
push ecx
push eax
push 1
call fcn.0040f400
add esp, 0x18
test bl, bl
jne 0x406797
mov byte [esi + 0x10], 1
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0x12c]
push 0
push SysReAllocString
push edx
mov edx, dword [esp + 0x134]
push eax
push ecx
push edx
jmp 0x40538c
test bl, bl
sete al
mov byte [esi + 0xf], 0
mov byte [esi + 0xc], al
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x11c]
mov eax, dword [esp + 0x118]
push 0
push 0x3fff
push ebp
push ebx
push ecx
push edx
push eax
mov cl, byte [esp + 0x144]
mov eax, edi
mov edx, dword [esp + 0x140]
call fcn.00406a60
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret