Function at 0x1400215a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
lea rbp, [rsp - 0x6f0]
sub rsp, 0x7f0
mov rax, qword [0x140136e20]
xor rax, rsp
mov qword [rbp + 0x6e0], rax
xor r12d, r12d
lea rax, [rbp + 0x2c0]
mov rdi, rcx
mov r8d, 0x104
lea rcx, [rbp + 0x2c0]
sub rdx, rax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x140021613
movzx eax, word [rdx + rcx]
test ax, ax
je 0x140021613
mov word [rcx], ax
add rcx, 2
dec r8
jne 0x1400215f0
jmp 0x140021618
test r8, r8
jne 0x14002161c
sub rcx, 2
mov word [rcx], r12w
lea rcx, [rbp + 0x2c0]
call qword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
xor r9d, r9d
lea r11, [rsp + 0x40]
lea edx, [r9 + 0x11]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], r11
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov rdx, qword [rsp + 0x40]
xor r8d, r8d
mov rcx, rdi
call fcn.1400213f0
mov rcx, qword [rsp + 0x40]
mov rbx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rdi + 0x18]
mov r9, rbx
mov edx, 0x110a
mov r8d, 4
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, rax
test rax, rax
je 0x140021a02
lea r8, [rsp + 0x38]
lea rdx, [0x14010fe10]
lea rcx, [rbp + 0x2c0]
call fcn.14004c09c
lea rcx, [rbp + 0xb0]
mov r8d, 0x104
sub rax, rcx
lea rdx, [rbp + 0xb0]
nop word [rax + rax]
lea rcx, [r8 + 0x7ffffefa]
test rcx, rcx
je 0x1400216e3
movzx ecx, word [rax + rdx]
test cx, cx
je 0x1400216e3
mov word [rdx], cx
add rdx, 2
dec r8
jne 0x1400216c0
jmp 0x1400216e8
test r8, r8
jne 0x1400216ec
sub rdx, 2
mov word [rdx], r12w
mov ecx, 0x104
lea rax, [rbp + 0xb0]
nop dword [rax]
cmp word [rax], r12w
je 0x140021711
add rax, 2
dec rcx
jne 0x140021700
jmp 0x140021771
test rcx, rcx
je 0x140021771
mov edx, 0x104
sub rdx, rcx
mov ecx, 0x104
sub rcx, rdx
lea rax, [rbp + rdx*2 + 0xb0]
je 0x140021769
lea r9, [0x14010fe10]
lea rdx, [rcx + rdx + 0x7ffffefb]
sub r9, rax
test rdx, rdx
je 0x140021764
movzx r8d, word [r9 + rax]
test r8w, r8w
je 0x140021764
mov word [rax], r8w
add rax, 2
dec rdx
dec rcx
jne 0x140021742
jmp 0x140021769
test rcx, rcx
jne 0x14002176d
sub rax, 2
mov word [rax], r12w
mov rcx, qword [rdi + 0x18]
lea r9, [rsp + 0x50]
xor r8d, r8d
mov edx, 0x113e
mov qword [rsp + 0x818], rsi
mov dword [rsp + 0x50], ILCombine
mov qword [rsp + 0x58], rbx
call qword [sym.imp.USER32.dll_SendMessageW]
movsxd rax, dword [rbp - 0x80]
mov rcx, qword [rdi + 0x280]
add rax, rax
lea rdx, [rbp + 0x4d0]
mov rcx, qword [rcx + rax*8]
mov r8d, 0x8000
call fcn.140092ff0
lea rdx, [rbp + 0x4d0]
lea rcx, [rbp + 0xb0]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x1400218c6
nop dword [rax]
mov rcx, qword [rdi + 0x18]
mov r9, rbx
mov edx, 0x110a
mov r8d, 1
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, rax
test rax, rax
je 0x140021a25
mov rcx, qword [rdi + 0x18]
lea r9, [rsp + 0x50]
xor r8d, r8d
mov edx, 0x113e
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x58], rax
call qword [sym.imp.USER32.dll_SendMessageW]
movsxd r11, dword [rbp - 0x80]
mov rax, qword [rdi + 0x280]
add r11, r11
mov rsi, qword [rax + r11*8]
test rsi, rsi
je 0x1400218aa
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x30]
lea rdx, [0x1400fa1e0]
mov rcx, rsi
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x48], r12
call qword [sym.imp.SHELL32.dll_SHBindToParent]
test eax, eax
js 0x1400218aa
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x48]
lea r9, [rbp - 0x60]
mov rax, qword [rcx]
mov r8d, 0x8000
call qword [rax + 0x58]
test eax, eax
js 0x14002189f
lea r8, [rbp + 0x4d0]
lea rcx, [rbp - 0x60]
mov r9d, 0x104
mov rdx, rsi
call qword [sym.imp.SHLWAPI.dll_StrRetToBufW]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.SHELL32.dll_ILFindLastID]
lea rdx, [rbp + 0x4d0]
lea rcx, [rbp + 0xb0]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x1400217e0
lea r8, [rsp + 0x38]
lea rdx, [0x14010fe10]
xor ecx, ecx
mov dword [rsp + 0x50], 1
call fcn.14004c09c
mov rsi, rax
test rax, rax
je 0x1400219f7
nop dword [rax]
mov rcx, qword [rdi + 0x18]
mov r9, rbx
mov edx, 0x110a
mov r8d, 4
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x140021a25
mov rcx, qword [rdi + 0x18]
mov r9, rbx
mov edx, 0x110a
mov r8d, 4
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi + 0x18]
lea r9, [rsp + 0x50]
mov rbx, rax
lea rax, [rbp + 0xb0]
xor r8d, r8d
mov edx, 0x113e
mov dword [rsp + 0x70], 0x104
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x58], rbx
call qword [sym.imp.USER32.dll_SendMessageW]
lea rdx, [rbp + 0xb0]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x1400219d8
mov rcx, qword [rdi + 0x18]
mov r9, rbx
mov edx, 0x110a
mov r8d, 1
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, rax
test rax, rax
je 0x140021a25
mov rcx, qword [rdi + 0x18]
lea rax, [rbp + 0xb0]
lea r9, [rsp + 0x50]
xor r8d, r8d
mov edx, 0x113e
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], 0x104
mov qword [rsp + 0x58], rbx
call qword [sym.imp.USER32.dll_SendMessageW]
lea rdx, [rbp + 0xb0]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x140021970
lea r8, [rsp + 0x38]
lea rdx, [0x14010fe10]
xor ecx, ecx
call fcn.14004c09c
mov rsi, rax
test rax, rax
jne 0x1400218f0
mov rax, rbx
mov rsi, qword [rsp + 0x818]
mov rcx, qword [rbp + 0x6e0]
xor rcx, rsp
call fcn.14004ae00
mov rbx, qword [rsp + 0x820]
add rsp, 0x7f0
pop r12
pop rdi
pop rbp
ret
xor eax, eax
jmp 0x1400219fa