Function at 0x405ff1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x419bc0
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x4250c0]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4250c0]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov esi, dword [0x42730c]
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], ax
xor ecx, ecx
mov dword [esp + 0xc8], ebx
mov eax, dword [0x429250]
inc ecx
test cl, al
jne 0x406089
or eax, ecx
mov dword [0x429250], eax
call fcn.0040298b
mov dword [0x429258], eax
mov ebp, dword [sym.imp.USER32.dll_GetWindowLongW]
lea eax, [esp + 0x50]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x54]
mov edi, ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esp + 0xa4], 0x75
mov dword [esp + 0xa8], 0x3eb
mov dword [esp + 0xac], 0x3ed
mov dword [esp + 0xb0], 0x3ee
mov dword [esp + 0xb4], 0x3ef
mov dword [esp + 0xb8], 0x3f0
mov dword [esp + 0x48], eax
push dword [esp + edi + 0xa4]
push esi
call ebx
push 0
push eax
call ebp
test eax, eax
je 0x406125
mov ecx, dword [esp + edi + 0x34]
mov eax, dword [eax + 0x24]
mov dword [ecx], eax
add edi, 4
cmp edi, 0x18
jb 0x406109
push 0x74
push esi
call ebx
push 0
push eax
call ebp
push 0x20
mov dword [esp + 0x1c], 0x400
mov dword [esp + 0x30], 0x200
mov dword [esp + 0x24], 0x100
mov dword [esp + 0x20], 8
mov dword [esp + 0x34], 0x80
mov dword [esp + 0x2c], 0x40
pop edi
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x24], 2
test eax, eax
je 0x4061dc
mov eax, dword [eax + 0x24]
cmp eax, 0xa
push 4
pop edx
mov ecx, edx
cmove ecx, dword [esp + 0x18]
cmp eax, 9
cmove ecx, dword [esp + 0x2c]
cmp eax, 8
cmove ecx, dword [esp + 0x20]
cmp eax, 7
cmove ecx, dword [esp + 0x30]
cmp eax, 6
cmove ecx, dword [esp + 0x28]
cmp eax, 5
cmove ecx, edi
cmp eax, edx
cmove ecx, dword [esp + 0x14]
cmp eax, 3
cmove ecx, dword [esp + 0x1c]
cmp eax, 2
cmove ecx, edx
xor edx, edx
inc edx
cmp eax, edx
cmove ecx, dword [esp + 0x24]
test eax, eax
cmove ecx, edx
mov dword [esp + 0x4c], ecx
push 0x3ea
push esi
call ebx
push 0
push eax
call ebp
test eax, eax
je 0x40624b
mov eax, dword [eax + 0x24]
cmp eax, 0xa
push 4
pop edx
mov ecx, edx
cmove ecx, dword [esp + 0x18]
cmp eax, 9
cmove ecx, dword [esp + 0x2c]
cmp eax, 8
cmove ecx, dword [esp + 0x20]
cmp eax, 7
cmove ecx, dword [esp + 0x30]
cmp eax, 6
cmove ecx, dword [esp + 0x28]
cmp eax, 5
cmove ecx, edi
cmp eax, edx
cmove ecx, dword [esp + 0x14]
cmp eax, 3
cmove ecx, dword [esp + 0x1c]
cmp eax, 2
cmove ecx, edx
xor edx, edx
inc edx
cmp eax, edx
cmove ecx, dword [esp + 0x24]
test eax, eax
cmove ecx, edx
mov dword [esp + 0x74], ecx
push 0x3e9
push esi
call ebx
push 0
push eax
call ebp
test eax, eax
je 0x4062ba
mov eax, dword [eax + 0x24]
cmp eax, 0xa
push 4
pop edx
mov ecx, edx
cmove ecx, dword [esp + 0x18]
cmp eax, 9
cmove ecx, dword [esp + 0x2c]
cmp eax, 8
cmove ecx, dword [esp + 0x20]
cmp eax, 7
cmove ecx, dword [esp + 0x30]
cmp eax, 6
cmove ecx, dword [esp + 0x28]
cmp eax, 5
cmove ecx, edi
cmp eax, edx
cmove ecx, dword [esp + 0x14]
cmp eax, 3
cmove ecx, dword [esp + 0x1c]
cmp eax, 2
cmove ecx, edx
xor edx, edx
inc edx
cmp eax, edx
cmove ecx, dword [esp + 0x24]
test eax, eax
cmove ecx, edx
mov dword [esp + 0x78], ecx
push 0x3e8
push esi
call ebx
push 0
push eax
call ebp
test eax, eax
je 0x4062ec
mov eax, dword [eax + 0x24]
imul eax, eax, 0x18
add eax, dword [0x428a34]
lea ecx, [esp + 0x8c]
cmp ecx, eax
je 0x4062ec
push 0xffffffffffffffff
push 0
push eax
call fcn.004034d9
push 0x3ec
push esi
call ebx
push 0
push eax
call ebp
test eax, eax
je 0x40631a
cmp dword [eax + 0x24], 0
jne 0x40630c
push 0x10
pop eax
mov dword [esp + 0x58], eax
jmp 0x40631a
cmp dword [eax + 0x24], 1
push 0x18
pop eax
cmove edi, eax
mov dword [esp + 0x58], edi
push 0x3f0
push esi
call ebx
xor ebx, ebx
push ebx
push eax
call ebp
mov esi, eax
test esi, esi
je 0x406358
mov edi, 0x421be4
mov ecx, edi
call fcn.0040105f
push eax
push ecx
mov ecx, dword [esi + 0x24]
imul ecx, ecx, 0x18
add ecx, dword [esi + 0x18]
push edi
call fcn.0040569a
mov dword [esp + 0x7c], 1
cmp eax, 0xffffffff
jne 0x40635c
mov dword [esp + 0x7c], ebx
lea eax, [esp + 0x4c]
push eax
call fcn.004024cf
push ebx
push 1
lea ecx, [esp + 0x94]
call fcn.004030f4
lea ecx, [esp + 0x80]
call fcn.00402d92
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.00407f04
add esp, 0xb8
ret