Function at 0x4c60d4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov eax, dword [0x6ebc48]
test eax, eax
je 0x4c6126
push dword [0x6ebc4c]
push dword [ebp + 0x14]
mov edx, dword [0x777e38]
test edx, edx
jns 0x4c60fc
add edx, 0x7ff
sar edx, 0xb
mov ecx, dword [ebp + 0xc]
add edx, ecx
push edx
push dword [ebp + 0x10]
call fcn.0046f1c0
add esp, 0x10
test eax, eax
je 0x4c611f
mov eax, dword [ebp + 0x14]
shl eax, 0xb
jmp 0x4c6343
xor eax, eax
jmp 0x4c6343
mov edx, dword [0x777e28]
test edx, edx
je 0x4c614c
push dword [0x7e5ac8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.0050c6d8
add esp, 0x10
jmp 0x4c6343
mov ecx, dword [0x777e2c]
test ecx, ecx
je 0x4c6171
push 0xa3b7a0
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.00556880
add esp, 0x10
jmp 0x4c6343
mov eax, dword [0xa820d8]
test eax, eax
je 0x4c6195
push 0xa3b7a0
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.005586a0
add esp, 0x10
jmp 0x4c6343
mov edx, dword [0xa820dc]
test edx, edx
je 0x4c61ba
push 0xa3b7a0
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.00559014
add esp, 0x10
jmp 0x4c6343
mov ecx, dword [0x777e18]
test ecx, ecx
je 0x4c61dd
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004c5e98
add esp, 0x10
jmp 0x4c6343
mov eax, dword [ebp + 0xc]
cdq
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov eax, dword [0x777e30]
cdq
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
call fcn.00674900
push edx
push eax
mov eax, dword [0x777e38]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.KERNEL32.DLL_SetFilePointer
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
jne 0x4c623e
call sub.KERNEL32.DLL_GetLastError
test eax, eax
je 0x4c623e
xor eax, eax
jmp 0x4c6343
mov edx, dword [ebp + 0x14]
imul edx, dword [0x777e30]
mov dword [ebp - 0x14], edx
mov ecx, dword [0x777e30]
cmp ecx, 0x800
jne 0x4c6282
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call sub.KERNEL32.DLL_ReadFile
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp edx, ecx
je 0x4c633d
xor eax, eax
jmp 0x4c6343
push dword [ebp - 0x14]
call fcn.0066c62c
pop ecx
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
test edx, edx
jne 0x4c62b6
push 0x59fa
call fcn.00402b9c
pop ecx
push eax
push dword [0x76875c]
call fcn.00462a84
add esp, 8
xor eax, eax
jmp 0x4c6343
push 0
lea edx, [ebp - 0x18]
push edx
push dword [ebp - 0x14]
push dword [ebp - 0x24]
push dword [ebp + 8]
call sub.KERNEL32.DLL_ReadFile
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
cmp ecx, eax
je 0x4c62e1
push dword [ebp - 0x24]
call fcn.0066c63c
pop ecx
xor eax, eax
jmp 0x4c6343
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x28], edx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
cmp eax, edx
jge 0x4c6334
push 0x800
mov ecx, dword [ebp - 4]
imul ecx, dword [0x777e30]
mov eax, dword [ebp - 0x24]
add ecx, eax
mov edx, dword [0x777e34]
add ecx, edx
push ecx
mov ecx, dword [ebp - 4]
shl ecx, 0xb
mov eax, dword [ebp - 0x28]
add ecx, eax
push ecx
call fcn.0066cc18
add esp, 0xc
inc dword [ebp - 4]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
cmp edx, ecx
jl 0x4c62f6
push dword [ebp - 0x24]
call fcn.0066c63c
pop ecx
mov eax, dword [ebp + 0x14]
shl eax, 0xb
mov esp, ebp
pop ebp
ret