Function at 0x140039f74
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 [0x140398a98]
call fcn.1400604a4
xor r12d, r12d
mov rdi, rax
cmp dword [0x140396040], r12d
jne 0x14003a35c
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
call fcn.140044ff8
lea ecx, [r12 + 1]
call fcn.140044bd0
mov qword [0x140396028], rax
test rax, rax
je 0x14003a54f
lea rdx, str.My_Documents
lea rcx, [0x140395a00]
call fcn.140091cdc
lea rdx, str.My_Computer
lea rcx, [0x140395e10]
call fcn.140091cdc
mov edx, 0x104
mov word [rbp + 0x230], r12w
lea rcx, [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, 0x2b8
lea r8, [rsp + 0x70]
mov r14d, 0x4001
lea rcx, [rbp + 0x230]
mov r9d, ebx
mov dword [rsp + 0x20], r14d
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [0x140396024]
lea r8, [rsp + 0x60]
test rax, rax
lea edx, [r12 + 5]
cmovne ecx, dword [rsp + 0x78]
mov dword [0x140396024], ecx
xor ecx, ecx
call sub.SHELL32.dll_SHGetSpecialFolderLocation
lea rsi, [0x140395c08]
test eax, eax
jne 0x14003a199
mov rcx, qword [rsp + 0x60]
mov rdx, rsi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov dword [0x140391830], eax
test eax, eax
je 0x14003a18c
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
mov r9d, ebx
mov dword [rsp + 0x20], 0x4009
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
jne 0x14003a0fa
mov r9d, ebx
mov dword [rsp + 0x20], r14d
lea r8, [rsp + 0x70]
xor edx, edx
lea rcx, str.::450d8fba_ad25_11d0_98a8_0800361b1103
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
jne 0x14003a0fa
mov r9d, ebx
mov dword [rsp + 0x20], r14d
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
je 0x14003a106
mov eax, dword [rsp + 0x78]
mov dword [0x140396018], eax
jmp 0x14003a10d
mov dword [0x140391830], r12d
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
mov r9d, ebx
mov dword [rsp + 0x20], 0x208
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
jne 0x14003a17c
mov r9d, ebx
mov dword [rsp + 0x20], 0x200
lea r8, [rsp + 0x70]
xor edx, edx
lea rcx, str.::450d8fba_ad25_11d0_98a8_0800361b1103
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
jne 0x14003a17c
mov r9d, ebx
mov dword [rsp + 0x20], 0x200
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
jne 0x14003a17c
mov dword [0x140391830], r12d
jmp 0x14003a18c
lea rdx, [rbp - 0x80]
lea rcx, [0x140395a00]
call fcn.140091cdc
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x14003a1a0
mov dword [0x140391830], r12d
mov rcx, rsi
call fcn.140016160
lea rcx, [0x140395a00]
cmp word [rcx + rax*2 + 0x206], 0x5c
je 0x14003a1c9
lea rdx, [0x1400ac428]
mov rcx, rsi
call fcn.140091cb0
lea r8, [rsp + 0x68]
mov edx, 0x11
xor ecx, ecx
call sub.SHELL32.dll_SHGetSpecialFolderLocation
xor edx, edx
lea r8, [rsp + 0x70]
mov r9d, ebx
test eax, eax
jne 0x14003a24e
mov rcx, qword [rsp + 0x68]
mov dword [rsp + 0x20], 0x4009
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edx, dword [0x14039601c]
lea r8, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
test rax, rax
mov r9d, ebx
mov dword [rsp + 0x20], 0x208
cmovne edx, dword [rsp + 0x78]
mov dword [0x14039601c], edx
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
je 0x14003a241
lea rdx, [rbp - 0x80]
lea rcx, [0x140395e10]
call fcn.140091cdc
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x14003a2a8
lea rcx, str.::20D04FE0_3AEA_1069_A2D8_08002B30309D
mov dword [rsp + 0x20], r14d
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edx, dword [0x14039601c]
lea r8, [rsp + 0x70]
test rax, rax
mov dword [rsp + 0x20], 0x200
mov r9d, ebx
lea rcx, str.::20D04FE0_3AEA_1069_A2D8_08002B30309D
cmovne edx, dword [rsp + 0x78]
mov dword [0x14039601c], edx
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
je 0x14003a2a8
lea rdx, [rbp - 0x80]
lea rcx, [0x140395e10]
call fcn.140091cdc
mov ebx, 0x148
lea rcx, [0x1403958b0]
mov r8d, ebx
xor edx, edx
call fcn.14001eb70
lea rax, [0x1400385bc]
mov dword [0x1403958b0], 0x18
mov qword [0x1403958b8], rax
lea rcx, str.shell32.dll
lea rax, [0x140038c08]
mov dword [0x1403958b4], ebx
mov qword [0x1403958c0], rax
lea rax, [fcn.140039568]
mov qword [0x1403958e0], rax
lea rax, [0x140038d60]
mov qword [0x1403958d8], rax
lea rax, [0x140038cec]
mov qword [0x1403958c8], rax
lea rax, [0x140038c84]
mov qword [0x1403959a0], rax
lea rax, [0x1400394dc]
mov qword [0x140395998], rax
lea rax, [0x140039ed0]
mov qword [0x140395928], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x140396048], rax
mov dword [0x140396040], 1
cmp qword [0x140396030], r12
jne 0x14003a3aa
mov rcx, qword [rdi]
mov qword [0x140396030], rcx
jmp 0x14003a381
call qword [sym.imp.USER32.dll_GetParent]
mov qword [0x140396030], rax
mov rcx, rax
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, qword [0x140396030]
test rax, rax
jne 0x14003a371
lea r8, [0x140038dec]
lea edx, [rax - 4]
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov qword [0x140396038], rax
mov r14d, dword [rbp + 0x4b0]
lea r9, [rbp + 0x4a0]
mov ecx, r14d
lea r8, [rbp + 0x498]
shr ecx, 0x13
lea rdx, [rbp + 0x490]
and ecx, 0x20
or ecx, 0x50010000
mov ebx, ecx
or ebx, 2
bt r14d, 0x1a
cmovb ebx, ecx
lea rcx, [rbp + 0x488]
call fcn.14004c3cc
mov rax, qword [0x140391b90]
lea rdx, str.SysTreeView32
mov qword [rsp + 0x58], r12
mov r9d, ebx
mov qword [rsp + 0x50], rax
or r9d, 1
mov rax, qword [rdi]
mov ecx, r14d
bt r14d, 0x1b
cmovb r9d, ebx
or qword [rsp + 0x48], 0xffffffffffffffff
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov eax, dword [rbp + 0x4a0]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp + 0x498]
mov dword [rsp + 0x30], eax
mov eax, dword [rbp + 0x490]
shr ecx, 0xb
mov dword [rsp + 0x28], eax
not ecx
mov eax, dword [rbp + 0x488]
and ecx, 0x200
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, qword [0x140391b98]
mov edx, 8
mov r8d, 0x238
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rsi, rsi
je 0x14003a54f
test rax, rax
je 0x14003a54f
mov r9, qword [0x140396028]
xor r8d, r8d
mov edx, 0x1109
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
mov r8d, 4
mov edx, 0x112c
mov r9d, r8d
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
lea r8, [0x1400382a8]
mov edx, 0xfffffffc
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov rcx, qword [0x140398aa0]
mov rdx, r15
mov qword [0x1403959f8], rax
call fcn.14006070c
lea rcx, [rbx + 0x10]
mov rdi, rax
lea rdx, [0x1400b55a8]
or qword [rax + 0x28], 0xffffffffffffffff
mov qword [rax + 0x20], rbx
mov qword [rbx], rsi
mov dword [rbx + 0xc], r14d
mov dword [rbx + 8], r15d
call fcn.140091cdc
lea r9, [0x1403958b0]
mov r8, rsi
mov rdx, rdi
mov rcx, r15
call fcn.1400436b4
lea rdx, [0x1400afc20]
mov rcx, rdi
mov rbx, rax
call fcn.140039568
mov rdx, qword [rbp + 0x4a8]
mov rcx, rdi
call fcn.140039568
mov rax, rbx
jmp 0x14003a551
xor eax, eax
add rsp, 0x540
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret