Function at 0x507070
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x420]
sub esp, 0x420
push 0xffffffffffffffff
push 0x535581
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5b339c]
xor eax, ebp
mov dword [ebp + 0x41c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x428]
mov dword [ebp - 0x28], edi
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], str.bil::CRootDevLinkNode::GetFileStream
mov dword [ebp - 0x1c], eax
lea ecx, [ebp]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov byte [ebp - 4], 2
mov byte [ebp - 0x11], 1
push 0x545c9c
lea ecx, [ebp + 0x42c]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCR90.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x5071cb
push 0x4e49d0
call dword [sym.imp.MSVCR90.dll_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS_____cdecl__set_se_translator_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS___]
add esp, 4
mov dword [ebp - 0x20], eax
mov bl, 3
mov byte [ebp - 4], bl
mov esi, dword [sym.imp.MSVCR90.dll_fread]
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x400
push 1
lea edx, [ebp + 0x1c]
push edx
call esi
add esp, 0x10
test eax, eax
jbe 0x507161
push eax
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int_]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp]
call dword [0x5391f8]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x50711f
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.MSVCR90.dll_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS_____cdecl__set_se_translator_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS___]
add esp, 4
mov dword [ebp - 4], 2
jmp 0x5071b8
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
cmp byte [ebp - 0x11], 0
je 0x5071f9
lea edx, [ebp]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.00403770
mov byte [ebp - 4], 6
push eax
push edi
call fcn.00518000
add esp, 0x10
or dword [ebp - 0x18], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x50720a
push 0x57ea28
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
or dword [ebp - 0x18], 1
mov byte [ebp - 4], 1
lea ecx, [ebp]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x42c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x41c]
xor ecx, ebp
call fcn.0051973e
add ebp, 0x420
mov esp, ebp
pop ebp
ret 0x20