Function at 0x14009a9e0
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x120
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
mov rax, qword [0x1401b8010]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r15d, r15d
mov dword [rsp + 0x60], r15d
lea rcx, [rsp + 0x68]
call fcn.14009a560
mov rbx, rax
lea rcx, [0x1401b90a0]
cmp rcx, rax
je 0x14009aa60
call fcn.140002e30
movups xmm0, xmmword [rbx]
movups xmmword [0x1401b90a0], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [0x1401b90b0], xmm1
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
lea rcx, [rsp + 0x68]
call fcn.140002e30
lea rcx, [rbp - 0x30]
call fcn.14009a7f0
nop
cmp qword [rbp - 0x20], 0
jne 0x14009aaa8
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x40], r15
movdqa xmm1, xmmword [0x140189c40]
movdqu xmmword [rsp + 0x50], xmm1
mov word [rsp + 0x40], r15w
lea rax, [rsp + 0x40]
mov ebx, 1
jmp 0x14009ab1e
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], r15w
mov r8d, 6
lea rdx, str.WinSxS
lea rcx, [rsp + 0x20]
call fcn.140002f20
nop
mov dword [rsp + 0x60], 0x32
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x58]
call fcn.140002bc0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x58]
call fcn.1400047a0
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140002bc0
nop
lea rcx, [rbp - 0x58]
call fcn.140002e30
lea rax, [rsp + 0x68]
mov ebx, 0x76
movups xmm6, xmmword [rax]
movups xmmword [rbp - 0x78], xmm6
movups xmm7, xmmword [rax + 0x10]
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
or ebx, 8
test bl, 4
je 0x14009ab4f
and ebx, 0xfffffffb
lea rcx, [rsp + 0x68]
call fcn.140002e30
nop
test bl, 2
je 0x14009ab62
and ebx, 0xfffffffd
lea rcx, [rsp + 0x20]
call fcn.140002e30
nop
test bl, 1
je 0x14009ab72
lea rcx, [rsp + 0x40]
call fcn.140002e30
nop
lea rcx, [rbp - 0x30]
call fcn.140002e30
lea rcx, [0x1401b9100]
call fcn.140002e30
movups xmmword [0x1401b9100], xmm6
movups xmmword [0x1401b9110], xmm7
movdqa xmm0, xmmword [0x140189c40]
movdqu xmmword [rbp - 0x68], xmm0
mov word [rbp - 0x78], r15w
lea rcx, [rbp - 0x78]
call fcn.140002e30
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov rdi, 0xffffffffffffffff
test eax, eax
je 0x14009acb3
lea ebx, [rax + 1]
mov ecx, ebx
mov eax, 2
mul rcx
cmovo rax, rdi
mov rcx, rax
call sub.mfc140u.dll_operator_1
mov rsi, rax
mov qword [rbp - 0x38], rax
mov edx, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x14009aca6
mov r8, rdi
nop
inc r8
cmp word [rsi + r8*2], 0
jne 0x14009ac00
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r15w
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140002f20
nop
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r15w
mov r8d, 4
lea rdx, str.Temp
lea rcx, [rbp - 0x30]
call fcn.140002f20
nop
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x40]
call fcn.1400047a0
mov rbx, rax
lea rcx, [rbp - 0x30]
call fcn.140002e30
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140002bc0
nop
lea rcx, [rsp + 0x40]
call fcn.140002e30
nop
test rsi, rsi
je 0x14009ac9e
mov rcx, rsi
call sub.mfc140u.dll_operator
movdqu xmm6, xmmword [rsp + 0x30]
jmp 0x14009acc5
test rsi, rsi
je 0x14009acb3
mov rcx, rsi
call sub.mfc140u.dll_operator
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
movdqa xmm6, xmmword [0x140189c40]
lea r14, [0x1401b90c0]
mov rcx, r14
call fcn.140002e30
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [0x1401b90c0], xmm0
movups xmmword [0x1401b90d0], xmm6
movdqa xmm0, xmmword [0x140189c40]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], r15w
lea rcx, [rsp + 0x20]
call fcn.140002e30
lea rcx, [rsp + 0x68]
call fcn.14009a7f0
mov rbx, rax
lea rcx, [0x1401b90e0]
cmp rcx, rax
je 0x14009ad48
call fcn.140002e30
movups xmm0, xmmword [rbx]
movups xmmword [0x1401b90e0], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [0x1401b90f0], xmm1
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
lea rcx, [rsp + 0x68]
call fcn.140002e30
xor r8d, r8d
xor edx, edx
lea rcx, str.ProgramFiles
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14009adf7
lea ebx, [rax + 1]
mov edx, ebx
mov eax, 2
mul rdx
cmovo rax, rdi
mov rcx, rax
call sub.mfc140u.dll_operator_1
mov rsi, rax
mov qword [rbp - 0x38], rax
mov r8d, ebx
mov rdx, rax
lea rcx, str.ProgramFiles
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14009ade5
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x14009ada3
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], 7
mov r8, rdi
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.140002f20
nop
test rsi, rsi
je 0x14009ae19
mov edx, 2
mov rcx, rsi
call fcn.14007e2a0
jmp 0x14009ae19
test rsi, rsi
je 0x14009adf7
mov edx, 2
mov rcx, rsi
call fcn.14007e2a0
lea rax, [rsp + 0x20]
mov qword [rbp - 0x38], rax
call fcn.14007f730
nop
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], 7
lea rcx, [0x1401b9120]
call fcn.140002e30
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [0x1401b9120], xmm0
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [0x1401b9130], xmm1
movdqa xmm0, xmmword [0x140189c40]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], r15w
lea rcx, [rsp + 0x20]
call fcn.140002e30
mov dl, 1
lea rcx, [rsp + 0x68]
call fcn.140096d30
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140048000
nop
lea rcx, [rsp + 0x68]
call fcn.140002e30
lea rbx, [0x1401b9140]
mov rcx, rbx
call fcn.140002e30
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [0x1401b9140], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [0x1401b9150], xmm1
movdqa xmm0, xmmword [0x140189c40]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], r15w
lea rcx, [rsp + 0x40]
call fcn.140002e30
mov byte [0x1401bfe74], 1
cmp qword [0x1401b90d8], 8
cmovae r14, qword [0x1401b90c0]
mov rcx, r14
call fcn.1400a0bf0
test al, al
sete byte [0x1401bfe75]
mov byte [0x1401bfe76], 1
mov byte [0x1401c0281], 1
mov byte [0x1401bfe77], 1
cmp qword [0x1401b9158], 8
cmovae rbx, qword [0x1401b9140]
mov rcx, rbx
call fcn.1400a0bf0
test al, al
sete byte [0x1401c0280]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14007e250
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop rbp
ret