Function at 0x140040340
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x2a8
movaps xmmword [rsp + 0x290], xmm6
mov r13, r8
mov r12, rdx
mov rax, qword [0x140114038]
xor rax, rsp
mov qword [rsp + 0x288], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], rax
movaps xmm6, xmmword [0x1400faa70]
movaps xmmword [rsp + 0x30], xmm6
cmp byte [rcx + 0x17], 0
mov qword [rsp + 0x28], r9
jns 0x1400406a0
mov rdx, qword [rcx]
mov r8, qword [rcx + 8]
lea rcx, [rsp + 0x30]
call fcn.140067a00
movabs r14, 0x7fffffffffffffef
mov ecx, 0x30
call fcn.14008611c
lea rbx, [rsp + 0x80]
mov qword [rbx], rax
lea rcx, [r14 + 0x29]
mov qword [rbx + 0x10], rcx
mov qword [rbx + 8], 0x12
mov ecx, dword [0x1400fe456]
mov dword [rax + 0x20], ecx
movups xmm0, xmmword [0x1400fe446]
movups xmmword [rax + 0x10], xmm0
movups xmm0, xmmword [str.SOFTWAREPolicies_]
movups xmmword [rax], xmm0
mov word [rax + 0x24], 0
mov rcx, r12
xor edx, edx
mov r8, rbx
call fcn.14003e3f0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
cmp byte [rbx + 0x17], 0
jns 0x14004042d
mov rbx, qword [rsp + 0x80]
lea r15, [rsp + 0x60]
mov qword [rsp + 0x20], r15
lea r9, str.UserDataDir
mov ecx, 1
xor edx, edx
mov r8, rbx
call fcn.14004df00
test al, al
jne 0x14004064f
cmp byte [rsp + 0x97], 0
jns 0x140040469
mov r8, qword [rsp + 0x80]
jmp 0x140040471
lea r8, [rsp + 0x80]
mov qword [rsp + 0x20], r15
lea r9, str.UserDataDir
mov ecx, 2
xor edx, edx
call fcn.14004df00
test al, al
jne 0x14004064f
cmp byte [rsp + 0x77], 0
js 0x1400406b6
cmp byte [rsp + 0x97], 0
jns 0x1400404b3
mov rcx, qword [rsp + 0x80]
call fcn.140086158
movzx ebp, byte [rsp + 0x47]
test bpl, bpl
mov rdx, qword [rsp + 0x38]
mov rax, rbp
cmovs rax, rdx
test rax, rax
je 0x14004072a
mov ebx, ebp
shr bl, 7
lea rdi, [rsp + 0x30]
mov rsi, qword [rsp + 0x30]
test bl, 1
mov rcx, rdi
cmovne rcx, rsi
movzx eax, word [rcx + rax*2 - 2]
cmp ax, 0x5c
je 0x140040688
cmp ax, 0x2f
je 0x140040688
lea rcx, [rsp + 0x30]
call fcn.14003f110
test al, al
je 0x14004072a
lea rbx, [rsp + 0x80]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140089770
cmp byte [rsp + 0x47], 0
jns 0x14004053a
mov rdx, qword [rsp + 0x30]
jmp 0x14004053f
lea rdx, [rsp + 0x30]
mov r8d, 0x104
mov rcx, rbx
call fcn.1400a1118
test rax, rax
je 0x1400406c5
lea rcx, [rsp + 0x80]
call fcn.1400a5a90
cmp rax, r14
ja 0x1400406db
mov rbx, rax
cmp rax, 0xb
jae 0x14004059d
mov byte [rsp + 0x77], bl
cmp rbx, 3
jne 0x140040644
movzx eax, word [rsp + 0x84]
mov word [rsp + 0x64], ax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x60], eax
jmp 0x1400405dd
lea rsi, [rbx + 8]
and rsi, 0xfffffffffffffff8
lea rcx, [rsi + rsi]
call fcn.14008611c
mov r15, rax
mov qword [rsp + 0x60], rax
add r14, 0x11
or r14, rsi
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x68], rbx
mov r8, rbx
add r8, rbx
lea rdx, [rsp + 0x80]
mov rcx, r15
call fcn.1400890c0
mov word [r15 + rbx*2], 0
cmp byte [r13 + 0x17], 0
js 0x1400406e5
mov rax, qword [rsp + 0x70]
mov qword [r13 + 0x10], rax
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [r13], xmm0
mov sil, 1
cmp byte [rsp + 0x47], 0
jns 0x140040616
mov rcx, qword [rsp + 0x30]
call fcn.140086158
mov rcx, qword [rsp + 0x288]
xor rcx, rsp
call fcn.140087640
mov eax, esi
movaps xmm6, xmmword [rsp + 0x290]
add rsp, 0x2a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test rbx, rbx
jne 0x1400405c7
jmp 0x1400405dd
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x60]
call fcn.14004e000
cmp byte [rsp + 0x47], 0
jns 0x14004066f
mov rcx, qword [rsp + 0x30]
call fcn.140086158
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0x30], xmm0
jmp 0x140040491
test bl, 1
je 0x1400406f3
lea rax, [rdx - 1]
mov qword [rsp + 0x38], rax
lea rax, [rsi + rdx*2]
add rax, 0xfffffffffffffffe
jmp 0x140040703
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rcx]
movaps xmmword [rsp + 0x30], xmm0
jmp 0x1400403ae
mov rcx, qword [rsp + 0x60]
call fcn.140086158
jmp 0x14004049c
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
jmp 0x1400405e4
lea rcx, [rsp + 0x60]
call fcn.1400d2c60
mov rcx, qword [r13]
call fcn.140086158
jmp 0x1400405ef
lea rax, [rbp - 1]
mov byte [rsp + 0x47], al
lea rax, [rsp + rbp*2]
add rax, 0x2e
mov word [rax], 0
movzx ebp, byte [rsp + 0x47]
mov ebx, ebp
shr bl, 7
test bpl, bpl
mov rdx, qword [rsp + 0x38]
mov rax, rbp
cmovs rax, rdx
test rax, rax
jne 0x1400404da
lea rbp, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
mov rdx, rbp
call fcn.140068b80
lea rsi, [rsp + 0x80]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsi + 0x10], rax
movaps xmmword [rsi], xmm6
lea rdx, str.LOCALAPPDATA
mov rcx, rsi
call fcn.14003ec70
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x140040774
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x140040831
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
movzx ecx, byte [rsp + 0x47]
test cl, cl
cmovs rcx, qword [rsp + 0x38]
cmovs rbp, qword [rsp + 0x30]
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], rax
cmp word [rbp + rcx*2 - 2], 0x5c
je 0x1400407da
lea rcx, [rsp + 0x30]
mov dx, 0x5c
call fcn.140067cf0
mov dil, 1
lea rbx, [rsp + 0x30]
mov rcx, r12
mov dl, 1
mov r8, rbx
call fcn.14003e3f0
mov rcx, rbx
mov dx, 0x5c
call fcn.140067cf0
lea rdx, str.User_Data
mov rcx, rbx
call fcn.1400336c0
cmp byte [rsp + 0x97], 0
jns 0x140040821
mov rcx, qword [rsp + 0x80]
call fcn.140086158
test dil, dil
jne 0x140040514
xor esi, esi
jmp 0x140040605
xor edi, edi
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14004080a
mov ebx, eax
inc ebx
xor edi, edi
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140068120
cmp byte [rsp + 0x97], 0
jns 0x140040867
mov rsi, qword [rsp + 0x80]
mov ecx, ebx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14004080a
mov edx, eax
movzx eax, byte [rsp + 0x97]
test al, al
jns 0x14004088c
mov rax, qword [rsp + 0x88]
cmp rax, rdx
jbe 0x1400408a6
lea rcx, [rsp + 0x80]
xor r8d, r8d
call fcn.140068120
jmp 0x14004077d
xor edi, edi
jmp 0x14004080a