Function at 0x140005f54
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x388]
sub rsp, 0x480
mov rax, qword [0x14000f068]
xor rax, rsp
mov qword [rbp + 0x370], rax
xor ebx, ebx
mov edi, ebx
lea r8d, [rbx + 1]
call fcn.140007b1c
mov r14d, 0x104
test eax, eax
je 0x1400060c5
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call sub.msvcrt.dll_memset
lea rcx, [rbp + 0x160]
mov dword [rbp + 0x160], 0x11c
mov esi, ebx
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetVersionExW]
nop dword [rax + rax]
test eax, eax
je 0x140005ffe
test byte [rbp + 0x278], 0x10
je 0x140005ffe
lea eax, [r14 - 4]
test word [rbp + 0x278], ax
jne 0x140005ffe
lea ecx, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_SetTermsrvAppInstallMode]
nop dword [rax + rax]
mov esi, eax
mov edx, r14d
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x1400060b3
lea r8, str.rundll32.exe
mov rdx, r14
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchAppend]
nop dword [rax + rax]
test eax, eax
js 0x1400060b3
xor eax, eax
lea rdx, str.iernonce.dll_RunOnceExProcess
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x50]
lea rax, [rsp + 0x38]
xorps xmm0, xmm0
xor r8d, r8d
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x38], xmm0
call fcn.140009030
test eax, eax
js 0x1400060b3
mov rax, qword [rsp + 0x38]
lea rdx, [rsp + 0x30]
test rax, rax
mov qword [rsp + 0x30], rax
mov r8d, ebx
setne r8b
or r9d, 0xffffffff
call fcn.140005928
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov edi, 1
test esi, esi
je 0x1400060c5
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetTermsrvAppInstallMode]
nop dword [rax + rax]
xor r8d, r8d
call fcn.140007b1c
test eax, eax
je 0x140006194
mov r8d, r14d
lea rdx, [rsp + 0x50]
lea rcx, str._SystemRoot_SysWOW64
call qword [sym.imp.SHLWAPI.dll_Ordinal_460]
nop dword [rax + rax]
test eax, eax
je 0x140006194
xorps xmm0, xmm0
lea r9, [rsp + 0x50]
xor eax, eax
lea r8, str._s_runonce.exe
mov rdx, r14
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x160]
movups xmmword [rsp + 0x38], xmm0
call fcn.140002830
test eax, eax
js 0x140006194
lea rax, [rsp + 0x38]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rdx, str._RunOnceEx6432
lea rcx, [rbp + 0x160]
call fcn.140009030
test eax, eax
js 0x140006194
mov rax, qword [rsp + 0x38]
lea rdx, [rsp + 0x30]
test rax, rax
mov qword [rsp + 0x30], rax
setne bl
or r9d, 0xffffffff
mov r8d, ebx
call fcn.140005928
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov edi, 1
mov eax, edi
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140009590
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret