Function at 0x41d967
Capabilities:
Read file on windows

Disassembly:
push 0x2d4
mov eax, 0x42dcf2
call fcn.00428df4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
push 0x433500
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x74], esi
mov byte [ebp - 0x75], 0
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__::constructor_wchar_t_const__]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 4], esi
call fcn.0042382c
pop ecx
pop ecx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
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_]
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x88], esi
jae 0x41d9cd
lea eax, [ebp - 0x2c]
push 0x431600
push eax
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.MSVCR80.dll__wfopen_s]
mov edi, dword [ebp - 0x88]
add esp, 0xc
cmp edi, esi
jne 0x41da24
push 1
push 3
lea ecx, [ebp - 0x1d0]
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 0x432d70
lea ecx, [eax + 8]
mov byte [ebp - 4], 3
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 - 0x1d0]
mov byte [ebp - 4], 2
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 0x41deb6
call fcn.00423ad3
mov esi, eax
push esi
mov dword [ebp - 0x84], esi
call fcn.00424c96
mov ebx, eax
pop ecx
mov dword [ebp - 0x8c], ebx
mov byte [ebp - 4], 4
push dword [ebp - 0x88]
push esi
push 1
push ebx
call dword [sym.imp.MSVCR80.dll_fread]
push dword [ebp - 0x88]
mov edi, eax
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 0x14
cmp edi, esi
je 0x41daab
push 1
push 3
lea ecx, [ebp - 0x1d0]
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 0x432da0
lea ecx, [eax + 8]
mov byte [ebp - 4], 5
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
lea eax, [ebp - 0x30]
call fcn.0040de30
pop ecx
lea ecx, [ebp - 0x1d0]
mov byte [ebp - 4], 4
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_]
push ebx
jmp 0x41deb0
push esi
call fcn.00424c96
pop ecx
mov ecx, eax
xor eax, eax
lea edi, [ebp - 0x80]
stosb byte es:[edi], al
push dword [ebp - 0x80]
mov dword [ebp - 0x94], ecx
push ecx
lea ecx, [ebp - 0x90]
call fcn.0041c5b4
lea eax, [ebp - 0x84]
push eax
add esi, 0xfffffff0
push ebx
mov byte [ebp - 4], 6
push esi
mov esi, dword [ebp - 0x94]
lea edx, [ebx + 0x10]
mov ecx, esi
call fcn.00423f2a
add esp, 0xc
test eax, eax
push 1
jne 0x41db44
push 3
lea ecx, [ebp - 0x1d0]
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], 7
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 - 0x1d0]
mov byte [ebp - 4], 6
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 - 4], 4
mov ecx, dword [ebp - 0x90]
test ecx, ecx
je 0x41daa5
call fcn.0040a05e
jmp 0x41daa5
push 1
lea ecx, [ebp - 0x258]
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], 8
mov eax, dword [ebp - 0x84]
add eax, esi
push eax
push esi
lea eax, [ebp - 0xbc]
push eax
call fcn.0040f709
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 9
call fcn.0040f731
push eax
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 0xa
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 - 0x4c]
mov byte [ebp - 4], 9
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 - 0xbc]
mov byte [ebp - 4], 8
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 - 0x6c]
push eax
call fcn.0040f4e0
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x258]
push eax
mov byte [ebp - 4], 0xc
call fcn.0040f764
pop ecx
pop ecx
xor eax, eax
lea edi, [ebp - 0x80]
stosb byte es:[edi], al
push dword [ebp - 0x80]
lea eax, [ebp - 0xc8]
push str.version
push eax
call fcn.0040f643
lea edx, [ebp - 0xc8]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0xd
call fcn.0040f67d
mov ecx, dword [ebp - 0x7c]
mov dword [ecx], eax
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0xc
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 - 0x4c]
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__::constructor_void_]
xor eax, eax
mov byte [ebp - 4], 0xe
lea edi, [ebp - 0x7c]
stosb byte es:[edi], al
push dword [ebp - 0x7c]
lea eax, [ebp - 0xc8]
push str.files
push eax
call fcn.0040f643
lea esi, [ebp - 0xc8]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 0x14
call fcn.0040f561
mov esi, eax
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0x7c], esi
mov byte [ebp - 4], 0x13
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 - 0x7c]
lea eax, [ebp - 0xd0]
call fcn.0040f6dd
mov eax, dword [esi + 0x1c]
add eax, 9
mov ecx, eax
add eax, 0xfffffff7
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ecx + 4]
xor ecx, ecx
lea ebx, [ebp - 0xd0]
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x9c], eax
mov byte [ebp - 0x6d], 1
cmp byte [ebp - 0x6d], 0
je 0x41dca9
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0xa0]
cmp ecx, dword [eax + 4]
mov byte [ebp - 0x6d], 1
jne 0x41dcad
mov byte [ebp - 0x6d], 0
mov dword [ebp - 4], 0x25
test dword [ebp - 0x74], 0x400000
je 0x41dcd0
and dword [ebp - 0x74], 0xffbfffff
lea ecx, [ebp - 0xf8]
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_]
push 0xe
pop esi
mov dword [ebp - 4], esi
test dword [ebp - 0x74], 0x200000
je 0x41dcf2
and dword [ebp - 0x74], 0xffdfffff
lea ecx, [ebp - 0xc8]
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_]
cmp byte [ebp - 0x6d], 0
je 0x41de62
mov dword [ebp - 4], 0x27
test dword [ebp - 0x74], 0x1000000
mov byte [ebp - 0x6d], 0
je 0x41dd23
and dword [ebp - 0x74], 0xfeffffff
lea ecx, [ebp - 0x120]
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_]
mov dword [ebp - 4], esi
test dword [ebp - 0x74], 0x800000
je 0x41dd42
and dword [ebp - 0x74], 0xff7fffff
lea ecx, [ebp - 0x148]
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_]
cmp byte [ebp - 0x6d], 0
jne 0x41de10
xor eax, eax
lea edi, [ebp - 0x7c]
stosb byte es:[edi], al
push dword [ebp - 0x7c]
lea eax, [ebp - 0xf8]
push str.file
push eax
call fcn.0040f643
mov byte [ebp - 4], 0x29
mov eax, dword [ebx + 4]
lea ecx, [eax + 0x1c]
lea eax, [ebp - 0xbc]
push eax
lea esi, [ebp - 0xf8]
mov dword [ebp - 0x84], ecx
call fcn.0040f79e
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x2a
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0x29
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_]
mov ecx, esi
mov byte [ebp - 4], 0xe
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_]
xor eax, eax
lea edi, [ebp - 0x80]
stosb byte es:[edi], al
push dword [ebp - 0x80]
lea eax, [ebp - 0xf8]
push str.version
push eax
call fcn.0040f643
mov byte [ebp - 4], 0x2b
mov ecx, dword [ebp - 0x84]
lea edx, [ebp - 0xf8]
call fcn.0040f67d
lea ecx, [ebp - 0xf8]
mov esi, eax
mov byte [ebp - 4], 0xe
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_]
mov ecx, dword [ebp - 0x98]
lea eax, [ebp - 0x4c]
push eax
call fcn.0040c9ae
push 0xe
mov dword [eax], esi
mov byte [ebp - 0x6d], 1
pop esi
jmp 0x41dd42
mov eax, ebx
call fcn.00410398
mov dword [ebp - 4], 0x23
test dword [ebp - 0x74], 0x100000
je 0x41de3a
and dword [ebp - 0x74], 0xffefffff
lea ecx, [ebp - 0x148]
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_]
mov dword [ebp - 4], esi
test dword [ebp - 0x74], 0x80000
je 0x41dc91
and dword [ebp - 0x74], 0xfff7ffff
lea ecx, [ebp - 0x120]
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_]
jmp 0x41dc91
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xc
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_]
mov dword [ebp - 4], 0xb
mov byte [ebp - 0x75], 1
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 8
call fcn.0040f526
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 6
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_]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x90]
test ecx, ecx
je 0x41deaa
call fcn.0040a05e
push dword [ebp - 0x8c]
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
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_]
mov al, byte [ebp - 0x75]
call fcn.00428e50
ret