Function at 0x4c5e98
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 [0x777e54], edx
xor ecx, ecx
mov dword [ebp - 0x30], ecx
imul eax, dword [0x777e54], 0x25
mov edx, dword [eax*8 + 0xa821e8]
mov ecx, dword [ebp + 0xc]
cmp edx, ecx
ja 0x4c5edb
imul eax, dword [0x777e54], 0x25
mov edx, dword [eax*8 + 0xa821ec]
mov ecx, dword [ebp + 0xc]
cmp edx, ecx
jae 0x4c5efc
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0xc]
call fcn.004b98b3
add esp, 8
test eax, eax
jne 0x4c5ef5
xor eax, eax
jmp 0x4c60ce
mov dword [ebp - 0x30], 1
imul edx, dword [0x777e54], 0x25
mov eax, dword [ebp + 0xc]
mov edx, dword [edx*8 + 0xa821e8]
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.00674900
push edx
push eax
imul ecx, dword [0x777e54], 0x25
mov eax, dword [ecx*8 + 0xa821f4]
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 0x4c5f86
call sub.KERNEL32.DLL_GetLastError
test eax, eax
je 0x4c5f86
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x4c5f7f
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4c60ce
imul edx, dword [0x777e54], 0x25
mov ecx, dword [edx*8 + 0xa821ec]
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 0x4c5fe7
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 0x4c60b9
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x4c5fe0
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4c60ce
mov edx, dword [ebp - 0x28]
shl edx, 0xb
imul ecx, dword [0x777e54], 0x25
mov eax, dword [ecx*8 + 0xa82204]
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 0x4c6034
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x4c602d
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4c60ce
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x4c6043
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_CloseHandle
lea ecx, [ebp - 0x2c]
push ecx
call fcn.004b992e
pop ecx
test eax, eax
jne 0x4c6055
xor eax, eax
jmp 0x4c60ce
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 [0x777e54], 0x25
mov ecx, dword [eax*8 + 0xa821f4]
add edx, ecx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x1c]
test edx, edx
jbe 0x4c60b9
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 0x4c60b9
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x4c60b5
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4c60ce
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x4c60c8
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp + 0x14]
shl eax, 0xb
mov esp, ebp
pop ebp
ret