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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429aa7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
cmp dword [ebp + 0x14], 0
push ebx
mov ebx, ecx
push esi
mov dword [ebp - 0x10], ebx
push edi
mov dword [ebp - 0x1c], 0
je 0x4041c0
mov dword [ebx], 0x42a654
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x9c], 0
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0x70], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
call fcn.00406c60
mov eax, dword [edi + 0x30]
lea esi, [ebx + 0x10]
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
mov dword [ebp + 0x14], esi
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 2
push eax
call fcn.00403c50
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx ecx, ax
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x404253
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x404253
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [edi + 0x38], 0
mov eax, dword [ebp - 0x20]
mov word [edi + 0x40], ax
jne 0x404277
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
and eax, 0x13
or eax, 4
mov dword [edi + 0xc], eax
and ecx, eax
jne 0x40446c
mov eax, dword [ebx]
push 8
mov dword [ebp - 4], 3
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ifstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], esi
lea eax, [ecx - 0x70]
mov dword [ecx + ebx - 4], eax
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0040bc2d
mov esi, eax
add esp, 4
test esi, esi
je 0x4042c2
push 1
mov byte [ebp - 4], 4
call fcn.0040afb6
add esp, 4
mov dword [esi + 4], eax
jmp 0x4042c4
xor esi, esi
lea eax, [ebx + 0x10]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea ecx, [eax + 0x18]
mov dword [eax + 0x20], ecx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
lea edi, [eax + 0x14]
mov dword [eax + 0x1c], edi
lea edx, [eax + 0x24]
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp + 0x14]
mov dword [ebx], 0
mov ebx, dword [ebp + 0x14]
mov dword [edi], 0
mov dword [edx], 0
mov dword [eax + 0x10], esi
mov dword [ebx], vtable.std::basic_filebuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x3e], 0
mov ebx, dword [ebp - 0x14]
mov dword [eax + 0xc], ebx
mov ebx, dword [ebp + 0x14]
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov ebx, dword [ebp + 0x14]
mov dword [edi], 0
mov dword [edx], 0
mov dword [ebx + 0x4c], 0
mov eax, dword [0x43a11c]
mov ecx, dword [0x43a120]
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x38], 0
cmp dword [ebx + 0x4c], 0
mov byte [ebp - 4], 5
jne 0x40441a
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
or eax, 1
push eax
push dword [ebp + 8]
call fcn.0040b90e
add esp, 0xc
test eax, eax
je 0x40441a
push 1
push eax
mov ecx, ebx
call fcn.00406bc0
mov eax, dword [ebx + 0x34]
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0x20], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 6
push eax
call fcn.00403930
add esp, 4
mov ecx, ebx
push eax
call fcn.00406d20
test esi, esi
je 0x404402
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x404402
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov eax, edx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp - 0x10]
xor esi, esi
mov eax, dword [edx]
mov ecx, dword [eax + 4]
mov eax, 4
add ecx, edx
cmp dword [ecx + 0x38], esi
cmovne eax, esi
or eax, dword [ecx + 0xc]
and eax, 0x15
or eax, 2
mov dword [ecx + 0xc], eax
mov ecx, dword [ecx + 0x10]
and ecx, eax
je 0x404405
test cl, 4
je 0x404455
mov esi, str.ios_base::badbit_set
lea eax, [ebp - 0x24]
push 1
jmp 0x40448d
test cl, 2
mov eax, str.ios_base::eofbit_set
mov esi, str.ios_base::failbit_set
cmove esi, eax
lea eax, [ebp - 0x24]
push 1
jmp 0x40448d
test cl, 4
je 0x404478
mov esi, str.ios_base::badbit_set
jmp 0x404488
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
push 1
lea eax, [ebp - 0x18]
push eax
call fcn.00408590
add esp, 8
lea ecx, [ebp - 0x38]
push eax
push esi
call fcn.00404830
push 0x4376b8
lea eax, [ebp - 0x38]
push eax
call fcn.0040cb03
int3