Function at 0x1400d046c
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov dword [rax + 0x10], edx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x478]
sub rsp, 0x540
mov r15, rcx
mov rcx, qword [0x1408c39e0]
call fcn.1400f9380
xor r12d, r12d
cmp dword [0x1408c12d0], r12d
mov r14, rax
jne 0x1400d0846
xor ecx, ecx
call qword [sym.imp.OLE32.DLL_CoInitialize]
call fcn.1400d8850
lea ecx, [r12 + 1]
call fcn.1400d8428
mov qword [0x1408c1a48], rax
test rax, rax
je 0x1400d0a16
lea rsi, [0x1408c1420]
lea rdx, str.My_Documents
mov rcx, rsi
call sub.msvcrt.dll_wcscpy
lea rdx, str.My_Computer
lea rcx, [0x1408c1830]
call sub.msvcrt.dll_wcscpy
lea rcx, [rbp + 0x230]
mov edx, 0x104
mov word [rbp + 0x230], r12w
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, 0x2b8
lea r8, [rsp + 0x70]
lea rcx, [rbp + 0x230]
mov r9d, ebx
xor edx, edx
mov dword [rsp + 0x20], 0x4001
call qword [sym.imp.SHELL32.DLL_SHGetFileInfoW]
mov ecx, dword [0x1408c1a44]
lea r8, [rsp + 0x60]
test rax, rax
lea edx, [r12 + 5]
cmovne ecx, dword [rsp + 0x78]
mov dword [0x1408c1a44], ecx
xor ecx, ecx
call qword [sym.imp.SHELL32.DLL_SHGetSpecialFolderLocation]
lea rdi, [0x1408c1628]
test eax, eax
jne 0x1400d0694
mov rcx, qword [rsp + 0x60]
mov rdx, rdi
call qword [sym.imp.SHELL32.DLL_SHGetPathFromIDListW]
mov dword [0x140841110], eax
test eax, eax
je 0x1400d0687
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
mov r9d, ebx
xor edx, edx
mov dword [rsp + 0x20], 0x4009
call qword [sym.imp.SHELL32.DLL_SHGetFileInfoW]
test rax, rax
jne 0x1400d05f9
lea r8, [rsp + 0x70]
lea rcx, str.::450d8fba_ad25_11d0_98a8_0800361b1103
mov r9d, ebx
xor edx, edx
mov dword [rsp + 0x20], 0x4001
call qword [sym.imp.SHELL32.DLL_SHGetFileInfoW]
test rax, rax
jne 0x1400d05f9
lea r8, [rsp + 0x70]
mov r9d, ebx
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x20], 0x4001
call qword [sym.imp.SHELL32.DLL_SHGetFileInfoW]
test rax, rax
je 0x1400d0605
mov eax, dword [rsp + 0x78]
mov dword [0x1408c1a38], eax
jmp 0x1400d060c
mov dword [0x140841110], r12d
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
mov r9d, ebx
xor edx, edx
mov dword [rsp + 0x20], 0x208
call qword [sym.imp.SHELL32.DLL_SHGetFileInfoW]
test rax, rax
jne 0x1400d0672
lea r8, [rsp + 0x70]
lea rcx, str.::450d8fba_ad25_11d0_98a8_0800361b1103
mov r9d, ebx
xor edx, edx
mov dword [rsp + 0x20], 0x200
call qword [sym.imp.SHELL32.DLL_SHGetFileInfoW]
test rax, rax
jne 0x1400d0672
lea r8, [rsp + 0x70]
mov r9d, ebx
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x20], 0x200
call qword [sym.imp.SHELL32.DLL_SHGetFileInfoW]
test rax, rax
je 0x1400d0680
lea rdx, [rbp - 0x80]
mov rcx, rsi
call sub.msvcrt.dll_wcscpy
jmp 0x1400d0687
mov dword [0x140841110], r12d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.OLE32.DLL_CoTaskMemFree]
jmp 0x1400d069b
mov dword [0x140841110], r12d
mov rcx, rdi
call sub.msvcrt.dll_wcslen
cmp word [rsi + rax*2 + 0x206], 0x5c
je 0x1400d06bd
lea rdx, [0x1401743d8]
mov rcx, rdi
call sub.msvcrt.dll_wcscat
lea r8, [rsp + 0x68]
mov edx, 0x11
xor ecx, ecx
call qword [sym.imp.SHELL32.DLL_SHGetSpecialFolderLocation]
xor edx, edx
mov r9d, ebx
lea r8, [rsp + 0x70]
test eax, eax
jne 0x1400d0743
mov rcx, qword [rsp + 0x68]
mov dword [rsp + 0x20], 0x4009
call qword [sym.imp.SHELL32.DLL_SHGetFileInfoW]
mov edx, dword [0x1408c1a3c]
mov rcx, qword [rsp + 0x68]
test rax, rax
lea r8, [rsp + 0x70]
mov r9d, ebx
cmovne edx, dword [rsp + 0x78]
mov dword [rsp + 0x20], 0x208
mov dword [0x1408c1a3c], edx
xor edx, edx
call qword [sym.imp.SHELL32.DLL_SHGetFileInfoW]
test rax, rax
je 0x1400d0736
lea rdx, [rbp - 0x80]
lea rcx, [0x1408c1830]
call sub.msvcrt.dll_wcscpy
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.OLE32.DLL_CoTaskMemFree]
jmp 0x1400d07a0
lea rcx, str.::20D04FE0_3AEA_1069_A2D8_08002B30309D
mov dword [rsp + 0x20], 0x4001
call qword [sym.imp.SHELL32.DLL_SHGetFileInfoW]
mov edx, dword [0x1408c1a3c]
lea r8, [rsp + 0x70]
test rax, rax
lea rcx, str.::20D04FE0_3AEA_1069_A2D8_08002B30309D
mov r9d, ebx
cmovne edx, dword [rsp + 0x78]
mov dword [rsp + 0x20], 0x200
mov dword [0x1408c1a3c], edx
xor edx, edx
call qword [sym.imp.SHELL32.DLL_SHGetFileInfoW]
test rax, rax
je 0x1400d07a0
lea rdx, [rbp - 0x80]
lea rcx, [0x1408c1830]
call sub.msvcrt.dll_wcscpy
mov ebx, 0x140
lea rcx, [0x1408c12e0]
xor edx, edx
mov r8d, ebx
call sub.msvcrt.dll_memset
lea rax, [0x1400ceaa4]
lea rcx, [0x140174658]
mov qword [0x1408c12e8], rax
lea rax, [0x1400cf144]
mov dword [0x1408c12e0], 0x18
mov qword [0x1408c12f0], rax
lea rax, [fcn.1400cfac4]
mov dword [0x1408c12e4], ebx
mov qword [0x1408c1310], rax
lea rax, [0x1400cf29c]
mov qword [0x1408c1308], rax
lea rax, [0x1400cf228]
mov qword [0x1408c12f8], rax
lea rax, [0x1400cf1c0]
mov qword [0x1408c13d0], rax
lea rax, [0x1400cfa38]
mov qword [0x1408c13c8], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x1408c12d0], 1
mov qword [0x1408c1a60], rax
cmp qword [0x1408c1a50], r12
jne 0x1400d0894
mov rcx, qword [r14]
mov qword [0x1408c1a50], rcx
jmp 0x1400d086b
call qword [sym.imp.USER32.DLL_GetParent]
mov qword [0x1408c1a50], rax
mov rcx, rax
call qword [sym.imp.USER32.DLL_GetParent]
mov rcx, qword [0x1408c1a50]
test rax, rax
jne 0x1400d085b
lea r8, [0x1400cf328]
lea edx, [rax - 4]
call qword [sym.imp.USER32.DLL_SetWindowLongPtrW]
mov qword [0x1408c1a58], rax
mov esi, dword [rbp + 0x4b0]
mov edi, 0x50010000
bt esi, 0x18
lea eax, [rdi + 0x20]
cmovb edi, eax
bt esi, 0x1a
jb 0x1400d08b2
or edi, 2
bt esi, 0x1b
jb 0x1400d08bb
or edi, 1
mov eax, 0x200
lea r9, [rbp + 0x4a0]
lea r8, [rbp + 0x498]
lea rdx, [rbp + 0x490]
lea rcx, [rbp + 0x488]
bt esi, 0x14
mov ebx, r12d
cmovae ebx, eax
call fcn.1400de944
mov rax, qword [0x140845c0c]
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], rax
or qword [rsp + 0x48], 0xffffffffffffffff
mov rax, qword [r14]
lea rdx, str.SysTreeView32
mov r9d, edi
mov qword [rsp + 0x40], rax
mov eax, dword [rbp + 0x4a0]
xor r8d, r8d
mov dword [rsp + 0x38], eax
mov eax, dword [rbp + 0x498]
mov ecx, ebx
mov dword [rsp + 0x30], eax
mov eax, dword [rbp + 0x490]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x488]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.DLL_CreateWindowExW]
mov rcx, qword [0x140845c04]
mov edx, 8
mov r8d, 0x238
mov r14, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test r14, r14
je 0x1400d0a16
test rax, rax
je 0x1400d0a16
mov r9, qword [0x1408c1a48]
xor r8d, r8d
mov edx, 0x1109
mov rcx, r14
call qword [sym.imp.USER32.DLL_SendMessageW]
mov r8d, 4
mov edx, 0x112c
mov r9d, r8d
mov rcx, r14
call qword [sym.imp.USER32.DLL_SendMessageW]
mov rcx, qword [0x1408c39c0]
mov rdx, r15
call fcn.1400f9cb0
lea rcx, [rbx + 0x10]
lea rdx, [0x1401743c0]
or qword [rax + 0x28], 0xffffffffffffffff
mov qword [rax + 0x20], rbx
mov qword [rbx], r14
mov dword [rbx + 0xc], esi
mov dword [rbx + 8], r15d
mov rdi, rax
call sub.msvcrt.dll_wcscpy
lea r9, [0x1408c12e0]
mov r8, r14
mov rdx, rdi
mov rcx, r15
call fcn.1400d6dc8
lea rdx, [0x14015ce88]
mov rcx, rdi
mov rbx, rax
call fcn.1400cfac4
mov rdx, qword [rbp + 0x4a8]
mov rcx, rdi
call fcn.1400cfac4
mov rax, rbx
jmp 0x1400d0a18
xor eax, eax
add rsp, 0x540
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret