Function at 0x7ff65c516bd0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov r14, rcx
xor eax, eax
mov dword [rsp + 0x30], eax
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov dword [rsp + 0x30], 1
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1c
xor ecx, ecx
call qword [sym.imp.shell32.dll_SHGetFolderPathA]
movabs r13, 0xde8b4944c07c1b1f
movabs r12, 0xb71e6155e43a3df4
xorps xmm1, xmm1
mov r15, 0xffffffffffffffff
mov r8, r15
test eax, eax
js 0x7ff65c516c83
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
movdqu xmmword [rbp - 0x70], xmm1
lea rax, [rbp + 0xe0]
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x7ff65c516c70
lea rdx, [rbp + 0xe0]
jmp 0x7ff65c516d00
mov qword [rbp + 0x238], r13
mov rax, qword [rbp + 0x238]
mov qword [rsp + 0x60], rax
mov qword [rbp + 0x238], r12
mov rax, qword [rbp + 0x238]
mov qword [rsp + 0x68], rax
mov qword [rbp + 0x238], r13
mov rax, qword [rbp + 0x238]
mov qword [rsp + 0x40], rax
mov qword [rbp + 0x238], r12
mov rax, qword [rbp + 0x238]
mov qword [rsp + 0x48], rax
movdqa xmm0, xmmword [rsp + 0x60]
xorps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x60], xmm0
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
movdqu xmmword [rbp - 0x70], xmm1
lea rax, [rsp + 0x60]
inc r8
cmp byte [rax + r8], 0
jne 0x7ff65c516cf1
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.7ff65c4f3550
mov dword [rsp + 0x30], 0x101
mov rax, qword [rbp - 0x80]
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmovbe rax, rdx
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x70], xmm0
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x80]
call fcn.7ff65c4f8cd0
mov dword [rsp + 0x30], 0x301
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x7ff65c516d95
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff65c516d90
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff65c516d90
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff65c618c48
movdqa xmm0, xmmword [0x7ff65c642360]
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x80], 0
movabs rax, 0xde8b4944b31b7473
mov qword [rbp + 0x238], rax
mov rax, qword [rbp + 0x238]
mov qword [rsp + 0x60], rax
mov qword [rbp + 0x238], r12
mov rax, qword [rbp + 0x238]
mov qword [rsp + 0x68], rax
mov qword [rbp + 0x238], r13
mov rax, qword [rbp + 0x238]
mov qword [rsp + 0x40], rax
mov qword [rbp + 0x238], r12
mov rax, qword [rbp + 0x238]
mov qword [rsp + 0x48], rax
movdqa xmm0, xmmword [rsp + 0x60]
xorps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x60], xmm0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x60]
mov rax, r15
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x7ff65c516e20
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x70], xmm0
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x20]
call fcn.7ff65c4f8cd0
mov dword [rsp + 0x30], 0x701
movabs rax, 0xde8b312bac1e744d
mov qword [rbp + 0x238], rax
mov rax, qword [rbp + 0x238]
mov qword [rsp + 0x50], rax
mov qword [rbp + 0x238], r12
mov rax, qword [rbp + 0x238]
mov qword [rsp + 0x58], rax
mov qword [rbp + 0x238], r13
mov rax, qword [rbp + 0x238]
mov qword [rsp + 0x40], rax
mov qword [rbp + 0x238], r12
mov rax, qword [rbp + 0x238]
mov qword [rsp + 0x48], rax
movdqa xmm0, xmmword [rsp + 0x50]
xorps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x50], xmm0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x50]
mov rax, r15
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x7ff65c516ed0
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x70], xmm0
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x50]
call fcn.7ff65c4f8cd0
mov ebx, 0xf01
mov dword [rsp + 0x30], ebx
lea r8, [rbp - 0x50]
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x40]
call fcn.7ff65c515740
nop
lea r8, [rbp + 0x20]
mov rdx, rax
lea rcx, [rbp + 0x60]
call fcn.7ff65c515740
nop
lea rcx, [rbp + 0x40]
call fcn.7ff65c4f7d90
nop
lea rcx, [rbp - 0x50]
call fcn.7ff65c4f7d90
nop
lea rcx, [rbp + 0x20]
call fcn.7ff65c4f7d90
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.7ff65c5186a0
test eax, eax
jne 0x7ff65c5173c7
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x7ff65c516f7c
lock inc dword [rdi + 8]
mov rdi, qword [rsp + 0x58]
mov ebx, dword [rsp + 0x30]
movdqa xmm1, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x60], xmm1
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
test rdi, rdi
je 0x7ff65c516fa9
lock inc dword [rdi + 8]
mov rdi, qword [rsp + 0x58]
movdqa xmm1, xmmword [rsp + 0x50]
mov ebx, dword [rsp + 0x30]
movdqa xmmword [rsp + 0x70], xmm1
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x20], xmm1
test rdi, rdi
je 0x7ff65c516ffc
mov eax, r15d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x7ff65c516ff3
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r15d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x7ff65c516ff3
mov rdi, qword [rsp + 0x58]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
jmp 0x7ff65c516ff8
mov rdi, qword [rsp + 0x58]
mov ebx, dword [rsp + 0x30]
cmp qword [rsp + 0x50], 0
je 0x7ff65c51731b
mov rdi, qword [rsp + 0x60]
movabs rsi, 0xde8b4944a7137731
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.7ff65c515f40
mov rax, qword [rbp - 0x30]
mov edx, dword [rbp - 0x28]
test edx, edx
je 0x7ff65c51703d
lea ecx, [rax - 1]
test ecx, 0xfffffff7
jne 0x7ff65c5173da
cmp eax, 2
jne 0x7ff65c51726e
mov qword [rbp + 0x238], rsi
mov rax, qword [rbp + 0x238]
mov qword [rbp - 0x60], rax
mov qword [rbp + 0x238], r12
mov rax, qword [rbp + 0x238]
mov qword [rbp - 0x58], rax
mov qword [rbp + 0x238], r13
mov rax, qword [rbp + 0x238]
mov qword [rbp - 0x20], rax
mov qword [rbp + 0x238], r12
mov rax, qword [rbp + 0x238]
mov qword [rbp - 0x18], rax
movdqa xmm0, xmmword [rbp - 0x60]
xorps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x60], xmm0
lea rax, [rbp - 0x60]
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x60]
mov rax, r15
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x7ff65c5170b0
mov qword [rbp - 8], rax
movaps xmm0, xmmword [rbp - 0x10]
movdqa xmmword [rbp - 0x80], xmm0
xor r8d, r8d
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x50]
call fcn.7ff65c4f8cd0
mov ebx, dword [rsp + 0x30]
or ebx, 0x20
or ebx, 2
mov dword [rsp + 0x30], ebx
mov rdi, qword [rsp + 0x60]
lea rdx, [rbp + 0xc0]
lea rcx, [rdi + 0x20]
call fcn.7ff65c515600
nop
or ebx, 4
mov dword [rsp + 0x30], ebx
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 7
cmova rcx, qword [rbp - 0x50]
mov qword [rbp], rcx
mov rcx, qword [rbp - 0x40]
mov qword [rbp + 8], rcx
movaps xmm0, xmmword [rbp]
movdqa xmmword [rbp - 0x80], xmm0
lea rdx, [rbp - 0x80]
mov rcx, rax
call fcn.7ff65c5153e0
test eax, eax
jne 0x7ff65c51726e
lea rcx, [rdi + 0x20]
cmp qword [rdi + 0x38], 7
jbe 0x7ff65c517147
mov rcx, qword [rdi + 0x20]
mov rax, qword [rdi + 0x30]
lea rsi, [rcx + rax*2]
mov rdi, rsi
mov rdx, rsi
call fcn.7ff65c514f40
cmp rax, rsi
je 0x7ff65c51719b
nop
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x7ff65c51716f
cmp cx, 0x2f
jne 0x7ff65c517178
add rax, 2
cmp rax, rsi
jne 0x7ff65c517160
cmp rax, rsi
je 0x7ff65c51719b
nop dword [rax]
lea rdx, [rdi - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x7ff65c51719b
cmp cx, 0x2f
je 0x7ff65c51719b
mov rdi, rdx
cmp rax, rdx
jne 0x7ff65c517180
mov qword [rbp + 0x10], rdi
sub rsi, rdi
sar rsi, 1
mov qword [rbp + 0x18], rsi
movaps xmm0, xmmword [rbp + 0x10]
movdqa xmmword [rbp - 0x80], xmm0
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x40]
call fcn.7ff65c51a680
or ebx, 0xc0
or ebx, 8
mov dword [rsp + 0x30], ebx
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0x40]
call fcn.7ff65c5152e0
mov r8, rax
or ebx, 0x10
mov dword [rsp + 0x30], ebx
movabs rax, 0xde8b3b21b91d774f
mov qword [rbp + 0x238], rax
mov rcx, qword [rbp + 0x238]
mov qword [rsp + 0x40], rcx
mov qword [rbp + 0x238], r12
mov rcx, qword [rbp + 0x238]
mov qword [rsp + 0x48], rcx
mov qword [rbp + 0x238], r13
mov rcx, qword [rbp + 0x238]
mov qword [rsp + 0x70], rcx
mov qword [rbp + 0x238], r12
mov rax, qword [rbp + 0x238]
mov qword [rsp + 0x78], rax
movdqa xmm0, xmmword [rsp + 0x40]
xorps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
mov rcx, r8
call fcn.7ff65c4f7730
mov rdi, qword [rsp + 0x60]
mov ebx, dword [rsp + 0x30]
cmp rax, 0xffffffffffffffff
je 0x7ff65c51726e
mov sil, 1
jmp 0x7ff65c517271
xor sil, sil
test bl, 0x10
je 0x7ff65c51728a
and ebx, 0xffffffef
mov dword [rsp + 0x30], ebx
lea rcx, [rbp + 0xa0]
call fcn.7ff65c4f3490
nop
test bl, 8
je 0x7ff65c5172a0
and ebx, 0xfffffff7
mov dword [rsp + 0x30], ebx
lea rcx, [rbp + 0x40]
call fcn.7ff65c4f7d90
nop
test bl, 4
je 0x7ff65c5172b9
and ebx, 0xfffffffb
mov dword [rsp + 0x30], ebx
lea rcx, [rbp + 0xc0]
call fcn.7ff65c4f7d90
nop
test bl, 2
je 0x7ff65c5172ce
and ebx, 0xfffffffd
mov dword [rsp + 0x30], ebx
lea rcx, [rbp - 0x50]
call fcn.7ff65c4f7d90
test sil, sil
je 0x7ff65c5172fe
lea r8, [rdi + 0x20]
mov rax, qword [r14 + 8]
cmp rax, qword [r14 + 0x10]
je 0x7ff65c5172f3
mov rdx, r8
mov rcx, rax
call fcn.7ff65c4f7600
add qword [r14 + 8], 0x20
jmp 0x7ff65c5172fe
mov rdx, rax
mov rcx, r14
call fcn.7ff65c519a70
lea rcx, [rsp + 0x60]
call fcn.7ff65c516620
mov rdi, qword [rsp + 0x60]
test rdi, rdi
jne 0x7ff65c51700d
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x7ff65c51735c
mov eax, r15d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x7ff65c517357
mov rbx, qword [rsp + 0x68]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r15d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x7ff65c517357
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x7ff65c517393
mov eax, r15d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x7ff65c517393
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r15d
cmp r15d, 1
jne 0x7ff65c517393
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rcx, [rbp + 0x60]
call fcn.7ff65c4f7d90
nop
lea rcx, [rbp + 0x80]
call fcn.7ff65c4f7d90
mov rax, r14
mov rbx, qword [rsp + 0x340]
add rsp, 0x2f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [rbp + 0x60]
mov edx, eax
lea rcx, str.directory_iterator::directory_iterator
call fcn.7ff65c515ec0
nop
lea r8, [rdi + 0x20]
lea rcx, str.directory_entry::status
call fcn.7ff65c515ec0
int3