Function at 0x1800098e0
Capabilities:
Check if file exists
Create directory
Get common file path
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x4d0], rbx
mov rax, qword [0x180064138]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rbx, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.180027560
mov r9d, 1
lea r8d, [r9 + 0x19]
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x180009975
lea rdx, str.ldsLDSShellExt
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor r8d, r8d
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
lea rdx, str.inst_bizhi_ui.exe
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor edi, edi
test eax, eax
je 0x180009aa9
movdqa xmm0, xmmword [0x180047150]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], di
lea r8d, [rdi + 0x16]
lea rdx, str._autoinstall__S___PID
lea rcx, [rsp + 0x48]
call fcn.1800083e0
nop
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x1800099d0
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.18000a4a0
lea r9, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae r9, qword [rsp + 0x48]
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], rdi
lea r8, [rsp + 0x70]
mov rdx, qword [str.RunAs]
mov rcx, rsi
call fcn.18000a120
nop
mov rdx, qword [rsp + 0x60]
cmp eax, 0x20
jb 0x180009a6c
cmp rdx, 8
jb 0x180009a62
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180009a5d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180009bbd
call fcn.18001dbb8
mov eax, 1
jmp 0x180009b95
cmp rdx, 8
jb 0x180009aa9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180009aa4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180009bb7
call fcn.18001dbb8
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x180]
call fcn.180027560
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x201
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360wpapp.exe
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180009b93
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x180]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x180009b93
mov eax, dword [rsp + 0x30]
shr eax, 1
cmp eax, 0x104
jae 0x180009b4a
mov word [rbp + rax*2 + 0x180], di
jmp 0x180009b51
mov word [rbp + 0x386], di
lea rcx, [rbp + 0x180]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180009b93
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8, [rbp + 0x180]
mov rdx, qword [str.RunAs]
mov rcx, rsi
call fcn.18000a120
cmp eax, 0x20
setae dil
mov eax, edi
jmp 0x180009b95
xor eax, eax
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.18001e0c0
mov rbx, qword [rsp + 0x4d0]
add rsp, 0x4a0
pop rdi
pop rsi
pop rbp
ret
call fcn.180029c54
int3
call fcn.180029c54
int3