Function at 0x404b20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
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 0x404b5a
cmp eax, 0xffc3d44e
je 0x404b5a
mov byte [esp + 0xf], 0
cmp eax, 0xffc3d44d
jne 0x404b5f
mov byte [esp + 0xf], 1
mov ecx, dword [0x4c9f1c]
test ecx, ecx
jne 0x404b76
lea edi, [esp + 0x40]
mov dword [esp + 0x1c], edi
jmp 0x404c38
mov eax, dword [0x4c9f20]
mov edi, eax
imul edi, edi, 0xd4
inc eax
add edi, ecx
mov dword [esp + 0x1c], edi
mov dword [0x4c9f20], eax
cmp eax, dword [0x4c58e4]
jl 0x404ba1
mov dword [0x4c9f20], 0
mov al, byte [ebp + 0x18]
mov byte [edi], al
mov byte [edi + 6], bl
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, eax
sub ecx, dword [0x4cc1c4]
mov dword [0x4c9f24], eax
mov dword [esp + 0x34], ecx
fild dword [esp + 0x34]
jns 0x404bcc
fadd dword [0x4bfac8]
fdiv qword [0x4bfac0]
mov dword [0x4cc1c4], eax
fstp dword [edi + 8]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x404c0e
cmp esi, dword [0x4c9f28]
je 0x404c06
mov eax, dword [0x4c9508]
push esi
lea edx, [edi + 0xc]
push edx
push 0x418
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x404c2f
xor ecx, ecx
mov word [edi + 0xc], cx
jmp 0x404c2f
mov eax, 0x4a4910
lea edx, [edi + 0xc]
sub edx, eax
jmp 0x404c20
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404c20
mov dl, byte [ebp + 0x18]
mov dword [0x4c9f28], esi
cmp dl, 0xe7
jne 0x404c79
mov ecx, dword [ebp + 0x14]
movzx eax, word [ecx + 4]
push 0x3fff
push edi
push ebx
push 0xe7
push ecx
mov ecx, dword [ebp + 0x10]
mov edx, 0x55
push ecx
mov ecx, dword [ebp + 8]
mov word [edi + 4], dx
mov edx, dword [ebp + 0xc]
push edx
push ecx
mov word [edi + 2], ax
call fcn.004067e0
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 0x404c8c
xor esi, esi
mov dword [ebp + 0x1c], esi
mov ecx, dword [0x4c963c]
cmp dword [ebp + 8], ecx
jne 0x404cbd
mov al, byte [ebp + 0x28]
and al, 1
mov byte [esp + 0xe], al
jne 0x404dce
test bl, bl
setne al
dec al
movzx ecx, dl
and al, 0x80
mov byte [ecx + 0x4c9528], al
jmp 0x404dce
mov edx, dword [ebp + 0x28]
shr edx, 4
and dl, 1
mov byte [esp + 0xe], dl
test esi, 0x100
jne case.0x404d00.13
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je case.0x404d00.13
movzx eax, byte [ebp + 0x18]
add eax, 0xfffffff4
cmp eax, 0x62
ja case.0x404d00.13
movzx eax, byte [eax + 0x406618]
jmp dword [eax*4 + 0x4065e8]
test bl, bl
sete cl
mov byte [0x4c83f4], cl
jmp case.0x404d00.13
test bl, bl
sete dl
mov byte [0x4c83f5], dl
jmp case.0x404d00.13
test bl, bl
sete al
mov byte [0x4c83f6], al
jmp case.0x404d00.13
test bl, bl
sete cl
mov byte [0x4c83f7], cl
jmp case.0x404d00.13
test bl, bl
sete dl
mov byte [0x4c83f8], dl
jmp case.0x404d00.13
test bl, bl
sete al
mov byte [0x4c83f9], al
jmp case.0x404d00.13
test bl, bl
sete cl
mov byte [0x4c83fa], cl
jmp case.0x404d00.13
test bl, bl
sete dl
mov byte [0x4c83fb], dl
jmp case.0x404d00.13
test bl, bl
sete al
mov byte [0x4c83fc], al
jmp case.0x404d00.13
test bl, bl
sete cl
mov byte [0x4c83fd], cl
jmp case.0x404d00.13
test bl, bl
sete dl
mov byte [0x4c83fe], dl
movzx esi, byte [ebp + 0x18]
mov ecx, dword [0x4c9f44]
lea eax, [esi + esi*8]
shl eax, 5
cmp byte [eax + ecx + 4], 0
jne 0x404dce
test byte [ebp + 0x28], 0x10
jne 0x404dce
mov al, byte [ebp + 0x18]
push ebx
call fcn.00407bf0
add esp, 4
test al, al
je 0x404dce
test bl, bl
setne dl
dec dl
and dl, 0x80
mov byte [esi + 0x4c9528], dl
cmp byte [esp + 0xf], 0
je 0x404dd9
mov al, 0x69
jmp 0x404de5
mov al, byte [esp + 0xe]
neg al
sbb al, al
and al, 0x41
add al, 0x20
cmp byte [0x4c9628], 0
cbw
mov word [edi + 4], ax
je 0x404e20
mov al, byte [ebp + 0x18]
cmp al, 0x5b
je 0x404dff
cmp al, 0x5c
jne 0x404e20
test bl, bl
jne 0x404e20
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push 0
push SysReAllocString
push 0x3fff
push 0
push ecx
push edx
mov ebx, edi
jmp 0x4065d2
cmp byte [0x4c8417], 0
je 0x404ec6
cmp byte [ebp + 0x18], 0x1b
jne 0x404ec6
test bl, bl
jne 0x404ec6
push 0
push 0x4a4918
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x404ec6
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 0x404ec6
push 0xffc3d44d
push 0
push 0
push 0
push 0x1b
push 0
call fcn.0040fa50
mov al, byte [0x4c9505]
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.0040fa50
mov edx, dword [ebp + 0x1c]
push 0
push SysReAllocString
push 0x3fff
push 0
push edx
push 0x1b
mov ebx, edi
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
call fcn.004066b0
add esp, 0x48
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [ebp + 0x1c]
mov ecx, dword [0x4c9f48]
mov edx, dword [0x4c9638]
mov dword [esp + 0x2c], eax
lea eax, [eax + eax*8]
shl eax, 5
add eax, ecx
mov cl, byte [eax + 0x12]
mov byte [esp + 0x20], cl
cmp dword [ebp + 8], edx
jne 0x404efa
test cl, cl
je 0x404efa
mov esi, eax
mov dword [esp + 0x14], eax
jmp 0x404f0e
movzx esi, byte [ebp + 0x18]
lea esi, [esi + esi*8]
shl esi, 5
add esi, dword [0x4c9f44]
mov dword [esp + 0x14], esi
cmp byte [esp + 0xf], 0
je 0x404f69
cmp dword [ebp + 0x24], 0xffc3d44e
jne 0x404f3c
test bl, bl
je 0x404f3c
cmp dword [0x4c8418], esi
jne 0x404f3c
mov byte [esi + 0xc], 0
mov dword [0x4c8418], 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.004067e0
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test bl, bl
jne 0x404f79
mov edx, 0x3fff
mov byte [esi + 0x10], bl
mov word [esi + 6], dx
mov eax, dword [0x4c963c]
cmp dword [ebp + 8], eax
jne 0x404fd5
mov al, byte [ebp + 0x18]
test al, al
jne 0x404f95
push 0x3fff
push edi
push ebx
push 0
jmp 0x404f47
cmp al, 1
je 0x404f9d
cmp al, 2
jne 0x404fd5
cmp dword [0x4c9698], 0
jne 0x404fc8
push 0
push 0x4a4928
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x404fd5
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4cb628]
jne 0x404fd5
test bl, bl
sete dl
mov byte [esi + 0xc], dl
jmp 0x404f38
mov edx, dword [0x4c8418]
test edx, edx
je 0x405007
cmp edx, esi
je 0x405007
test bl, bl
jne 0x405007
mov eax, dword [0x4c9638]
cmp dword [ebp + 8], eax
jne 0x404ffb
xor eax, eax
cmp byte [esi + 4], al
sete al
jmp 0x404fff
movzx eax, byte [edx + 4]
test eax, eax
je 0x405007
mov byte [edx + 0x11], 1
cmp byte [esi + 8], 0
jne 0x405040
cmp byte [esi + 9], 0
jne 0x405040
mov ecx, dword [ebp + 0x18]
push 0x3fff
push edi
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.004067e0
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 0x405084
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 0x405080
mov ebx, eax
mov eax, ecx
mov dword [esp + 0x10], ebx
mov word [esi + 6], ax
cmp byte [ebp + 0x20], 0
mov eax, dword [0x4c9638]
sete cl
mov byte [esi + 0xc], cl
mov byte [esp + 0xd], 0
cmp dword [ebp + 8], eax
jne 0x405113
cmp byte [esi + 4], 0
je 0x405136
mov eax, dword [0x4c9f44]
cmp byte [eax + 0xb64c], 0
jne 0x4050be
cmp byte [eax + 0xb76c], 0
jne 0x4050be
xor ecx, ecx
jmp 0x4050c3
mov ecx, 1
cmp byte [eax + 0xb88c], 0
mov byte [eax + 0x132c], cl
jne 0x4050df
cmp byte [eax + 0xb9ac], 0
jne 0x4050df
xor ecx, ecx
jmp 0x4050e4
mov ecx, 1
cmp byte [eax + 0xb40c], 0
mov byte [eax + 0x144c], cl
jne 0x405106
cmp byte [eax + 0xb52c], 0
jne 0x405106
xor ecx, ecx
mov byte [eax + 0x120c], cl
jmp 0x405136
mov ecx, 1
mov byte [eax + 0x120c], cl
jmp 0x405136
test eax, eax
jne 0x405136
push 1
call fcn.00411f60
mov edx, dword [0x4c8418]
add esp, 4
mov byte [0x4c9506], al
mov byte [0x4c9505], al
mov byte [esp + 0xd], 1
mov eax, dword [esi]
test eax, eax
je 0x405146
cmp dword [eax], 7
mov byte [esp + 0xf], 1
je 0x40514b
mov byte [esp + 0xf], 0
mov al, byte [esi + 8]
test al, al
je 0x4052f1
cmp byte [ebp + 0x20], 0
jne 0x4052f1
test edx, edx
je 0x405172
cmp byte [esi + 9], 0
je 0x405172
cmp esi, edx
jne 0x4052f1
cmp al, 1
jne 0x4051a4
cmp byte [esp + 0x20], 0
mov eax, dword [esp + 0x2c]
jne 0x405185
movzx eax, byte [ebp + 0x18]
mov edx, dword [esp + 0x20]
push edx
push eax
call fcn.0040a320
mov edx, dword [0x4c8418]
add esp, 8
test al, al
je 0x4051a4
mov byte [esp + 0xc], 1
jmp 0x4051b9
mov byte [esp + 0xc], 0
cmp esi, edx
je 0x4051b9
mov edx, esi
mov dword [0x4c8418], edx
mov byte [esi + 0x11], 0
cmp byte [esi + 9], 0
je 0x40526c
cmp byte [esp + 0xd], 0
jne 0x4051df
push 1
mov byte [esp + 0x11], 1
call fcn.00411f60
mov edx, dword [0x4c8418]
add esp, 4
mov al, byte [esi + 4]
mov cl, byte [0x4c9506]
test al, al
je 0x4051f0
not al
and cl, al
test cl, cl
jne 0x405200
cmp byte [esp + 0xc], cl
jne 0x405200
test byte [esi + 0xb], 1
je 0x40526c
mov eax, dword [0x4c9638]
cmp dword [ebp + 8], eax
jne 0x405222
cmp byte [esp + 0x20], 0
je 0x405222
mov eax, dword [0x4c9f3c]
movzx ecx, cl
shl ecx, 9
add ecx, dword [esp + 0x2c]
jmp 0x405233
movzx eax, byte [ebp + 0x18]
movzx ecx, cl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4c9f38]
movzx ebx, word [eax + ecx*2]
mov dword [esp + 0x10], ebx
test ebx, 0x4000
je 0x405249
mov word [esi + 6], bx
jmp 0x405276
mov ecx, dword [0x4c6aec]
mov eax, ebx
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x40526c
mov ecx, dword [0x4c9f40]
movzx eax, ax
mov ax, word [ecx + eax*2]
mov word [esi + 6], ax
mov ecx, 0x3fff
cmp bx, cx
jne 0x4052f1
mov al, byte [esp + 0xc]
test al, al
je 0x40528b
or byte [esi + 0xb], 8
mov edx, 0x23
mov word [edi + 4], dx
cmp byte [esi + 4], 0
jne 0x4052c3
test byte [esi + 0xb], 1
jne 0x4052c3
cmp byte [esp + 0xf], 0
jne 0x4052c3
test al, al
jne 0x4052c3
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push 0
push SysReAllocString
push 0x3fff
push 0
push eax
mov byte [esi + 0x10], 1
push ecx
mov ebx, edi
jmp 0x4065d2
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push 0x3fff
push edi
push 0
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.004067e0
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 0x405384
cmp byte [ebp + 0x20], 0
je 0x405384
cmp edx, esi
jne 0x405319
cmp byte [esp + 0x1a], 0
je 0x405384
xor edx, edx
mov dword [0x4c8418], edx
cmp byte [esi + 0xa], 0
jne 0x40537f
mov al, byte [esi + 0xb]
test al, 8
je 0x40532f
xor cl, cl
and al, 0xf7
mov byte [esi + 0xb], al
jmp 0x405331
mov cl, 1
cmp byte [esp + 0x1a], 0
je 0x40534f
test cl, cl
je 0x40534f
push 0
push SysReAllocString
push 0x3fff
mov ebx, edi
jmp 0x4065c6
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push 0x3fff
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.004067e0
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 0x405544
cmp byte [ebp + 0x20], 0
je 0x405544
cmp edx, esi
jne 0x4053a4
xor edx, edx
mov dword [0x4c8418], edx
cmp byte [esi + 0xd], 0
je 0x4053cb
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
mov byte [esi + 0xd], 0
call fcn.0040fa50
mov edx, dword [0x4c8418]
add esp, 0x18
cmp byte [esi + 0xe], 0
je 0x4053f2
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
mov byte [esi + 0xe], 0
call fcn.0040fa50
mov edx, dword [0x4c8418]
add esp, 0x18
mov ecx, 0x3fff
cmp bx, cx
jne 0x405413
mov al, byte [esi + 0xb]
test al, 8
je 0x405413
mov edx, dword [ebp + 0x20]
push ecx
and al, 0xf7
push edi
mov byte [esi + 0xb], al
push edx
jmp 0x404f43
mov cl, byte [esp + 0xf]
test cl, cl
je 0x40549f
mov al, byte [esi + 0x11]
cmp al, 2
jne 0x405467
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
push 0xffc3d44e
push 0
push 0
push ebx
push esi
push 1
call fcn.0040fa50
push 0xffc3d44d
push 0
push 0
push ebx
push esi
push 2
call fcn.0040fa50
mov edx, dword [ebp + 0x20]
push 0
push SysReAllocString
push 0x3fff
push edx
push ebx
push esi
jmp 0x404eaf
cmp al, 1
jne 0x4054fe
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.004067e0
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x11], 0
je 0x4054fe
mov eax, 0x3fff
cmp bx, ax
jne 0x4054fe
cmp byte [esi + 4], 0
jne 0x40534f
test byte [esi + 0xb], 1
mov ecx, dword [ebp + 0x20]
je 0x4054eb
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.004067e0
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push SysReAllocString
push 0x3fff
mov ebx, edi
jmp 0x4065c9
cmp byte [esi + 9], 0
jne 0x405533
cmp byte [esi + 4], 0
jne 0x40534f
test byte [esi + 0xb], 1
jne 0x40534f
test cl, cl
jne 0x40534f
push 0
push SysReAllocString
push 0x3fff
mov ebx, edi
jmp 0x4065c6
cmp byte [esp + 0x1b], 0
jne 0x405544
cmp byte [esi + 0xa], 0
je 0x40534f
cmp byte [esp + 0xd], 0
jne 0x405565
mov ecx, 0x3fff
cmp bx, cx
jne 0x405565
push 1
call fcn.00411f60
mov edx, dword [0x4c8418]
add esp, 4
mov byte [esp + 0xc], 0
test edx, edx
je 0x405c52
cmp byte [ebp + 0x20], 0
je 0x405582
cmp byte [esi + 0xa], 0
je 0x405c52
mov eax, 0x3fff
cmp bx, ax
jne 0x405f11
mov esi, dword [esp + 0x14]
cmp byte [esi + 0x13], 0
mov dword [esp + 0x24], 0
jbe 0x4056c2
add esi, 0x16
lea esp, [esp]
mov cl, byte [esi]
mov edi, dword [0x4c9f44]
movzx eax, cl
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + edi + 0xc], 0
je 0x405603
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x4055ed
cmp byte [ebp + 0x20], 0
jne 0x40561d
mov ecx, dword [esp + 0x14]
mov word [ecx + 6], ax
mov eax, 0x3fff
cmp bx, ax
jne 0x405639
jmp 0x405603
cmp byte [ebp + 0x20], 0
jne 0x4055ff
mov ebx, eax
mov dword [esp + 0x10], ebx
mov byte [esp + 0xd], cl
jmp 0x405603
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 0x4055b0
jmp 0x40562b
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 0x4056c2
movzx ecx, byte [esp + 0xd]
mov eax, ecx
sub eax, 0x10
je 0x4056a0
dec eax
je 0x40567e
dec eax
je 0x40565c
lea edx, [ecx + ecx*8]
shl edx, 5
add edx, dword [0x4c9f44]
jmp 0x405777
mov ecx, dword [0x4c9f44]
xor eax, eax
cmp byte [ecx + 0xb9ac], al
setne al
lea edx, [eax + eax*8 + 0x5c4]
shl edx, 5
add edx, ecx
jmp 0x405777
mov ecx, dword [0x4c9f44]
xor eax, eax
cmp byte [ecx + 0xb76c], al
setne al
lea edx, [eax + eax*8 + 0x5b2]
shl edx, 5
add edx, ecx
jmp 0x405777
mov ecx, dword [0x4c9f44]
xor eax, eax
cmp byte [ecx + 0xb52c], al
setne al
lea edx, [eax + eax*8 + 0x5a0]
shl edx, 5
add edx, ecx
jmp 0x405777
mov esi, dword [esp + 0x14]
cmp byte [esi + 0x14], 0
mov dword [esp + 0x24], 0
jbe 0x40578b
add esi, 0xde
mov edi, edi
movzx ecx, word [esi]
mov edi, dword [0x4c9f48]
mov eax, ecx
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + edi + 0xc], 0
je 0x405733
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x40571d
cmp byte [ebp + 0x20], 0
jne 0x40574d
mov ecx, dword [esp + 0x14]
mov word [ecx + 6], ax
mov eax, 0x3fff
cmp bx, ax
jne 0x405766
jmp 0x405733
cmp byte [ebp + 0x20], 0
jne 0x40572f
mov ebx, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], ecx
jmp 0x405733
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 0x4056e0
jmp 0x40575c
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 0x40578b
movzx edx, word [esp + 0x38]
lea edx, [edx + edx*8]
shl edx, 5
add edx, dword [0x4c9f48]
mov eax, 0x3fff
mov dword [0x4c8418], edx
cmp bx, ax
jne case.default.0x40579d
movzx eax, byte [ebp + 0x18]
add eax, 0xffffff60
cmp eax, 5
ja case.default.0x40579d
jmp dword [eax*4 + 0x40667c]
mov al, 0x11
jmp 0x4057ae
mov al, 0x12
jmp 0x4057ae
mov al, 0x10
mov ecx, dword [0x4c9f44]
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 0x40588e
add esi, 0x16
nop
mov cl, byte [esi]
mov edi, dword [0x4c9f44]
movzx eax, cl
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + edi + 0xc], 0
je 0x40585e
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x405848
cmp byte [ebp + 0x20], 0
jne 0x405876
mov ecx, dword [esp + 0x14]
mov word [ecx + 6], ax
mov eax, 0x3fff
cmp bx, ax
je 0x40585e
mov ecx, edi
movzx edx, byte [esp + 0xd]
mov eax, edx
sub eax, 0x10
je 0x40593e
dec eax
je 0x405925
dec eax
je 0x405909
lea edx, [edx + edx*8]
shl edx, 5
add edx, ecx
jmp 0x4059af
cmp byte [ebp + 0x20], 0
jne 0x40585a
mov ebx, eax
mov dword [esp + 0x10], ebx
mov byte [esp + 0xd], cl
jmp 0x40585e
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 0x4057e0
jmp 0x405884
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 [0x4c9f44]
mov eax, 0x3fff
cmp bx, ax
jne 0x40581d
movzx eax, byte [esi + 0x14]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], 0
test eax, eax
jle case.default.0x40579d
add esi, 0xde
jmp 0x4058c0
movzx ecx, word [esi]
mov edi, dword [0x4c9f48]
mov eax, ecx
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + edi + 0xc], 0
je 0x40596d
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x405957
cmp byte [ebp + 0x20], 0
jne 0x405985
mov ecx, dword [esp + 0x14]
mov word [ecx + 6], ax
mov eax, 0x3fff
cmp bx, ax
jne 0x40599e
jmp 0x40596d
xor eax, eax
cmp byte [ecx + 0xb9ac], al
setne al
lea edx, [eax + eax*8 + 0x5c4]
shl edx, 5
add edx, ecx
jmp 0x4059af
xor eax, eax
cmp byte [ecx + 0xb76c], al
setne al
lea edx, [eax + eax*8 + 0x5b2]
shl edx, 5
add edx, ecx
jmp 0x4059af
xor eax, eax
cmp byte [ecx + 0xb52c], al
setne al
lea edx, [eax + eax*8 + 0x5a0]
shl edx, 5
add edx, ecx
jmp 0x4059af
cmp byte [ebp + 0x20], 0
jne 0x405969
mov ebx, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], ecx
jmp 0x40596d
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 0x4058c0
jmp 0x405994
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.0x40579d
movzx edx, word [esp + 0x38]
lea edx, [edx + edx*8]
shl edx, 5
add edx, dword [0x4c9f48]
mov dword [0x4c8418], edx
mov esi, ebx
mov ecx, 0x3fff
and esi, 0x3fff
cmp bx, cx
je 0x405a45
mov eax, dword [0x4c6aec]
cmp si, word [eax]
jae 0x405a41
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.0040a540
add esp, 8
mov dword [esp + 0x30], eax
test eax, eax
jne 0x405a2f
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.004067e0
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x10]
mov edx, dword [0x4c8418]
mov esi, ebx
and esi, 0x3fff
mov byte [edx + 0x11], 2
mov eax, 0x3ffe
cmp si, ax
je 0x405a5d
mov ecx, 0x3ffd
cmp si, cx
jne 0x405c52
cmp byte [ebp + 0x20], 0
jne 0x405a6b
mov eax, dword [esp + 0x14]
mov byte [eax + 0xf], 1
test byte [0x4c9505], 0xc
jne 0x405a91
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040fa50
mov edx, dword [0x4c8418]
add esp, 0x18
mov al, byte [ebp + 0x18]
cmp al, 0xa2
je 0x405a9c
cmp al, 0xa3
jne 0x405ac8
cmp byte [ebp + 0x20], 0
jne 0x405ac8
mov edi, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push edi
push ecx
push 1
call fcn.0040fa50
mov edx, dword [0x4c8418]
mov al, byte [ebp + 0x18]
add esp, 0x18
jmp 0x405acb
mov edi, dword [ebp + 0x1c]
mov ecx, 0x3ffd
mov byte [edx + 0xd], 1
cmp si, cx
jne 0x405b05
test byte [0x4c9505], 0x30
jne 0x405aff
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040fa50
mov edx, dword [0x4c8418]
add esp, 0x18
mov byte [edx + 0xe], 1
jmp 0x405b7b
mov edx, 0x3ffe
cmp si, dx
jne 0x405b7b
cmp al, 0xa0
je 0x405b17
cmp al, 0xa1
jne 0x405b35
cmp byte [ebp + 0x20], 0
jne 0x405b35
mov eax, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push edi
push eax
push 1
call fcn.0040fa50
add esp, 0x18
test byte [0x4c9505], 0x10
je 0x405b58
push 0xffc3d44d
push 0
push 0
push 0
push 0xa0
push 1
call fcn.0040fa50
add esp, 0x18
test byte [0x4c9505], 0x20
je 0x405b7b
push 0xffc3d44d
push 0
push 0
push 0
push 0xa1
push 1
call fcn.0040fa50
add esp, 0x18
test byte [0x4c9505], 1
je 0x405b9e
push 0xffc3d44d
push 0
push 0
push 0
push 0xa2
push 1
call fcn.0040fa50
add esp, 0x18
test byte [0x4c9505], 2
je 0x405bc1
push 0xffc3d44d
push 0
push 0
push 0
push 0xa3
push 1
call fcn.0040fa50
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040fa50
mov ecx, 0x3ffd
add esp, 0x18
cmp si, cx
jne 0x405c1d
mov edx, dword [0x4c8418]
cmp byte [edx + 0xe], 0
je 0x405c1d
mov al, byte [ebp + 0x18]
cmp al, 0x60
jb 0x405bf9
cmp al, 0x69
jbe 0x405bfd
cmp al, 0x6e
jne 0x405c1d
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040fa50
mov eax, dword [0x4c8418]
add esp, 0x18
mov byte [eax + 0xe], 0
cmp byte [ebp + 0x20], 0
mov ebx, dword [esp + 0x1c]
mov ecx, 0x68
mov word [ebx + 4], cx
jne 0x405c38
mov edx, dword [esp + 0x14]
mov byte [edx + 0x10], 1
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
push 0
push SysReAllocString
push 0x3fff
push eax
push edi
push ecx
jmp 0x4065d2
mov edx, 0x3fff
cmp bx, dx
jne 0x405f11
mov ecx, dword [esp + 0x14]
mov cl, byte [ecx + 4]
mov al, byte [0x4c9506]
test cl, cl
je 0x405c74
not cl
and al, cl
mov edi, dword [ebp + 8]
mov esi, dword [0x4c9638]
cmp edi, esi
jne 0x405c9a
cmp byte [esp + 0x20], 0
je 0x405c9a
mov ecx, dword [0x4c9f3c]
movzx edx, al
shl edx, 9
add edx, dword [esp + 0x2c]
jmp 0x405cac
movzx ecx, byte [ebp + 0x18]
movzx edx, al
shl edx, 8
add edx, ecx
mov ecx, dword [0x4c9f38]
movzx ecx, word [ecx + edx*2]
mov edx, 0x3fff
mov dword [esp + 0x10], ecx
cmp cx, dx
jne 0x405d2f
cmp byte [0x4c8417], 0
je 0x405d2f
mov dl, byte [ebp + 0x18]
cmp dl, 9
je 0x405d2f
and al, 0xf3
cmp edi, esi
jne 0x405cf2
cmp byte [esp + 0x20], 0
je 0x405cf2
mov ecx, dword [0x4c9f3c]
movzx eax, al
shl eax, 9
add eax, dword [esp + 0x2c]
movzx ecx, word [ecx + eax*2]
jmp 0x405d07
movzx eax, al
movzx ecx, dl
mov edx, dword [0x4c9f38]
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 0x405d26
mov edx, 0x3fff
cmp ax, dx
jb 0x405d2f
mov ecx, 0x3fff
mov dword [esp + 0x10], ecx
test ecx, 0x4000
je 0x405d6b
cmp byte [ebp + 0x20], 0
jne 0x405e11
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 0x405e96
mov edx, dword [esp + 0x1c]
push ecx
push edx
push 0
jmp 0x405e73
mov edx, 0x3fff
cmp cx, dx
je 0x405e22
mov eax, ecx
and eax, edx
mov edx, dword [ebp + 0x20]
test dl, dl
je 0x405dee
mov esi, dword [0x4c6aec]
cmp ax, word [esi]
jae 0x405de5
mov esi, dword [0x4c9f40]
mov ebx, eax
add ebx, ebx
mov eax, 0x3fff
cmp word [ebx + esi], ax
je 0x405de5
cmp byte [esp + 0xe], 0
jne 0x405dd6
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.0040a540
add esp, 8
mov dword [esp + 0x30], eax
test eax, eax
jne 0x405e0d
mov eax, dword [0x4c9f40]
movzx ecx, word [ebx + eax]
mov dword [esp + 0x10], ecx
jmp 0x405e11
cmp byte [esp + 0xe], 0
jne 0x405e22
jmp 0x405e11
mov edx, dword [0x4c6aec]
cmp ax, word [edx]
jae 0x405e11
mov edx, dword [0x4c9f40]
mov ax, word [edx + eax*2]
mov edx, dword [esp + 0x14]
mov word [edx + 6], ax
jmp 0x405e11
mov ecx, dword [esp + 0x10]
mov eax, 0x3fff
cmp cx, ax
jne 0x405f11
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x20]
test cl, cl
je 0x405d49
mov eax, dword [esp + 0x14]
cmp byte [eax + 4], 0
jne 0x405e68
test byte [eax + 0xb], 1
jne 0x405e68
cmp byte [eax + 8], 0
je 0x405e68
cmp byte [esp + 0xf], 0
jne 0x405e68
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 0x4065d2
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.004067e0
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.0040a540
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
add esp, 8
cmp byte [esp + 0xc], 0
je 0x405ee8
mov ecx, dword [esp + 0x1c]
push 0x3fff
push ecx
mov ecx, dword [ebp + 0x10]
push edi
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.004067e0
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x1c]
mov ebx, dword [esp + 0x1c]
push 0
push SysReAllocString
push 0x3fff
push 0
push ecx
mov ecx, dword [ebp + 8]
push edx
call fcn.004066b0
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x14]
mov al, byte [ebx + 0xb]
add ebx, 0xb
mov dword [esp + 0x34], ebx
test al, 8
je 0x405f32
cmp byte [ebp + 0x20], 0
je 0x405f32
and al, 0xf7
mov byte [esp + 0xc], 1
mov byte [ebx], al
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4c6aec]
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x406032
cmp dword [esp + 0x30], 0
jne 0x406032
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.0040a540
add esp, 8
mov dword [esp + 0x30], eax
test eax, eax
jne 0x406032
cmp byte [ebp + 0x20], al
je 0x405fc3
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0x10], al
mov ecx, dword [ebp + 0x18]
je 0x405fb0
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 0x4065d2
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x20]
push 0x3fff
push edx
push eax
jmp 0x40501d
mov eax, dword [esp + 0x14]
add eax, 6
mov ecx, 0x3fff
cmp word [eax], cx
jne 0x405fe5
mov edx, dword [esp + 0x1c]
push 0x3fff
push edx
push 0
jmp 0x404f43
push 1
push eax
xor esi, esi
lea eax, [esp + 0x14]
mov ecx, ebx
xor edi, edi
mov byte [esp + 0x14], 0
call fcn.0040a540
add esp, 8
cmp byte [esp + 0xc], 0
jne 0x405fd4
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 0x4065d2
mov esi, dword [esp + 0x10]
mov dl, byte [0x4c9505]
and esi, 0x3fff
test dl, 0xcc
je 0x406109
cmp byte [esp + 0xc], 0
jne 0x406109
cmp byte [0x4c841c], 0
jne 0x40606e
mov eax, dword [ebp + 8]
cmp eax, dword [0x4c963c]
jne 0x406109
mov bl, byte [0x4c9507]
test dl, 0xc0
je 0x4060a0
test bl, 0xc0
jne 0x406097
push 0xc0
mov eax, esi
call fcn.0040a790
mov dl, byte [0x4c9505]
add esp, 4
test al, al
je 0x4060a0
mov byte [0x4c841d], 1
jmp 0x406109
cmp byte [0x4c841d], 0
jne 0x406109
test dl, 0xc
je 0x406109
test dl, 3
jne 0x406109
test bl, 0xc
jne 0x4060ce
push 0xc
mov eax, esi
call fcn.0040a790
mov dl, byte [0x4c9505]
add esp, 4
test al, al
je 0x406109
cmp dword [0x4c9638], 0
je 0x4060e0
mov byte [0x4c841d], 1
jmp 0x406109
movzx ecx, word [0x4c58d4]
movzx edx, byte [0x4c5385]
push 0xffc3d44d
push 0
push 0
push ecx
push edx
push 2
call fcn.0040fa50
mov dl, byte [0x4c9505]
add esp, 0x18
mov eax, esi
lea ecx, [eax - 0x3ffa]
cmp ecx, 4
ja case.default.0x40611a
jmp dword [ecx*4 + 0x406694]
cmp byte [0x4c8417], 0
jne case.0x40611a.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.004067e0
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 0x40616d
mov al, 0xa4
jmp 0x406174
test dl, 8
je 0x406178
mov al, 0xa5
mov byte [esp + 0xe], al
cmp byte [0x4c8417], 0
je 0x4061ee
mov ecx, 0x3ffb
cmp si, cx
je case.0x40611a.16381
test al, al
movzx eax, al
jne 0x40619b
mov eax, 0x12
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040fa50
mov edx, dword [esp + 0x2c]
add esp, 0x18
cmp byte [edx + 4], 0
je 0x4061e2
mov eax, dword [ebp + 0x18]
cmp al, 0x5b
je 0x4061e2
cmp al, 0x5c
je 0x4061e2
cmp byte [ebp + 0x20], 0
jne 0x4061e2
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040fa50
add esp, 0x18
mov byte [0x4c8417], 0
jmp 0x406450
mov cl, byte [ebp + 0x18]
cmp cl, 0xa4
je 0x406200
mov byte [esp + 0xd], 0
cmp cl, 0xa5
jne 0x406205
mov byte [esp + 0xd], 1
cmp cl, 0xa0
je 0x406213
cmp cl, 0xa1
je 0x406213
xor bl, bl
jmp 0x406215
mov bl, 1
mov byte [esp + 0x1b], bl
cmp cl, 0xa2
je 0x406228
mov byte [esp + 0x1a], 0
cmp cl, 0xa3
jne 0x40622d
mov byte [esp + 0x1a], 1
xor al, al
mov byte [esp + 0x2c], al
test dl, 0x10
je 0x406240
mov al, 0xa0
mov byte [esp + 0x2c], al
jmp 0x406263
test dl, 0x20
je 0x40624d
mov al, 0xa1
mov byte [esp + 0x2c], al
jmp 0x406263
cmp byte [ebp + 0x20], 0
jne 0x40625d
test bl, bl
je 0x40625d
mov al, cl
mov byte [esp + 0x2c], al
mov dl, byte [0x4c9505]
mov byte [esp + 0x20], 0
test dl, 1
je 0x406274
mov byte [esp + 0x20], 0xa2
jmp 0x406291
test dl, 2
je 0x406280
mov byte [esp + 0x20], 0xa3
jmp 0x406291
cmp byte [ebp + 0x20], 0
jne 0x406291
cmp byte [esp + 0x1a], 0
je 0x406291
mov byte [esp + 0x20], cl
mov esi, dword [esp + 0x2c]
xor bl, bl
test al, al
je 0x4062b6
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 1
call fcn.0040fa50
mov cl, byte [ebp + 0x18]
add esp, 0x18
mov bl, 1
cmp byte [esp + 0x20], 0
je 0x4062da
mov eax, dword [esp + 0x20]
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040fa50
mov cl, byte [ebp + 0x18]
add esp, 0x18
cmp byte [esp + 0xd], 0
je 0x4062e9
cmp byte [ebp + 0x20], 0
jne 0x4062f1
jmp 0x4062ed
mov cl, byte [esp + 0xe]
test cl, cl
jne 0x406308
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040fa50
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040fa50
add esp, 0x18
test bl, bl
je 0x406340
cmp byte [esp + 0x1b], 0
jne 0x406340
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 0
call fcn.0040fa50
add esp, 0x18
mov byte [0x4c8417], 1
jmp 0x406450
cmp byte [0x4c8417], 0
jne 0x406368
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 0x20]
push 0x3fff
push ecx
push edx
jmp 0x404f43
cmp byte [ebp + 0x20], 0
mov al, byte [ebp + 0x18]
jne 0x4063a3
cmp al, 0xa2
je 0x406381
cmp al, 0xa3
je 0x406381
cmp al, 0xa0
je 0x406381
cmp al, 0xa1
jne 0x4063a3
mov edx, dword [ebp + 0x18]
push 0xffc3d44d
push 0
push 0
push 0
push edx
push 1
call fcn.0040fa50
mov dl, byte [0x4c9505]
mov al, byte [ebp + 0x18]
add esp, 0x18
test dl, 0xc
je 0x4063b6
cmp byte [ebp + 0x20], 0
je 0x4063cd
cmp al, 0xa4
je 0x4063b6
cmp al, 0xa5
jne 0x4063cd
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040fa50
add esp, 0x18
mov eax, 0x3ffd
xor bl, bl
cmp si, ax
jne 0x4063fb
test byte [0x4c9505], 0x30
jne 0x4063fb
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040fa50
add esp, 0x18
mov bl, 1
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040fa50
add esp, 0x18
test bl, bl
je 0x406450
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040fa50
add esp, 0x18
jmp 0x406450
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x406450
cmp byte [eax], 5
jb 0x406450
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 ecx, 0x68
mov word [esi + 4], cx
je 0x4064bc
test bl, bl
je 0x40655d
cmp byte [edi + 8], 0
je 0x4064bc
mov edi, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
push 0xffc3d44e
push 0
push 0
push edi
push ebx
push 1
call fcn.0040fa50
push 0xffc3d44d
push 0
push 0
push edi
push ebx
push 2
call fcn.0040fa50
mov edx, dword [esp + 0x58]
mov eax, dword [ebp + 0x20]
push 0
push SysReAllocString
push edx
push eax
push edi
push ebx
mov ebx, esi
jmp 0x404eb1
test bl, bl
je 0x40655d
cmp byte [edi + 4], 0
je 0x4064f3
cmp byte [edi + 0x10], 0
je 0x406582
mov ecx, dword [esp + 0x28]
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
mov ebx, esi
jmp 0x4065d2
cmp byte [esp + 0xc], 0
je 0x4065b0
mov eax, dword [ebp + 8]
cmp eax, dword [0x4c963c]
jne 0x406533
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.004067e0
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
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.004067e0
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4c8418]
mov byte [edi + 0xf], 1
test eax, eax
je 0x406574
cmp byte [eax + 4], 0
je 0x406574
mov byte [eax + 0x11], 2
cmp byte [esp + 0xc], 0
je 0x40658d
mov eax, dword [esp + 0x34]
or byte [eax], 8
mov edx, dword [esp + 0x28]
push edx
push esi
jmp 0x404f42
mov eax, dword [ebp + 0x18]
cmp al, 0xa4
je 0x406598
cmp al, 0xa5
jne 0x4065b0
mov edx, dword [ebp + 0x1c]
push 0xffc3d450
push 0
push 0
push edx
push eax
push 1
call fcn.0040fa50
add esp, 0x18
test bl, bl
jne 0x4065b8
mov byte [edi + 0x10], 1
mov eax, dword [esp + 0x28]
push 0
push SysReAllocString
push eax
mov ebx, esi
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push ecx
push edx
push eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
call fcn.004066b0
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret