Function at 0x48c5ec
Capabilities:
Check if file exists
Get common file path
Get file size
Read file on windows

Disassembly:
push 0x65c
mov eax, 0x503130
call fcn.004e3d69
mov esi, ecx
lea edi, [esi + 0x60]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x640], esi
mov dword [ebp - 0x638], ebx
mov dword [ebp - 0x648], edi
call fcn.0048e09e
push 0x104
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.ASOROSet.bin
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocStringLen
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x630], eax
cmp eax, 0xffffffff
jne 0x48c669
or eax, eax
jmp 0x48c8d3
push ebx
lea ecx, [ebp - 0x638]
push ecx
lea edi, [esi + 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0xc
push edi
push eax
mov dword [edi], ebx
call esi
mov ecx, dword [ebp - 0x640]
cmp dword [ecx + 0x5c], 2
mov dword [ebp - 0x634], eax
jne 0x48c6aa
xor esi, esi
inc esi
push dword [ebp - 0x630]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x48c8d3
cmp eax, ebx
jne 0x48c6b3
push 0xfffffffffffffffe
pop esi
jmp 0x48c697
mov dword [ebp - 0x63c], ebx
cmp dword [edi], ebx
ja 0x48c6e3
push dword [ebp - 0x630]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x634], ebx
jne 0x48c8c0
push 0xfffffffffffffffd
pop eax
jmp 0x48c8d3
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 0x638]
push eax
push 0x10
lea eax, [ebp - 0x65c]
push eax
push dword [ebp - 0x630]
call esi
mov dword [ebp - 0x634], eax
cmp eax, ebx
je 0x48c6bd
push ebx
lea eax, [ebp - 0x638]
push eax
mov eax, dword [ebp - 0x658]
add eax, eax
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x630]
call esi
mov dword [ebp - 0x634], eax
cmp eax, ebx
je 0x48c6bd
mov ecx, dword [ebp - 0x658]
xor eax, eax
mov word [ebp + ecx*2 - 0x218], ax
push ebx
lea eax, [ebp - 0x638]
push eax
mov eax, dword [ebp - 0x65c]
add eax, eax
push eax
lea eax, [ebp - 0x628]
push eax
push dword [ebp - 0x630]
call esi
mov dword [ebp - 0x634], eax
cmp eax, ebx
je 0x48c6bd
mov ecx, dword [ebp - 0x65c]
xor eax, eax
mov word [ebp + ecx*2 - 0x628], ax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48c79b
lea eax, [ebp - 0x218]
push eax
call fcn.0048db71
push ebx
push ebx
push 3
push ebx
push 7
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x48c7ce
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [ebp - 0x62c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x48c7d4
mov dword [ebp - 0x62c], ebx
mov eax, dword [ebp - 0x654]
cmp dword [ebp - 0x62c], ebx
je 0x48c7ea
cmp eax, dword [ebp - 0x62c]
jbe 0x48c7f0
mov dword [ebp - 0x62c], eax
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x644]
call fcn.0040253b
mov esi, dword [ebp - 0x654]
mov dword [ebp - 0x64c], esi
lea eax, [ebp - 0x644]
push eax
lea ecx, [ebp - 0x668]
mov dword [ebp - 4], ebx
call fcn.00402305
mov ecx, dword [ebp - 0x644]
mov eax, dword [ebp - 0x62c]
add ecx, 0xfffffff0
mov dword [ebp - 0x664], esi
mov dword [ebp - 0x660], eax
call fcn.0040285b
mov edi, dword [ebp - 0x648]
mov dword [ebp - 4], 1
mov esi, dword [edi + 8]
cmp esi, ebx
jl 0x48c8bb
lea eax, [esi + 1]
call fcn.0048e09e
imul esi, esi, 0xc
mov eax, edi
add esi, dword [eax + 4]
lea eax, [ebp - 0x668]
push eax
mov ecx, esi
call fcn.004025da
mov eax, dword [ebp - 0x64c]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x668]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x62c]
add ecx, 0xfffffff0
mov dword [esi + 8], eax
call fcn.0040285b
inc dword [ebp - 0x63c]
mov eax, dword [ebp - 0x640]
mov ecx, dword [ebp - 0x63c]
add eax, 0x54
cmp ecx, dword [eax]
jb 0x48c6dd
jmp 0x48c6bd
call fcn.004be614
mov eax, dword [ebp - 0x640]
mov eax, dword [eax + 0x5c]
sub eax, 8
neg eax
sbb eax, eax
and eax, 2
call fcn.004e3dec
ret