Function at 0x4f82b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c2b80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
push 0
mov eax, dword [edi + 0x34]
add eax, dword [edi + 0x2c]
push 0
push eax
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
call fcn.004f8020
cmp dword [ebp - 0xc], 0x2014b50
jne 0x4f857c
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0xc]
push 0
push eax
push 1
lea eax, [ebp - 6]
push eax
push dword [edi + 0x20]
call esi
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 5]
push eax
push dword [edi + 0x20]
call esi
movzx ecx, byte [ebp - 5]
movzx eax, byte [ebp - 6]
shl ecx, 8
add ecx, eax
lea eax, [ebp - 0xc]
push 0
push eax
push 1
lea eax, [ebp - 5]
mov dword [ebx], ecx
push eax
push dword [edi + 0x20]
call esi
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 6]
push eax
push dword [edi + 0x20]
call esi
movzx ecx, byte [ebp - 6]
movzx eax, byte [ebp - 5]
shl ecx, 8
add ecx, eax
lea eax, [ebp - 0xc]
push 0
push eax
push 1
lea eax, [ebp - 5]
mov dword [ebx + 4], ecx
push eax
push dword [edi + 0x20]
call esi
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 6]
push eax
push dword [edi + 0x20]
call esi
movzx ecx, byte [ebp - 6]
movzx eax, byte [ebp - 5]
shl ecx, 8
add ecx, eax
lea eax, [ebp - 0xc]
push 0
push eax
push 1
lea eax, [ebp - 5]
mov dword [ebx + 8], ecx
push eax
push dword [edi + 0x20]
call esi
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 6]
push eax
push dword [edi + 0x20]
call esi
movzx ecx, byte [ebp - 6]
movzx eax, byte [ebp - 5]
lea esi, [ebx + 0x10]
shl ecx, 8
add ecx, eax
mov dword [ebx + 0xc], ecx
mov ecx, edi
push esi
call fcn.004f8020
lea eax, [ebp - 0x14]
push eax
movzx eax, word [esi]
push eax
call fcn.00456ec0
mov dx, word [ebx + 0x12]
mov ecx, eax
call fcn.004717e0
lea eax, [ebx + 0x14]
mov ecx, edi
push eax
call fcn.004f8020
lea eax, [ebx + 0x18]
mov ecx, edi
push eax
call fcn.004f8020
lea eax, [ebx + 0x1c]
mov ecx, edi
push eax
call fcn.004f8020
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0xc]
push 0
push eax
push 1
lea eax, [ebp - 5]
push eax
push dword [edi + 0x20]
call esi
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 6]
push eax
push dword [edi + 0x20]
call esi
movzx ecx, byte [ebp - 6]
movzx eax, byte [ebp - 5]
shl ecx, 8
add ecx, eax
lea eax, [ebp - 0xc]
push 0
push eax
push 1
lea eax, [ebp - 5]
mov dword [ebx + 0x20], ecx
push eax
push dword [edi + 0x20]
call esi
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 6]
push eax
push dword [edi + 0x20]
call esi
movzx ecx, byte [ebp - 6]
movzx eax, byte [ebp - 5]
shl ecx, 8
add ecx, eax
lea eax, [ebp - 0xc]
push 0
push eax
push 1
lea eax, [ebp - 5]
mov dword [ebx + 0x24], ecx
push eax
push dword [edi + 0x20]
call esi
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 6]
push eax
push dword [edi + 0x20]
call esi
movzx ecx, byte [ebp - 6]
movzx eax, byte [ebp - 5]
shl ecx, 8
add ecx, eax
lea eax, [ebp - 0xc]
push 0
push eax
push 1
lea eax, [ebp - 5]
mov dword [ebx + 0x28], ecx
push eax
push dword [edi + 0x20]
call esi
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 6]
push eax
push dword [edi + 0x20]
call esi
movzx ecx, byte [ebp - 6]
movzx eax, byte [ebp - 5]
shl ecx, 8
add ecx, eax
lea eax, [ebp - 0xc]
push 0
push eax
push 1
lea eax, [ebp - 5]
mov dword [ebx + 0x2c], ecx
push eax
push dword [edi + 0x20]
call esi
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 6]
push eax
push dword [edi + 0x20]
call esi
movzx ecx, byte [ebp - 6]
movzx eax, byte [ebp - 5]
shl ecx, 8
add ecx, eax
lea eax, [ebx + 0x34]
mov dword [ebx + 0x30], ecx
mov ecx, edi
push eax
call fcn.004f8020
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.004f8020
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.004f8210
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x4f8569
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
jae 0x4f854c
mov byte [eax + esi], 0
mov eax, dword [ebx + 0x20]
mov edx, eax
jmp 0x4f854e
mov edx, ecx
test eax, eax
je 0x4f8569
test ecx, ecx
je 0x4f8569
push 0
lea eax, [ebp - 0x18]
push eax
push edx
push esi
push dword [edi + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052ab62
mov esp, ebp
pop ebp
ret 0x20
push 0xffffffffffffff99
mov ecx, edi
call fcn.004f8b00
int3