Function at 0x4051d0
Capabilities:
Enumerate pe sections
Log keystrokes via polling

Disassembly:
sub esp, 0xf8
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x11c]
mov al, byte [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x118]
push ebp
mov ebp, dword [esp + 0x110]
push esi
push edi
mov dword [esp + 0x30], 0x7fff
cmp ecx, 0xffc3d44f
je 0x405222
cmp ecx, 0xffc3d44e
je 0x405222
mov byte [esp + 0x12], 0
cmp ecx, 0xffc3d44d
jne 0x405227
mov byte [esp + 0x12], 1
mov ecx, dword [0x51b8e4]
test ecx, ecx
jne 0x40523e
lea edi, [esp + 0x34]
mov dword [esp + 0x14], edi
jmp 0x405307
mov eax, dword [0x51b8e8]
mov edi, eax
imul edi, edi, 0xd4
inc eax
add edi, ecx
mov dword [esp + 0x14], edi
mov dword [0x51b8e8], eax
cmp eax, dword [0x5164f8]
jl 0x405269
mov dword [0x51b8e8], 0
mov al, byte [esp + 0x11c]
mov byte [edi], al
mov byte [edi + 6], bl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [0x51cd9c]
mov dword [0x51b8ec], eax
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
jns 0x405298
fadd dword [0x50f878]
fdiv qword [0x50f870]
mov dword [0x51cd9c], eax
fstp dword [edi + 8]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4052da
cmp esi, dword [0x51b8f0]
je 0x4052d2
mov eax, dword [0x51aed0]
push esi
lea edx, [edi + 0xc]
push edx
push 0x418
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4052f3
xor ecx, ecx
mov word [edi + 0xc], cx
jmp 0x4052f3
mov eax, 0x4eadac
lea edx, [edi + 0xc]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4052e4
mov al, byte [esp + 0x11c]
mov edx, dword [esp + 0x12c]
mov dword [0x51b8f0], esi
cmp al, 0xe7
jne 0x405355
movzx eax, word [ebp + 4]
mov ecx, dword [esp + 0x114]
push 0x7fff
push edi
push ebx
mov edx, 0x55
push 0xe7
push ecx
mov ecx, dword [esp + 0x120]
mov word [edi + 4], dx
mov edx, dword [esp + 0x124]
push edx
push ecx
mov ecx, ebp
mov word [edi + 2], ax
call fcn.00406d70
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret
mov esi, dword [esp + 0x120]
lea ecx, [eax + 0x64]
mov word [edi + 2], si
cmp cl, 3
ja 0x405371
xor esi, esi
mov dword [esp + 0x120], esi
mov ecx, dword [esp + 0x10c]
cmp ecx, dword [0x51b004]
jne 0x4053a5
and dl, 1
mov byte [esp + 0x13], dl
jne 0x4054be
test bl, bl
setne dl
dec dl
movzx eax, al
and dl, 0x80
mov byte [eax + 0x51aef0], dl
jmp 0x4054be
shr edx, 4
and dl, 1
mov byte [esp + 0x13], dl
test esi, 0x100
jne case.0x4053e9.13
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je case.0x4053e9.13
movzx eax, byte [esp + 0x11c]
add eax, 0xfffffff4
cmp eax, 0x62
ja case.0x4053e9.13
movzx ecx, byte [eax + 0x406b94]
jmp dword [ecx*4 + 0x406b64]
test bl, bl
sete dl
mov byte [0x519da4], dl
jmp case.0x4053e9.13
test bl, bl
sete al
mov byte [0x519da5], al
jmp case.0x4053e9.13
test bl, bl
sete cl
mov byte [0x519da6], cl
jmp case.0x4053e9.13
test bl, bl
sete dl
mov byte [0x519da7], dl
jmp case.0x4053e9.13
test bl, bl
sete al
mov byte [0x519da8], al
jmp case.0x4053e9.13
test bl, bl
sete cl
mov byte [0x519da9], cl
jmp case.0x4053e9.13
test bl, bl
sete dl
mov byte [0x519daa], dl
jmp case.0x4053e9.13
test bl, bl
sete al
mov byte [0x519dab], al
jmp case.0x4053e9.13
test bl, bl
sete cl
mov byte [0x519dac], cl
jmp case.0x4053e9.13
test bl, bl
sete dl
mov byte [0x519dad], dl
jmp case.0x4053e9.13
test bl, bl
sete al
mov byte [0x519dae], al
movzx esi, byte [esp + 0x11c]
mov edx, dword [0x51b90c]
lea ecx, [esi + esi*4]
cmp byte [edx + ecx*4 + 8], 0
jne 0x4054be
test byte [esp + 0x12c], 0x10
jne 0x4054be
mov al, byte [esp + 0x11c]
push ebx
call fcn.00408150
add esp, 4
test al, al
je 0x4054be
test bl, bl
setne al
dec al
and al, 0x80
mov byte [esi + 0x51aef0], al
cmp byte [esp + 0x12], 0
je 0x4054c9
mov al, 0x69
jmp 0x4054d5
mov al, byte [esp + 0x13]
neg al
sbb al, al
and al, 0x41
add al, 0x20
cmp byte [0x51aff0], 0
movsx cx, al
mov word [edi + 4], cx
je 0x405520
mov al, byte [esp + 0x11c]
cmp al, 0x5b
je 0x4054f5
cmp al, 0x5c
jne 0x405520
test bl, bl
jne 0x405520
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
push 0
push SysReAllocString
push 0x7fff
push 0
push edx
push eax
mov ebx, edi
mov eax, ebp
jmp 0x406b48
cmp byte [0x519dc7], 0
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, dword [sym.imp.USER32.dll_FindWindowW]
je 0x4055f0
cmp byte [esp + 0x11c], 0x1b
jne 0x4055f0
test bl, bl
jne 0x4055f0
push 0
push str.scp
call fcn.004a4b10
add esp, 4
push eax
call esi
test eax, eax
je 0x4055f0
push 0
push eax
call edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebp, eax
jne 0x4055f0
push 0xffc3d44d
push 0
push 0
push 0
push 0x1b
push 0
call fcn.004102e0
mov cl, byte [0x51aecd]
push 0xffc3d44d
shr cl, 3
push 0
and cl, 1
or cl, 0xa4
push 0
movzx edx, cl
push 0
push edx
push 1
call fcn.004102e0
mov eax, dword [esp + 0x150]
push 0
push SysReAllocString
push 0x7fff
push 0
push eax
push 0x1b
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x160]
mov ecx, dword [esp + 0x154]
call fcn.00406c40
add esp, 0x48
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret
movzx eax, word [esp + 0x120]
mov edx, dword [0x51b910]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov edx, dword [esp + 0x10c]
mov cl, byte [eax + 0x13]
mov byte [esp + 0x24], cl
cmp edx, dword [0x51b000]
jne 0x40562c
test cl, cl
je 0x40562c
mov ecx, dword [0x51b90c]
mov ebp, eax
mov dword [esp + 0x1c], eax
jmp 0x405644
movzx eax, byte [esp + 0x11c]
mov ecx, dword [0x51b90c]
lea eax, [eax + eax*4]
lea ebp, [ecx + eax*4]
mov dword [esp + 0x1c], ebp
cmp byte [esp + 0x12], 0
je 0x4056c2
cmp dword [esp + 0x128], 0xffc3d44e
jne 0x405676
test bl, bl
je 0x405676
cmp dword [0x519dc8], ebp
jne 0x405676
mov byte [ebp + 0xd], 0
mov byte [ebp + 0x10], 0
mov dword [0x519dc8], 0
mov ecx, dword [esp + 0x14]
push 0x7fff
push ecx
push ebx
mov edx, dword [esp + 0x128]
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x11c]
push edx
mov edx, dword [esp + 0x11c]
push eax
push ecx
push edx
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x134]
call fcn.00406d70
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret
test bl, bl
jne 0x4056d2
mov eax, 0x7fff
mov byte [ebp + 0x11], bl
mov word [ebp + 4], ax
cmp edx, dword [0x51b004]
jne 0x40578d
mov al, byte [esp + 0x11c]
test al, al
jne 0x40572f
mov ecx, dword [esp + 0x14]
push 0x7fff
push ecx
push ebx
push 0
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x11c]
push edx
push eax
push ecx
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x134]
call fcn.00406d70
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret
cmp al, 1
je 0x405737
cmp al, 2
jne 0x40578d
cmp dword [0x51b060], 0
jne 0x405763
push 0
push str.scpm
call fcn.004a4b10
add esp, 4
push eax
call esi
test eax, eax
je 0x405787
push 0
push eax
call edi
cmp eax, dword [0x51c084]
jne 0x405787
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x11c]
push 0x7fff
push eax
test bl, bl
sete dl
push ebx
mov byte [ebp + 0x10], 0
mov byte [ebp + 0xd], dl
push ecx
jmp 0x4056f6
mov ecx, dword [0x51b90c]
mov esi, dword [0x519dc8]
test esi, esi
je 0x4057c6
cmp esi, ebp
je 0x4057c6
test bl, bl
jne 0x4057c6
mov edi, dword [0x51b000]
cmp dword [esp + 0x10c], edi
jne 0x4057b8
xor eax, eax
cmp byte [ebp + 8], al
sete al
jmp 0x4057bc
movzx eax, byte [esi + 8]
test eax, eax
je 0x4057cc
mov byte [esi + 0x12], 1
jmp 0x4057cc
mov edi, dword [0x51b000]
cmp byte [ebp + 9], 0
jne 0x405808
cmp byte [ebp + 0xa], 0
jne 0x405808
mov edx, dword [esp + 0x14]
push 0x7fff
push edx
mov eax, dword [esp + 0x124]
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x118]
push ebx
push eax
mov eax, dword [esp + 0x11c]
push ecx
push edx
push eax
jmp 0x40570e
mov dword [esp + 0x18], 0x7fff
mov dword [esp + 0x28], 0
test bl, bl
je 0x405846
mov al, byte [ebp + 0x10]
mov dl, byte [ebp + 0xd]
mov byte [esp + 0x13], al
movzx eax, word [ebp + 4]
mov byte [esp + 0x23], dl
mov edx, 0x7fff
mov byte [ebp + 0x10], 0
cmp ax, dx
je 0x405844
mov dword [esp + 0x18], eax
mov word [ebp + 4], dx
test bl, bl
sete al
mov byte [ebp + 0xd], al
mov byte [esp + 0x10], 0
cmp dword [esp + 0x10c], edi
jne 0x4058cf
cmp byte [ebp + 8], 0
je 0x4058f2
cmp byte [ecx + 0xcb5], 0
jne 0x40587a
cmp byte [ecx + 0xcc9], 0
jne 0x40587a
xor eax, eax
jmp 0x40587f
mov eax, 1
cmp byte [ecx + 0xcdd], 0
mov byte [ecx + 0x161], al
jne 0x40589b
cmp byte [ecx + 0xcf1], 0
jne 0x40589b
xor eax, eax
jmp 0x4058a0
mov eax, 1
cmp byte [ecx + 0xc8d], 0
mov byte [ecx + 0x175], al
jne 0x4058c2
cmp byte [ecx + 0xca1], 0
jne 0x4058c2
xor eax, eax
mov byte [ecx + 0x14d], al
jmp 0x4058f2
mov eax, 1
mov byte [ecx + 0x14d], al
jmp 0x4058f2
test edi, edi
jne 0x4058f2
push 1
call fcn.004127e0
mov esi, dword [0x519dc8]
add esp, 4
mov byte [0x51aece], al
mov byte [0x51aecd], al
mov byte [esp + 0x10], 1
mov eax, dword [ebp]
test eax, eax
je 0x405903
cmp dword [eax], 7
mov byte [esp + 0x12], 1
je 0x405908
mov byte [esp + 0x12], 0
mov al, byte [ebp + 9]
test al, al
je 0x405ad0
test bl, bl
jne 0x405ad0
test esi, esi
je 0x40592c
cmp byte [ebp + 0xa], bl
je 0x40592c
cmp ebp, esi
jne 0x405ad0
mov edi, dword [esp + 0x120]
cmp al, 1
jne 0x405968
cmp byte [esp + 0x24], 0
movzx eax, di
jne 0x405949
movzx eax, byte [esp + 0x11c]
mov ecx, dword [esp + 0x24]
push ecx
push eax
call fcn.0040ab20
mov esi, dword [0x519dc8]
add esp, 8
test al, al
je 0x405968
mov byte [esp + 0x11], 1
jmp 0x40597d
mov byte [esp + 0x11], 0
cmp ebp, esi
je 0x40597d
mov esi, ebp
mov dword [0x519dc8], esi
mov byte [ebp + 0x12], 0
cmp byte [ebp + 0xa], 0
je 0x405a3f
cmp byte [esp + 0x10], 0
jne 0x4059a3
push 1
mov byte [esp + 0x14], 1
call fcn.004127e0
mov esi, dword [0x519dc8]
add esp, 4
mov al, byte [ebp + 8]
mov cl, byte [0x51aece]
test al, al
je 0x4059b4
not al
and cl, al
test cl, cl
jne 0x4059c4
cmp byte [esp + 0x11], cl
jne 0x4059c4
test byte [ebp + 0xc], 1
je 0x405a3f
mov edx, dword [0x51b000]
cmp dword [esp + 0x10c], edx
jne 0x4059f1
cmp byte [esp + 0x24], 0
je 0x4059f1
mov edx, dword [0x51b904]
movzx ecx, cl
movzx eax, di
shl ecx, 9
add ecx, eax
movzx ecx, word [edx + ecx*2]
jmp 0x405a0b
mov edx, dword [0x51b900]
movzx eax, cl
movzx ecx, byte [esp + 0x11c]
shl eax, 8
add eax, ecx
movzx ecx, word [edx + eax*2]
mov dword [esp + 0x18], ecx
test ecx, 0x8000
je 0x405a1d
mov word [ebp + 4], cx
jmp 0x405a51
mov edx, dword [0x516610]
mov eax, ecx
and eax, 0x7fff
cmp ax, word [edx]
jae 0x405a43
mov edx, dword [0x51b908]
mov ax, word [edx + eax*2]
mov word [ebp + 4], ax
jmp 0x405a43
mov ecx, dword [esp + 0x18]
mov edx, 0x7fff
cmp cx, dx
jne 0x405ad7
mov al, byte [esp + 0x11]
mov ebx, dword [esp + 0x14]
test al, al
je 0x405a6a
or byte [ebp + 0xc], 8
mov ecx, 0x23
mov word [ebx + 4], cx
cmp byte [ebp + 8], 0
jne 0x405aa1
test byte [ebp + 0xc], 1
jne 0x405aa1
cmp byte [esp + 0x12], 0
jne 0x405aa1
test al, al
jne 0x405aa1
mov edx, dword [esp + 0x11c]
push 0
push SysReAllocString
push 0x7fff
push 0
push edi
mov byte [ebp + 0x11], 1
push edx
jmp 0x406b41
push 0x7fff
push ebx
push 0
mov eax, dword [esp + 0x128]
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x11c]
push eax
mov eax, dword [esp + 0x11c]
push ecx
push edx
push eax
mov eax, edi
jmp 0x405715
mov edi, dword [esp + 0x120]
cmp byte [ebp + 0xa], 0
mov byte [esp + 0x11], 0
je 0x405b85
test bl, bl
je 0x405b85
cmp esi, ebp
jne 0x405b05
cmp byte [esp + 0x13], 0
je 0x405b85
xor esi, esi
mov dword [0x519dc8], esi
cmp byte [ebp + 0xb], 0
jne 0x405b80
mov al, byte [ebp + 0xc]
test al, 8
je 0x405b1b
xor cl, cl
and al, 0xf7
mov byte [ebp + 0xc], al
jmp 0x405b1d
mov cl, 1
cmp byte [esp + 0x13], 0
je 0x405b4e
test cl, cl
je 0x405b4e
mov ecx, dword [esp + 0x124]
mov edx, dword [esp + 0x11c]
mov ebx, dword [esp + 0x14]
push 0
push SysReAllocString
push 0x7fff
push ecx
push edi
push edx
jmp 0x406b41
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x114]
push 0x7fff
push eax
mov eax, dword [esp + 0x118]
push ebx
push ecx
mov ecx, dword [esp + 0x11c]
push edx
push eax
push ecx
mov eax, edi
jmp 0x405715
mov byte [esp + 0x11], 1
cmp byte [ebp + 9], 0
je 0x405d5a
test bl, bl
je 0x405d5a
cmp esi, ebp
jne 0x405ba3
xor esi, esi
mov dword [0x519dc8], esi
cmp byte [ebp + 0xe], 0
je 0x405bca
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
mov byte [ebp + 0xe], 0
call fcn.004102e0
mov esi, dword [0x519dc8]
add esp, 0x18
cmp byte [ebp + 0xf], 0
je 0x405bf1
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
mov byte [ebp + 0xf], 0
call fcn.004102e0
mov esi, dword [0x519dc8]
add esp, 0x18
mov edx, dword [esp + 0x18]
mov eax, 0x7fff
cmp dx, ax
jne 0x405c3d
mov al, byte [ebp + 0xc]
test al, 8
je 0x405c3d
and al, 0xf7
mov byte [ebp + 0xc], al
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x11c]
mov eax, dword [esp + 0x114]
push 0x7fff
push ecx
mov ecx, dword [esp + 0x118]
push ebx
push edx
mov edx, dword [esp + 0x11c]
push eax
push ecx
push edx
mov eax, edi
jmp 0x405715
mov cl, byte [esp + 0x12]
test cl, cl
je 0x405cc9
mov al, byte [ebp + 0x12]
cmp al, 2
jne 0x405c96
mov esi, dword [esp + 0x11c]
push 0xffc3d44e
push 0
push 0
push edi
push esi
push 1
call fcn.004102e0
push 0xffc3d44d
push 0
push 0
push edi
push esi
push 2
call fcn.004102e0
mov eax, dword [esp + 0x154]
push 0
push SysReAllocString
push 0x7fff
push eax
push edi
push esi
jmp 0x4055cb
cmp al, 1
je 0x405c0b
cmp byte [ebp + 0xa], 0
jne 0x405d3d
cmp byte [ebp + 8], 0
jne 0x405b4e
test byte [ebp + 0xc], 1
jne 0x405b4e
test cl, cl
jne 0x405b4e
jmp 0x405b28
cmp byte [ebp + 0x12], 0
je 0x405c9e
mov eax, 0x7fff
cmp dx, ax
jne 0x405c9e
cmp byte [ebp + 8], 0
jne 0x405c0b
test byte [ebp + 0xc], 1
je 0x405d17
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x114]
push eax
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x118]
push ebx
push ecx
mov ecx, dword [esp + 0x11c]
push edx
push eax
push ecx
mov eax, edi
jmp 0x4056a8
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x11c]
mov ebx, dword [esp + 0x14]
push 0
push SysReAllocString
push 0x7fff
push edx
push edi
push eax
jmp 0x406b41
cmp byte [esp + 0x23], 0
jne 0x405d5e
cmp byte [ebp + 0xb], 0
jne 0x405d5e
mov edx, dword [esp + 0x14]
push 0x7fff
push edx
push ebx
jmp 0x405aa9
mov edx, dword [esp + 0x18]
cmp byte [esp + 0x10], 0
jne 0x405d83
mov ecx, 0x7fff
cmp dx, cx
jne 0x405d83
push 1
call fcn.004127e0
mov esi, dword [0x519dc8]
mov edx, dword [esp + 0x1c]
add esp, 4
mov byte [esp + 0x10], 0
test esi, esi
je 0x406154
test bl, bl
je 0x405d9e
cmp byte [ebp + 0xb], 0
je 0x406154
mov eax, 0x7fff
cmp dx, ax
jne 0x406431
movzx esi, word [ebp + 6]
mov ecx, eax
xor edx, edx
cmp si, cx
je 0x405f3d
mov edi, dword [0x51b90c]
mov ecx, dword [0x51b91c]
movzx eax, si
mov eax, dword [ecx + eax*4]
mov cl, byte [eax + 0x11]
test cl, cl
je 0x405de1
movzx ecx, cl
lea ecx, [ecx + ecx*4]
lea ecx, [edi + ecx*4]
jmp 0x405df1
movzx ecx, word [eax + 0xa]
mov ebx, dword [0x51b910]
lea ecx, [ecx + ecx*4]
lea ecx, [ebx + ecx*4]
cmp byte [ecx + 0xd], 0
je 0x405e26
cmp byte [eax + 0x16], 0
je 0x405e16
mov ebx, dword [esp + 0x124]
test bl, bl
jne 0x405e3d
mov cx, word [eax + 4]
mov word [ebp + 4], cx
test edx, edx
jne 0x405e47
jmp 0x405e26
cmp byte [esp + 0x124], 0
jne 0x405e26
test edx, edx
jne 0x405e26
mov edx, eax
movzx esi, word [eax + 0xc]
mov eax, 0x7fff
cmp si, ax
jne 0x405dc3
mov ebx, dword [esp + 0x124]
jmp 0x405e3f
mov edx, eax
test edx, edx
je 0x405f44
movzx eax, byte [edx + 0x11]
cmp eax, 0x12
ja case.0x405e57.1
movzx ecx, byte [eax + 0x406c0c]
jmp dword [ecx*4 + 0x406bf8]
xor eax, eax
cmp byte [edi + 0xca1], al
setne al
lea eax, [eax + eax*4 + 0x320]
lea ecx, [edi + eax*4]
mov dword [0x519dc8], ecx
jmp 0x405ed2
xor eax, eax
cmp byte [edi + 0xcc9], al
setne al
lea eax, [eax + eax*4 + 0x32a]
lea ecx, [edi + eax*4]
mov dword [0x519dc8], ecx
jmp 0x405ed2
xor eax, eax
cmp byte [edi + 0xcf1], al
setne al
lea eax, [eax + eax*4 + 0x334]
lea ecx, [edi + eax*4]
mov dword [0x519dc8], ecx
jmp 0x405ed2
movzx eax, word [edx + 0xa]
mov ecx, dword [0x51b910]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
jmp 0x405ecd
lea ecx, [eax + eax*4]
lea eax, [edi + ecx*4]
mov dword [0x519dc8], eax
movzx eax, word [edx + 6]
mov ebp, dword [esp + 0x14]
test ax, ax
je 0x405ef6
mov ecx, eax
mov dword [esp + 0x18], ecx
mov edx, dword [0x519dc8]
movzx esi, word [esp + 0x18]
mov byte [edx + 0x12], 2
jmp 0x405f48
movzx edx, word [edx + 4]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x128]
lea eax, [esp + 0x18]
push ebx
push eax
add ecx, 0xc
lea esi, [ebp + 4]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], edx
call fcn.0040ad30
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
jne 0x405ee5
mov ecx, dword [esp + 0x11c]
push 0x7fff
push ebp
push ebx
push ecx
jmp 0x4056f6
mov ebx, dword [esp + 0x124]
mov ebp, dword [esp + 0x14]
mov eax, 0x7ffe
cmp si, ax
je 0x405f60
mov ecx, 0x7ffd
cmp si, cx
jne 0x406158
test bl, bl
jne 0x405f6c
mov edx, dword [esp + 0x1c]
mov byte [edx + 0x10], 1
test byte [0x51aecd], 0xc
jne 0x405f8c
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.004102e0
add esp, 0x18
mov ebx, dword [esp + 0x11c]
cmp bl, 0xa2
je 0x405f9d
cmp bl, 0xa3
jne 0x405fc3
cmp byte [esp + 0x124], 0
jne 0x405fc3
mov eax, dword [esp + 0x120]
push 0xffc3d44d
push 0
push 0
push eax
push ebx
push 1
call fcn.004102e0
add esp, 0x18
mov ecx, dword [0x519dc8]
mov edx, 0x7ffd
mov byte [ecx + 0xe], 1
cmp si, dx
jne 0x406005
test byte [0x51aecd], 0x30
jne 0x405ff7
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.004102e0
add esp, 0x18
mov eax, dword [0x519dc8]
mov byte [eax + 0xf], 1
jmp 0x406085
mov ecx, 0x7ffe
cmp si, cx
jne 0x406085
cmp bl, 0xa0
je 0x406019
cmp bl, 0xa1
jne 0x40603f
cmp byte [esp + 0x124], 0
jne 0x40603f
mov edx, dword [esp + 0x120]
push 0xffc3d44d
push 0
push 0
push edx
push ebx
push 1
call fcn.004102e0
add esp, 0x18
test byte [0x51aecd], 0x10
je 0x406062
push 0xffc3d44d
push 0
push 0
push 0
push 0xa0
push 1
call fcn.004102e0
add esp, 0x18
test byte [0x51aecd], 0x20
je 0x406085
push 0xffc3d44d
push 0
push 0
push 0
push 0xa1
push 1
call fcn.004102e0
add esp, 0x18
test byte [0x51aecd], 1
je 0x4060a8
push 0xffc3d44d
push 0
push 0
push 0
push 0xa2
push 1
call fcn.004102e0
add esp, 0x18
test byte [0x51aecd], 2
je 0x4060cb
push 0xffc3d44d
push 0
push 0
push 0
push 0xa3
push 1
call fcn.004102e0
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.004102e0
mov eax, 0x7ffd
add esp, 0x18
cmp si, ax
jne 0x406128
mov ecx, dword [0x519dc8]
cmp byte [ecx + 0xf], 0
je 0x406128
cmp bl, 0x60
jb 0x406102
cmp bl, 0x69
jbe 0x406107
cmp bl, 0x6e
jne 0x406128
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.004102e0
mov edx, dword [0x519dc8]
add esp, 0x18
mov byte [edx + 0xf], 0
cmp byte [esp + 0x124], 0
mov eax, 0x68
mov word [ebp + 4], ax
jne 0x406143
mov ecx, dword [esp + 0x1c]
mov byte [ecx + 0x11], 1
push 0
push SysReAllocString
push 0x7fff
jmp 0x406b27
mov ebp, dword [esp + 0x14]
mov edx, 0x7fff
cmp word [esp + 0x18], dx
jne 0x406435
mov ecx, dword [esp + 0x1c]
mov cl, byte [ecx + 8]
mov al, byte [0x51aece]
test cl, cl
je 0x40617c
not cl
and al, cl
mov ebx, dword [0x51b000]
cmp dword [esp + 0x10c], ebx
jne 0x4061b7
cmp byte [esp + 0x24], 0
je 0x4061b7
mov esi, dword [esp + 0x120]
movzx edx, al
movzx ecx, si
shl edx, 9
add edx, ecx
mov ecx, dword [0x51b904]
movzx edx, word [ecx + edx*2]
mov cl, byte [esp + 0x11c]
jmp 0x4061da
mov cl, byte [esp + 0x11c]
movzx edx, al
movzx esi, cl
shl edx, 8
add edx, esi
mov esi, dword [0x51b900]
movzx edx, word [esi + edx*2]
mov esi, dword [esp + 0x120]
mov edi, 0x7fff
mov dword [esp + 0x18], edx
cmp dx, di
jne 0x406256
cmp byte [0x519dc7], 0
je 0x406256
cmp cl, 9
je 0x406256
and al, 0xf3
cmp dword [esp + 0x10c], ebx
jne 0x40621f
cmp byte [esp + 0x24], 0
je 0x40621f
mov edx, dword [0x51b904]
movzx ecx, al
movzx eax, si
shl ecx, 9
add ecx, eax
movzx edx, word [edx + ecx*2]
jmp 0x406234
mov edx, dword [0x51b900]
movzx eax, al
movzx ecx, cl
shl eax, 8
add eax, ecx
movzx edx, word [edx + eax*2]
mov eax, edx
and eax, 0x7fff
mov ecx, 0x7ff9
mov dword [esp + 0x18], edx
cmp ax, cx
jbe 0x406250
mov ecx, edi
cmp ax, cx
jb 0x406256
mov edx, edi
mov dword [esp + 0x18], edx
test edx, 0x8000
je 0x4062bc
cmp byte [esp + 0x124], 0
jne 0x40635d
mov ecx, dword [esp + 0x1c]
mov dx, word [esp + 0x18]
mov esi, dword [esp + 0x120]
mov word [ecx + 4], dx
lea eax, [ecx + 4]
mov ecx, 0x7fff
cmp word [eax], cx
jne 0x4063eb
mov edx, dword [esp + 0x11c]
mov eax, dword [esp + 0x114]
push ecx
mov ecx, dword [esp + 0x114]
push ebp
push 0
push edx
mov edx, dword [esp + 0x11c]
push eax
push ecx
push edx
mov eax, esi
jmp 0x405715
mov eax, edi
cmp dx, ax
je 0x406374
mov ecx, dword [0x516610]
and edx, eax
cmp byte [esp + 0x124], 0
mov eax, edx
je 0x406344
cmp ax, word [ecx]
jae 0x40633b
movzx ebx, ax
mov eax, dword [0x51b908]
add ebx, ebx
mov edx, edi
cmp word [ebx + eax], dx
je 0x40633b
cmp byte [esp + 0x11], 0
jne 0x40632b
mov edx, dword [esp + 0x124]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x128]
push edx
lea eax, [esp + 0x1c]
push eax
add ecx, 0xc
lea esi, [ebp + 4]
lea eax, [esp + 0x18]
call fcn.0040ad30
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
jne 0x40635d
mov ecx, dword [0x51b908]
movzx edx, word [ebx + ecx]
mov dword [esp + 0x18], edx
jmp 0x40635d
cmp byte [esp + 0x11], 0
jne 0x406374
jmp 0x40635d
cmp ax, word [ecx]
jae 0x40635d
movzx edx, ax
mov eax, dword [0x51b908]
mov cx, word [eax + edx*2]
mov edx, dword [esp + 0x1c]
mov word [edx + 4], cx
mov eax, 0x7fff
cmp word [esp + 0x18], ax
jne 0x406435
mov esi, dword [esp + 0x120]
mov eax, dword [esp + 0x124]
mov ecx, dword [esp + 0x1c]
test al, al
je 0x406280
cmp byte [ecx + 8], 0
jne 0x4063bd
test byte [ecx + 0xc], 1
jne 0x4063bd
cmp byte [ecx + 9], 0
je 0x4063bd
cmp byte [esp + 0x12], 0
jne 0x4063bd
mov edx, dword [esp + 0x11c]
push 0
push SysReAllocString
push 0x7fff
mov ecx, eax
push ecx
push esi
push edx
jmp 0x406b3f
mov ecx, dword [esp + 0x114]
mov edx, dword [esp + 0x110]
push 0x7fff
push ebp
push eax
mov eax, dword [esp + 0x128]
push eax
mov eax, dword [esp + 0x11c]
push ecx
push edx
push eax
mov eax, esi
jmp 0x405715
mov ecx, dword [esp + 0x1c]
push 1
push eax
add ecx, 0xc
xor esi, esi
lea eax, [esp + 0x18]
xor edi, edi
call fcn.0040ad30
add esp, 8
cmp byte [esp + 0x10], 0
jne 0x40653c
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x11c]
push edi
push SysReAllocString
push 0x7fff
push edi
push ecx
push edx
jmp 0x406b3f
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov al, byte [ecx + 0xc]
add ecx, 0xc
mov dword [esp + 0x14], ecx
test al, 8
je 0x40645a
cmp byte [esp + 0x124], 0
je 0x40645a
and al, 0xf7
mov byte [esp + 0x10], 1
mov byte [ecx], al
mov eax, dword [esp + 0x18]
mov ecx, dword [0x516610]
and eax, 0x7fff
cmp ax, word [ecx]
jae 0x40659b
cmp dword [esp + 0x28], 0
jne 0x40659b
mov ebx, dword [esp + 0x124]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x128]
lea edx, [esp + 0x18]
push ebx
push edx
lea esi, [ebp + 4]
lea eax, [esp + 0x18]
call fcn.0040ad30
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
jne 0x40659b
cmp word [esi], 0x69
jne 0x4064c1
push 0x7fff
push ebp
jmp 0x4057e2
test bl, bl
je 0x4064ff
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 0x11], 0
jne 0x406143
mov edx, dword [esp + 0x11c]
mov eax, dword [esp + 0x114]
mov ecx, dword [esp + 0x110]
push 0x7fff
push ebp
push ebx
push edx
mov edx, dword [esp + 0x11c]
push eax
push ecx
push edx
jmp 0x40570e
mov eax, dword [esp + 0x1c]
add eax, 4
mov ecx, 0x7fff
cmp word [eax], cx
jne 0x406519
push ecx
push ebp
push 0
jmp 0x405681
mov ecx, dword [esp + 0x14]
push 1
push eax
xor esi, esi
lea eax, [esp + 0x18]
xor edi, edi
mov byte [esp + 0x18], 0
call fcn.0040ad30
add esp, 8
cmp byte [esp + 0x10], 0
je 0x406569
push 0x7fff
push ebp
push 0
mov eax, dword [esp + 0x128]
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x11c]
push eax
mov eax, dword [esp + 0x11c]
push ecx
push edx
push eax
jmp 0x4056a1
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x120]
and byte [eax], 0xf7
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x11c]
push 0
push SysReAllocString
push 0x7fff
push 0
push edx
mov byte [ecx + 0x11], 1
push eax
jmp 0x406b3f
mov esi, dword [esp + 0x18]
mov dl, byte [0x51aecd]
and esi, 0x7fff
test dl, 0xcc
je 0x406662
cmp byte [esp + 0x10], 0
jne 0x406662
cmp byte [0x519dcc], 0
jne 0x4065db
mov ecx, dword [esp + 0x10c]
cmp ecx, dword [0x51b004]
jne 0x406662
mov bl, byte [0x51aecf]
test dl, 0xc0
je 0x40660d
test bl, 0xc0
jne 0x406604
push 0xc0
mov eax, esi
call fcn.0040af80
mov dl, byte [0x51aecd]
add esp, 4
test al, al
je 0x40660d
mov byte [0x519dcd], 1
jmp 0x406662
cmp byte [0x519dcd], 0
jne 0x406662
test dl, 0xc
je 0x406662
test dl, 3
jne 0x406662
test bl, 0xc
jne 0x40663b
push 0xc
mov eax, esi
call fcn.0040af80
mov dl, byte [0x51aecd]
add esp, 4
test al, al
je 0x406662
cmp dword [0x51b000], 0
je 0x40664d
mov byte [0x519dcd], 1
jmp 0x406662
push 2
mov eax, 0xffc3d44d
call fcn.00410930
mov dl, byte [0x51aecd]
add esp, 4
mov eax, esi
lea ecx, [eax - 0x7ffa]
cmp ecx, 4
ja case.default.0x406673
jmp dword [ecx*4 + 0x406c20]
cmp byte [0x519dc7], 0
jne case.0x406673.32763
mov edx, dword [esp + 0x124]
push 0x7fff
push ebp
push edx
jmp 0x406544
xor al, al
mov byte [esp + 0x11], al
test dl, 4
je 0x4066a5
mov al, 0xa4
jmp 0x4066ac
test dl, 8
je 0x4066b0
mov al, 0xa5
mov byte [esp + 0x11], al
cmp byte [0x519dc7], 0
je 0x4067ad
mov ecx, 0x7ffb
cmp si, cx
je case.0x406673.32765
test al, al
movzx eax, al
jne 0x4066d7
mov eax, 0x12
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.004102e0
mov edx, dword [esp + 0x34]
add esp, 0x18
cmp byte [edx + 8], 0
je 0x406726
mov eax, dword [esp + 0x11c]
cmp al, 0x5b
je 0x406726
cmp al, 0x5c
je 0x406726
cmp byte [esp + 0x124], 0
jne 0x406726
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.004102e0
add esp, 0x18
mov byte [0x519dc7], 0
mov edi, dword [esp + 0x30]
cmp byte [esp + 0x12], 0
mov ebx, dword [esp + 0x124]
mov esi, dword [esp + 0x1c]
mov ecx, 0x68
mov word [ebp + 4], cx
je 0x406a29
test bl, bl
je 0x406abf
cmp byte [esi + 9], 0
je 0x406a29
mov ebx, dword [esp + 0x120]
mov esi, dword [esp + 0x11c]
push 0xffc3d44e
push 0
push 0
push ebx
push esi
push 1
call fcn.004102e0
push 0xffc3d44d
push 0
push 0
push ebx
push esi
push 2
call fcn.004102e0
mov edx, dword [esp + 0x154]
push 0
push SysReAllocString
push edi
push edx
push ebx
push esi
mov ebx, ebp
jmp 0x4055cf
mov al, byte [esp + 0x11c]
cmp al, 0xa4
je 0x4067c1
mov byte [esp + 0x23], 0
cmp al, 0xa5
jne 0x4067c6
mov byte [esp + 0x23], 1
cmp al, 0xa0
je 0x4067d3
mov byte [esp + 0x13], 0
cmp al, 0xa1
jne 0x4067d8
mov byte [esp + 0x13], 1
cmp al, 0xa2
je 0x4067e5
mov byte [esp + 0x2f], 0
cmp al, 0xa3
jne 0x4067ea
mov byte [esp + 0x2f], 1
xor cl, cl
mov byte [esp + 0x28], cl
test dl, 0x10
je 0x4067f9
mov cl, 0xa0
jmp 0x406815
test dl, 0x20
je 0x406802
mov cl, 0xa1
jmp 0x406815
cmp byte [esp + 0x124], 0
jne 0x406819
cmp byte [esp + 0x13], 0
je 0x406819
mov cl, al
mov byte [esp + 0x28], cl
mov byte [esp + 0x24], 0
test dl, 1
je 0x40682a
mov byte [esp + 0x24], 0xa2
jmp 0x40684b
test dl, 2
je 0x406836
mov byte [esp + 0x24], 0xa3
jmp 0x40684b
cmp byte [esp + 0x124], 0
jne 0x40684b
cmp byte [esp + 0x2f], 0
je 0x40684b
mov byte [esp + 0x24], al
mov esi, dword [esp + 0x28]
xor bl, bl
test cl, cl
je 0x40686d
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 1
call fcn.004102e0
add esp, 0x18
mov bl, 1
cmp byte [esp + 0x24], 0
je 0x40688e
mov eax, dword [esp + 0x24]
push 0xffc3d44d
push 0
push 0
push 0
push eax
push 1
call fcn.004102e0
add esp, 0x18
cmp byte [esp + 0x23], 0
je 0x4068a8
cmp byte [esp + 0x124], 0
jne 0x4068b0
mov al, byte [esp + 0x11c]
jmp 0x4068ac
mov al, byte [esp + 0x11]
test al, al
jne 0x4068c7
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.004102e0
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.004102e0
add esp, 0x18
test bl, bl
je 0x4068ff
cmp byte [esp + 0x13], 0
jne 0x4068ff
push 0xffc3d44d
push 0
push 0
push 0
push esi
push 0
call fcn.004102e0
add esp, 0x18
mov byte [0x519dc7], 1
jmp 0x40672d
cmp byte [0x519dc7], 0
jne 0x406927
mov ecx, dword [esp + 0x124]
push 0x7fff
push ebp
push ecx
jmp 0x405681
cmp byte [esp + 0x124], 0
mov ebx, dword [esp + 0x11c]
jne 0x406962
cmp bl, 0xa2
je 0x40694c
cmp bl, 0xa3
je 0x40694c
cmp bl, 0xa0
je 0x40694c
cmp bl, 0xa1
jne 0x406962
push 0xffc3d44d
push 0
push 0
push 0
push ebx
push 1
call fcn.004102e0
add esp, 0x18
test byte [0x51aecd], 0xc
je 0x40697f
cmp byte [esp + 0x124], 0
je 0x406996
cmp bl, 0xa4
je 0x40697f
cmp bl, 0xa5
jne 0x406996
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 0
call fcn.004102e0
add esp, 0x18
mov eax, 0x7ffd
xor bl, bl
cmp si, ax
jne 0x4069c4
test byte [0x51aecd], 0x30
jne 0x4069c4
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 0
call fcn.004102e0
add esp, 0x18
mov bl, 1
push 0xffc3d44d
push 0
push 0
push 0
push 9
push 2
call fcn.004102e0
add esp, 0x18
test bl, bl
je 0x40672d
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 1
call fcn.004102e0
add esp, 0x18
jmp 0x40672d
mov ecx, dword [esp + 0x28]
mov edi, eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x406731
cmp byte [eax], 5
jb 0x406731
mov edx, ecx
movzx eax, word [edx + 0x14]
shl eax, 0x10
or edi, eax
jmp 0x406731
test bl, bl
je 0x406abf
cmp byte [esi + 8], 0
je 0x406a66
cmp byte [esi + 0x11], 0
je 0x406ae4
mov eax, dword [esp + 0x124]
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x11c]
push 0
push SysReAllocString
push edi
push eax
push ecx
push edx
jmp 0x406b3f
cmp byte [esp + 0x10], 0
je 0x406b17
mov eax, dword [esp + 0x10c]
push edi
push ebp
push ebx
cmp eax, dword [0x51b004]
jne 0x406aa1
mov ecx, dword [esp + 0x128]
mov edx, dword [esp + 0x120]
push ecx
mov ecx, dword [esp + 0x120]
push edx
push ecx
push eax
jmp 0x4056a1
mov edx, dword [esp + 0x128]
mov ecx, dword [esp + 0x120]
push edx
mov edx, dword [esp + 0x120]
push ecx
push edx
push eax
jmp 0x4056a1
mov eax, dword [0x519dc8]
mov byte [esi + 0x10], 1
test eax, eax
je 0x406ad6
cmp byte [eax + 8], 0
je 0x406ad6
mov byte [eax + 0x12], 2
cmp byte [esp + 0x10], 0
je 0x406aec
mov eax, dword [esp + 0x14]
or byte [eax], 8
push edi
push ebp
push ebx
jmp 0x406544
mov eax, dword [esp + 0x11c]
cmp al, 0xa4
je 0x406afb
cmp al, 0xa5
jne 0x406b17
mov ecx, dword [esp + 0x120]
push 0xffc3d450
push 0
push 0
push ecx
push eax
push 1
call fcn.004102e0
add esp, 0x18
test bl, bl
jne 0x406b1f
mov byte [esi + 0x11], 1
push 0
push SysReAllocString
push edi
mov edx, dword [esp + 0x130]
mov eax, dword [esp + 0x12c]
mov ecx, dword [esp + 0x128]
push edx
push eax
push ecx
mov ebx, ebp
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0x124]
call fcn.00406c40
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret