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

Disassembly:
push 0xffffffffffffffff
push 0x534405
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58e700]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x20]
push eax
call fcn.0048f3ff
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
mov dword [esp + 0x60], ebx
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x48f73a
cmp dword [0x59535c], ebx
je 0x48f8d8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___read_download_info__open_file_failed_
push 1
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x10
jmp 0x48f8d8
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x48f767
cmp dword [0x59535c], ebx
je 0x48f8cd
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___read_download_info__get_file_size_failed_
jmp 0x48f8bd
push 2
lea eax, [esp + 0x30]
push eax
push 0xffffffffffffffff
push 0xfffffffffffffffc
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x48f79a
cmp dword [0x59535c], ebx
je 0x48f8cd
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___read_download_info__set_base_down_info_pointer_failed_
jmp 0x48f8bd
push ebx
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebx
push eax
push 4
lea ebp, [esi + 0x5c]
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48f8a9
cmp dword [esp + 0x1c], 4
jne 0x48f8a9
cmp dword [ebp], ebx
jbe 0x48f8cd
cmp dword [ebp], 0x3f
ja 0x48f8cd
cmp dword [ebp], ebx
jle 0x48f7e8
push dword [ebp]
mov ecx, esi
call fcn.0048d793
jmp 0x48f7ea
mov al, bl
test al, al
je 0x48f8cd
mov ecx, esi
call fcn.0048e2e5
test al, al
je 0x48f8cd
imul eax, dword [esi + 0x50], 0x18
push 0xfffffffffffffffc
pop ecx
push 2
sub ecx, eax
mov eax, ecx
lea ecx, [esp + 0x38]
push ecx
cdq
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
test eax, eax
jne 0x48f847
cmp dword [0x59535c], ebx
je 0x48f847
call ebp
push eax
push str._ERROR___d___read_download_info__set_info_pointer_failed_
push 1
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x10
push ebx
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push eax
imul eax, dword [esi + 0x50], 0x18
push eax
push dword [esi + 0x60]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48f872
imul eax, dword [esi + 0x50], 0x18
cmp dword [esp + 0x18], eax
jne 0x48f872
mov bl, 1
jmp 0x48f8cd
cmp dword [0x59535c], ebx
je 0x48f896
push dword [esp + 0x18]
call ebp
push eax
push str._ERROR___d___read_download_info__read_info_failed__read_size__d_
push 1
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x14
imul eax, dword [esi + 0x50], 0x18
push eax
push ebx
push dword [esi + 0x60]
call fcn.00506ab0
add esp, 0xc
jmp 0x48f8cd
cmp dword [0x59535c], ebx
je 0x48f8cd
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___read_download_info__read_base_down_info_failed_
push 1
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x10
test edi, edi
je 0x48f8d8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.00450c64
mov al, bl
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret