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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43944d
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x44b4b8]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push esi
push edi
mov eax, dword [0x44b4b8]
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], 0x4424b4
mov dword [esp + 0x34], 0x4424ac
mov dword [esp + 0x8c], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
push ecx
lea eax, [esp + 0x40]
mov dword [esp + 0x104], edi
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 2
call fcn.004052ba
mov dword [esp + 0x100], 1
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x24], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
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.004053e1
mov dword [esp + 0x3c], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
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.00405929
push eax
call fcn.00405abc
pop ecx
push eax
call fcn.00405abc
pop ecx
lea ecx, [esp + 0xd8]
call fcn.004021ba
mov esi, eax
mov edx, 0x441b68
mov byte [esp + 0x100], 4
lea ecx, [esp + 0x34]
call fcn.00405aee
mov edx, esi
mov ecx, eax
call fcn.00405929
push edi
push 1
lea ecx, [esp + 0xe0]
mov byte [esp + 0x108], 3
call fcn.0040c6b0
test byte [ebx + 0x24], 1
je 0x4018ca
mov edx, 0x441b90
lea ecx, [esp + 0x34]
call fcn.00405aee
mov edx, str.__argfile_
mov ecx, eax
call fcn.00405aee
mov esi, dword [ebx]
jmp 0x401932
cmp dword [esi], 0
mov eax, 0x441b94
mov edi, dword [esi + 4]
cmovne eax, ecx
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0040c41a
mov eax, dword [edi]
lea ecx, [esp + 0xf0]
push ecx
mov ecx, edi
call dword [eax + 0x14]
mov edi, eax
mov edx, 0x441b90
mov byte [esp + 0x100], 5
lea ecx, [esp + 0x34]
call fcn.00405aee
mov edx, edi
mov ecx, eax
call fcn.00405929
push 0
push 1
lea ecx, [esp + 0xe0]
mov byte [esp + 0x108], 3
call fcn.0040c6b0
add esi, 8
mov ecx, 0x442998
cmp esi, dword [ebx + 4]
jne 0x4018ce
lea eax, [esp + 0x34]
push eax
call fcn.00405abc
pop ecx
lea eax, [esp + 0x34]
push eax
call fcn.00405abc
test byte [ebx + 0x24], 1
pop ecx
je 0x40196d
mov edx, 0x441b98
lea ecx, [esp + 0x34]
call fcn.00405aee
push eax
call fcn.00405abc
pop ecx
mov esi, dword [ebx]
jmp 0x4019e2
cmp dword [esi], 0
mov ecx, 0x442998
mov edi, dword [esi + 4]
mov eax, 0x441b94
cmovne eax, ecx
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0040c41a
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.00405929
push eax
call fcn.00405abc
pop ecx
push 0
push 1
lea ecx, [esp + 0xe0]
mov byte [esp + 0x108], 3
call fcn.0040c6b0
add esi, 8
cmp esi, dword [ebx + 4]
jne 0x401971
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push esi
call fcn.0040471f
or dword [esp + 0x100], 0xffffffff
lea ecx, [esp + 0x8c]
call fcn.004046f0
lea eax, [esp + 0x8c]
mov dword [esp + 0x8c], vtable.std::ios_base.0
push eax
call fcn.004194e8
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.0041d4e3
mov esp, ebp
pop ebp
ret 8