Function at 0x4d0c57
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x654b34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push ebx
mov dword [ebp - 0x24], edi
call fcn.004d03a7
pop ecx
test eax, eax
jne 0x4d0c98
cmp dword [ebx + 0x14], 8
jb 0x4d0c86
mov ebx, dword [ebx]
push ebx
push str.CFileSystem::LoadFileContent__LoadFileContent_file_s_not_exist
call fcn.004d157e
pop ecx
pop ecx
jmp 0x4d0e26
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x4d0ca2
mov eax, dword [ebx]
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push 7
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x4d0e09
test eax, eax
je 0x4d0e09
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x6656a8
mov dword [ebp - 0x2c], eax
lea ecx, [eax + 2]
push ecx
call fcn.0056b255
mov esi, eax
mov dword [ebp - 0x30], esi
pop ecx
pop ecx
test esi, esi
jne 0x4d0d11
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CFileSystem::LoadFileContent___out_of_memory___d
call fcn.004d157e
pop ecx
pop ecx
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4d0e26
mov eax, dword [ebp - 0x2c]
mov ecx, esi
add eax, 2
je 0x4d0d24
mov byte [ecx], 0
inc ecx
sub eax, 1
jne 0x4d0d1b
mov edi, dword [ebp - 0x28]
xor eax, eax
push eax
push eax
push eax
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x2c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x28]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x4d0d8f
cmp dword [ebx + 0x14], 8
jb 0x4d0d5e
mov ebx, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.CFileSystem::LoadFileContent___read__s_failed___d
call fcn.004d157e
mov ecx, dword [ebp - 0x24]
add esp, 0xc
push 0x609dc0
call 0x41792d
push esi
call fcn.0056b239
mov eax, dword [ebp - 0x24]
pop ecx
jmp 0x4d0e34
xor ebx, ebx
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
cmp byte [esi], 0xff
jne 0x4d0dcd
cmp byte [esi + 1], 0xfe
jne 0x4d0dcd
push ebx
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004d3384
add esp, 0xc
lea ecx, [ebp - 0x20]
push eax
call fcn.0041627d
lea ecx, [ebp - 0x48]
call fcn.00417c81
jmp 0x4d0dde
push esi
call fcn.00576890
pop ecx
push eax
push esi
lea ecx, [ebp - 0x20]
call fcn.004178c5
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov byte [ebp - 0x24], bl
mov ecx, edi
push dword [ebp - 0x24]
push eax
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
call fcn.00417528
lea ecx, [ebp - 0x20]
call fcn.00417c81
push esi
call fcn.0056b239
pop ecx
jmp 0x4d0e32
cmp dword [ebx + 0x14], 8
jb 0x4d0e11
mov ebx, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.CFileSystem::LoadFileContent___open__s_failed___d
call fcn.004d157e
add esp, 0xc
push 0x609dc0
mov ecx, edi
call 0x41792d
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056ac5f
leave
ret