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

Disassembly:
mov eax, 0x1754
call fcn.0046cd8b
mov eax, dword [0x596804]
xor eax, esp
mov dword [esp + 0x1750], eax
mov eax, dword [esp + 0x1758]
push ebx
lea ecx, [esp + 8]
push ebp
xor ebx, ebx
push ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
call fcn.0040d22b
add esp, 4
cmp dword [esp + 0x20], 0x10
jb 0x406643
mov edx, dword [esp + 0xc]
push edx
call fcn.0046c533
add esp, 4
push edi
lea ecx, [esp + 0x68]
call fcn.0041716b
mov ebp, 7
xor eax, eax
xor ecx, ecx
push 0xb
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], ax
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], cx
call fcn.00406d8b
add esp, 4
lea edi, [ebp + 1]
cmp word [eax], bx
jne 0x40673a
push 0x40
lea eax, [esp + 0xf2]
xor edx, edx
push ebx
push eax
mov word [esp + 0xf8], dx
call fcn.0046c6ab
push 0x196
lea ecx, [esp + 0x13e]
push ebx
push ecx
call fcn.0046c6ab
add esp, 0x18
lea edx, [esp + 0xec]
push edx
push 1
lea ecx, [esp + 0x70]
call fcn.004172fb
mov eax, dword [esp + 0x230]
cmp eax, ebx
je 0x406728
mov dword [esp + 0x2c], eax
xor eax, eax
mov word [esp + 0x10], ax
lea eax, [esp + 0xec]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4066f1
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xf0]
push ecx
lea ecx, [esp + 0x18]
call fcn.00405a0b
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x3c]
call fcn.0040590b
jmp 0x406807
lea ecx, [esp + 0x68]
call fcn.00416c6b
mov dword [esp + 0x2c], eax
jmp 0x40681a
push 0xb
call fcn.00406d8b
movzx eax, word [eax]
sub eax, 0x30
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, 3
jne 0x40681a
push esi
push 0xc
call fcn.00406d8b
add esp, 4
xor ecx, ecx
mov word [esp + 0x14], cx
mov ecx, eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebx
lea esi, [ecx + 2]
jmp 0x40677b
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x40677b
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00405a0b
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x40]
call fcn.0040590b
cmp dword [esp + 0x28], edi
jb 0x4067b9
mov eax, dword [esp + 0x14]
push eax
call fcn.0046c533
add esp, 4
push 0xd
call fcn.00406d8b
add esp, 4
xor ecx, ecx
mov word [esp + 0x14], cx
mov ecx, eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebx
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x4067db
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00405a0b
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x5c]
call fcn.0040590b
pop esi
cmp dword [esp + 0x24], edi
jb 0x40681a
mov eax, dword [esp + 0x10]
push eax
call fcn.0046c533
add esp, 4
lea ecx, [esp + 0x2c4]
push ecx
lea edx, [esp + 0x30]
push edx
push 1
push ebx
lea ecx, [esp + 0x78]
call fcn.00418ddb
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x2c4]
push eax
push ecx
call fcn.0040633b
mov edx, dword [esp + 0x2cc]
add esp, 8
push edx
push 0x526012
push 0xa
call fcn.00406d8b
add esp, 4
push eax
call dword [sym.imp.USER32.DLL_wsprintfW]
add esp, 0xc
cmp dword [esp + 0x60], edi
jb 0x40687c
mov eax, dword [esp + 0x4c]
push eax
call fcn.0046c533
add esp, 4
xor ecx, ecx
cmp dword [esp + 0x44], edi
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], cx
pop edi
jb 0x40689f
mov edx, dword [esp + 0x2c]
push edx
call fcn.0046c533
add esp, 4
xor eax, eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], ax
call fcn.0041722b
mov ecx, dword [esp + 0x1758]
pop ebp
pop ebx
xor ecx, esp
call fcn.0046c68f
add esp, 0x1754
ret