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

Disassembly:
mov eax, 0x107c
call fcn.004e6bc0
mov eax, dword [0x61ac94]
xor eax, esp
mov dword [esp + 0x1078], eax
mov eax, dword [esp + 0x1080]
mov ecx, dword [esp + 0x1084]
push ebp
push esi
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push 7
push SysReAllocString
push eax
mov dword [esp + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x486b08
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x486b21
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1078]
xor ecx, esp
call fcn.004e5fb0
add esp, 0x107c
ret
push edi
mov edi, dword [esp + 0x1094]
cmp edi, ebp
je 0x486b72
mov edx, dword [esp + 0x109c]
cmp edx, ebp
jl 0x486b72
mov ecx, dword [esp + 0x1098]
jg 0x486b45
cmp ecx, ebp
jbe 0x486b72
cmp edx, dword [esp + 0x14]
ja 0x486b72
jb 0x486b51
cmp ecx, eax
jae 0x486b72
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1078]
xor ecx, esp
call fcn.004e5fb0
add esp, 0x107c
ret
push ebx
lea eax, [esp + 0x20]
push ebp
push eax
mov dword [esp + 0x18], ebp
call fcn.0048ab50
add esp, 8
cmp dword [esp + 0x18], ebp
ja 0x486b99
cmp dword [esp + 0x14], 0x200000
jbe 0x486c63
cmp edi, ebp
jne 0x486c63
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
xor edi, edi
lea ebp, [edi + 1]
lea esp, [esp]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x1000
lea edx, [esp + 0x94]
push edx
push esi
call ebx
test eax, eax
je 0x486c5f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x486c5f
push eax
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.0048aba0
add edi, dword [esp + 0x1c]
add esp, 0xc
cmp edi, 0x100000
jb 0x486bb0
push 2
push 0
push 0xfff00000
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x486cc2
xor edi, edi
push 0
lea edx, [esp + 0x14]
push edx
push 0x1000
lea eax, [esp + 0x94]
push eax
push esi
call ebx
test eax, eax
je 0x486c5f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x486c5f
push eax
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.0048aba0
add edi, dword [esp + 0x1c]
add esp, 0xc
cmp edi, 0x100000
jb 0x486c18
jmp 0x486cc2
xor ebp, ebp
jmp 0x486cc2
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
lea eax, [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x94]
push ecx
push esi
call edi
test eax, eax
je 0x486cc2
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x486cbd
push eax
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.0048aba0
add esp, 0xc
push ebp
lea ecx, [esp + 0x14]
push ecx
push 0x1000
lea edx, [esp + 0x94]
push edx
push esi
call edi
test eax, eax
jne 0x486c83
jmp 0x486cc2
mov ebp, 1
lea eax, [esp + 0x20]
push eax
call fcn.0048acc0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
test ebp, ebp
je 0x486b58
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
mov dword [eax], ecx
mov ecx, dword [esp + 0x7c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x80]
pop edi
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x1080]
pop esi
pop ebp
mov dword [eax + 0xc], edx
xor ecx, esp
mov eax, 1
call fcn.004e5fb0
add esp, 0x107c
ret