Function at 0x4fedf0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], accept
mov dword [ebp - 0xc], 3
push 0
push 0x80
mov eax, dword [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], 0
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x4fef10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
push 0x7a4d90
mov ecx, dword [ebp + 8]
push ecx
call fcn.005e855e
add esp, 8
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.CreateFileW__s____d__0x_08x__f___p
call fcn.00500dc0
add esp, 0x14
cmp dword [ebp - 0x24], 0
jne 0x4fee88
mov eax, 0xf0000003
jmp 0x4fefe1
push 2
push 0
mov eax, dword [ebp - 0x24]
push eax
call fcn.005e75a3
add esp, 0xc
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.005e7420
add esp, 4
mov dword [ebp - 0x20], eax
push 0
push 0
mov edx, dword [ebp - 0x24]
push edx
call fcn.005e75a3
add esp, 0xc
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004e0320
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 1
mov ecx, dword [ebp + 0xc]
call fcn.004e1270
push eax
call fcn.005e6bbb
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
push eax
call fcn.005e681d
add esp, 4
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x28]
jne 0x4feefe
xor eax, eax
jmp 0x4fefe1
mov ecx, dword [ebp + 0xc]
call fcn.004e1a50
mov eax, 0xf0000000
jmp 0x4fefe1
push 0
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4fef68
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 4]
push eax
push str.GetFileSize___d__0x_08x__error___d
call fcn.0052ea90
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xf0000001
jmp 0x4fefe1
push 0
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.004e0320
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.004e1270
push eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4fefd5
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push str.ReadFile___d__0x_08x
call fcn.0052ea90
add esp, 0xc
mov ecx, dword [ebp + 0xc]
call fcn.004e0440
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xf0000002
jmp 0x4fefe1
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret