Function at 0x140038460
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, reloc.SHELL32.dll_IsUserAnAdmin
movaps xmmword [rsp + 0x290], xmm6
mov r14, r9
mov rsi, r8
mov rbx, rdx
mov rax, qword [0x14013a040]
xor rax, rsp
mov qword [rsp + 0x288], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], r12
movaps xmm6, xmmword [0x1401131b0]
movaps xmmword [rsp + 0x30], xmm6
cmp byte [rcx + 0x17], 0
jns 0x140038a05
mov rdx, qword [rcx]
mov r8, qword [rcx + 8]
lea rcx, [rsp + 0x30]
call fcn.1400767f0
movabs r13, 0x7ffffffffffffff7
mov ecx, 0x28
call fcn.140092cc0
mov qword [rsp + 0x80], rax
lea rcx, [r13 + 0x1d]
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x88], 0x12
lea rcx, [rax + 0x24]
lea rdx, str.SOFTWAREPolicies_
cmp rax, rdx
seta r8b
cmp rcx, rdx
setbe cl
or cl, r8b
je 0x140038839
movups xmm0, xmmword [0x1401205ee]
movups xmmword [rax + 0x10], xmm0
movups xmm0, xmmword [str.SOFTWAREPolicies_]
movups xmmword [rax], xmm0
mov dword [rax + 0x20], 0x5c0073
mov word [rax + 0x24], 0
lea r15, [rsp + 0x80]
mov rcx, rbx
xor edx, edx
mov r8, r15
call fcn.140039760
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
cmp byte [r15 + 0x17], 0
jns 0x140038578
mov r15, qword [rsp + 0x80]
lea rdi, [rsp + 0x60]
mov qword [rsp + 0x20], rdi
lea r9, str.UserDataDir
mov ecx, 1
xor edx, edx
mov r8, r15
call fcn.14004aae0
test al, al
jne 0x140038800
cmp byte [rsp + 0x97], 0
js 0x1400385b4
lea r8, [rsp + 0x80]
jmp 0x1400385bc
mov r8, qword [rsp + 0x80]
mov qword [rsp + 0x20], rdi
lea r9, str.UserDataDir
mov ecx, 2
xor edx, edx
call fcn.14004aae0
test al, al
jne 0x140038800
cmp byte [rsp + 0x77], 0
js 0x1400389d3
cmp byte [rsp + 0x97], 0
jns 0x1400385fe
mov rcx, qword [rsp + 0x80]
call fcn.140092d00
movsx rcx, byte [rsp + 0x47]
mov rax, rcx
test rcx, rcx
jns 0x140038611
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14003883b
shr rcx, 0x3f
lea rdx, [rsp + 0x30]
mov r8, rdx
test cl, 1
je 0x140038630
mov r8, qword [rsp + 0x30]
movzx r9d, word [r8 + rax*2 - 2]
cmp r9d, 0x5c
je 0x1400387b3
cmp r9d, 0x2f
je 0x1400387b3
lea rcx, [rsp + 0x30]
call fcn.14003aa50
test al, al
je 0x14003883b
lea rbx, [rsp + 0x80]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1400d2610
cmp byte [rsp + 0x47], 0
jns 0x14003868b
mov rdx, qword [rsp + 0x30]
jmp 0x140038690
mov byte [rsp + 0x77], bl
jmp 0x14003870e
lea rdx, [rsp + 0x30]
mov r8d, 0x104
mov rcx, rbx
call fcn.1400aeaf8
test rax, rax
je 0x1400389ef
lea r14, [rsp + 0x80]
mov rcx, r14
call fcn.1400b3c98
cmp rax, r13
ja 0x1400387f6
mov rbx, rax
cmp rax, 0xa
jbe 0x140038682
mov rax, rbx
or rax, 3
lea rcx, [rax + 1]
cmp rax, 0xb
mov r15d, 0xd
cmovne r15, rcx
test r15, r15
js 0x1400387ae
lea rcx, [r15 + r15]
call fcn.140092cc0
mov rdi, rax
mov qword [rsp + 0x60], rax
lea rax, [r15 + r13]
add rax, 9
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], rbx
lea r15, [rdi + rbx*2]
cmp rdi, r14
seta al
cmp r15, r14
setbe cl
or cl, al
je 0x140038839
test rbx, rbx
je 0x140038741
add rbx, rbx
lea rdx, [rsp + 0x80]
mov rcx, rdi
mov r8, rbx
call fcn.1400d1f70
mov word [r15], 0
cmp byte [rsi + 0x17], 0
js 0x1400389e2
mov rax, qword [rsp + 0x70]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi], xmm0
mov sil, 1
cmp byte [rsp + 0x47], 0
jns 0x140038776
mov rcx, qword [rsp + 0x30]
call fcn.140092d00
mov rcx, qword [rsp + 0x288]
xor rcx, rsp
cmp rcx, qword [0x14013a040]
je 0x140038790
call fcn.140094250
int3
mov eax, esi
movaps xmm6, xmmword [rsp + 0x290]
add rsp, reloc.SHELL32.dll_IsUserAnAdmin
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14001c890
lea r9, [rax - 1]
test cl, 1
jne 0x1400387c7
and r9b, 0x7f
mov byte [rsp + 0x47], r9b
jmp 0x1400387cc
mov qword [rsp + 0x38], r9
mov word [r8 + rax*2 - 2], 0
movsx rcx, byte [rsp + 0x47]
mov rax, rcx
test rcx, rcx
jns 0x1400387e7
mov rax, qword [rsp + 0x38]
shr rcx, 0x3f
test rax, rax
jne 0x140038623
jmp 0x14003883b
lea rcx, [rsp + 0x60]
call fcn.14001c7f0
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x60]
call fcn.1400fc750
cmp byte [rsp + 0x47], 0
jns 0x140038820
mov rcx, qword [rsp + 0x30]
call fcn.140092d00
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0x30], xmm0
jmp 0x1400385dc
ud2
lea r15, [rsp + 0x30]
mov rcx, r14
mov rdx, r15
call fcn.14006fbb0
lea r14, [rsp + 0x80]
mov qword [r14 + 0x10], r12
movaps xmmword [r14], xmm6
lea rdx, str.LOCALAPPDATA
mov rcx, r14
call fcn.14003a4f0
movsx rax, byte [r14 + 0x17]
test rax, rax
jns 0x14003887c
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x140038952
movaps xmm0, xmmword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x40], rcx
movaps xmm1, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], rax
movsx rcx, byte [rsp + 0x47]
mov rax, rcx
test rcx, rcx
jns 0x1400388cc
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140038839
test cl, cl
jns 0x1400388de
mov r15, qword [rsp + 0x30]
cmp word [r15 + rax*2 - 2], 0x5c
je 0x1400388f5
lea rcx, [rsp + 0x30]
mov dx, 0x5c
call fcn.140076a80
mov bpl, 1
lea r14, [rsp + 0x30]
mov rcx, rbx
mov dl, 1
mov r8, r14
call fcn.140039760
mov rcx, r14
mov dx, 0x5c
call fcn.140076a80
lea rdx, str.User_Data
mov r8d, 9
mov rcx, r14
call fcn.1400768a0
cmp byte [rsp + 0x97], 0
jns 0x140038942
mov rcx, qword [rsp + 0x80]
call fcn.140092d00
test bpl, bpl
jne 0x14003865c
xor esi, esi
jmp 0x140038765
xor ebp, ebp
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14003892b
mov r12d, eax
inc r12d
xor ebp, ebp
mov rcx, r14
mov rdx, r12
xor r8d, r8d
call fcn.140076e00
cmp byte [rsp + 0x97], 0
jns 0x14003898a
mov r14, qword [rsp + 0x80]
mov ecx, r12d
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14003892b
mov edx, eax
movsx rax, byte [rsp + 0x97]
test rax, rax
jns 0x1400389b2
mov rax, qword [rsp + 0x88]
cmp rax, rdx
ja 0x1400389be
xor ebp, ebp
jmp 0x14003892b
lea rcx, [rsp + 0x80]
xor r8d, r8d
call fcn.140076e00
jmp 0x140038885
mov rcx, qword [rsp + 0x60]
call fcn.140092d00
jmp 0x1400385e7
mov rcx, qword [rsi]
call fcn.140092d00
jmp 0x140038751
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
jmp 0x140038747
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rcx]
movaps xmmword [rsp + 0x30], xmm0
jmp 0x1400384cc