Function at 0x404ad0
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 0x404b18
cmp eax, 0xffc3d44e
je 0x404b18
mov byte [esp + 0x11], 0
cmp eax, 0xffc3d44d
jne 0x404b1d
mov byte [esp + 0x11], 1
mov ecx, dword [0x4c8ed8]
test ecx, ecx
jne 0x404b34
lea ebp, [esp + 0x40]
mov dword [esp + 0x3c], ebp
jmp 0x404bfc
mov eax, dword [0x4c8edc]
mov ebp, eax
imul ebp, ebp, 0xd4
inc eax
add ebp, ecx
mov dword [esp + 0x3c], ebp
mov dword [0x4c8edc], eax
cmp eax, dword [0x4c48b8]
jl 0x404b5f
mov dword [0x4c8edc], 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 [0x4cb2e4]
mov dword [0x4c8ee0], eax
mov dword [esp + 0x30], ecx
fild dword [esp + 0x30]
jns 0x404b8f
fadd dword [0x4be5d8]
fdiv qword [0x4be5d0]
mov dword [0x4cb2e4], eax
fstp dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x404bd1
cmp esi, dword [0x4c8ee4]
je 0x404bc9
mov eax, dword [0x4c84c8]
push esi
lea edx, [ebp + 0xc]
push edx
push 0x418
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x404bef
xor ecx, ecx
mov word [ebp + 0xc], cx
jmp 0x404bef
mov eax, 0x4a386c
lea edx, [ebp + 0xc]
sub edx, eax
jmp 0x404be0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404be0
mov dl, byte [esp + 0x128]
mov dword [0x4c8ee4], esi
cmp dl, 0xe7
jne 0x404c4f
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.00406a70
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 0x404c63
xor edi, edi
mov dword [esp + 0x12c], edi
mov ecx, dword [esp + 0x118]
cmp ecx, dword [0x4c85fc]
jne 0x404c9c
mov al, byte [esp + 0x138]
and al, 1
mov byte [esp + 0x13], al
jne 0x404dc4
test bl, bl
setne al
dec al
movzx ecx, dl
and al, 0x80
mov byte [ecx + 0x4c84e8], al
jmp 0x404dc4
mov edx, dword [esp + 0x138]
shr edx, 4
and dl, 1
mov byte [esp + 0x13], dl
test edi, 0x100
jne case.0x404ce7.13
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je case.0x404ce7.13
movzx eax, byte [esp + 0x128]
add eax, 0xfffffff4
cmp eax, 0x62
ja case.0x404ce7.13
movzx eax, byte [eax + 0x406848]
jmp dword [eax*4 + 0x406818]
test bl, bl
sete cl
mov byte [0x4c73b4], cl
jmp case.0x404ce7.13
test bl, bl
sete dl
mov byte [0x4c73b5], dl
jmp case.0x404ce7.13
test bl, bl
sete al
mov byte [0x4c73b6], al
jmp case.0x404ce7.13
test bl, bl
sete cl
mov byte [0x4c73b7], cl
jmp case.0x404ce7.13
test bl, bl
sete dl
mov byte [0x4c73b8], dl
jmp case.0x404ce7.13
test bl, bl
sete al
mov byte [0x4c73b9], al
jmp case.0x404ce7.13
test bl, bl
sete cl
mov byte [0x4c73ba], cl
jmp case.0x404ce7.13
test bl, bl
sete dl
mov byte [0x4c73bb], dl
jmp case.0x404ce7.13
test bl, bl
sete al
mov byte [0x4c73bc], al
jmp case.0x404ce7.13
test bl, bl
sete cl
mov byte [0x4c73bd], cl
jmp case.0x404ce7.13
test bl, bl
sete dl
mov byte [0x4c73be], dl
movzx esi, byte [esp + 0x128]
mov ecx, dword [0x4c8efc]
lea eax, [esi + esi*8]
shl eax, 5
cmp byte [eax + ecx + 4], 0
jne 0x404dc4
test byte [esp + 0x138], 0x10
jne 0x404dc4
mov al, byte [esp + 0x128]
push ebx
call fcn.00407d10
add esp, 4
test al, al
je 0x404dc4
test bl, bl
setne dl
dec dl
and dl, 0x80
mov byte [esi + 0x4c84e8], dl
cmp byte [esp + 0x11], 0
je 0x404dcf
mov al, 0x69
jmp 0x404ddb
mov al, byte [esp + 0x13]
neg al
sbb al, al
and al, 0x41
add al, 0x20
cmp byte [0x4c85e8], 0
cbw
mov word [ebp + 4], ax
je 0x404e01
mov al, byte [esp + 0x128]
cmp al, 0x5b
je 0x404df9
cmp al, 0x5c
jne 0x404e01
test bl, bl
je 0x405355
cmp byte [0x4c73d6], 0
je 0x404ebb
cmp byte [esp + 0x128], 0x1b
jne 0x404ebb
test bl, bl
jne 0x404ebb
push 0
push str.32771
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x404ebb
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 0x404ebb
push 0xffc3d44d
push 0
push 0
push 0
push 0x1b
push 0
call fcn.0040f460
mov dl, byte [0x4c84c5]
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.0040f460
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.00406940
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 [0x4c8f00]
mov cl, byte [eax + 0x12]
mov byte [esp + 0x34], cl
mov ecx, dword [0x4c85f8]
cmp dword [esp + 0x118], ecx
jne 0x404ef3
cmp byte [esp + 0x34], 0
je 0x404ef3
mov esi, eax
mov dword [esp + 0x1c], eax
jmp 0x404f0b
movzx eax, byte [esp + 0x128]
lea esi, [eax + eax*8]
shl esi, 5
add esi, dword [0x4c8efc]
mov dword [esp + 0x1c], esi
cmp byte [esp + 0x11], 0
je 0x404f63
cmp dword [esp + 0x134], 0xffc3d44e
jne 0x404f3d
test bl, bl
je 0x404f3d
cmp dword [0x4c73d8], esi
jne 0x404f3d
mov byte [esi + 0xc], 0
mov byte [esi + 0xf], 0
mov dword [0x4c73d8], 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 0x4067f2
test bl, bl
jne 0x404f73
mov edx, 0x3fff
mov byte [esi + 0x10], bl
mov word [esi + 6], dx
cmp dword [esp + 0x118], ecx
jne 0x405032
test bl, bl
je 0x4050a0
cmp byte [0x4c73de], 0
mov al, byte [esp + 0x128]
je 0x404f9c
cmp al, 0x5b
je 0x404fcb
cmp byte [0x4c73dd], 0
je 0x404fa9
cmp al, 0x5c
je 0x404fcb
cmp byte [0x4c73dc], 0
je 0x404fb6
cmp al, 0xa4
je 0x404fcb
cmp byte [0x4c73d7], 0
je 0x4050a0
cmp al, 0xa5
jne 0x4050a0
movzx eax, al
add eax, 0xffffffa5
cmp eax, 0x4a
ja case.0x404fdd.93
movzx eax, byte [eax + 0x4068c0]
jmp dword [eax*4 + 0x4068ac]
mov byte [0x4c73de], 0
jmp case.0x404fdd.93
mov byte [0x4c73dd], 0
jmp case.0x404fdd.93
mov byte [0x4c73dc], 0
jmp case.0x404fdd.93
mov byte [0x4c73d7], 0
test byte [0x4c84c5], 3
jne 0x4050a0
movzx ecx, byte [0x4c4385]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
push 2
call fcn.0040f460
add esp, 0x18
jmp 0x4050a0
mov al, byte [esp + 0x128]
test al, al
jne 0x405065
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 0x4067f9
cmp al, 1
je 0x40506d
cmp al, 2
jne 0x4050a0
cmp dword [0x4c8658], 0
jne 0x4067c5
push 0
push str.32768
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4050a0
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ca5dc]
je 0x4067c5
mov edx, dword [0x4c73d8]
test edx, edx
je 0x4050d9
cmp edx, esi
je 0x4050d9
test bl, bl
jne 0x4050d9
mov ecx, dword [0x4c85f8]
cmp dword [esp + 0x118], ecx
jne 0x4050cb
xor eax, eax
cmp byte [esi + 4], al
sete al
jmp 0x4050cf
movzx eax, byte [edx + 4]
test eax, eax
je 0x4050df
mov byte [edx + 0x11], 1
jmp 0x4050df
mov ecx, dword [0x4c85f8]
cmp byte [esi + 8], 0
jne 0x4050ef
cmp byte [esi + 9], 0
je 0x404f3d
mov dword [esp + 0x14], 0x3fff
mov dword [esp + 0x38], 0
test bl, bl
je 0x40512d
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 0x40512b
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 0x4051bc
cmp byte [esi + 4], 0
je 0x4051d9
mov ecx, dword [0x4c8efc]
cmp byte [ecx + 0xb64c], 0
jne 0x405167
cmp byte [ecx + 0xb76c], 0
jne 0x405167
xor eax, eax
jmp 0x40516c
mov eax, 1
cmp byte [ecx + 0xb88c], 0
mov byte [ecx + 0x132c], al
jne 0x405188
cmp byte [ecx + 0xb9ac], 0
jne 0x405188
xor eax, eax
jmp 0x40518d
mov eax, 1
cmp byte [ecx + 0xb40c], 0
mov byte [ecx + 0x144c], al
jne 0x4051af
cmp byte [ecx + 0xb52c], 0
jne 0x4051af
xor eax, eax
mov byte [ecx + 0x120c], al
jmp 0x4051d9
mov eax, 1
mov byte [ecx + 0x120c], al
jmp 0x4051d9
test ecx, ecx
jne 0x4051d9
push 1
call fcn.004119f0
add esp, 4
mov byte [0x4c84c6], al
mov byte [0x4c84c5], al
mov byte [esp + 0x11], 1
mov eax, dword [esi]
test eax, eax
je 0x4051e9
cmp dword [eax], 7
mov byte [esp + 0x1a], 1
je 0x4051ee
mov byte [esp + 0x1a], 0
mov al, byte [esi + 8]
test al, al
je 0x4053b6
test bl, bl
jne 0x4053b6
mov ecx, dword [0x4c73d8]
test ecx, ecx
je 0x405218
cmp byte [esi + 9], bl
je 0x405218
cmp esi, ecx
jne 0x4053b6
cmp al, 1
jne 0x40524c
cmp byte [esp + 0x34], 0
mov eax, dword [esp + 0x2c]
jne 0x40522f
movzx eax, byte [esp + 0x128]
mov ecx, dword [esp + 0x34]
push ecx
push eax
call fcn.0040a250
add esp, 8
test al, al
je 0x40524c
mov byte [esp + 0x12], 1
mov dl, byte [esp + 0x12]
jmp 0x405263
xor dl, dl
mov byte [esp + 0x12], dl
cmp esi, dword [0x4c73d8]
je 0x405263
mov dword [0x4c73d8], esi
mov byte [esi + 0x11], dl
cmp byte [esi + 9], 0
je 0x405319
cmp byte [esp + 0x11], 0
jne 0x405287
push 1
mov byte [esp + 0x15], 1
call fcn.004119f0
mov dl, byte [esp + 0x16]
add esp, 4
mov al, byte [esi + 4]
mov cl, byte [0x4c84c6]
test al, al
je 0x405298
not al
and cl, al
test cl, cl
jne 0x4052a6
test dl, dl
jne 0x4052a6
test byte [esi + 0xb], 1
je 0x405319
mov eax, dword [esp + 0x118]
cmp eax, dword [0x4c85f8]
jne 0x4052cd
cmp byte [esp + 0x34], 0
je 0x4052cd
mov eax, dword [0x4c8ef4]
movzx ecx, cl
shl ecx, 9
add ecx, dword [esp + 0x2c]
jmp 0x4052e2
movzx eax, byte [esp + 0x128]
movzx ecx, cl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4c8ef0]
movzx eax, word [eax + ecx*2]
mov dword [esp + 0x14], eax
test eax, 0x4000
je 0x4052f7
mov word [esi + 6], ax
jmp 0x405329
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4c5acc]
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x405319
mov ecx, dword [0x4c8ef8]
mov ax, word [ecx + eax*2]
mov word [esi + 6], ax
mov ecx, 0x3fff
cmp word [esp + 0x14], cx
jne 0x4053b6
test dl, dl
je 0x40533a
or byte [esi + 0xb], 8
mov eax, 0x23
mov word [ebp + 4], ax
cmp byte [esi + 4], 0
jne 0x40538f
test byte [esi + 0xb], 1
jne 0x40538f
cmp byte [esp + 0x1a], 0
jne 0x40538f
test dl, dl
jne 0x40538f
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.00406940
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 0x4067f2
cmp byte [esi + 9], 0
mov byte [esp + 0x13], 0
je 0x405430
test bl, bl
je 0x405430
cmp dword [0x4c73d8], esi
jne 0x4053de
cmp byte [esp + 0x1b], 0
je 0x405430
mov dword [0x4c73d8], 0
cmp byte [esi + 0xa], 0
jne 0x40542b
mov al, byte [esi + 0xb]
test al, 8
je 0x4053f4
xor cl, cl
and al, 0xf7
mov byte [esi + 0xb], al
jmp 0x4053f6
mov cl, 1
cmp byte [esp + 0x1b], 0
je 0x4067d1
test cl, cl
je 0x4067d1
mov edx, dword [esp + 0x130]
mov eax, dword [esp + 0x128]
push 0
push SysReAllocString
push 0x3fff
push edx
push edi
push eax
jmp 0x40536c
mov byte [esp + 0x13], 1
cmp byte [esi + 8], 0
je 0x4055ee
test bl, bl
je 0x4055ee
cmp dword [0x4c73d8], esi
jne 0x405454
mov dword [0x4c73d8], 0
cmp byte [esi + 0xd], 0
je 0x405475
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
mov byte [esi + 0xd], 0
call fcn.0040f460
add esp, 0x18
cmp byte [esi + 0xe], 0
je 0x405496
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
mov byte [esi + 0xe], 0
call fcn.0040f460
add esp, 0x18
mov ecx, dword [esp + 0x14]
mov edx, 0x3fff
cmp cx, dx
jne 0x4054d6
mov al, byte [esi + 0xb]
test al, 8
je 0x4054d6
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 0x4067f2
cmp byte [esp + 0x1a], 0
mov al, byte [esi + 0x11]
je 0x405581
cmp al, 2
jne 0x40552e
mov esi, dword [esp + 0x128]
push 0xffc3d44e
push 0
push 0
push edi
push esi
push 1
call fcn.0040f460
push 0xffc3d44d
push 0
push 0
push edi
push esi
push 2
call fcn.0040f460
mov eax, dword [esp + 0x160]
push 0
push SysReAllocString
push 0x3fff
push eax
push edi
push esi
jmp 0x404e98
cmp al, 1
je 0x4067d1
cmp byte [esi + 9], 0
jne 0x4055dc
cmp byte [esi + 4], 0
jne 0x4067d1
test byte [esi + 0xb], 1
jne 0x4067d1
cmp byte [esp + 0x1a], 0
jne 0x4067d1
mov edx, dword [esp + 0x130]
mov eax, dword [esp + 0x128]
push 0
push SysReAllocString
push 0x3fff
push edx
push edi
push eax
jmp 0x40536c
test al, al
je 0x405536
cmp cx, dx
jne 0x405536
cmp byte [esi + 4], 0
je 0x4055cb
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x118]
cmp al, 2
mov eax, dword [esp + 0x120]
jne 0x4055ba
push 1
push 0x3fff
push ebp
push ebx
push eax
push ecx
push edx
jmp 0x4067f2
push 0
push 0x3fff
push ebp
push ebx
push eax
push ecx
push edx
jmp 0x4067f2
test byte [esi + 0xb], 1
push 0
je 0x405d2c
jmp 0x4054b2
cmp byte [esp + 0x23], 0
jne 0x4055f2
cmp byte [esi + 0xa], 0
jne 0x4055f2
jmp 0x4067d1
mov ecx, dword [esp + 0x14]
cmp byte [esp + 0x11], 0
jne 0x40560d
mov edx, 0x3fff
cmp cx, dx
jne 0x40560d
push 1
call fcn.004119f0
add esp, 4
cmp dword [0x4c73d8], 0
mov byte [esp + 0x12], 0
je 0x405d43
test bl, bl
je 0x405631
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0xa], 0
je 0x405d43
mov ecx, 0x3fff
cmp word [esp + 0x14], cx
jne 0x405fe5
mov ebp, dword [esp + 0x1c]
cmp byte [ebp + 0x13], 0
mov edi, dword [esp + 0x14]
mov dword [esp + 0x24], 0
jbe 0x405706
mov bl, byte [esp + 0x130]
mov edx, dword [0x4c8efc]
lea esi, [ebp + 0x16]
jmp 0x405670
mov cl, byte [esi]
movzx eax, cl
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + edx + 0xc], 0
je 0x4056d8
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x4056ce
test bl, bl
jne 0x4056ee
mov ecx, 0x3fff
mov word [ebp + 6], ax
cmp di, cx
je 0x4056d8
mov dword [esp + 0x14], edi
movzx ecx, byte [esp + 0x11]
mov eax, ecx
sub eax, 0x10
je 0x4057cd
dec eax
je 0x4057b4
dec eax
je 0x40579b
lea ebx, [ecx + ecx*8]
shl ebx, 5
add ebx, edx
jmp 0x405780
test bl, bl
jne 0x4056d8
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 0x405670
jmp 0x4056f8
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 0x4056a3
xor edx, edx
cmp byte [ebp + 0x14], dl
jbe 0x405827
lea esi, [ebp + 0xde]
jmp 0x405720
movzx ecx, word [esi]
mov ebx, dword [0x4c8f00]
mov eax, ecx
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + ebx + 0xc], 0
je 0x4057f8
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x4057e6
cmp byte [esp + 0x130], 0
jne 0x40580a
mov ecx, 0x3fff
mov word [ebp + 6], ax
cmp di, cx
je 0x4057f8
mov dword [esp + 0x14], edi
movzx eax, word [esp + 0x24]
lea ebx, [eax + eax*8]
shl ebx, 5
add ebx, dword [0x4c8f00]
mov ecx, 0x3fff
mov dword [0x4c73d8], ebx
cmp word [esp + 0x14], cx
jne case.default.0x405843
jmp 0x40582d
xor eax, eax
cmp byte [edx + 0xb9ac], al
setne al
lea ebx, [eax + eax*8 + 0x5c4]
shl ebx, 5
add ebx, edx
jmp 0x405780
xor eax, eax
cmp byte [edx + 0xb76c], al
setne al
lea ebx, [eax + eax*8 + 0x5b2]
shl ebx, 5
add ebx, edx
jmp 0x405780
xor eax, eax
cmp byte [edx + 0xb52c], al
setne al
lea ebx, [eax + eax*8 + 0x5a0]
shl ebx, 5
add ebx, edx
jmp 0x405780
cmp byte [esp + 0x130], 0
jne 0x4057f8
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 0x405720
jmp 0x405815
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 0x40576f
mov ebx, dword [0x4c73d8]
movzx eax, byte [esp + 0x128]
add eax, 0xffffff60
cmp eax, 5
ja case.default.0x405843
jmp dword [eax*4 + 0x40690c]
mov al, 0x11
jmp 0x405854
mov al, 0x12
jmp 0x405854
mov al, 0x10
mov edx, dword [esp + 0x14]
movzx eax, al
lea esi, [eax + eax*8]
shl esi, 5
add esi, dword [0x4c8efc]
xor edi, edi
movzx ebp, byte [esi + 0x13]
mov dword [esp + 0x30], esi
test ebp, ebp
jle 0x405928
add esi, 0x16
lea esp, [esp]
mov cl, byte [esi]
mov ebx, dword [0x4c8efc]
movzx eax, cl
lea eax, [eax + eax*8]
shl eax, 5
cmp byte [eax + ebx + 0xc], 0
je 0x405902
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x4058f2
cmp byte [esp + 0x130], 0
jne 0x405910
mov ecx, dword [esp + 0x1c]
mov word [ecx + 6], ax
mov eax, 0x3fff
cmp dx, ax
je 0x405902
mov dword [esp + 0x14], edx
movzx ecx, byte [esp + 0x11]
mov eax, ecx
sub eax, 0x10
je 0x405a92
dec eax
je 0x405a70
dec eax
je 0x405a4e
lea ebx, [ecx + ecx*8]
shl ebx, 5
add ebx, dword [0x4c8efc]
jmp 0x4059b3
cmp byte [esp + 0x130], 0
jne 0x405902
mov edx, eax
mov byte [esp + 0x11], cl
inc edi
add esi, 4
cmp edi, ebp
jl 0x405880
jmp 0x40591a
mov cl, byte [esi]
movzx edx, word [esi + 2]
mov byte [esp + 0x11], cl
mov esi, dword [esp + 0x30]
mov ebx, dword [0x4c73d8]
mov dword [esp + 0x14], edx
mov eax, 0x3fff
cmp dx, ax
jne 0x4058c3
movzx eax, byte [esi + 0x14]
xor edi, edi
mov dword [esp + 0x30], eax
test eax, eax
jle case.default.0x405843
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 [0x4c8f00]
shl edx, 5
cmp byte [edx + eax + 0xc], 0
je 0x405ac6
movzx eax, word [esi + 2]
test eax, 0x4000
je 0x405ab4
cmp byte [esp + 0x130], 0
jne 0x405ad6
mov ecx, dword [esp + 0x1c]
mov edx, 0x3fff
mov word [ecx + 6], ax
cmp bp, dx
je 0x405ac6
mov dword [esp + 0x14], ebp
movzx eax, word [esp + 0x24]
lea ebx, [eax + eax*8]
shl ebx, 5
add ebx, dword [0x4c8f00]
mov dword [0x4c73d8], ebx
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x3c]
mov esi, eax
mov edx, 0x3fff
and esi, 0x3fff
cmp ax, dx
je 0x405b0c
mov eax, dword [0x4c5acc]
cmp si, word [eax]
jae 0x405b08
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.0040a4a0
add esp, 8
mov dword [esp + 0x38], eax
test eax, eax
jne 0x405af8
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 0x4067fb
mov ecx, dword [0x4c8efc]
xor eax, eax
cmp byte [ecx + 0xb9ac], al
setne al
lea ebx, [eax + eax*8 + 0x5c4]
shl ebx, 5
add ebx, ecx
jmp 0x4059b3
mov ecx, dword [0x4c8efc]
xor eax, eax
cmp byte [ecx + 0xb76c], al
setne al
lea ebx, [eax + eax*8 + 0x5b2]
shl ebx, 5
add ebx, ecx
jmp 0x4059b3
mov ecx, dword [0x4c8efc]
xor eax, eax
cmp byte [ecx + 0xb52c], al
setne al
lea ebx, [eax + eax*8 + 0x5a0]
shl ebx, 5
add ebx, ecx
jmp 0x4059b3
cmp byte [esp + 0x130], 0
jne 0x405ac6
mov ebp, eax
mov eax, ecx
mov dword [esp + 0x24], eax
inc edi
add esi, 4
cmp edi, dword [esp + 0x30]
jl 0x405950
jmp 0x405ae1
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.0x405843
jmp 0x4059a2
mov esi, dword [esp + 0x14]
mov ebx, dword [0x4c73d8]
and esi, 0x3fff
mov byte [ebx + 0x11], 2
mov eax, 0x3ffe
cmp si, ax
je 0x405b24
mov ecx, 0x3ffd
cmp si, cx
jne 0x405d43
cmp byte [esp + 0x130], 0
jne 0x405b36
mov edx, dword [esp + 0x1c]
mov byte [edx + 0xf], 1
test byte [0x4c84c5], 0xc
jne 0x405b5c
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040f460
mov ebx, dword [0x4c73d8]
add esp, 0x18
mov al, byte [esp + 0x128]
cmp al, 0xa2
je 0x405b6b
cmp al, 0xa3
jne 0x405ba0
cmp byte [esp + 0x130], 0
jne 0x405ba0
mov edi, dword [esp + 0x12c]
mov eax, dword [esp + 0x128]
push 0xffc3d44d
push 0
push 0
push edi
push eax
push 1
call fcn.0040f460
mov ebx, dword [0x4c73d8]
add esp, 0x18
jmp 0x405ba7
mov edi, dword [esp + 0x12c]
mov ecx, 0x3ffd
mov byte [ebx + 0xd], 1
cmp si, cx
jne 0x405be4
test byte [0x4c84c5], 0x30
jne 0x405bdb
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040f460
mov ebx, dword [0x4c73d8]
add esp, 0x18
mov byte [ebx + 0xe], 1
jmp 0x405c69
mov edx, 0x3ffe
cmp si, dx
jne 0x405c69
mov al, byte [esp + 0x128]
cmp al, 0xa0
je 0x405bfd
cmp al, 0xa1
jne 0x405c23
cmp byte [esp + 0x130], 0
jne 0x405c23
mov eax, dword [esp + 0x128]
push 0xffc3d44d
push 0
push 0
push edi
push eax
push 1
call fcn.0040f460
add esp, 0x18
test byte [0x4c84c5], 0x10
je 0x405c46
push 0xffc3d44d
push 0
push 0
push 0
push 0xa0
push 1
call fcn.0040f460
add esp, 0x18
test byte [0x4c84c5], 0x20
je 0x405c69
push 0xffc3d44d
push 0
push 0
push 0
push 0xa1
push 1
call fcn.0040f460
add esp, 0x18
test byte [0x4c84c5], 1
je 0x405c8c
push 0xffc3d44d
push 0
push 0
push 0
push 0xa2
push 1
call fcn.0040f460
add esp, 0x18
test byte [0x4c84c5], 2
je 0x405caf
push 0xffc3d44d
push 0
push 0
push 0
push 0xa3
push 1
call fcn.0040f460
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040f460
mov ecx, 0x3ffd
add esp, 0x18
cmp si, cx
jne 0x405d0f
mov edx, dword [0x4c73d8]
cmp byte [edx + 0xe], 0
je 0x405d0f
mov al, byte [esp + 0x128]
cmp al, 0x60
jb 0x405ceb
cmp al, 0x69
jbe 0x405cef
cmp al, 0x6e
jne 0x405d0f
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040f460
mov eax, dword [0x4c73d8]
add esp, 0x18
mov byte [eax + 0xe], 0
cmp byte [esp + 0x130], 0
mov ecx, 0x68
mov word [ebp + 4], cx
jne 0x405d2a
mov edx, dword [esp + 0x1c]
mov byte [edx + 0x10], 1
push 0
mov eax, dword [esp + 0x134]
push SysReAllocString
push 0x3fff
push eax
jmp 0x405363
mov edx, 0x3fff
cmp word [esp + 0x14], dx
jne 0x405fe5
mov ecx, dword [esp + 0x1c]
mov cl, byte [ecx + 4]
mov al, byte [0x4c84c6]
test cl, cl
je 0x405d67
not cl
and al, cl
mov edx, dword [esp + 0x118]
mov edi, dword [0x4c85f8]
cmp edx, edi
jne 0x405d9c
cmp byte [esp + 0x34], 0
je 0x405d9c
mov esi, dword [0x4c8ef4]
movzx ecx, al
shl ecx, 9
add ecx, dword [esp + 0x2c]
movzx esi, word [esi + ecx*2]
mov cl, byte [esp + 0x128]
jmp 0x405db8
mov cl, byte [esp + 0x128]
movzx esi, al
movzx ebx, cl
shl esi, 8
add esi, ebx
mov ebx, dword [0x4c8ef0]
movzx esi, word [ebx + esi*2]
mov ebx, 0x3fff
mov dword [esp + 0x14], esi
cmp si, bx
jne 0x405e2c
cmp byte [0x4c73d6], 0
je 0x405e2c
cmp cl, 9
je 0x405e2c
and al, 0xf3
cmp edx, edi
jne 0x405df6
cmp byte [esp + 0x34], 0
je 0x405df6
movzx edx, al
mov eax, dword [0x4c8ef4]
shl edx, 9
add edx, dword [esp + 0x2c]
movzx esi, word [eax + edx*2]
jmp 0x405e0b
movzx edx, al
movzx eax, cl
mov ecx, dword [0x4c8ef0]
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 0x405e26
mov edx, ebx
cmp ax, dx
jb 0x405e2c
mov esi, ebx
mov dword [esp + 0x14], esi
test esi, 0x4000
je 0x405e6f
cmp byte [esp + 0x130], 0
jne 0x405f17
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 0x405fab
push 0
push 0x3fff
push ebp
push 0
jmp 0x405a23
mov ecx, ebx
cmp si, cx
je 0x405f27
and esi, ecx
cmp byte [esp + 0x130], 0
mov eax, esi
je 0x405ef8
mov edx, dword [0x4c5acc]
cmp ax, word [edx]
jae 0x405eef
movzx ebx, ax
mov eax, ecx
mov ecx, dword [0x4c8ef8]
add ebx, ebx
cmp word [ebx + ecx], ax
je 0x405eef
cmp byte [esp + 0x13], 0
jne 0x405edf
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.0040a4a0
add esp, 8
mov dword [esp + 0x38], eax
test eax, eax
jne 0x405f17
mov ecx, dword [0x4c8ef8]
movzx edx, word [ebx + ecx]
mov dword [esp + 0x14], edx
jmp 0x405f17
cmp byte [esp + 0x13], 0
jne 0x405f27
jmp 0x405f17
mov ecx, dword [0x4c5acc]
cmp ax, word [ecx]
jae 0x405f17
movzx edx, ax
mov eax, dword [0x4c8ef8]
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 0x405fe5
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0x1c]
test al, al
je 0x405e4f
cmp byte [ecx + 4], 0
jne 0x405f77
test byte [ecx + 0xb], 1
jne 0x405f77
cmp byte [ecx + 8], 0
je 0x405f77
cmp byte [esp + 0x1a], 0
jne 0x405f77
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 0x40536c
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 0x4067fb
push 1
push eax
add ecx, 0xb
xor esi, esi
lea eax, [esp + 0x1a]
xor edi, edi
call fcn.0040a4a0
add esp, 8
cmp byte [esp + 0x12], 0
push edi
jne 0x405e62
mov eax, dword [esp + 0x130]
push SysReAllocString
push 0x3fff
push edi
push eax
jmp 0x405364
mov ebx, dword [esp + 0x1c]
mov al, byte [ebx + 0xb]
mov dl, byte [0x4c84c5]
add ebx, 0xb
mov dword [esp + 0x30], ebx
test al, 8
je 0x406010
cmp byte [esp + 0x130], 0
je 0x406010
and al, 0xf7
mov byte [esp + 0x12], 1
mov byte [ebx], al
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4c5acc]
and eax, 0x3fff
cmp ax, word [ecx]
jae 0x406137
cmp dword [esp + 0x38], 0
jne 0x406137
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.0040a4a0
add esp, 8
mov dword [esp + 0x38], eax
test eax, eax
jne 0x406131
mov eax, dword [esp + 0x130]
test al, al
je 0x4060c7
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 0x10], 0
push 0
je 0x406095
push SysReAllocString
push 0x3fff
mov edx, eax
mov eax, dword [esp + 0x138]
push edx
push eax
jmp 0x405364
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 0x4067fb
mov eax, dword [esp + 0x1c]
add eax, 6
mov edx, 0x3fff
cmp word [eax], dx
je 0x405e60
push 1
push eax
xor esi, esi
lea eax, [esp + 0x1a]
mov ecx, ebx
xor edi, edi
mov byte [esp + 0x1a], 0
call fcn.0040a4a0
add esp, 8
cmp byte [esp + 0x12], 0
push edi
jne 0x405e62
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 0x40536c
mov dl, byte [0x4c84c5]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x118]
mov ecx, dword [0x4c85f8]
and edi, 0x3fff
cmp esi, ecx
jne 0x406187
test dl, 0x3f
jne 0x4061a8
mov eax, dword [0x4c8efc]
test dl, 0x40
je 0x406171
cmp byte [eax + 0x6668], 0
jne 0x406171
mov byte [0x4c73de], 1
test dl, dl
jns 0x4061ad
cmp byte [eax + 0x6788], 0
jne 0x4061ad
mov byte [0x4c73dd], 1
jmp 0x4061ad
test dl, 0xc
jne 0x4061a8
mov eax, dword [0x4c8efc]
test dl, 0x40
je 0x406171
cmp byte [eax + 0x6668], 0
jne 0x406171
mov byte [0x4c73de], 1
jmp 0x4061ad
mov eax, dword [0x4c8efc]
test dl, 4
je 0x4061dd
cmp byte [eax + 0xb888], 0
jne 0x4061dd
test ecx, ecx
je 0x4061c8
mov byte [0x4c73dc], 1
jmp 0x406229
movzx eax, byte [0x4c4385]
push 0xffc3d44d
push 0
push 0
push 0
push eax
jmp 0x406219
test dl, 8
je 0x406229
cmp byte [eax + 0xb9a8], 0
jne 0x406229
call fcn.00411f80
test al, al
jne 0x406223
cmp dword [0x4c85f8], 0
je 0x406206
mov byte [0x4c73d7], 1
jmp 0x406223
movzx ecx, byte [0x4c4385]
push 0xffc3d44d
push 0
push 0
push 0
push ecx
push 2
call fcn.0040f460
add esp, 0x18
mov dl, byte [0x4c84c5]
mov eax, edi
lea ecx, [eax - 0x3ffa]
cmp ecx, 4
ja case.default.0x40623a
jmp dword [ecx*4 + 0x406924]
cmp byte [0x4c73d6], 0
jne case.0x40623a.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 0x4067fb
xor al, al
mov byte [esp + 0x13], al
test dl, 4
je 0x40628d
mov al, 0xa4
jmp 0x406294
test dl, 8
je 0x406298
mov al, 0xa5
mov byte [esp + 0x13], al
cmp byte [0x4c73d6], 0
je 0x406316
mov ecx, 0x3ffb
cmp di, cx
je case.0x40623a.16381
test al, al
movzx eax, al
jne 0x4062bb
mov eax, 0x12
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040f460
mov edx, dword [esp + 0x34]
add esp, 0x18
cmp byte [edx + 4], 0
je 0x40630a
mov eax, dword [esp + 0x128]
cmp al, 0x5b
je 0x40630a
cmp al, 0x5c
je 0x40630a
cmp byte [esp + 0x130], 0
jne 0x40630a
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040f460
add esp, 0x18
mov byte [0x4c73d6], 0
jmp 0x4065b0
mov al, byte [esp + 0x128]
cmp al, 0xa4
je 0x40632a
mov byte [esp + 0x11], 0
cmp al, 0xa5
jne 0x40632f
mov byte [esp + 0x11], 1
cmp al, 0xa0
je 0x40633b
cmp al, 0xa1
je 0x40633b
xor dl, dl
jmp 0x40633d
mov dl, 1
mov byte [esp + 0x23], dl
cmp al, 0xa2
je 0x40634e
mov byte [esp + 0x1b], 0
cmp al, 0xa3
jne 0x406353
mov byte [esp + 0x1b], 1
mov bl, byte [0x4c84c5]
xor cl, cl
mov byte [esp + 0x2c], cl
test bl, 0x10
je 0x40636c
mov cl, 0xa0
mov byte [esp + 0x2c], cl
jmp 0x406393
test bl, 0x20
je 0x406379
mov cl, 0xa1
mov byte [esp + 0x2c], cl
jmp 0x406393
cmp byte [esp + 0x130], 0
jne 0x40638d
test dl, dl
je 0x40638d
mov cl, al
mov byte [esp + 0x2c], cl
mov bl, byte [0x4c84c5]
mov byte [esp + 0x24], 0
test bl, 1
je 0x4063a4
mov byte [esp + 0x24], 0xa2
jmp 0x4063c5
test bl, 2
je 0x4063b0
mov byte [esp + 0x24], 0xa3
jmp 0x4063c5
cmp byte [esp + 0x130], 0
jne 0x4063c5
cmp byte [esp + 0x1b], 0
je 0x4063c5
mov byte [esp + 0x24], al
mov esi, dword [esp + 0x2c]
xor bl, bl
test cl, cl
je 0x4063e7
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 1
call fcn.0040f460
add esp, 0x18
mov bl, 1
cmp byte [esp + 0x24], 0
je 0x406408
mov eax, dword [esp + 0x24]
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.0040f460
add esp, 0x18
cmp byte [esp + 0x11], 0
je 0x406422
cmp byte [esp + 0x130], 0
jne 0x40642a
mov al, byte [esp + 0x128]
jmp 0x406426
mov al, byte [esp + 0x13]
test al, al
jne 0x406441
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040f460
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040f460
add esp, 0x18
test bl, bl
je 0x406479
cmp byte [esp + 0x23], 0
jne 0x406479
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 0
call fcn.0040f460
add esp, 0x18
mov byte [0x4c73d6], 1
jmp 0x4065b0
cmp byte [0x4c73d6], 0
jne 0x4064c2
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 0x4067fb
cmp byte [esp + 0x130], 0
mov ebx, dword [esp + 0x128]
jne 0x406503
cmp bl, 0xa2
je 0x4064e7
cmp bl, 0xa3
je 0x4064e7
cmp bl, 0xa0
je 0x4064e7
cmp bl, 0xa1
jne 0x406503
push 0xffc3d44d
push 0
push 0
push 0
push ebx
push 1
call fcn.0040f460
mov dl, byte [0x4c84c5]
add esp, 0x18
test dl, 0xc
je 0x40651c
cmp byte [esp + 0x130], 0
je 0x406539
cmp bl, 0xa4
je 0x40651c
cmp bl, 0xa5
jne 0x406539
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.0040f460
mov dl, byte [0x4c84c5]
add esp, 0x18
mov ecx, 0x3ffd
xor bl, bl
cmp di, cx
jne 0x406563
test dl, 0x30
jne 0x406563
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.0040f460
add esp, 0x18
mov bl, 1
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.0040f460
add esp, 0x18
test bl, bl
je 0x4065b0
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.0040f460
add esp, 0x18
jmp 0x4065b0
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
cmp byte [eax + 0x1e], 5
jne 0x4065b0
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 0x406621
test bl, bl
je 0x406704
cmp byte [esi + 8], 0
je 0x406621
mov edi, dword [esp + 0x12c]
mov esi, dword [esp + 0x128]
push 0xffc3d44e
push 0
push 0
push edi
push esi
push 1
call fcn.0040f460
push 0xffc3d44d
push 0
push 0
push edi
push esi
push 2
call fcn.0040f460
mov ecx, dword [esp + 0x58]
push 0
push SysReAllocString
push ecx
mov edx, ebx
push edx
push edi
push esi
jmp 0x404e98
test bl, bl
je 0x406704
cmp byte [esi + 4], 0
je 0x406692
cmp byte [esi + 0x10], 0
je 0x40665e
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 0x40536c
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 0x4067fb
cmp byte [esp + 0x12], 0
je 0x406794
mov eax, dword [esp + 0x118]
push 0
cmp eax, dword [0x4c85fc]
jne 0x4066d9
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 0x4067fb
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 0x4067fb
mov eax, dword [0x4c73d8]
mov byte [esi + 0xf], 1
test eax, eax
je 0x40671b
cmp byte [eax + 4], 0
je 0x40671b
mov byte [eax + 0x11], 2
cmp byte [esp + 0x12], 0
je 0x406735
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
or byte [eax], 8
push 0
push edx
jmp 0x405a21
mov eax, dword [esp + 0x128]
cmp al, 0xa4
je 0x406744
cmp al, 0xa5
jne 0x406794
mov cl, byte [0x4c84c5]
test cl, 0xc0
je 0x406778
test cl, 0x33
jne 0x406778
movzx eax, byte [0x4c4385]
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 2
call fcn.0040f460
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.0040f460
add esp, 0x18
test bl, bl
jne 0x40679c
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 0x40536c
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.00406a70
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret