Function at 0x14007a204
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x140138040]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, 0x1000
xorps xmm0, xmm0
test eax, eax
js 0x14007a32a
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
lea rax, [rbp - 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r14w
jne 0x14007a283
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x58]
call fcn.140004af0
nop
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x68]
lea r8, [rcx + rax*2]
lea rdx, [rsp + 0x58]
cmova rdx, qword [rsp + 0x58]
lea rcx, [rbp - 0x68]
call fcn.140004770
mov edi, 2
mov dword [rsp + 0x30], edi
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x14007a314
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, rsi
jb 0x14007a30f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007a30f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ec284
movdqa xmm0, xmmword [0x140123370]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], r14w
jmp 0x14007a348
movups xmmword [rbp - 0x68], xmm0
movdqa xmm1, xmmword [0x140123390]
movdqu xmmword [rbp - 0x58], xmm1
mov byte [rbp - 0x68], r14b
mov edi, 2
mov dword [rsp + 0x30], edi
lea rdx, str.chaosconfigs
lea rcx, [rbp - 0x68]
call fcn.140003db8
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], r14b
or edi, 4
or edi, 1
mov dword [rsp + 0x30], edi
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x14007a3c7
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, rsi
jb 0x14007a3c2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007a3c2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ec284
movdqa xmm0, xmmword [0x140123390]
movdqu xmmword [rbp - 0x58], xmm0
mov byte [rbp - 0x68], r14b
mov rcx, qword [rbx + 0x10]
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14007a3e9
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rcx
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
call fcn.140005c20
or edi, 8
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x40], r14d
lea rax, [0x1401380d8]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
call fcn.140002978
mov sil, al
cmp dword [rsp + 0x40], r14d
jne 0x14007a4f2
lea rcx, [rsp + 0x78]
call fcn.140003c7c
test sil, sil
jne 0x14007a4b4
mov rcx, qword [rbx + 0x10]
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14007a462
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rcx
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
call fcn.140005c20
or edi, 0x10
mov dword [rsp + 0x30], edi
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova rcx, qword [rsp + 0x78]
call fcn.1400ed7c8
shr rax, 0x20
test eax, eax
jne 0x14007a4de
lea rcx, [rsp + 0x78]
call fcn.140003c7c
mov rax, rbx
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1400ec220
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea r8, [rsp + 0x78]
mov edx, eax
lea rcx, str.create_directory
call fcn.140002844
nop
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x40]
lea rcx, str.exists
call fcn.1400028a4
int3