Function at 0x18004c5b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0x160
mov rax, qword [0x180066040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rcx
xor r15d, r15d
mov qword [rsp + 0x40], r15
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1800548e0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x18004c93d
mov rdx, qword [rsp + 0x40]
mov rsi, 0xffffffffffffffff
mov r8, rsi
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], r15w
jne 0x18004c620
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x80], r15
lea rcx, [rsp + 0x68]
call fcn.1800166e0
nop
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 7
jbe 0x18004c658
mov rbx, qword [rbx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r15
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1800166e0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x68]
call fcn.18004a620
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x18004c6ce
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004c6c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004c6c8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180051190
nop
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x50]
call fcn.18004f5a0
test eax, eax
jne 0x18004c96d
xorps xmm0, xmm0
movups xmmword [rsp + 0xa0], xmm0
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x18004c70c
lock inc dword [rbx + 8]
mov rbx, qword [rsp + 0x58]
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0xa0], xmm0
test rbx, rbx
je 0x18004c728
lock inc dword [rbx + 8]
mov rbx, qword [rsp + 0x58]
xorps xmm1, xmm1
movdqu xmmword [rsp + 0xb0], xmm1
test rbx, rbx
je 0x18004c773
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x18004c76e
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18004c76e
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
jmp 0x18004c773
mov rbx, qword [rsp + 0x58]
lea r12, [0x1800660e8]
mov r14, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xa0]
cmp rdi, r14
je 0x18004c824
add rdi, 0x20
mov qword [rsp + 0x90], r15
mov qword [rsp + 0x98], r12
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x18004c7b4
mov rcx, qword [rdi]
call fcn.180050ee8
mov rdx, rax
shr rdx, 0x20
movzx ecx, al
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x20], edx
mov qword [rsp + 0x28], r12
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x90], xmm0
cmp edx, 0x91
jne 0x18004c7fc
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x90]
mov rcx, rdi
call fcn.18004b4c0
cmp dword [rsp + 0x90], 0
jne 0x18004c981
lea rcx, [rsp + 0xa0]
call fcn.18004adf0
test eax, eax
jne 0x18004c998
jmp 0x18004c782
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x18004c86c
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x18004c867
mov rbx, qword [rsp + 0xa8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18004c867
mov rcx, qword [rsp + 0xa8]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x18004c89f
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x18004c89f
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x18004c89f
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 8]
lea rcx, [rsp + 0x68]
cmp qword [rsp + 0x80], 7
cmova rcx, qword [rsp + 0x68]
call fcn.180050ee8
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x18004c9a0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rdx, qword [rsp + 0x80]
cmp rdx, 7
jbe 0x18004c91b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004c916
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004c916
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180051190
movdqa xmm0, xmmword [0x18005b2d0]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r15w
mov al, 1
jmp 0x18004c93f
xor al, al
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180051170
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
ret
lea r8, [rsp + 0x68]
mov edx, eax
lea rcx, str.directory_iterator::directory_iterator
call fcn.18004ac20
nop
mov r8, rdi
lea rdx, [rsp + 0x90]
lea rcx, str.remove_all
call fcn.180017a70
mov edx, eax
call fcn.18004abc0
nop
shr rdx, 0x20
lea r8, [rsp + 0x68]
lea rcx, str.remove
call fcn.18004ac20
int3