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

Disassembly:
mov eax, 0x5abb46
call fcn.00591b5c
sub esp, 0xc0
mov dword [ebp - 0xcc], ecx
mov eax, dword [ebp - 0xcc]
movzx eax, byte [eax + 8]
cmp eax, 0xdb
je 0x4d1994
push 0
call fcn.004d177c
pop ecx
mov eax, dword [ebp - 0xcc]
cmp dword [eax + 0xc], 0
je 0x4d19d3
mov eax, dword [ebp - 0xcc]
movzx eax, byte [eax + 9]
test eax, eax
jne 0x4d19c9
mov eax, dword [ebp - 0xcc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xbc], eax
push dword [ebp - 0xbc]
call fcn.00565be4
pop ecx
mov eax, dword [ebp - 0xcc]
and dword [eax + 0xc], 0
mov eax, dword [ebp - 0xcc]
and dword [eax + 0x10], 0
mov eax, dword [ebp - 0xcc]
and dword [eax + 0x14], 0
mov eax, dword [ebp - 0xcc]
and byte [eax + 9], 0
lea ecx, [ebp - 0x7c]
call fcn.004d00b6
and dword [ebp - 4], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x7c]
call fcn.004d0534
push dword [ebp + 0xc]
lea eax, [ebp - 0x7c]
push eax
call fcn.004d5a6a
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4d1a3d
and byte [ebp - 0xbd], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.004d018e
mov al, byte [ebp - 0xbd]
jmp 0x4d1c67
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x4d1ac1
cmp dword [ebp + 0xc], 0
je 0x4d1a97
lea ecx, [ebp - 0x9c]
call fcn.004cde9c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x9c]
call fcn.004cfd54
lea ecx, [ebp - 0x9c]
call fcn.0055420c
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x10]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x9c]
call fcn.004ce1b7
push 0
push dword [ebp - 0x10]
call fcn.004e81eb
pop ecx
pop ecx
and byte [ebp - 0xbe], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.004d018e
mov al, byte [ebp - 0xbe]
jmp 0x4d1c67
cmp dword [ebp - 0x1c], 0
jne 0x4d1af1
push 0
push dword [ebp - 0x10]
call fcn.004e81eb
pop ecx
pop ecx
mov byte [ebp - 0xbf], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.004d018e
mov al, byte [ebp - 0xbf]
jmp 0x4d1c67
mov eax, dword [ebp - 0x1c]
add eax, 4
push eax
call fcn.00565bb9
pop ecx
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xc4]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 0xcc]
cmp dword [eax + 0xc], 0
jne 0x4d1b72
cmp dword [ebp + 0xc], 0
je 0x4d1b48
push str.Out_of_memory_when_loading_Unicode_file_into_data_buffer.
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x10]
push dword [ebp - 0x1c]
push str.fileSize
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x2c]
push 0
push dword [ebp - 0x10]
call fcn.004e81eb
pop ecx
pop ecx
and byte [ebp - 0xc5], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.004d018e
mov al, byte [ebp - 0xc5]
jmp 0x4d1c67
mov eax, dword [ebp - 0x1c]
add eax, 4
push eax
push 0
mov eax, dword [ebp - 0xcc]
push dword [eax + 0xc]
call fcn.0058ee10
add esp, 0xc
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x10], ecx
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x14], ecx
and dword [ebp - 0x80], 0
push 0
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0xcc]
push dword [eax + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x15], 1
cmp dword [ebp - 0x14], 0
jne 0x4d1c1a
cmp dword [ebp + 0xc], 0
je 0x4d1c16
lea ecx, [ebp - 0xb8]
call fcn.004cde9c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb8]
call fcn.004cfd54
lea ecx, [ebp - 0xb8]
call fcn.0055420c
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x10]
and byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.004ce1b7
and byte [ebp - 0x15], 0
mov eax, dword [ebp - 0x80]
cmp eax, dword [ebp - 0x1c]
je 0x4d1c3c
cmp dword [ebp + 0xc], 0
je 0x4d1c38
push str.Failed_to_read_the_entire_file
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x10]
and byte [ebp - 0x15], 0
push 0
push dword [ebp - 0x10]
call fcn.004e81eb
pop ecx
pop ecx
or dword [ebp - 0x10], 0xffffffff
mov al, byte [ebp - 0x15]
mov byte [ebp - 0xc6], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.004d018e
mov al, byte [ebp - 0xc6]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 8