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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x439e61
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], 0x44342c
mov dword [esp + 0x34], 0x443424
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.00404cea
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.00404e11
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.00405359
push eax
call fcn.004054ec
pop ecx
push eax
call fcn.004054ec
pop ecx
lea ecx, [esp + 0xd8]
call fcn.004021ba
mov esi, eax
mov edx, 0x442b48
mov byte [esp + 0x100], 4
lea ecx, [esp + 0x34]
call fcn.0040551e
mov edx, esi
mov ecx, eax
call fcn.00405359
push edi
push 1
lea ecx, [esp + 0xe0]
mov byte [esp + 0x108], 3
call fcn.0040c301
test byte [ebx + 0x24], 1
je 0x4018ca
mov edx, 0x442b70
lea ecx, [esp + 0x34]
call fcn.0040551e
mov edx, str.__argfile_
mov ecx, eax
call fcn.0040551e
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.0040c06b
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.0040551e
mov edx, edi
mov ecx, eax
call fcn.00405359
push 0
push 1
lea ecx, [esp + 0xe0]
mov byte [esp + 0x108], 3
call fcn.0040c301
add esi, 8
mov ecx, 0x443918
cmp esi, dword [ebx + 4]
jne 0x4018ce
lea eax, [esp + 0x34]
push eax
call fcn.004054ec
pop ecx
lea eax, [esp + 0x34]
push eax
call fcn.004054ec
test byte [ebx + 0x24], 1
pop ecx
je 0x40196d
mov edx, 0x442b78
lea ecx, [esp + 0x34]
call fcn.0040551e
push eax
call fcn.004054ec
pop ecx
mov esi, dword [ebx]
jmp 0x4019e2
cmp dword [esi], 0
mov ecx, 0x443918
mov edi, dword [esi + 4]
mov eax, 0x442b74
cmovne eax, ecx
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0040c06b
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.00405359
push eax
call fcn.004054ec
pop ecx
push 0
push 1
lea ecx, [esp + 0xe0]
mov byte [esp + 0x108], 3
call fcn.0040c301
add esi, 8
cmp esi, dword [ebx + 4]
jne 0x401971
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push esi
call fcn.00403f57
or dword [esp + 0x100], 0xffffffff
lea ecx, [esp + 0x8c]
call fcn.00403f28
lea eax, [esp + 0x8c]
mov dword [esp + 0x8c], vtable.std::ios_base.0
push eax
call fcn.00419a91
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.0041da8c
mov esp, ebp
pop ebp
ret 8