Function at 0x4f7880
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5c2b80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov esi, ecx
mov dword [eax], 0
mov ecx, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x20], eax
xor edi, edi
mov dword [ebp - 0x28], ecx
mov dword [ecx], 0
mov dword [ebp - 0x24], edx
mov dword [edx], 0
mov eax, dword [esi + 0x84]
test edi, edi
je 0x4f78ce
add eax, dword [esi + 0x2c]
push 0
push 0
push eax
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x18]
push eax
push 1
lea eax, [ebp - 5]
push eax
push dword [esi + 0x20]
call ebx
push 0
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 6]
push eax
push dword [esi + 0x20]
call ebx
push 0
lea eax, [ebp - 0x1c]
push eax
push 1
lea eax, [ebp - 0xd]
push eax
push dword [esi + 0x20]
call ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0xe]
push eax
push dword [esi + 0x20]
call ebx
movzx ecx, byte [ebp - 0xe]
movzx eax, byte [ebp - 0xd]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebp - 6]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebp - 5]
shl ecx, 8
add ecx, eax
cmp ecx, 0x4034b50
je 0x4f7951
inc edi
cmp edi, 2
jl 0x4f78c1
cmp edi, 2
je 0x4f7b81
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 5]
push eax
push dword [esi + 0x20]
call ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 5]
push eax
push dword [esi + 0x20]
call ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 6]
push eax
push dword [esi + 0x20]
call ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 5]
push eax
push dword [esi + 0x20]
call ebx
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 - 6]
mov dword [ebp - 0x18], ecx
push eax
push dword [esi + 0x20]
call ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 5]
push eax
push dword [esi + 0x20]
call ebx
movzx ecx, byte [ebp - 5]
movzx eax, byte [ebp - 6]
shl ecx, 8
add ecx, eax
mov eax, dword [esi + 0x54]
cmp ecx, eax
jne 0x4f7b8a
test eax, eax
je 0x4f79f5
cmp eax, 8
jne 0x4f7b93
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 5]
push eax
push dword [esi + 0x20]
call ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 5]
push eax
push dword [esi + 0x20]
call ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 5]
push eax
push dword [esi + 0x20]
call ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 5]
push eax
push dword [esi + 0x20]
call ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0xe]
push eax
push dword [esi + 0x20]
call ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0xd]
push eax
push dword [esi + 0x20]
call ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 6]
push eax
push dword [esi + 0x20]
call ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 5]
push eax
push dword [esi + 0x20]
call ebx
movzx ecx, byte [ebp - 5]
movzx eax, byte [ebp - 6]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebp - 0xd]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebp - 0xe]
shl ecx, 8
add ecx, eax
mov dword [ebp - 0x14], ecx
cmp ecx, dword [esi + 0x5c]
je 0x4f7aae
test byte [ebp - 0x18], 8
je 0x4f7b9c
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.004f8020
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x60]
je 0x4f7acb
test byte [ebp - 0x18], 8
je 0x4f7ba5
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.004f8020
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x64]
je 0x4f7ae8
test byte [ebp - 0x18], 8
je 0x4f7bae
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 6]
push eax
push dword [esi + 0x20]
call ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 5]
push eax
push dword [esi + 0x20]
call ebx
movzx edi, byte [ebp - 5]
movzx eax, byte [ebp - 6]
shl edi, 8
add edi, eax
cmp edi, dword [esi + 0x68]
jne 0x4f7bb7
mov eax, dword [ebp - 0x20]
push 0
mov dword [eax], edi
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 6]
push eax
push dword [esi + 0x20]
call ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 5]
push eax
push dword [esi + 0x20]
call ebx
movzx ecx, byte [ebp - 5]
movzx eax, byte [ebp - 6]
mov edx, dword [ebp - 0x28]
shl ecx, 8
add ecx, eax
mov eax, dword [esi + 0x84]
add eax, 0x1e
add eax, edi
mov dword [edx], eax
mov eax, dword [ebp - 0x24]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov eax, dword [ebp - 0x20]
add dword [eax], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052ab62
mov esp, ebp
pop ebp
ret 0xc
push 0xffffffffffffff99
mov ecx, esi
call fcn.004f8b00
push 0xffffffffffffff99
mov ecx, esi
call fcn.004f8b00
push 0xffffffffffffff99
mov ecx, esi
call fcn.004f8b00
push 0xffffffffffffff99
mov ecx, esi
call fcn.004f8b00
push 0xffffffffffffff99
mov ecx, esi
call fcn.004f8b00
push 0xffffffffffffff99
mov ecx, esi
call fcn.004f8b00
push 0xffffffffffffff99
mov ecx, esi
call fcn.004f8b00
int3