Function at 0x40dfb0
Capabilities:
Read file on windows

Disassembly:
push 0x1ec
mov eax, 0x42dabe
call fcn.00428d88
mov esi, ecx
and dword [ebp - 0x18], 0
cmp dword [esi + 0x18], 8
mov byte [ebp - 0x11], 1
jb 0x40dfd4
mov eax, dword [esi + 4]
jmp 0x40dfd7
lea eax, [esi + 4]
push 0x431600
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.MSVCR80.dll__wfopen_s]
mov edi, dword [ebp - 0x18]
add esp, 0xc
test edi, edi
jne 0x40e034
push 1
push 3
lea ecx, [ebp - 0xe4]
mov byte [ebp - 0x11], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
and dword [ebp - 4], edi
push 0x431608
lea ecx, [eax + 8]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const__]
push eax
mov eax, esi
call fcn.0040de30
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0xe4]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
jmp 0x40e1f9
call fcn.00423ad3
mov edi, eax
push edi
mov dword [ebp - 0x20], edi
call fcn.00424c96
mov ebx, eax
pop ecx
mov dword [ebp - 0x24], ebx
xor eax, eax
inc eax
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
push edi
push eax
push ebx
call dword [sym.imp.MSVCR80.dll_fread]
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 0x14
cmp dword [ebp - 0x1c], edi
je 0x40e0b4
push 1
push 3
lea ecx, [ebp - 0xe4]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
push 0x431618
lea ecx, [eax + 8]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const__]
push eax
mov eax, esi
call fcn.0040de30
pop ecx
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
mov byte [ebp - 0x11], 0
jmp 0x40e1f2
push edi
call fcn.00424c96
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x20]
push eax
push ebx
add edi, 0xfffffff0
push edi
lea edx, [ebx + 0x10]
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00423f2a
add esp, 0xc
test eax, eax
push 1
jne 0x40e119
push 3
lea ecx, [ebp - 0xe4]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
push 0x431628
lea ecx, [eax + 8]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const__]
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
mov byte [ebp - 0x11], 0
jmp 0x40e1eb
push 1
lea ecx, [ebp - 0x170]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_istringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_int_]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x20]
add eax, esi
push eax
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.0040f709
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 6
call fcn.0040f731
push eax
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_istringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::str_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 6
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea eax, [ebp - 0x170]
push 0x45f654
push eax
mov byte [ebp - 4], 8
call fcn.0040f764
pop ecx
pop ecx
mov dword [ebp - 4], 5
jmp 0x40e1db
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_istringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::vbase_dtor_void_]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
mov al, byte [ebp - 0x11]
call fcn.00428e2d
ret