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

Disassembly:
push 0x65c
mov eax, 0x4d7426
call fcn.004bed19
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.0047a51e
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 SysReAllocString
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x630], eax
cmp eax, 0xffffffff
jne 0x478ae2
or eax, eax
jmp 0x478d4c
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 0x478b23
xor esi, esi
inc esi
push dword [ebp - 0x630]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x478d4c
cmp eax, ebx
jne 0x478b2c
push 0xfffffffffffffffe
pop esi
jmp 0x478b10
mov dword [ebp - 0x63c], ebx
cmp dword [edi], ebx
ja 0x478b5c
push dword [ebp - 0x630]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x634], ebx
jne 0x478d39
push 0xfffffffffffffffd
pop eax
jmp 0x478d4c
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 0x478b36
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 0x478b36
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 0x478b36
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 0x478c14
lea eax, [ebp - 0x218]
push eax
call fcn.00479ff1
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 0x478c47
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 0x478c4d
mov dword [ebp - 0x62c], ebx
mov eax, dword [ebp - 0x654]
cmp dword [ebp - 0x62c], ebx
je 0x478c63
cmp eax, dword [ebp - 0x62c]
jbe 0x478c69
mov dword [ebp - 0x62c], eax
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x644]
call fcn.004024df
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.0040228a
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.004027b0
mov edi, dword [ebp - 0x648]
mov dword [ebp - 4], 1
mov esi, dword [edi + 8]
cmp esi, ebx
jl 0x478d34
lea eax, [esi + 1]
call fcn.0047a51e
imul esi, esi, 0xc
mov eax, edi
add esi, dword [eax + 4]
lea eax, [ebp - 0x668]
push eax
mov ecx, esi
call fcn.0040257e
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.004027b0
inc dword [ebp - 0x63c]
mov eax, dword [ebp - 0x640]
mov ecx, dword [ebp - 0x63c]
add eax, 0x54
cmp ecx, dword [eax]
jb 0x478b56
jmp 0x478b36
call fcn.004998d4
mov eax, dword [ebp - 0x640]
mov eax, dword [eax + 0x5c]
sub eax, 8
neg eax
sbb eax, eax
and eax, 2
call fcn.004bed9c
ret