Function at 0x18003a570
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x180051040]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rdx
mov rdi, rcx
xor esi, esi
mov qword [rsp + 0x40], rsi
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1800418a0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x18003a90c
mov rdx, qword [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], si
jne 0x18003a5d0
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x90], rsi
lea rcx, [rsp + 0x78]
call fcn.180004900
nop
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 7
jbe 0x18003a60b
mov rdi, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.180004900
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x78]
call fcn.180038030
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x18003a680
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003a67b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003a67b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003eb90
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 7
jbe 0x18003a69a
mov rbx, qword [rbx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.180004900
nop
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x58]
call fcn.180038250
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x18003a714
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003a70f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003a70f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003eb90
movdqa xmm0, xmmword [0x180047330]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], si
mov qword [rsp + 0x48], rsi
lea rax, [0x1800510c8]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.180005cf0
cmp dword [rsp + 0x48], 0
jne 0x18003a933
test al, al
je 0x18003a848
lea rcx, [rsp + 0x58]
call fcn.180038df0
test al, al
je 0x18003a848
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova rcx, qword [rsp + 0x58]
call fcn.18003e8e8
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x18003a949
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x18003a7d3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003a7ce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18003a881
call fcn.18003eb90
movdqa xmm0, xmmword [0x180047330]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], si
mov rdx, qword [rsp + 0x90]
cmp rdx, 7
jbe 0x18003a833
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003a826
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18003a8dc
call fcn.18003eb90
movdqa xmm0, xmmword [0x180047330]
movdqu xmmword [rsp + 0x88], xmm0
mov word [rsp + 0x78], si
mov al, 1
jmp 0x18003a90e
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x18003a88d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003a888
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003a888
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003eb90
movdqa xmm0, xmmword [0x180047330]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], si
mov rdx, qword [rsp + 0x90]
cmp rdx, 7
jbe 0x18003a8f0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003a8e3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003a8e3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003eb90
movdqa xmm0, xmmword [0x180047330]
movdqu xmmword [rsp + 0x88], xmm0
mov word [rsp + 0x78], si
xor al, al
jmp 0x18003a90e
xor al, al
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.18003eb70
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x48]
lea rcx, str.exists
call fcn.180005c90
shr rdx, 0x20
lea r8, [rsp + 0x58]
lea rcx, str.remove
call fcn.180038630
int3