Function at 0x140039e88
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, reloc.SHELL32.dll_IsUserAnAdmin
movaps xmmword [rsp + 0x290], xmm6
mov rbx, r9
mov rsi, r8
mov rdi, rdx
mov rax, qword [0x140105c88]
xor rax, rsp
mov qword [rsp + 0x288], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], r15
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0x30], xmm6
test byte [rcx], 1
jne 0x140039eee
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rcx]
movaps xmmword [rsp + 0x30], xmm0
jmp 0x140039f00
mov r8, qword [rcx + 8]
mov rdx, qword [rcx + 0x10]
lea rcx, [rsp + 0x30]
call fcn.140025c20
lea r14, [rsp + 0x80]
mov qword [r14 + 0x10], r15
movaps xmmword [r14], xmm6
lea rdx, str.SOFTWAREPolicies_
mov rcx, r14
call fcn.140001888
mov rcx, rdi
xor edx, edx
mov r8, r14
call fcn.14003ac1b
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
test byte [r14], 1
lea r14, [rsp + 0x82]
mov r8, r14
je 0x140039f56
mov r8, qword [rsp + 0x90]
lea r12, [rsp + 0x60]
mov qword [rsp + 0x20], r12
lea r9, str.UserDataDir
mov ecx, 1
xor edx, edx
call fcn.140064394
test al, al
jne 0x140039fa8
test byte [rsp + 0x80], 1
je 0x140039f89
mov r14, qword [rsp + 0x90]
mov qword [rsp + 0x20], r12
lea r9, str.UserDataDir
mov ecx, 2
xor edx, edx
mov r8, r14
call fcn.140064394
test al, al
je 0x140039fdc
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x60]
call fcn.1400646c0
test byte [rsp + 0x30], 1
je 0x140039fc8
mov rcx, qword [rsp + 0x40]
call fcn.1400a4d04
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0x30], xmm0
test byte [rsp + 0x60], 1
je 0x140039fed
mov rcx, qword [rsp + 0x70]
call fcn.1400a4d04
test byte [rsp + 0x80], 1
je 0x14003a004
mov rcx, qword [rsp + 0x90]
call fcn.1400a4d04
movzx ecx, byte [rsp + 0x30]
mov rax, rcx
shr rax, 1
and cl, 1
mov rdx, qword [rsp + 0x38]
mov r8, rdx
cmove r8, rax
test r8, r8
je 0x14003a0d2
lea r12, [rsp + 0x32]
lea r14, [rsp + 0x30]
mov rcx, r14
call fcn.140012aa6
cmp word [rax], 0x5c
je 0x14003a04d
mov rcx, r14
call fcn.140012aa6
cmp word [rax], 0x2f
jne 0x14003a0c0
movzx eax, byte [rsp + 0x30]
test al, 1
jne 0x14003a07a
cmp al, 2
jb 0x14003a342
shr rax, 1
dec rax
cmp rax, 0xb
jae 0x14003a36e
lea ecx, [rax + rax]
mov byte [rsp + 0x30], cl
mov rcx, r12
jmp 0x14003a095
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14003a342
mov rcx, qword [rsp + 0x40]
dec rax
mov qword [rsp + 0x38], rax
mov word [rcx + rax*2], 0
movzx ecx, byte [rsp + 0x30]
mov rax, rcx
shr rax, 1
and cl, 1
mov rdx, qword [rsp + 0x38]
mov r8, rdx
cmove r8, rax
test r8, r8
jne 0x14003a031
jmp 0x14003a0d2
movzx eax, byte [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov ecx, eax
and cl, 1
shr rax, 1
test cl, cl
cmovne rax, rdx
test rax, rax
je 0x14003a0ef
lea rcx, [rsp + 0x30]
call fcn.14003bc4f
test al, al
jne 0x14003a258
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140028914
lea rbx, [rsp + 0x80]
mov qword [rbx + 0x10], r15
movaps xmmword [rbx], xmm6
lea rdx, str.LOCALAPPDATA
mov rcx, rbx
call fcn.14003b409
movzx eax, byte [rbx]
test al, 1
je 0x14003a12b
mov rax, qword [rsp + 0x88]
jmp 0x14003a12e
shr rax, 1
test rax, rax
je 0x14003a178
mov rax, qword [rsp + 0x40]
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x30], xmm1
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x40], rcx
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], rax
movzx edx, byte [rsp + 0x30]
test dl, 1
je 0x14003a1e2
mov rdx, qword [rsp + 0x38]
jmp 0x14003a1e5
xor r15d, r15d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14003a23c
mov ebx, eax
inc ebx
xor r15d, r15d
lea r14, [rsp + 0x80]
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
call fcn.140028bae
mov rcx, r14
xor edx, edx
call fcn.140012a16
mov ecx, ebx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14003a23c
mov edx, eax
movzx eax, byte [rsp + 0x80]
test al, 1
je 0x14003a31d
mov rax, qword [rsp + 0x88]
jmp 0x14003a320
shr rdx, 1
dec rdx
lea rcx, [rsp + 0x30]
call fcn.140012a16
cmp word [rax], 0x5c
je 0x14003a206
lea rcx, [rsp + 0x30]
mov dx, 0x5c
call fcn.14002865a
mov r15b, 1
lea rbx, [rsp + 0x30]
mov rcx, rdi
mov dl, 1
mov r8, rbx
call fcn.14003ac1b
mov rcx, rbx
mov dx, 0x5c
call fcn.14002865a
lea rdx, str.User_Data
mov r8d, 9
mov rcx, rbx
call fcn.14002834e
test byte [rsp + 0x80], 1
je 0x14003a253
mov rcx, qword [rsp + 0x90]
call fcn.1400a4d04
test r15b, r15b
je 0x14003a27e
lea rdi, [rsp + 0x80]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400a8280
test byte [rsp + 0x30], 1
je 0x14003a282
mov rdx, qword [rsp + 0x40]
jmp 0x14003a287
xor esi, esi
jmp 0x14003a2e1
lea rdx, [rsp + 0x32]
mov r8d, 0x104
mov rcx, rdi
call fcn.1400bfeb8
test rax, rax
je 0x14003a2ae
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x80]
call fcn.140001888
jmp 0x14003a2bf
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
test byte [rsi], 1
je 0x14003a2cd
mov rcx, qword [rsi + 0x10]
call fcn.1400a4d04
mov rax, qword [rsp + 0x70]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi], xmm0
mov sil, 1
test byte [rsp + 0x30], 1
je 0x14003a2f2
mov rcx, qword [rsp + 0x40]
call fcn.1400a4d04
mov rcx, qword [rsp + 0x288]
xor rcx, rsp
call fcn.1400a5060
mov eax, esi
movaps xmm6, xmmword [rsp + 0x290]
add rsp, reloc.SHELL32.dll_IsUserAnAdmin
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
shr rax, 1
cmp rax, rdx
jbe 0x14003a33a
lea rcx, [rsp + 0x80]
xor r8d, r8d
call fcn.140028bae
jmp 0x14003a133
xor r15d, r15d
jmp 0x14003a23c
lea rax, [0x1400da670]
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_string
lea r9, str._empty__
mov r8d, 0xc07
call fcn.140005584
lea rax, str.__s_should_never_be_greater_than_or_equal_to_the_short_string_capacity
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_string
lea r9, str.__s_____min_cap
mov r8d, 0x6c6
call fcn.140005584
int3