Function at 0x140124e40
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 - 0x278]
sub rsp, 0x340
mov r14, rcx
mov rcx, qword [0x140368360]
call fcn.140152f38
xor r15d, r15d
cmp dword [0x140363650], r15d
mov rsi, rax
jne 0x1401251af
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [r15 + 1]
call fcn.140132038
lea r12, [0x140363660]
lea rdx, str.My_Documents
mov rcx, r12
mov qword [0x140363868], rax
call fcn.1400e60fd
lea rdx, str.My_Computer
lea rcx, [0x140363c90]
call fcn.1400e60fd
lea r8, [rsp + 0x60]
lea edx, [r15 + 5]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea rbx, [0x140363870]
mov edi, 0x2b8
test eax, eax
jne 0x140125004
mov rcx, qword [rsp + 0x60]
mov rdx, rbx
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov dword [0x14036365c], eax
test eax, eax
je 0x140124ff7
mov rcx, qword [rsp + 0x60]
lea r8, [rbp - 0x80]
mov r9d, edi
xor edx, edx
mov dword [rsp + 0x20], 0x4009
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
jne 0x140124f6d
lea r8, [rbp - 0x80]
lea rcx, str.::450d8fba_ad25_11d0_98a8_0800361b1103
mov r9d, edi
xor edx, edx
mov dword [rsp + 0x20], 0x4001
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
jne 0x140124f6d
lea r8, [rbp - 0x80]
mov r9d, edi
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x20], 0x4001
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
je 0x140124f78
mov eax, dword [rbp - 0x78]
mov dword [0x140363654], eax
jmp 0x140124f7f
mov dword [0x14036365c], r15d
mov rcx, qword [rsp + 0x60]
lea r8, [rbp - 0x80]
mov r9d, edi
xor edx, edx
mov dword [rsp + 0x20], 0x208
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
jne 0x140124fe2
lea r8, [rbp - 0x80]
lea rcx, str.::450d8fba_ad25_11d0_98a8_0800361b1103
mov r9d, edi
xor edx, edx
mov dword [rsp + 0x20], 0x200
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
jne 0x140124fe2
lea r8, [rbp - 0x80]
mov r9d, edi
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x20], 0x200
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
je 0x140124ff0
lea rdx, [rbp - 0x70]
mov rcx, r12
call fcn.1400e60fd
jmp 0x140124ff7
mov dword [0x14036365c], r15d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x14012500b
mov dword [0x14036365c], r15d
mov rcx, rbx
call sub.msvcrt.dll_wcslen
cmp word [rbx + rax*2 - 2], 0x5c
je 0x14012502a
lea rdx, [0x140233664]
mov rcx, rbx
call sub.msvcrt.dll_wcscat
mov rdx, rbx
lea rbx, [0x140363a80]
mov rcx, rbx
call fcn.1400e60fd
cmp word [0x140363a80], r15w
je 0x14012505b
movzx ecx, word [rbx]
call sub.msvcrt.dll_tolower
mov word [rbx], ax
lea rbx, [rbx + 2]
cmp word [rbx], r15w
jne 0x140125046
lea r8, [rsp + 0x68]
mov edx, 0x11
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
xor edx, edx
mov r9d, edi
lea r8, [rbp - 0x80]
test eax, eax
jne 0x1401250de
mov rcx, qword [rsp + 0x68]
mov dword [rsp + 0x20], 0x4009
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edx, dword [0x140363658]
mov rcx, qword [rsp + 0x68]
test rax, rax
lea r8, [rbp - 0x80]
mov r9d, edi
cmovne edx, dword [rbp - 0x78]
mov dword [rsp + 0x20], 0x208
mov dword [0x140363658], edx
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
je 0x1401250d1
lea rdx, [rbp - 0x70]
lea rcx, [0x140363c90]
call fcn.1400e60fd
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x140125139
lea rcx, str.::20D04FE0_3AEA_1069_A2D8_08002B30309D
mov dword [rsp + 0x20], 0x4001
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edx, dword [0x140363658]
lea r8, [rbp - 0x80]
test rax, rax
lea rcx, str.::20D04FE0_3AEA_1069_A2D8_08002B30309D
mov r9d, edi
cmovne edx, dword [rbp - 0x78]
mov dword [rsp + 0x20], 0x200
mov dword [0x140363658], edx
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
je 0x140125139
lea rdx, [rbp - 0x70]
lea rcx, [0x140363c90]
call fcn.1400e60fd
mov ebx, 0x140
lea rcx, [0x140363ea0]
xor edx, edx
mov r8d, ebx
call fcn.1400e6121
lea rax, [0x1401243d4]
mov dword [0x140363ea0], 0x19
mov qword [0x140363ea8], rax
lea rax, [0x140124600]
mov dword [0x140363ea4], ebx
mov qword [0x140363eb0], rax
lea rax, [fcn.140124698]
mov dword [0x140363650], 1
mov qword [0x140363ed0], rax
lea rax, [0x140124614]
mov qword [0x140363ec8], rax
lea rax, [0x14012464c]
mov qword [0x140363ef8], rax
mov edi, dword [rbp + 0x2b0]
lea r9, [rbp + 0x2a0]
lea r8, [rbp + 0x298]
and edi, 0x100
lea rdx, [rbp + 0x290]
lea rcx, [rbp + 0x288]
mov eax, edi
neg eax
sbb ebx, ebx
btr ebx, 0x10
call fcn.1401382a0
mov rax, qword [0x140360a28]
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], rax
mov rax, qword [rsi]
or r12, 0xffffffffffffffff
lea r9d, [rbx + 0x50010003]
lea rdx, [0x1402330a8]
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], rax
mov eax, dword [rbp + 0x298]
mov dword [rsp + 0x38], 0x15e
mov dword [rsp + 0x30], eax
mov eax, dword [rbp + 0x290]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x288]
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rsi, rax
test rax, rax
je 0x1401253ce
test edi, edi
je 0x1401252fe
xor r9d, r9d
xor r8d, r8d
mov edx, 0x407
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, rax
mov rax, qword [0x140363a78]
test rax, rax
jne 0x1401252b5
lea rcx, str.shlwapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x1401252a9
lea rdx, str.SHAutoComplete
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140363a78], rax
jmp 0x1401252b0
mov rax, qword [0x140363a78]
test rax, rax
je 0x1401252bf
mov edx, 1
mov rcx, rbx
call rax
lea r8, [0x1401242ac]
mov edx, 0xfffffffc
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov edi, 0xfffffff0
mov rcx, rbx
mov edx, edi
mov qword [0x140363c88], rax
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
mov edx, edi
mov rcx, rbx
bts rax, 0x10
mov r8, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov r9, qword [0x140363868]
xor r8d, r8d
mov edx, 0x402
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x140368320]
mov rdx, r14
call fcn.140152fe4
movsxd rcx, dword [rbp + 0x2b0]
mov edx, 8
mov qword [rax + 0x20], rcx
mov rcx, qword [0x140360a30]
mov r8d, 0x208
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r9, [0x140363ea0]
mov r8, rsi
mov rdx, rbx
mov rcx, r14
mov qword [rbx + 0x28], rax
call fcn.140130e74
mov rcx, qword [rbx]
mov edi, 0x153
mov r9d, 0xf
mov r8, r12
mov edx, edi
mov rsi, rax
mov dword [0x140359d8c], r12d
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [rsp + 0x7c]
mov eax, dword [rbp + 0x2a0]
sub ecx, dword [rsp + 0x74]
mov r8, r12
mov edx, edi
sub ecx, 0xf
sub eax, ecx
mov dword [0x140359d8c], ecx
mov rcx, qword [rbx]
movsxd r9, eax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, qword [rbp + 0x2a8]
mov rcx, rbx
call fcn.140124698
mov rax, rsi
add rsp, 0x340
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret