Function at 0x4c7ad4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x3c], edx
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0x930
jle 0x4c7af2
sub dword [ebp - 0x3c], 0x60
mov eax, dword [ebp - 0x3c]
add eax, 0xfffff6e0
mov dword [ebp - 0x40], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
cmp ecx, 3
jne 0x4c7b36
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
mov eax, dword [ebp + 0xc]
add eax, 0x124
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
cmp edx, 0xffffffff
jne 0x4c7b3c
xor eax, eax
jmp 0x4c7e40
mov edx, dword [ebp + 8]
mov dword [ebp - 0x38], edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0xc]
cdq
push edx
push eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0xc]
dec eax
cdq
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0x230]
adc edx, dword [ecx + 0x234]
call fcn.0067499b
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x238]
sub ecx, eax
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x2c], ecx
xor eax, eax
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
cmp edx, ecx
jge 0x4c7d6a
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
imul dword [ebp - 0x1c]
cdq
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0x228]
adc edx, dword [ecx + 0x22c]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_SetFilePointer
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
cmp edx, 0xffffffff
jne 0x4c7bf1
call sub.KERNEL32.DLL_GetLastError
test eax, eax
je 0x4c7bf1
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp eax, 3
jne 0x4c7bea
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4c7e40
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
add edx, ecx
mov eax, dword [ebp - 0x14]
cmp edx, eax
jle 0x4c7c0b
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
sub edx, ecx
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
imul edx, dword [ebp - 0x20]
mov dword [ebp - 0x28], edx
imul ecx, dword [ebp - 0x20], 0x930
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
cmp edx, 0x930
jne 0x4c7c78
push 0
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_ReadFile
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
cmp eax, edx
je 0x4c7c67
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp eax, 3
jne 0x4c7c60
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4c7e40
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp - 0x24]
add dword [ebp - 0x2c], ecx
jmp 0x4c7d6a
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x28]
push 0x8685f8
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_ReadFile
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
cmp edx, ecx
je 0x4c7cb1
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
cmp edx, 3
jne 0x4c7caa
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4c7e40
mov dword [ebp - 0x30], 0x8685f8
xor edx, edx
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
cmp ecx, eax
jge 0x4c7d6a
push 0xc
push 0x760da8
push dword [ebp - 0x2c]
call fcn.0066cc18
add esp, 0xc
lea edx, [ebp - 0x33]
push edx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
add ecx, eax
push ecx
call fcn.004ac3cc
add esp, 8
movsx edx, byte [ebp - 0x33]
push edx
call fcn.004ac358
pop ecx
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0xc], al
movsx eax, byte [ebp - 0x32]
push eax
call fcn.004ac358
pop ecx
mov edx, dword [ebp - 0x2c]
mov byte [edx + 0xd], al
movsx ecx, byte [ebp - 0x31]
push ecx
call fcn.004ac358
pop ecx
mov edx, dword [ebp - 0x2c]
mov byte [edx + 0xe], al
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0xf], 2
push 0x920
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x40]
add ecx, eax
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x10
push edx
call fcn.0066cc18
add esp, 0xc
add dword [ebp - 0x2c], 0x930
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0xc]
add dword [ebp - 0x30], eax
inc dword [ebp - 0x18]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
cmp edx, ecx
jl 0x4c7ccb
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0x18]
cmp eax, edx
jge 0x4c7e27
push 0xc
push 0x760da8
push dword [ebp - 0x2c]
call fcn.0066cc18
add esp, 0xc
lea ecx, [ebp - 0x33]
push ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x18]
add eax, edx
push eax
call fcn.004ac3cc
add esp, 8
movsx ecx, byte [ebp - 0x33]
push ecx
call fcn.004ac358
pop ecx
mov edx, dword [ebp - 0x2c]
mov byte [edx + 0xc], al
movsx eax, byte [ebp - 0x32]
push eax
call fcn.004ac358
pop ecx
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0xd], al
movsx eax, byte [ebp - 0x31]
push eax
call fcn.004ac358
pop ecx
mov edx, dword [ebp - 0x2c]
mov byte [edx + 0xe], al
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0xf], 2
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x12], 0x20
mov edx, dword [ebp - 0x2c]
mov byte [edx + 0x16], 0x20
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x92c], 0x3f
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x92d], 0x13
mov edx, dword [ebp - 0x2c]
mov byte [edx + 0x92e], 0xb0
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x92f], 0xbe
add dword [ebp - 0x2c], 0x930
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0x18]
cmp eax, edx
jl 0x4c7d78
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp eax, 3
jne 0x4c7e39
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_CloseHandle
imul eax, dword [ebp + 0x18], 0x930
mov esp, ebp
pop ebp
ret