Function at 0x140003c40
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, 0x190
mov rax, qword [0x140056040]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rbx, rdx
xor r15d, r15d
mov qword [rsp + 0x78], r15
lea r9, [rsp + 0x78]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400468c0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x140004022
mov rdx, qword [rsp + 0x78]
mov rsi, 0xffffffffffffffff
mov r8, rsi
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], r15w
jne 0x140003cb0
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
mov qword [rsp + 0xa8], r15
mov qword [rsp + 0xb0], r15
lea rcx, [rsp + 0x98]
call fcn.1400078a0
nop
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 7
jbe 0x140003cf1
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.1400078a0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x98]
call fcn.140001bc0
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140003d6a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003d64
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003d64
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140043c04
nop
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x80], xmm0
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x80]
call fcn.140006fd0
test eax, eax
jne 0x140004052
xorps xmm0, xmm0
movups xmmword [rsp + 0xd0], xmm0
mov rbx, qword [rsp + 0x88]
test rbx, rbx
je 0x140003db7
lock inc dword [rbx + 8]
mov rbx, qword [rsp + 0x88]
movaps xmm0, xmmword [rsp + 0x80]
movdqa xmmword [rsp + 0xd0], xmm0
test rbx, rbx
je 0x140003dd9
lock inc dword [rbx + 8]
mov rbx, qword [rsp + 0x88]
xorps xmm1, xmm1
movdqu xmmword [rsp + 0xe0], xmm1
test rbx, rbx
je 0x140003e2d
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140003e25
mov rbx, qword [rsp + 0x88]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140003e25
mov rbx, qword [rsp + 0x88]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
jmp 0x140003e2d
mov rbx, qword [rsp + 0x88]
lea r12, [0x1400560c8]
mov r14, qword [rsp + 0xe0]
nop dword [rax]
mov rdi, qword [rsp + 0xd0]
cmp rdi, r14
je 0x140003efa
add rdi, 0x20
mov qword [rsp + 0xc0], r15
mov qword [rsp + 0xc8], r12
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140003e72
mov rcx, qword [rdi]
call fcn.1400436d8
mov rdx, rax
shr rdx, 0x20
movzx ecx, al
mov qword [rsp + 0x90], rcx
mov dword [rsp + 0x40], edx
mov qword [rsp + 0x48], r12
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0xc0], xmm0
cmp edx, 0x91
jne 0x140003ec0
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0xc0]
mov rcx, rdi
call fcn.140003140
mov eax, dword [rsp + 0xc0]
test eax, eax
setne cl
test eax, eax
je 0x140003ed8
mov qword [rsp + 0x90], rsi
test cl, cl
jne 0x140004069
lea rcx, [rsp + 0xd0]
call fcn.140002940
test eax, eax
jne 0x140004080
jmp 0x140003e40
mov rcx, qword [rsp + 0xd8]
test rcx, rcx
je 0x140003f45
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140003f3d
mov rbx, qword [rsp + 0xd8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140003f3d
mov rcx, qword [rsp + 0xd8]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x88]
test rbx, rbx
je 0x140003f7e
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140003f7e
mov rbx, qword [rsp + 0x88]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x140003f7e
mov rcx, qword [rsp + 0x88]
mov rax, qword [rcx]
call qword [rax + 8]
lea rcx, [rsp + 0x98]
cmp qword [rsp + 0xb0], 7
cmova rcx, qword [rsp + 0x98]
call fcn.1400436d8
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x140004088
mov rdx, qword [rsp + 0xb0]
cmp rdx, 7
jbe 0x140003ff7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003ff2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003ff2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140043c04
movdqa xmm0, xmmword [0x14004d730]
movdqu xmmword [rsp + 0xa8], xmm0
mov word [rsp + 0x98], r15w
mov al, 1
jmp 0x140004024
xor al, al
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140043960
lea r11, [rsp + 0x190]
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 + 0x98]
mov edx, eax
lea rcx, str.directory_iterator::directory_iterator
call fcn.140002710
nop
mov r8, rdi
lea rdx, [rsp + 0xc0]
lea rcx, str.remove_all
call fcn.140002780
mov edx, eax
call fcn.140002620
nop
shr rdx, 0x20
lea r8, [rsp + 0x98]
lea rcx, str.remove
call fcn.140002710
int3