Function at 0x4c76b8
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 0x4c76d6
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 0x4c771a
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 0x4c7720
xor eax, eax
jmp 0x4c7a24
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.0067457f
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 0x4c794e
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 0x4c77d5
call sub.KERNEL32.DLL_GetLastError
test eax, eax
je 0x4c77d5
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp eax, 3
jne 0x4c77ce
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4c7a24
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
add edx, ecx
mov eax, dword [ebp - 0x14]
cmp edx, eax
jle 0x4c77ef
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 0x4c785c
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 0x4c784b
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp eax, 3
jne 0x4c7844
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4c7a24
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp - 0x24]
add dword [ebp - 0x2c], ecx
jmp 0x4c794e
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x28]
push 0x85ac24
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_ReadFile
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
cmp edx, ecx
je 0x4c7895
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
cmp edx, 3
jne 0x4c788e
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4c7a24
mov dword [ebp - 0x30], 0x85ac24
xor edx, edx
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
cmp ecx, eax
jge 0x4c794e
push 0xc
push 0x757c9c
push dword [ebp - 0x2c]
call fcn.0066c7fc
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.004ac0e4
add esp, 8
movsx edx, byte [ebp - 0x33]
push edx
call fcn.004ac070
pop ecx
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0xc], al
movsx eax, byte [ebp - 0x32]
push eax
call fcn.004ac070
pop ecx
mov edx, dword [ebp - 0x2c]
mov byte [edx + 0xd], al
movsx ecx, byte [ebp - 0x31]
push ecx
call fcn.004ac070
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.0066c7fc
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 0x4c78af
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0x18]
cmp eax, edx
jge 0x4c7a0b
push 0xc
push 0x757c9c
push dword [ebp - 0x2c]
call fcn.0066c7fc
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.004ac0e4
add esp, 8
movsx ecx, byte [ebp - 0x33]
push ecx
call fcn.004ac070
pop ecx
mov edx, dword [ebp - 0x2c]
mov byte [edx + 0xc], al
movsx eax, byte [ebp - 0x32]
push eax
call fcn.004ac070
pop ecx
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0xd], al
movsx eax, byte [ebp - 0x31]
push eax
call fcn.004ac070
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 0x4c795c
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp eax, 3
jne 0x4c7a1d
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_CloseHandle
imul eax, dword [ebp + 0x18], 0x930
mov esp, ebp
pop ebp
ret