Function at 0x4c5a7c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
xor edx, edx
mov dword [0x76ed48], edx
xor ecx, ecx
mov dword [ebp - 0x30], ecx
imul eax, dword [0x76ed48], 0x25
mov edx, dword [eax*8 + 0xa74814]
mov ecx, dword [ebp + 0xc]
cmp edx, ecx
ja 0x4c5abf
imul eax, dword [0x76ed48], 0x25
mov edx, dword [eax*8 + 0xa74818]
mov ecx, dword [ebp + 0xc]
cmp edx, ecx
jae 0x4c5ae0
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0xc]
call fcn.004b95cb
add esp, 8
test eax, eax
jne 0x4c5ad9
xor eax, eax
jmp 0x4c5cb2
mov dword [ebp - 0x30], 1
imul edx, dword [0x76ed48], 0x25
mov eax, dword [ebp + 0xc]
mov edx, dword [edx*8 + 0xa74814]
sub eax, edx
xor edx, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
push 0
push 0x800
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
call fcn.006744e4
push edx
push eax
imul ecx, dword [0x76ed48], 0x25
mov eax, dword [ecx*8 + 0xa74820]
xor edx, edx
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 - 0x2c]
call sub.KERNEL32.DLL_SetFilePointer
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
jne 0x4c5b6a
call sub.KERNEL32.DLL_GetLastError
test eax, eax
je 0x4c5b6a
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x4c5b63
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4c5cb2
imul edx, dword [0x76ed48], 0x25
mov ecx, dword [edx*8 + 0xa74818]
mov eax, dword [ebp + 0xc]
sub ecx, eax
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp + 0x14]
cmp edx, ecx
jl 0x4c5bcb
mov eax, dword [ebp + 0x14]
shl eax, 0xb
mov dword [ebp - 0x14], eax
push 0
lea edx, [ebp - 0x18]
push edx
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_ReadFile
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
cmp ecx, eax
je 0x4c5c9d
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x4c5bc4
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4c5cb2
mov edx, dword [ebp - 0x28]
shl edx, 0xb
imul ecx, dword [0x76ed48], 0x25
mov eax, dword [ecx*8 + 0xa74830]
add edx, eax
mov dword [ebp - 0x14], edx
push 0
lea edx, [ebp - 0x18]
push edx
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_ReadFile
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
cmp ecx, eax
je 0x4c5c18
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x4c5c11
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4c5cb2
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x4c5c27
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_CloseHandle
lea ecx, [ebp - 0x2c]
push ecx
call fcn.004b9646
pop ecx
test eax, eax
jne 0x4c5c39
xor eax, eax
jmp 0x4c5cb2
mov dword [ebp - 0x30], 1
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x28]
sub edx, ecx
dec edx
shl edx, 0xb
imul eax, dword [0x76ed48], 0x25
mov ecx, dword [eax*8 + 0xa74820]
add edx, ecx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x1c]
test edx, edx
jbe 0x4c5c9d
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
add edx, ecx
push edx
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_ReadFile
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
cmp eax, edx
je 0x4c5c9d
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x4c5c99
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4c5cb2
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x4c5cac
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp + 0x14]
shl eax, 0xb
mov esp, ebp
pop ebp
ret