Function at 0x5375f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x6d48e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
test ebx, ebx
jne 0x537622
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00598fe4
mov esp, ebp
pop ebp
ret 4
push 0x5a943c
push ebx
call dword [sym.imp.MSVCR120.dll_fopen]
lea edx, [edi + 0x30]
mov dword [edi + 4], eax
add esp, 8
mov ecx, ebx
sub edx, ebx
jmp 0x537640
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x537640
mov eax, dword [edi + 4]
test eax, eax
je 0x53760e
push esi
mov esi, dword [sym.imp.MSVCR120.dll_fseek]
push 2
push 0
push eax
call esi
push dword [edi + 4]
call dword [sym.imp.MSVCR120.dll_ftell]
push 0
push 0
push dword [edi + 4]
mov dword [ebp - 0x208], eax
call esi
mov ecx, dword [edi + 0x28]
add esp, 0x1c
test ecx, ecx
je 0x537694
push ecx
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [edi + 0x28], 0
push dword [edi + 4]
lea esi, [edi + 0x18]
mov dword [edi + 0x14], 0
push 1
push 0xc
push esi
mov dword [edi + 0x2c], 0
call dword [sym.imp.MSVCR120.dll_fread]
mov eax, dword [esi]
lea ecx, [edi + 0x134]
sub eax, dword [edi + 0x1c]
add esp, 0x10
sub eax, dword [edi + 0x20]
push eax
call fcn.00407630
test eax, eax
jne 0x53770c
push ebx
lea eax, [ebp - 0x104]
push str.Bin_File_Version_Error_____s
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x104]
push 0
push 0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00598fe4
mov esp, ebp
pop ebp
ret 4
lea ecx, [edi + 0x134]
call fcn.00407610
test eax, eax
je 0x5377b4
mov esi, dword [ebp - 0x208]
add esi, 0xfffffff2
push esi
call fcn.00598fce
add esp, 4
mov dword [edi + 0x28], eax
test eax, eax
je 0x5376f7
push esi
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [edi + 0x134]
push dword [edi + 0x1c]
push esi
push dword [edi + 0x28]
push dword [edi + 4]
call fcn.004073c0
test eax, eax
jne 0x537782
push ebx
lea eax, [ebp - 0x204]
push str.File_Open_Error_:__s
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x204]
push 0
push 0
jmp 0x5376ee
push dword [edi + 4]
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 0x2c], 1
mov eax, 1
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00598fe4
mov esp, ebp
pop ebp
ret 4
push dword [edi + 4]
mov esi, dword [sym.imp.MSVCR120.dll_fread]
lea eax, [edi + 0x24]
push 1
push 1
push eax
call esi
mov eax, dword [edi + 0x20]
add esp, 0x10
test eax, eax
je 0x5377e8
push eax
call fcn.00598fce
push dword [edi + 4]
mov dword [edi + 0x28], eax
push dword [edi + 0x20]
push 1
push eax
call esi
add esp, 0x14
push dword [edi + 4]
lea eax, [edi + 0x25]
push 1
push 1
push eax
call esi
push dword [edi + 4]
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 0x14
mov dword [edi + 4], 0
mov ecx, edi
call fcn.00536a90
test eax, eax
je 0x5376f7
mov ecx, edi
call fcn.005369e0
test eax, eax
je 0x5376f7
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
mov dword [edi + 0x2c], 1
xor ecx, ebp
pop edi
pop ebx
call fcn.00598fe4
mov esp, ebp
pop ebp
ret 4