Function at 0x7ff79016406c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5f0]
sub rsp, 0x6f0
mov rax, qword [0x7ff7904d6b68]
xor rax, rsp
mov qword [rbp + 0x5e0], rax
mov rdi, rdx
mov r15, rcx
call fcn.7ff790184220
xor ebx, ebx
mov r13d, eax
mov r12b, bl
test eax, eax
js 0x7ff790164281
mov r14d, ebx
mov dword [rsp + 0x30], ebx
lea esi, [rbx + 1]
mov r9d, 0x104
lea r8, [rsp + 0x60]
mov edx, esi
mov rcx, r15
call fcn.7ff7901642d0
test eax, eax
je 0x7ff79016424e
lea rdx, [0x7ff7904616ec]
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
je 0x7ff79020b9a8
lea rdx, str._EXPAND
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
je 0x7ff79020b9b1
lea rdx, [0x7ff7904616f4]
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
je 0x7ff79020b9ba
lea rdx, str._ROOT
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
je 0x7ff79020b9c3
lea rdx, str._SELECT
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
je 0x7ff79020bac4
lea rdx, str._IDLIST
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
je 0x7ff79020bb7a
lea rdx, str._SEPARATE
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
je 0x7ff79020bacd
lea rdx, str._FACTORY
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
jne 0x7ff79020bad9
movups xmm0, xmmword [0x7ff7904664c0]
inc esi
lea r9d, [rax + 0x50]
lea r8, [rbp + 0x1c0]
mov edx, esi
mov rcx, r15
movdqu xmmword [rsp + 0x38], xmm0
call fcn.7ff7901642d0
test eax, eax
je 0x7ff79016421e
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.SHCORE.dll_Ordinal_200]
nop dword [rax + rax]
movups xmm0, xmmword [rsp + 0x38]
movdqu xmmword [rdi + 0x18], xmm0
mov rax, qword [rdi + 0x18]
sub rax, qword [0x7ff7904664c0]
jne 0x7ff790164240
mov rax, qword [rdi + 0x20]
sub rax, qword [0x7ff7904664c8]
test rax, rax
setne r12b
inc esi
jmp 0x7ff7901640c1
cmp qword [rdi], rbx
jne 0x7ff790164270
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 5]
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderLocation]
nop dword [rax + rax]
test r13d, r13d
jne 0x7ff790164281
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
nop dword [rax + rax]
cmp qword [rdi], rbx
je 0x7ff7901642b8
mov ebx, 1
mov eax, ebx
mov rcx, qword [rbp + 0x5e0]
xor rcx, rsp
call fcn.7ff7901bf100
mov rbx, qword [rsp + 0x740]
add rsp, 0x6f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test r12b, r12b
je 0x7ff79016428b
jmp 0x7ff790164286
or dword [rdi + 0x14], 1
jmp 0x7ff790164247
or dword [rdi + 0x14], 0x10
jmp 0x7ff790164247
or dword [rdi + 0x14], 8
jmp 0x7ff790164247
inc esi
mov qword [rsp + 0x38], rbx
mov edx, esi
lea r8, [rsp + 0x60]
mov r9d, 0x104
mov rcx, r15
call fcn.7ff7901642d0
test eax, eax
je 0x7ff79020bbb0
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHCORE.dll_Ordinal_200]
nop dword [rax + rax]
test eax, eax
je 0x7ff79020ba91
lea r8, [rsp + 0x60]
mov edx, 0x27
lea rcx, [rbp + 0x170]
call fcn.7ff7901b120c
inc esi
lea r8, [rsp + 0x60]
mov edx, esi
mov r9d, 0x104
mov rcx, r15
call fcn.7ff7901642d0
test eax, eax
jne 0x7ff79020ba4f
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x170]
call 0x7ff790248250
test eax, eax
je 0x7ff79020bbb0
xor r9d, r9d
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x38]
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_shell_namespace_l1_1_0.dll_SHParseDisplayName]
nop dword [rax + rax]
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x7ff79020ba83
mov qword [rdi], rax
mov dword [rdi + 8], 1
test r14d, r14d
jne 0x7ff79016424e
jmp 0x7ff790164247
lea rdx, str._IDLIST
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
jne 0x7ff79020ba4f
inc esi
lea r14d, [rax + 1]
mov edx, esi
mov dword [rsp + 0x30], r14d
mov rcx, r15
call 0x7ff7902483a8
jmp 0x7ff79020ba74
or dword [rdi + 0x14], 4
jmp 0x7ff790164247
mov dword [rdi + 0x10], 1
jmp 0x7ff790164247
lea rdx, str._LOADSAVEDWINDOWS
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
je 0x7ff790164247
cmp qword [rdi], rbx
jne 0x7ff790164247
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_ILCreateFromPathW]
nop dword [rax + rax]
mov r14, rax
test rax, rax
jne 0x7ff79020bb6d
lea rdx, [rbp + 0x1c0]
mov ecx, 0x104
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryW]
nop dword [rax + rax]
lea r8, [rsp + 0x60]
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp + 0x3d0]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathCombineW]
nop dword [rax + rax]
test rax, rax
je 0x7ff79020bb6d
lea rcx, [rbp + 0x3d0]
call qword [sym.imp.SHELL32.dll_ILCreateFromPathW]
nop dword [rax + rax]
mov r14, rax
mov qword [rdi], r14
mov r14d, dword [rsp + 0x30]
jmp 0x7ff790164247
lea edx, [rsi + 1]
mov rcx, r15
call 0x7ff7902483a8
mov rsi, rax
test rax, rax
je 0x7ff79020bbab
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_shell_namespace_l1_1_0.dll_ILFree]
nop dword [rax + rax]
mov qword [rdi], rsi
mov dword [rdi + 0xc], 1
jmp 0x7ff79016424e
cmp qword [rdi], rbx
jne 0x7ff79020bb9f
xor eax, eax
jmp 0x7ff79016428d