Function at 0x140006e94
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
mov eax, 0x11b0
call fcn.1400baa60
sub rsp, rax
mov rax, qword [0x1400e0920]
xor rax, rsp
mov qword [rsp + 0x11a0], rax
or qword [rsp + 0x70], 0xffffffffffffffff
xor eax, eax
mov edi, r9d
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x98], r8
mov rsi, rdx
mov rbp, rcx
mov bl, al
mov byte [rsp + 0x50], al
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
cmp r9d, eax
jne 0x140006f1b
mov rcx, qword [rcx]
lea r8, [rsp + 0x78]
lea edx, [rax + 0x11]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov rcx, qword [rbp]
lea r8, [rsp + 0x80]
mov edx, 0x12
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
xor eax, eax
mov rdx, qword [rbp]
mov qword [rsp + 0x68], rax
mov rax, qword [rsi]
lea r9, [rsp + 0x68]
mov r8d, 0x20
mov rcx, rsi
call qword [rax + 0x20]
xor edx, edx
cmp eax, edx
jne 0x140007255
mov rcx, qword [rsp + 0x68]
cmp rcx, rdx
je 0x140007255
mov qword [rsp + 0x58], rdx
mov rax, qword [rcx]
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x58]
mov edx, 1
call qword [rax + 0x18]
test eax, eax
jne 0x14000724a
mov rax, qword [rsi]
lea r9, [rsp + 0x64]
lea r8, [rsp + 0x58]
mov edx, 1
mov rcx, rsi
mov dword [rsp + 0x64], 0x10000000
call qword [rax + 0x48]
bt dword [rsp + 0x64], 0x1c
mov rdx, qword [rsp + 0x58]
jb 0x140006fb4
mov rcx, qword [0x140126b70]
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x14000721f
lea r9, [rsp + 0x8a0]
mov r8d, 1
mov rcx, rsi
mov qword [rsp + 0x20], 0x480
call fcn.140026758
xor ebx, ebx
cmp al, bl
jne 0x140006fe0
mov rdx, qword [rsp + 0x58]
jmp 0x140006fa2
cmp edi, ebx
jne 0x1400070d1
mov r9, qword [rsp + 0x58]
or rcx, 0xffffffffffffffff
mov byte [rsp + 0x40], 1
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x8a0]
mov dword [rsp + 0x30], 1
lea r8d, [rcx + 5]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
lea rdx, [rsp + 0x8a0]
mov rcx, rbp
call fcn.140006980
mov r10, qword [rsi]
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x80]
xor edx, edx
mov rcx, rsi
mov rbx, rax
call qword [r10 + 0x38]
test eax, eax
jne 0x140007050
lea rax, [rbx + 1]
mov qword [rbp + 0x10], rax
mov rax, qword [rsi]
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x78]
xor edx, edx
mov rcx, rsi
call qword [rax + 0x38]
xor ebx, ebx
cmp eax, ebx
jne 0x14000721f
mov rax, qword [rsi]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x20], rcx
lea r9, [0x1400cd3c8]
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x90], rbx
call qword [rax + 0x28]
cmp eax, ebx
jne 0x14000721f
mov rdx, qword [rsp + 0x90]
cmp rdx, rbx
je 0x14000721f
mov r8, qword [rsp + 0x58]
lea r9d, [rbx + 1]
mov rcx, rbp
call fcn.140006e94
mov bl, al
mov byte [rsp + 0x50], al
jmp 0x140007223
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x98]
call fcn.140026620
lea rdx, [rsp + 0xa0]
mov word [rsp + 0xa0], bx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [0x140126b70]
mov rdx, rdi
mov r8, qword [rcx]
cmp eax, ebx
setne bl
call qword [r8 + 0x28]
xor edi, edi
cmp bl, dil
jne 0x140007133
mov rcx, qword [0x140126b70]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x14000721b
lea rcx, [rsp + 0xa0]
call fcn.1400528e8
cmp al, dil
je 0x1400071cc
movzx eax, word [rsp + 0xa4]
cmp ax, di
je 0x140007166
cmp ax, 0x5c
jne 0x1400071cc
cmp word [rsp + 0xa6], di
jne 0x1400071cc
lea rcx, [rsp + 0xa0]
call fcn.140052588
mov rbx, qword [rsp + 0x70]
mov byte [rsp + 0x40], 1
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x8a0]
mov dword [rsp + 0x30], 2
mov qword [rsp + 0x28], rax
or dword [rsp + 0x20], 0xffffffff
lea rdx, [rsp + 0xa0]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
call fcn.140006980
cmp rbx, 0xffffffffffffffff
je 0x1400071c0
inc rbx
mov qword [rsp + 0x70], rbx
mov edi, dword [rsp + 0x60]
mov bl, 1
mov byte [rsp + 0x50], bl
jmp 0x140007223
mov byte [rsp + 0x40], 1
or rdi, 0xffffffffffffffff
lea rax, [rsp + 0x8a0]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 2
mov qword [rsp + 0x28], rax
lea r8d, [rdi + 6]
lea rdx, [rsp + 0xa0]
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x20], edi
call fcn.140006980
mov rbx, qword [rsp + 0x70]
cmp rbx, rdi
cmove rbx, rax
mov qword [rsp + 0x70], rbx
mov edi, dword [rsp + 0x60]
mov bl, byte [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x58]
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 0x18]
xor ecx, ecx
cmp eax, ecx
je 0x140006f75
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x10]
mov rdx, qword [rsp + 0x80]
xor edi, edi
cmp rdx, rdi
je 0x14000727a
mov rcx, qword [0x140126b70]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rdx, qword [rsp + 0x78]
cmp rdx, rdi
je 0x140007291
mov rcx, qword [0x140126b70]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov al, bl
mov rcx, qword [rsp + 0x11a0]
xor rcx, rsp
call fcn.1400a86e0
mov rbx, qword [rsp + 0x11e8]
add rsp, 0x11b0
pop rdi
pop rsi
pop rbp
ret