Function at 0x140075878
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x1f8]
sub rsp, 0x2e0
mov rax, qword [0x140132040]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rdi, 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 ebx, 0x1000
lea r15d, [r14 + 0xf]
xorps xmm0, xmm0
test eax, eax
js 0x1400759a8
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 0x140075900
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x58]
call fcn.140004a50
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, [rsp + 0x78]
call fcn.14000467c
mov esi, 2
mov dword [rsp + 0x30], esi
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x140075992
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, rbx
jb 0x14007598d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007598d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e75e4
movdqa xmm0, xmmword [0x14011e460]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], r14w
jmp 0x1400759c3
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], r15
mov byte [rsp + 0x78], r14b
mov esi, 2
mov dword [rsp + 0x30], esi
lea rdx, str.chaosconfigs
lea rcx, [rsp + 0x78]
call fcn.140003c38
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r15
mov byte [rax], r14b
or esi, 4
or esi, 1
mov dword [rsp + 0x30], esi
mov rdx, qword [rbp - 0x70]
cmp rdx, r15
jbe 0x140075a3f
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, rbx
jb 0x140075a3a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140075a3a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e75e4
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], r15
mov byte [rsp + 0x78], r14b
mov rcx, qword [rdi + 0x10]
mov rax, rdi
cmp qword [rdi + 0x18], r15
jbe 0x140075a5c
mov rax, qword [rdi]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rcx
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x68]
call fcn.140005c0c
or esi, 8
mov dword [rsp + 0x30], esi
lea rcx, [rbp - 0x68]
call fcn.140002868
mov bl, al
lea rcx, [rbp - 0x68]
call fcn.140003afc
test bl, bl
jne 0x140075ae6
mov rcx, qword [rdi + 0x10]
mov rax, rdi
cmp qword [rdi + 0x18], r15
jbe 0x140075aa3
mov rax, qword [rdi]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rcx
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x68]
call fcn.140005c0c
or esi, 0x10
mov dword [rsp + 0x30], esi
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 7
cmova rcx, qword [rbp - 0x68]
call fcn.1400e8a08
shr rax, 0x20
test eax, eax
jne 0x140075b15
lea rcx, [rbp - 0x68]
call fcn.140003afc
mov rax, rdi
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1400e7580
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
lea r8, [rbp - 0x68]
mov edx, eax
lea rcx, str.create_directory
call fcn.140002734
int3