Function at 0x404a40
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 0x404a88
cmp eax, 0xffc3d44e
je 0x404a88
mov byte [esp + 0x11], 0
cmp eax, 0xffc3d44d
jne 0x404a8d
mov byte [esp + 0x11], 1
mov ecx, dword [0x4c89c8]
test ecx, ecx
jne 0x404aa4
lea ebp, [esp + 0x40]
mov dword [esp + 0x3c], ebp
jmp 0x404b6c
mov eax, dword [0x4c89cc]
mov ebp, eax
imul ebp, ebp, 0xd4
inc eax
add ebp, ecx
mov dword [esp + 0x3c], ebp
mov dword [0x4c89cc], eax
cmp eax, dword [0x4c43d8]
jl 0x404acf
mov dword [0x4c89cc], 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 [0x4cadd4]
mov dword [0x4c89d0], eax
mov dword [esp + 0x30], ecx
fild dword [esp + 0x30]
jns 0x404aff
fadd dword [0x4bf1d0]
fdiv qword [0x4bf1c8]
mov dword [0x4cadd4], eax
fstp dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x404b41
cmp esi, dword [0x4c89d4]
je 0x404b39
mov eax, dword [0x4c7fb8]
push esi
lea edx, [ebp + 0xc]
push edx
push 0x418
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x404b5f
xor ecx, ecx
mov word [ebp + 0xc], cx
jmp 0x404b5f
mov eax, 0x4a485c
lea edx, [ebp + 0xc]
sub edx, eax
jmp 0x404b50
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404b50
mov dl, byte [esp + 0x128]
mov dword [0x4c89d4], esi
cmp dl, 0xe7
jne 0x404bbf
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.004069e0
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 0x404bd3
xor edi, edi
mov dword [esp + 0x12c], edi
mov ecx, dword [esp + 0x118]
cmp ecx, dword [0x4c80ec]
jne 0x404c0c
mov al, byte [esp + 0x138]
and al, 1
mov byte [esp + 0x13], al
jne 0x404d34
test bl, bl
setne al
dec al
movzx ecx, dl
and al, 0x80
mov byte [ecx + 0x4c7fd8], al
jmp 0x404d34
mov edx, dword [esp + 0x138]
shr edx, 4
and dl, 1
mov byte [esp + 0x13], dl
test edi, 0x100
jne case.0x404c57.13
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je case.0x404c57.13
movzx eax, byte [esp + 0x128]
add eax, 0xfffffff4
cmp eax, 0x62
ja case.0x404c57.13
movzx eax, byte [eax + 0x4067b8]
jmp dword [eax*4 + 0x406788]
test bl, bl
sete cl
mov byte [0x4c6ea4], cl
jmp case.0x404c57.13
test bl, bl
sete dl
mov byte [0x4c6ea5], dl
jmp case.0x404c57.13
test bl, bl
sete al
mov byte [0x4c6ea6], al
jmp case.0x404c57.13
test bl, bl
sete cl
mov byte [0x4c6ea7], cl
jmp case.0x404c57.13
test bl, bl
sete dl
mov byte [0x4c6ea8], dl
jmp case.0x404c57.13
test bl, bl
sete al
mov byte [0x4c6ea9], al
jmp case.0x404c57.13
test bl, bl
sete cl
mov byte [0x4c6eaa], cl
jmp case.0x404c57.13
test bl, bl
sete dl
mov byte [0x4c6eab], dl
jmp case.0x404c57.13
test bl, bl
sete al
mov byte [0x4c6eac], al
jmp case.0x404c57.13
test bl, bl
sete cl
mov byte [0x4c6ead], cl
jmp case.0x404c57.13
test bl, bl
sete dl
mov byte [0x4c6eae], dl
movzx esi, byte [esp + 0x128]
mov ecx, dword [0x4c89ec]
lea eax, [esi + esi*8]
shl eax, 5
cmp byte [eax + ecx + 4], 0
jne 0x404d34
test byte [esp + 0x138], 0x10
jne 0x404d34
mov al, byte [esp + 0x128]
push ebx
call fcn.00407c80
add esp, 4
test al, al
je 0x404d34
test bl, bl
setne dl
dec dl
and dl, 0x80
mov byte [esi + 0x4c7fd8], dl
cmp byte [esp + 0x11], 0
je 0x404d3f
mov al, 0x69
jmp 0x404d4b
mov al, byte [esp + 0x13]
neg al
sbb al, al
and al, 0x41
add al, 0x20
cmp byte [0x4c80d8], 0
cbw
mov word [ebp + 4], ax
je 0x404d71
mov al, byte [esp + 0x128]
cmp al, 0x5b
je 0x404d69
cmp al, 0x5c
jne 0x404d71
test bl, bl
je 0x4052c5
cmp byte [0x4c6ec6], 0
je 0x404e2b
cmp byte [esp + 0x128], 0x1b
jne 0x404e2b
test bl, bl
jne 0x404e2b
push 0
push str.32771
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x404e2b
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 0x404e2b
push 0xffc3d44d
push 0
push 0
push 0
push 0x1b
push 0
call fcn.0040f380
mov dl, byte [0x4c7fb5]
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.0040f380
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.004068b0
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 [0x4c89f0]
mov cl, byte [eax + 0x12]
mov byte [esp + 0x34], cl
mov ecx, dword [0x4c80e8]
cmp dword [esp + 0x118], ecx
jne 0x404e63
cmp byte [esp + 0x34], 0
je 0x404e63
mov esi, eax
mov dword [esp + 0x1c], eax
jmp 0x404e7b
movzx eax, byte [esp + 0x128]
lea esi, [eax + eax*8]
shl esi, 5
add esi, dword [0x4c89ec]
mov dword [esp + 0x1c], esi
cmp byte [esp + 0x11], 0
je 0x404ed3
cmp dword [esp + 0x134], 0xffc3d44e
jne 0x404ead
test bl, bl
je 0x404ead
cmp dword [0x4c6ec8], esi
jne 0x404ead
mov byte [esi + 0xc], 0
mov byte [esi + 0xf], 0
mov dword [0x4c6ec8], 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 0x406762
test bl, bl
jne 0x404ee3
mov edx, 0x3fff
mov byte [esi + 0x10], bl
mov word [esi + 6], dx
cmp dword [esp + 0x118], ecx
jne 0x404fa2
test bl, bl
je 0x405010
cmp byte [0x4c6ece], 0
mov al, byte [esp + 0x128]
je 0x404f0c
cmp al, 0x5b
je 0x404f3b
cmp byte [0x4c6ecd], 0
je 0x404f19
cmp al, 0x5c
je 0x404f3b
cmp byte [0x4c6ecc], 0
je 0x404f26
cmp al, 0xa4
je 0x404f3b
cmp byte [0x4c6ec7], 0
je 0x405010
cmp al, 0xa5
jne 0x405010
movzx eax, al
add eax, 0xffffffa5
cmp eax, 0x4a
ja case.0x404f4d.93
movzx eax, byte [eax + 0x406830]
jmp dword [eax*4 + 0x40681c]
mov byte [0x4c6ece], 0
jmp case.0x404f4d.93
mov byte [0x4c6ecd], 0
jmp case.0x404f4d.93
mov byte [0x4c6ecc], 0
jmp case.0x404f4d.93
mov byte [0x4c6ec7], 0
test byte [0x4c7fb5], 3
jne 0x405010
movzx ecx, byte [0x4c4385]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
push 2
call fcn.0040f380
add esp, 0x18
jmp 0x405010
mov al, byte [esp + 0x128]
test al, al
jne 0x404fd5
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 0x406769
cmp al, 1
je 0x404fdd
cmp al, 2
jne 0x405010
cmp dword [0x4c8148], 0
jne 0x406735
push 0
push str.32768
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x405010
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ca0cc]
je 0x406735
mov edx, dword [0x4c6ec8]
test edx, edx
je 0x405049
cmp edx, esi
je 0x405049
test bl, bl
jne 0x405049
mov ecx, dword [0x4c80e8]
cmp dword [esp + 0x118], ecx
jne 0x40503b
xor eax, eax
cmp byte [esi + 4], al
sete al
jmp 0x40503f
movzx eax, byte [edx + 4]
test eax, eax
je 0x40504f
mov byte [edx + 0x11], 1
jmp 0x40504f
mov ecx, dword [0x4c80e8]
cmp byte [esi + 8], 0
jne 0x40505f
cmp byte [esi + 9], 0
je 0x404ead
mov dword [esp + 0x14], 0x3fff
mov dword [esp + 0x38], 0
test bl, bl
je 0x40509d
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 0x40509b
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 0x40512c
cmp byte [esi + 4], 0
je 0x405149
mov ecx, dword [0x4c89ec]
cmp byte [ecx + 0xb64c], 0
jne 0x4050d7
cmp byte [ecx + 0xb76c], 0
jne 0x4050d7
xor eax, eax
jmp 0x4050dc
mov eax, 1
cmp byte [ecx + 0xb88c], 0
mov byte [ecx + 0x132c], al
jne 0x4050f8
cmp byte [ecx + 0xb9ac], 0
jne 0x4050f8
xor eax, eax
jmp 0x4050fd
mov eax, 1
cmp byte [ecx + 0xb40c], 0
mov byte [ecx + 0x144c], al
jne 0x40511f
cmp byte [ecx + 0xb52c], 0
jne 0x40511f
xor eax, eax
mov byte [ecx + 0x120c], al
jmp 0x405149
mov eax, 1
mov byte [ecx + 0x120c], al
jmp 0x405149
test ecx, ecx
jne 0x405149
push 1
call fcn.00411910
add esp, 4
mov byte [0x4c7fb6], al
mov byte [0x4c7fb5], al
mov byte [esp + 0x11], 1
mov eax, dword [esi]
test eax, eax
je 0x405159
cmp dword [eax], 7
mov byte [esp + 0x1a], 1
je 0x40515e
mov byte [esp + 0x1a], 0
mov al, byte [esi + 8]
test al, al
je 0x405326
test bl, bl
jne 0x405326
mov ecx, dword [0x4c6ec8]
test ecx, ecx
je 0x405188
cmp byte [esi + 9], bl
je 0x405188
cmp esi, ecx
jne 0x405326
cmp al, 1
jne 0x4051bc
cmp byte [esp + 0x34], 0
mov eax, dword [esp + 0x2c]
jne 0x40519f
movzx eax, byte [esp + 0x128]
mov ecx, dword [esp + 0x34]
push ecx
push eax
call fcn.0040a1e0
add esp, 8
test al, al
je 0x4051bc
mov byte [esp + 0x12], 1
mov dl, byte [esp + 0x12]
jmp 0x4051d3
xor dl, dl
mov byte [esp + 0x12], dl
cmp esi, dword [0x4c6ec8]
je 0x4051d3
mov dword [0x4c6ec8], esi
mov byte [esi + 0x11], dl
cmp byte [esi + 9], 0
je 0x405289
cmp byte [esp + 0x11], 0
jne 0x4051f7
push 1
mov byte [esp + 0x15], 1
call fcn.00411910
mov dl, byte [esp + 0x16]
add esp, 4
mov al, byte [esi + 4]
mov cl, byte [0x4c7fb6]
test al, al
je 0x405208
not al
and cl, al
test cl, cl
jne 0x405216
test dl, dl
jne 0x405216
test byte [esi + 0xb], 1
je 0x405289
mov eax, dword [esp + 0x118]
cmp eax, dword [0x4c80e8]
jne 0x40523d
cmp byte [esp + 0x34], 0
je 0x40523d
mov eax, dword [0x4c89e4]
movzx ecx, cl
shl ecx, 9
add ecx, dword [esp + 0x2c]
jmp 0x405252
movzx eax, byte [esp + 0x128]
movzx ecx, cl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4c89e0]
movzx eax, word [eax + ecx*2]
mov dword [esp + 0x14], eax
test eax, 0x4000
je 0x405267
mov word [esi + 6], ax
jmp 0x405299
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4c55ec]
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x405289
mov ecx, dword [0x4c89e8]
mov ax, word [ecx + eax*2]
mov word [esi + 6], ax
mov ecx, 0x3fff
cmp word [esp + 0x14], cx
jne 0x405326
test dl, dl
je 0x4052aa
or byte [esi + 0xb], 8
mov eax, 0x23
mov word [ebp + 4], ax
cmp byte [esi + 4], 0
jne 0x4052ff
test byte [esi + 0xb], 1
jne 0x4052ff
cmp byte [esp + 0x1a], 0
jne 0x4052ff
test dl, dl
jne 0x4052ff
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.004068b0
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 0x406762
cmp byte [esi + 9], 0
mov byte [esp + 0x13], 0
je 0x4053a0
test bl, bl
je 0x4053a0
cmp dword [0x4c6ec8], esi
jne 0x40534e
cmp byte [esp + 0x1b], 0
je 0x4053a0
mov dword [0x4c6ec8], 0
cmp byte [esi + 0xa], 0
jne 0x40539b
mov al, byte [esi + 0xb]
test al, 8
je 0x405364
xor cl, cl
and al, 0xf7
mov byte [esi + 0xb], al
jmp 0x405366
mov cl, 1
cmp byte [esp + 0x1b], 0
je 0x406741
test cl, cl
je 0x406741
mov edx, dword [esp + 0x130]
mov eax, dword [esp + 0x128]
push 0
push SysReAllocString
push 0x3fff
push edx
push edi
push eax
jmp 0x4052dc
mov byte [esp + 0x13], 1
cmp byte [esi + 8], 0
je 0x40555e
test bl, bl
je 0x40555e
cmp dword [0x4c6ec8], esi
jne 0x4053c4
mov dword [0x4c6ec8], 0
cmp byte [esi + 0xd], 0
je 0x4053e5
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
mov byte [esi + 0xd], 0
call fcn.0040f380
add esp, 0x18
cmp byte [esi + 0xe], 0
je 0x405406
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
mov byte [esi + 0xe], 0
call fcn.0040f380
add esp, 0x18
mov ecx, dword [esp + 0x14]
mov edx, 0x3fff
cmp cx, dx
jne 0x405446
mov al, byte [esi + 0xb]
test al, 8
je 0x405446
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 0x406762
cmp byte [esp + 0x1a], 0
mov al, byte [esi + 0x11]
je 0x4054f1
cmp al, 2
jne 0x40549e
mov esi, dword [esp + 0x128]
push 0xffc3d44e
push 0
push 0
push edi
push esi
push 1
call fcn.0040f380
push 0xffc3d44d
push 0
push 0
push edi
push esi
push 2
call fcn.0040f380
mov eax, dword [esp + 0x160]
push 0
push SysReAllocString
push 0x3fff
push eax
push edi
push esi
jmp 0x404e08
cmp al, 1
je 0x406741
cmp byte [esi + 9], 0
jne 0x40554c
cmp byte [esi + 4], 0
jne 0x406741
test byte [esi + 0xb], 1
jne 0x406741
cmp byte [esp + 0x1a], 0
jne 0x406741
mov edx, dword [esp + 0x130]
mov eax, dword [esp + 0x128]
push 0
push SysReAllocString
push 0x3fff
push edx
push edi
push eax
jmp 0x4052dc
test al, al
je 0x4054a6
cmp cx, dx
jne 0x4054a6
cmp byte [esi + 4], 0
je 0x40553b
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x118]
cmp al, 2
mov eax, dword [esp + 0x120]
jne 0x40552a
push 1
push 0x3fff
push ebp
push ebx
push eax
push ecx
push edx
jmp 0x406762
push 0
push 0x3fff
push ebp
push ebx
push eax
push ecx
push edx
jmp 0x406762
test byte [esi + 0xb], 1
push 0
je 0x405c9c
jmp 0x405422
cmp byte [esp + 0x23], 0
jne 0x405562
cmp byte [esi + 0xa], 0
jne 0x405562
jmp 0x406741
mov ecx, dword [esp + 0x14]
cmp byte [esp + 0x11], 0
jne 0x40557d
mov edx, 0x3fff
cmp cx, dx
jne 0x40557d
push 1
call fcn.00411910
add esp, 4
cmp dword [0x4c6ec8], 0
mov byte [esp + 0x12], 0
je 0x405cb3
test bl, bl
je 0x4055a1
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0xa], 0
je 0x405cb3
mov ecx, 0x3fff
cmp word [esp + 0x14], cx
jne 0x405f55
mov ebp, dword [esp + 0x1c]
cmp byte [ebp + 0x13], 0
mov edi, dword [esp + 0x14]
mov dword [esp + 0x24], 0
jbe 0x405676
mov bl, byte [esp + 0x130]
mov edx, dword [0x4c89ec]
lea esi, [ebp + 0x16]
jmp 0x4055e0
mov cl, byte [esi]
movzx eax, cl
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + edx + 0xc], 0
je 0x405648
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x40563e
test bl, bl
jne 0x40565e
mov ecx, 0x3fff
mov word [ebp + 6], ax
cmp di, cx
je 0x405648
mov dword [esp + 0x14], edi
movzx ecx, byte [esp + 0x11]
mov eax, ecx
sub eax, 0x10
je 0x40573d
dec eax
je 0x405724
dec eax
je 0x40570b
lea ebx, [ecx + ecx*8]
shl ebx, 5
add ebx, edx
jmp 0x4056f0
test bl, bl
jne 0x405648
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 0x4055e0
jmp 0x405668
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 0x405613
xor edx, edx
cmp byte [ebp + 0x14], dl
jbe 0x405797
lea esi, [ebp + 0xde]
jmp 0x405690
movzx ecx, word [esi]
mov ebx, dword [0x4c89f0]
mov eax, ecx
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + ebx + 0xc], 0
je 0x405768
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x405756
cmp byte [esp + 0x130], 0
jne 0x40577a
mov ecx, 0x3fff
mov word [ebp + 6], ax
cmp di, cx
je 0x405768
mov dword [esp + 0x14], edi
movzx eax, word [esp + 0x24]
lea ebx, [eax + eax*8]
shl ebx, 5
add ebx, dword [0x4c89f0]
mov ecx, 0x3fff
mov dword [0x4c6ec8], ebx
cmp word [esp + 0x14], cx
jne case.default.0x4057b3
jmp 0x40579d
xor eax, eax
cmp byte [edx + 0xb9ac], al
setne al
lea ebx, [eax + eax*8 + 0x5c4]
shl ebx, 5
add ebx, edx
jmp 0x4056f0
xor eax, eax
cmp byte [edx + 0xb76c], al
setne al
lea ebx, [eax + eax*8 + 0x5b2]
shl ebx, 5
add ebx, edx
jmp 0x4056f0
xor eax, eax
cmp byte [edx + 0xb52c], al
setne al
lea ebx, [eax + eax*8 + 0x5a0]
shl ebx, 5
add ebx, edx
jmp 0x4056f0
cmp byte [esp + 0x130], 0
jne 0x405768
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 0x405690
jmp 0x405785
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 0x4056df
mov ebx, dword [0x4c6ec8]
movzx eax, byte [esp + 0x128]
add eax, 0xffffff60
cmp eax, 5
ja case.default.0x4057b3
jmp dword [eax*4 + 0x40687c]
mov al, 0x11
jmp 0x4057c4
mov al, 0x12
jmp 0x4057c4
mov al, 0x10
mov edx, dword [esp + 0x14]
movzx eax, al
lea esi, [eax + eax*8]
shl esi, 5
add esi, dword [0x4c89ec]
xor edi, edi
movzx ebp, byte [esi + 0x13]
mov dword [esp + 0x30], esi
test ebp, ebp
jle 0x405898
add esi, 0x16
lea esp, [esp]
mov cl, byte [esi]
mov ebx, dword [0x4c89ec]
movzx eax, cl
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + ebx + 0xc], 0
je 0x405872
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x405862
cmp byte [esp + 0x130], 0
jne 0x405880
mov ecx, dword [esp + 0x1c]
mov word [ecx + 6], ax
mov eax, 0x3fff
cmp dx, ax
je 0x405872
mov dword [esp + 0x14], edx
movzx ecx, byte [esp + 0x11]
mov eax, ecx
sub eax, 0x10
je 0x405a02
dec eax
je 0x4059e0
dec eax
je 0x4059be
lea ebx, [ecx + ecx*8]
shl ebx, 5
add ebx, dword [0x4c89ec]
jmp 0x405923
cmp byte [esp + 0x130], 0
jne 0x405872
mov edx, eax
mov byte [esp + 0x11], cl
inc edi
add esi, 4
cmp edi, ebp
jl 0x4057f0
jmp 0x40588a
mov cl, byte [esi]
movzx edx, word [esi + 2]
mov byte [esp + 0x11], cl
mov esi, dword [esp + 0x30]
mov ebx, dword [0x4c6ec8]
mov dword [esp + 0x14], edx
mov eax, 0x3fff
cmp dx, ax
jne 0x405833
movzx eax, byte [esi + 0x14]
xor edi, edi
mov dword [esp + 0x30], eax
test eax, eax
jle case.default.0x4057b3
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 [0x4c89f0]
shl edx, 5
cmp byte [edx + eax + 0xc], 0
je 0x405a36
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x405a24
cmp byte [esp + 0x130], 0
jne 0x405a46
mov ecx, dword [esp + 0x1c]
mov edx, 0x3fff
mov word [ecx + 6], ax
cmp bp, dx
je 0x405a36
mov dword [esp + 0x14], ebp
movzx eax, word [esp + 0x24]
lea ebx, [eax + eax*8]
shl ebx, 5
add ebx, dword [0x4c89f0]
mov dword [0x4c6ec8], ebx
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x3c]
mov esi, eax
mov edx, 0x3fff
and esi, 0x3fff
cmp ax, dx
je 0x405a7c
mov eax, dword [0x4c55ec]
cmp si, word [eax]
jae 0x405a78
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.0040a430
add esp, 8
mov dword [esp + 0x38], eax
test eax, eax
jne 0x405a68
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 0x40676b
mov ecx, dword [0x4c89ec]
xor eax, eax
cmp byte [ecx + 0xb9ac], al
setne al
lea ebx, [eax + eax*8 + 0x5c4]
shl ebx, 5
add ebx, ecx
jmp 0x405923
mov ecx, dword [0x4c89ec]
xor eax, eax
cmp byte [ecx + 0xb76c], al
setne al
lea ebx, [eax + eax*8 + 0x5b2]
shl ebx, 5
add ebx, ecx
jmp 0x405923
mov ecx, dword [0x4c89ec]
xor eax, eax
cmp byte [ecx + 0xb52c], al
setne al
lea ebx, [eax + eax*8 + 0x5a0]
shl ebx, 5
add ebx, ecx
jmp 0x405923
cmp byte [esp + 0x130], 0
jne 0x405a36
mov ebp, eax
mov eax, ecx
mov dword [esp + 0x24], eax
inc edi
add esi, 4
cmp edi, dword [esp + 0x30]
jl 0x4058c0
jmp 0x405a51
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.0x4057b3
jmp 0x405912
mov esi, dword [esp + 0x14]
mov ebx, dword [0x4c6ec8]
and esi, 0x3fff
mov byte [ebx + 0x11], 2
mov eax, 0x3ffe
cmp si, ax
je 0x405a94
mov ecx, 0x3ffd
cmp si, cx
jne 0x405cb3
cmp byte [esp + 0x130], 0
jne 0x405aa6
mov edx, dword [esp + 0x1c]
mov byte [edx + 0xf], 1
test byte [0x4c7fb5], 0xc
jne 0x405acc
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040f380
mov ebx, dword [0x4c6ec8]
add esp, 0x18
mov al, byte [esp + 0x128]
cmp al, 0xa2
je 0x405adb
cmp al, 0xa3
jne 0x405b10
cmp byte [esp + 0x130], 0
jne 0x405b10
mov edi, dword [esp + 0x12c]
mov eax, dword [esp + 0x128]
push 0xffc3d44d
push 0
push 0
push edi
push eax
push 1
call fcn.0040f380
mov ebx, dword [0x4c6ec8]
add esp, 0x18
jmp 0x405b17
mov edi, dword [esp + 0x12c]
mov ecx, 0x3ffd
mov byte [ebx + 0xd], 1
cmp si, cx
jne 0x405b54
test byte [0x4c7fb5], 0x30
jne 0x405b4b
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040f380
mov ebx, dword [0x4c6ec8]
add esp, 0x18
mov byte [ebx + 0xe], 1
jmp 0x405bd9
mov edx, 0x3ffe
cmp si, dx
jne 0x405bd9
mov al, byte [esp + 0x128]
cmp al, 0xa0
je 0x405b6d
cmp al, 0xa1
jne 0x405b93
cmp byte [esp + 0x130], 0
jne 0x405b93
mov eax, dword [esp + 0x128]
push 0xffc3d44d
push 0
push 0
push edi
push eax
push 1
call fcn.0040f380
add esp, 0x18
test byte [0x4c7fb5], 0x10
je 0x405bb6
push 0xffc3d44d
push 0
push 0
push 0
push 0xa0
push 1
call fcn.0040f380
add esp, 0x18
test byte [0x4c7fb5], 0x20
je 0x405bd9
push 0xffc3d44d
push 0
push 0
push 0
push 0xa1
push 1
call fcn.0040f380
add esp, 0x18
test byte [0x4c7fb5], 1
je 0x405bfc
push 0xffc3d44d
push 0
push 0
push 0
push 0xa2
push 1
call fcn.0040f380
add esp, 0x18
test byte [0x4c7fb5], 2
je 0x405c1f
push 0xffc3d44d
push 0
push 0
push 0
push 0xa3
push 1
call fcn.0040f380
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040f380
mov ecx, 0x3ffd
add esp, 0x18
cmp si, cx
jne 0x405c7f
mov edx, dword [0x4c6ec8]
cmp byte [edx + 0xe], 0
je 0x405c7f
mov al, byte [esp + 0x128]
cmp al, 0x60
jb 0x405c5b
cmp al, 0x69
jbe 0x405c5f
cmp al, 0x6e
jne 0x405c7f
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040f380
mov eax, dword [0x4c6ec8]
add esp, 0x18
mov byte [eax + 0xe], 0
cmp byte [esp + 0x130], 0
mov ecx, 0x68
mov word [ebp + 4], cx
jne 0x405c9a
mov edx, dword [esp + 0x1c]
mov byte [edx + 0x10], 1
push 0
mov eax, dword [esp + 0x134]
push SysReAllocString
push 0x3fff
push eax
jmp 0x4052d3
mov edx, 0x3fff
cmp word [esp + 0x14], dx
jne 0x405f55
mov ecx, dword [esp + 0x1c]
mov cl, byte [ecx + 4]
mov al, byte [0x4c7fb6]
test cl, cl
je 0x405cd7
not cl
and al, cl
mov edx, dword [esp + 0x118]
mov edi, dword [0x4c80e8]
cmp edx, edi
jne 0x405d0c
cmp byte [esp + 0x34], 0
je 0x405d0c
mov esi, dword [0x4c89e4]
movzx ecx, al
shl ecx, 9
add ecx, dword [esp + 0x2c]
movzx esi, word [esi + ecx*2]
mov cl, byte [esp + 0x128]
jmp 0x405d28
mov cl, byte [esp + 0x128]
movzx esi, al
movzx ebx, cl
shl esi, 8
add esi, ebx
mov ebx, dword [0x4c89e0]
movzx esi, word [ebx + esi*2]
mov ebx, 0x3fff
mov dword [esp + 0x14], esi
cmp si, bx
jne 0x405d9c
cmp byte [0x4c6ec6], 0
je 0x405d9c
cmp cl, 9
je 0x405d9c
and al, 0xf3
cmp edx, edi
jne 0x405d66
cmp byte [esp + 0x34], 0
je 0x405d66
movzx edx, al
mov eax, dword [0x4c89e4]
shl edx, 9
add edx, dword [esp + 0x2c]
movzx esi, word [eax + edx*2]
jmp 0x405d7b
movzx edx, al
movzx eax, cl
mov ecx, dword [0x4c89e0]
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 0x405d96
mov edx, ebx
cmp ax, dx
jb 0x405d9c
mov esi, ebx
mov dword [esp + 0x14], esi
test esi, 0x4000
je 0x405ddf
cmp byte [esp + 0x130], 0
jne 0x405e87
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 0x405f1b
push 0
push 0x3fff
push ebp
push 0
jmp 0x405993
mov ecx, ebx
cmp si, cx
je 0x405e97
and esi, ecx
cmp byte [esp + 0x130], 0
mov eax, esi
je 0x405e68
mov edx, dword [0x4c55ec]
cmp ax, word [edx]
jae 0x405e5f
movzx ebx, ax
mov eax, ecx
mov ecx, dword [0x4c89e8]
add ebx, ebx
cmp word [ebx + ecx], ax
je 0x405e5f
cmp byte [esp + 0x13], 0
jne 0x405e4f
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.0040a430
add esp, 8
mov dword [esp + 0x38], eax
test eax, eax
jne 0x405e87
mov ecx, dword [0x4c89e8]
movzx edx, word [ebx + ecx]
mov dword [esp + 0x14], edx
jmp 0x405e87
cmp byte [esp + 0x13], 0
jne 0x405e97
jmp 0x405e87
mov ecx, dword [0x4c55ec]
cmp ax, word [ecx]
jae 0x405e87
movzx edx, ax
mov eax, dword [0x4c89e8]
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 0x405f55
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0x1c]
test al, al
je 0x405dbf
cmp byte [ecx + 4], 0
jne 0x405ee7
test byte [ecx + 0xb], 1
jne 0x405ee7
cmp byte [ecx + 8], 0
je 0x405ee7
cmp byte [esp + 0x1a], 0
jne 0x405ee7
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 0x4052dc
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 0x40676b
push 1
push eax
add ecx, 0xb
xor esi, esi
lea eax, [esp + 0x1a]
xor edi, edi
call fcn.0040a430
add esp, 8
cmp byte [esp + 0x12], 0
push edi
jne 0x405dd2
mov eax, dword [esp + 0x130]
push SysReAllocString
push 0x3fff
push edi
push eax
jmp 0x4052d4
mov ebx, dword [esp + 0x1c]
mov al, byte [ebx + 0xb]
mov dl, byte [0x4c7fb5]
add ebx, 0xb
mov dword [esp + 0x30], ebx
test al, 8
je 0x405f80
cmp byte [esp + 0x130], 0
je 0x405f80
and al, 0xf7
mov byte [esp + 0x12], 1
mov byte [ebx], al
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4c55ec]
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x4060a7
cmp dword [esp + 0x38], 0
jne 0x4060a7
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.0040a430
add esp, 8
mov dword [esp + 0x38], eax
test eax, eax
jne 0x4060a1
mov eax, dword [esp + 0x130]
test al, al
je 0x406037
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 0x10], 0
push 0
je 0x406005
push SysReAllocString
push 0x3fff
mov edx, eax
mov eax, dword [esp + 0x138]
push edx
push eax
jmp 0x4052d4
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 0x40676b
mov eax, dword [esp + 0x1c]
add eax, 6
mov edx, 0x3fff
cmp word [eax], dx
je 0x405dd0
push 1
push eax
xor esi, esi
lea eax, [esp + 0x1a]
mov ecx, ebx
xor edi, edi
mov byte [esp + 0x1a], 0
call fcn.0040a430
add esp, 8
cmp byte [esp + 0x12], 0
push edi
jne 0x405dd2
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 0x4052dc
mov dl, byte [0x4c7fb5]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x118]
mov ecx, dword [0x4c80e8]
and edi, 0x3fff
cmp esi, ecx
jne 0x4060f7
test dl, 0x3f
jne 0x406118
mov eax, dword [0x4c89ec]
test dl, 0x40
je 0x4060e1
cmp byte [eax + 0x6668], 0
jne 0x4060e1
mov byte [0x4c6ece], 1
test dl, dl
jns 0x40611d
cmp byte [eax + 0x6788], 0
jne 0x40611d
mov byte [0x4c6ecd], 1
jmp 0x40611d
test dl, 0xc
jne 0x406118
mov eax, dword [0x4c89ec]
test dl, 0x40
je 0x4060e1
cmp byte [eax + 0x6668], 0
jne 0x4060e1
mov byte [0x4c6ece], 1
jmp 0x40611d
mov eax, dword [0x4c89ec]
test dl, 4
je 0x40614d
cmp byte [eax + 0xb888], 0
jne 0x40614d
test ecx, ecx
je 0x406138
mov byte [0x4c6ecc], 1
jmp 0x406199
movzx eax, byte [0x4c4385]
push 0xffc3d44d
push 0
push 0
push 0
push eax
jmp 0x406189
test dl, 8
je 0x406199
cmp byte [eax + 0xb9a8], 0
jne 0x406199
call fcn.00411ea0
test al, al
jne 0x406193
cmp dword [0x4c80e8], 0
je 0x406176
mov byte [0x4c6ec7], 1
jmp 0x406193
movzx ecx, byte [0x4c4385]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
push 2
call fcn.0040f380
add esp, 0x18
mov dl, byte [0x4c7fb5]
mov eax, edi
lea ecx, [eax - 0x3ffa]
cmp ecx, 4
ja case.default.0x4061aa
jmp dword [ecx*4 + 0x406894]
cmp byte [0x4c6ec6], 0
jne case.0x4061aa.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 0x40676b
xor al, al
mov byte [esp + 0x13], al
test dl, 4
je 0x4061fd
mov al, 0xa4
jmp 0x406204
test dl, 8
je 0x406208
mov al, 0xa5
mov byte [esp + 0x13], al
cmp byte [0x4c6ec6], 0
je 0x406286
mov ecx, 0x3ffb
cmp di, cx
je case.0x4061aa.16381
test al, al
movzx eax, al
jne 0x40622b
mov eax, 0x12
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040f380
mov edx, dword [esp + 0x34]
add esp, 0x18
cmp byte [edx + 4], 0
je 0x40627a
mov eax, dword [esp + 0x128]
cmp al, 0x5b
je 0x40627a
cmp al, 0x5c
je 0x40627a
cmp byte [esp + 0x130], 0
jne 0x40627a
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040f380
add esp, 0x18
mov byte [0x4c6ec6], 0
jmp 0x406520
mov al, byte [esp + 0x128]
cmp al, 0xa4
je 0x40629a
mov byte [esp + 0x11], 0
cmp al, 0xa5
jne 0x40629f
mov byte [esp + 0x11], 1
cmp al, 0xa0
je 0x4062ab
cmp al, 0xa1
je 0x4062ab
xor dl, dl
jmp 0x4062ad
mov dl, 1
mov byte [esp + 0x23], dl
cmp al, 0xa2
je 0x4062be
mov byte [esp + 0x1b], 0
cmp al, 0xa3
jne 0x4062c3
mov byte [esp + 0x1b], 1
mov bl, byte [0x4c7fb5]
xor cl, cl
mov byte [esp + 0x2c], cl
test bl, 0x10
je 0x4062dc
mov cl, 0xa0
mov byte [esp + 0x2c], cl
jmp 0x406303
test bl, 0x20
je 0x4062e9
mov cl, 0xa1
mov byte [esp + 0x2c], cl
jmp 0x406303
cmp byte [esp + 0x130], 0
jne 0x4062fd
test dl, dl
je 0x4062fd
mov cl, al
mov byte [esp + 0x2c], cl
mov bl, byte [0x4c7fb5]
mov byte [esp + 0x24], 0
test bl, 1
je 0x406314
mov byte [esp + 0x24], 0xa2
jmp 0x406335
test bl, 2
je 0x406320
mov byte [esp + 0x24], 0xa3
jmp 0x406335
cmp byte [esp + 0x130], 0
jne 0x406335
cmp byte [esp + 0x1b], 0
je 0x406335
mov byte [esp + 0x24], al
mov esi, dword [esp + 0x2c]
xor bl, bl
test cl, cl
je 0x406357
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 1
call fcn.0040f380
add esp, 0x18
mov bl, 1
cmp byte [esp + 0x24], 0
je 0x406378
mov eax, dword [esp + 0x24]
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040f380
add esp, 0x18
cmp byte [esp + 0x11], 0
je 0x406392
cmp byte [esp + 0x130], 0
jne 0x40639a
mov al, byte [esp + 0x128]
jmp 0x406396
mov al, byte [esp + 0x13]
test al, al
jne 0x4063b1
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040f380
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040f380
add esp, 0x18
test bl, bl
je 0x4063e9
cmp byte [esp + 0x23], 0
jne 0x4063e9
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 0
call fcn.0040f380
add esp, 0x18
mov byte [0x4c6ec6], 1
jmp 0x406520
cmp byte [0x4c6ec6], 0
jne 0x406432
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 0x40676b
cmp byte [esp + 0x130], 0
mov ebx, dword [esp + 0x128]
jne 0x406473
cmp bl, 0xa2
je 0x406457
cmp bl, 0xa3
je 0x406457
cmp bl, 0xa0
je 0x406457
cmp bl, 0xa1
jne 0x406473
push 0xffc3d44d
push 0
push 0
push 0
push ebx
push 1
call fcn.0040f380
mov dl, byte [0x4c7fb5]
add esp, 0x18
test dl, 0xc
je 0x40648c
cmp byte [esp + 0x130], 0
je 0x4064a9
cmp bl, 0xa4
je 0x40648c
cmp bl, 0xa5
jne 0x4064a9
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040f380
mov dl, byte [0x4c7fb5]
add esp, 0x18
mov ecx, 0x3ffd
xor bl, bl
cmp di, cx
jne 0x4064d3
test dl, 0x30
jne 0x4064d3
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040f380
add esp, 0x18
mov bl, 1
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040f380
add esp, 0x18
test bl, bl
je 0x406520
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040f380
add esp, 0x18
jmp 0x406520
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
cmp byte [eax + 0x1e], 5
jne 0x406520
movzx edx, word [eax + 0x1c]
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 0x406591
test bl, bl
je 0x406674
cmp byte [esi + 8], 0
je 0x406591
mov edi, dword [esp + 0x12c]
mov esi, dword [esp + 0x128]
push 0xffc3d44e
push 0
push 0
push edi
push esi
push 1
call fcn.0040f380
push 0xffc3d44d
push 0
push 0
push edi
push esi
push 2
call fcn.0040f380
mov ecx, dword [esp + 0x58]
push 0
push SysReAllocString
push ecx
mov edx, ebx
push edx
push edi
push esi
jmp 0x404e08
test bl, bl
je 0x406674
cmp byte [esi + 4], 0
je 0x406602
cmp byte [esi + 0x10], 0
je 0x4065ce
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 0x4052dc
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 0x40676b
cmp byte [esp + 0x12], 0
je 0x406704
mov eax, dword [esp + 0x118]
push 0
cmp eax, dword [0x4c80ec]
jne 0x406649
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 0x40676b
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 0x40676b
mov eax, dword [0x4c6ec8]
mov byte [esi + 0xf], 1
test eax, eax
je 0x40668b
cmp byte [eax + 4], 0
je 0x40668b
mov byte [eax + 0x11], 2
cmp byte [esp + 0x12], 0
je 0x4066a5
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
or byte [eax], 8
push 0
push edx
jmp 0x405991
mov eax, dword [esp + 0x128]
cmp al, 0xa4
je 0x4066b4
cmp al, 0xa5
jne 0x406704
mov cl, byte [0x4c7fb5]
test cl, 0xc0
je 0x4066e8
test cl, 0x33
jne 0x4066e8
movzx eax, byte [0x4c4385]
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 2
call fcn.0040f380
mov eax, dword [esp + 0x140]
add esp, 0x18
mov ecx, dword [esp + 0x12c]
push 0xffc3d44d
push 0
push 0
push ecx
push eax
push 1
call fcn.0040f380
add esp, 0x18
test bl, bl
jne 0x40670c
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 0x4052dc
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.004069e0
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret