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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
jne 0x4d0c8f
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret 4
push ebx
call fcn.004cf5a0
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor esi, esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], ebx
cmp eax, 0xffffffff
je 0x4d0ddb
lea ecx, [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x34], ebx
jne 0x4d0d2e
push esi
lea eax, [ebp - 0x34]
push eax
push 0xe
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d0d2e
mov ax, word [ebp - 0x14]
mov ecx, 0x4d42
cmp ax, cx
jne 0x4d0d32
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x12], eax
jne 0x4d0dc9
add eax, 0xfffffff2
push eax
mov dword [ebp - 0x30], eax
call fcn.005ad9be
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x30]
push esi
push eax
push dword [ebp - 0x30]
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push dword [ebp - 0x38]
call eax
mov esi, 1
jmp 0x4d0dc9
mov ax, word [ebp - 0x14]
test ax, ax
jne 0x4d0dc9
cmp word [ebp - 0x12], 1
jne 0x4d0dc9
mov eax, dword [ebp - 0xc]
movq xmm0, qword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov ax, word [ebp - 8]
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x34]
push 0
push eax
push 8
lea eax, [ebp - 0x1e]
movq qword [ebp - 0x2c], xmm0
push eax
push dword [ebp - 0x38]
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
call eax
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x1e]
mov dword [ebp - 0x30], eax
jne 0x4d0dc9
mov edx, dword [ebp - 0x1a]
mov ecx, dword [ebp - 0x3c]
cmp ecx, edx
jbe 0x4d0dc9
add eax, edx
cmp ecx, eax
jb 0x4d0dc9
mov esi, dword [ebp - 0x38]
push 0
push 0
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp - 0x30]
call fcn.005ad9be
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x34]
push 0
push eax
push dword [ebp - 0x30]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, byte [ebp - 0x25]
mov esi, 2
mov dword [ebx + 8], eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4d0ddb
mov edx, dword [ebp - 0x30]
jmp 0x4d0dea
mov edx, 0x78
mov ebx, 0x605778
mov dword [ebp - 0x30], edx
xor esi, esi
cmp ebx, dword [edi + 0xc]
je 0x4d0e06
cmp ebx, dword [edi + 0x10]
je 0x4d0e06
cmp ebx, dword [edi + 0x14]
je 0x4d0e06
push ebx
call fcn.004d1290
add esp, 4
add eax, ebx
jmp 0x4d0e08
mov eax, dword [edi]
push ebx
mov dword [edi], eax
mov dword [edi + 0xc], ebx
call fcn.004d1290
add esp, 4
mov dword [edi + 0x24], eax
mov eax, esi
mov dword [edi + 0x20], ebx
pop ebx
sub eax, 0
je 0x4d0e33
sub eax, 2
jne 0x4d0e3a
push edx
mov ecx, edi
call fcn.004d07b0
jmp 0x4d0e3a
mov dword [edi + 0x20], 0
mov ecx, dword [edi + 0x48]
neg esi
sbb esi, esi
and ecx, 0xffffffef
and esi, 0x10
or esi, ecx
mov ecx, dword [ebp - 4]
mov dword [edi + 0x48], esi
xor ecx, ebp
shr esi, 4
and esi, 1
pop edi
mov eax, esi
pop esi
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret 4