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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x16c
push ebx
push esi
push edi
sub esp, 0xc
mov esi, edx
push ecx
lea ecx, [esp + 0xd0]
call fcn.00402f30
sub esp, 0xc
lea ecx, [esp + 0x24]
push esi
call fcn.00403980
sub esp, 8
lea eax, [esp + 0x18]
lea ecx, [esp + 0xc8]
push eax
call fcn.004027a0
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x401f91
mov bl, byte [esp + 0x14]
lea ecx, [esp + 0xc0]
call fcn.00404500
cmp eax, 0xffffffff
movzx ebx, bl
movzx ecx, al
cmovne ebx, ecx
xor esi, esi
mov byte [esp + 0x14], bl
cmp dword [esp + 0x10], esi
jle 0x401f71
mov edi, dword [esp + 0x14]
lea ebx, [ebx]
push edi
lea ecx, [esp + 0x1c]
call fcn.00402d00
inc esi
cmp esi, dword [esp + 0x10]
jl 0x401f60
sub esp, 8
lea eax, [esp + 0x18]
lea ecx, [esp + 0xc8]
push eax
call fcn.004027a0
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x401f32
cmp dword [esp + 0x120], 0
lea esi, [esp + 0xd0]
jne 0x401fa6
xor esi, esi
jmp 0x401fcf
lea ecx, [esp + 0xd0]
call fcn.004048e0
push dword [esp + 0x120]
xor ecx, ecx
test al, al
cmove esi, ecx
call fcn.00407983
xor ecx, ecx
add esp, 4
test eax, eax
cmovne esi, ecx
mov byte [esp + 0x11c], 0
lea eax, [esp + 0xd4]
mov dword [esp + 0xdc], eax
lea eax, [esp + 0xd8]
mov dword [esp + 0xe0], eax
lea eax, [esp + 0xe4]
mov dword [esp + 0xec], eax
lea eax, [esp + 0xe8]
mov dword [esp + 0xf0], eax
lea eax, [esp + 0xf4]
mov dword [esp + 0xfc], eax
lea eax, [esp + 0xf8]
mov dword [esp + 0x100], eax
mov eax, dword [0x42a4d0]
mov byte [esp + 0x115], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xf8], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0xf4], 0
mov dword [esp + 0x120], 0
mov dword [esp + 0x118], eax
mov dword [esp + 0x110], 0
test esi, esi
jne 0x4020c4
mov eax, dword [esp + 0xc0]
lea ecx, [esp + 0xc0]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], esi
jne 0x4020bc
or eax, 4
push 0
push eax
call fcn.00401a00
cmp dword [esp + 0x6c], 0
lea esi, [esp + 0x1c]
jne 0x4020d3
xor esi, esi
jmp 0x4020f6
lea ecx, [esp + 0x1c]
call fcn.004048e0
push dword [esp + 0x6c]
xor ecx, ecx
test al, al
cmove esi, ecx
call fcn.00407983
xor ecx, ecx
add esp, 4
test eax, eax
cmovne esi, ecx
mov byte [esp + 0x68], 0
lea eax, [esp + 0x20]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x4c], eax
mov eax, dword [0x42a4d0]
mov byte [esp + 0x61], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x64], eax
mov dword [esp + 0x5c], 0
test esi, esi
jne 0x4021a0
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], esi
jne 0x402198
or eax, 4
push 0
push eax
call fcn.00401a00
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x18], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [esp + ecx + 0x14], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x1c], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
test eax, eax
je 0x4021f5
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x60]
cmp dword [esi], ecx
jne 0x4021f5
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [esp + 0x38]
mov dword [eax], ecx
mov eax, dword [esp + 0x48]
mov dword [eax], edx
mov eax, dword [esp + 0x6c]
cmp byte [esp + 0x68], 0
je 0x40229c
test eax, eax
je 0x402219
lea ecx, [esp + 0x1c]
call fcn.004048e0
push dword [esp + 0x6c]
call fcn.00407983
add esp, 4
lea eax, [esp + 0x20]
mov byte [esp + 0x68], 0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x4c], eax
mov eax, dword [0x42a4d0]
mov byte [esp + 0x61], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x64], eax
mov dword [esp + 0x5c], 0
mov esi, dword [esp + 0x50]
mov dword [esp + 0x1c], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
test esi, esi
je 0x4022cc
mov ecx, dword [esi]
test ecx, ecx
je 0x4022c3
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x4022c3
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push esi
call fcn.0040766d
add esp, 4
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x18], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [esp + ecx + 0x14], eax
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x7c], vtable.std::ios_base.0
call fcn.00405d02
mov eax, dword [esp + 0xc4]
add esp, 4
mov eax, dword [eax + 4]
mov dword [esp + eax + 0xc0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [esp + 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [esp + ecx + 0xbc], eax
mov ecx, dword [esp + 0x120]
mov dword [esp + 0xd0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
test ecx, ecx
je 0x40237a
mov eax, dword [esp + 0xdc]
lea edx, [esp + 0x114]
cmp dword [eax], edx
jne 0x40237a
mov ecx, dword [esp + 0x108]
mov edx, dword [esp + 0x10c]
mov dword [eax], ecx
sub edx, ecx
mov eax, dword [esp + 0xec]
mov dword [eax], ecx
mov eax, dword [esp + 0xfc]
mov dword [eax], edx
mov ecx, dword [esp + 0x120]
cmp byte [esp + 0x11c], 0
je 0x40246f
test ecx, ecx
je 0x4023a7
lea ecx, [esp + 0xd0]
call fcn.004048e0
push dword [esp + 0x120]
call fcn.00407983
add esp, 4
lea eax, [esp + 0xd4]
mov byte [esp + 0x11c], 0
mov dword [esp + 0xdc], eax
lea eax, [esp + 0xd8]
mov dword [esp + 0xe0], eax
lea eax, [esp + 0xe4]
mov dword [esp + 0xec], eax
lea eax, [esp + 0xe8]
mov dword [esp + 0xf0], eax
lea eax, [esp + 0xf4]
mov dword [esp + 0xfc], eax
lea eax, [esp + 0xf8]
mov dword [esp + 0x100], eax
mov eax, dword [0x42a4d0]
mov byte [esp + 0x115], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xf8], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0xf4], 0
mov dword [esp + 0x120], 0
mov dword [esp + 0x118], eax
mov dword [esp + 0x110], 0
mov esi, dword [esp + 0x104]
mov dword [esp + 0xd0], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
test esi, esi
je 0x4024a5
mov ecx, dword [esi]
test ecx, ecx
je 0x40249c
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x40249c
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push esi
call fcn.0040766d
add esp, 4
mov eax, dword [esp + 0xc0]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0xc0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [esp + 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [esp + ecx + 0xbc], eax
lea eax, [esp + 0x130]
push eax
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00405d02
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret