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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43a0f1
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x44c4b8]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push esi
push edi
mov eax, dword [0x44c4b8]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
xor edi, edi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0x443504
mov dword [esp + 0x34], 0x4434fc
mov dword [esp + 0x8c], 0x43c5f0
push ecx
lea eax, [esp + 0x40]
mov dword [esp + 0x104], edi
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 2
call fcn.004053a7
mov dword [esp + 0x100], 1
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x24], 0x4434f8
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [esp + ecx + 0x20], eax
lea ecx, [esp + 0x3c]
call fcn.004054ce
mov dword [esp + 0x3c], 0x4434a8
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x100], 3
cmp dword [esi + 0x10], edi
je 0x401846
mov edx, esi
jmp 0x40184f
cmp dword [ebx + 0x1c], 0
je 0x401866
lea edx, [ebx + 0xc]
lea ecx, [esp + 0x34]
call fcn.00405a16
push eax
call fcn.00405ba9
pop ecx
push eax
call fcn.00405ba9
pop ecx
lea ecx, [esp + 0xd8]
call fcn.004021ba
mov esi, eax
mov edx, str.50_e0L
mov byte [esp + 0x100], 4
lea ecx, [esp + 0x34]
call fcn.00405bdb
mov edx, esi
mov ecx, eax
call fcn.00405a16
push edi
push 1
lea ecx, [esp + 0xe0]
mov byte [esp + 0x108], 3
call fcn.0040c9be
test byte [ebx + 0x24], 1
je 0x4018ca
mov edx, 0x442b70
lea ecx, [esp + 0x34]
call fcn.00405bdb
mov edx, 0x442b58
mov ecx, eax
call fcn.00405bdb
mov esi, dword [ebx]
jmp 0x401932
cmp dword [esi], 0
mov eax, 0x442b74
mov edi, dword [esi + 4]
cmovne eax, ecx
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0040c728
mov eax, dword [edi]
lea ecx, [esp + 0xf0]
push ecx
mov ecx, edi
call dword [eax + 0x14]
mov edi, eax
mov edx, 0x442b70
mov byte [esp + 0x100], 5
lea ecx, [esp + 0x34]
call fcn.00405bdb
mov edx, edi
mov ecx, eax
call fcn.00405a16
push 0
push 1
lea ecx, [esp + 0xe0]
mov byte [esp + 0x108], 3
call fcn.0040c9be
add esi, 8
mov ecx, 0x4439e8
cmp esi, dword [ebx + 4]
jne 0x4018ce
lea eax, [esp + 0x34]
push eax
call fcn.00405ba9
pop ecx
lea eax, [esp + 0x34]
push eax
call fcn.00405ba9
test byte [ebx + 0x24], 1
pop ecx
je 0x40196d
mov edx, 0x442b78
lea ecx, [esp + 0x34]
call fcn.00405bdb
push eax
call fcn.00405ba9
pop ecx
mov esi, dword [ebx]
jmp 0x4019e2
cmp dword [esi], 0
mov ecx, 0x4439e8
mov edi, dword [esi + 4]
mov eax, 0x442b74
cmovne eax, ecx
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0040c728
mov eax, dword [edi]
lea ecx, [esp + 0xf0]
push ecx
mov ecx, edi
call dword [eax + 0x18]
mov byte [esp + 0x100], 6
cmp dword [esp + 0xe8], 0
je 0x4019c7
lea edx, [esp + 0xd8]
lea ecx, [esp + 0x34]
call fcn.00405a16
push eax
call fcn.00405ba9
pop ecx
push 0
push 1
lea ecx, [esp + 0xe0]
mov byte [esp + 0x108], 3
call fcn.0040c9be
add esi, 8
cmp esi, dword [ebx + 4]
jne 0x401971
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push esi
call fcn.0040480c
or dword [esp + 0x100], 0xffffffff
lea ecx, [esp + 0x8c]
call fcn.004047dd
lea eax, [esp + 0x8c]
mov dword [esp + 0x8c], str.6Y64
push eax
call fcn.00419d1d
pop ecx
mov eax, esi
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.0041dd18
mov esp, ebp
pop ebp
ret 8