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

Disassembly:
sub esp, 0x4c8
push ebx
push ebp
push esi
push edi
push dword [0x6b2c34]
call fcn.0052e0f9
cmp dword [0x6b0fa0], 0
mov ebp, eax
jne 0x50b89c
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.005128d4
push 1
call fcn.005125d2
mov dword [0x6b104c], eax
test eax, eax
je 0x50ba3c
push str.My_Documents
push 0x6b1050
call sub.MSVCRT.dll_wcscpy
push str.My_Computer
push 0x6b1460
call sub.MSVCRT.dll_wcscpy
add esp, 0x10
xor eax, eax
mov word [esp + 0x2d0], ax
lea eax, [esp + 0x2d0]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea eax, [esp + 0x1c]
push 0x4001
push 0x2b4
push eax
push 0
lea eax, [esp + 0x2e0]
push eax
call esi
test eax, eax
je 0x50b62d
mov eax, dword [esp + 0x20]
mov dword [0x6b1674], eax
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [esp + 0x10]
push eax
push 5
push 0
call ebx
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
test eax, eax
jne 0x50b742
push 0x6b1258
push dword [esp + 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov dword [0x6abf30], eax
test eax, eax
je 0x50b73a
push 0x4009
push 0x2b4
lea eax, [esp + 0x24]
push eax
push 0
push dword [esp + 0x20]
call esi
test eax, eax
jne 0x50b6bb
push 0x4001
push 0x2b4
lea eax, [esp + 0x24]
push eax
push 0
push str.::450d8fba_ad25_11d0_98a8_0800361b1103
call esi
test eax, eax
jne 0x50b6bb
push 0x4001
push 0x2b4
lea eax, [esp + 0x24]
push eax
push 0
push 0x6b1258
call esi
test eax, eax
je 0x50b6c6
mov eax, dword [esp + 0x20]
mov dword [0x6b1668], eax
jmp 0x50b6cd
and dword [0x6abf30], 0
push 0x208
push 0x2b4
lea eax, [esp + 0x24]
push eax
push 0
push dword [esp + 0x20]
call esi
test eax, eax
jne 0x50b720
push 0x200
push 0x2b4
lea eax, [esp + 0x24]
push eax
push 0
push str.::450d8fba_ad25_11d0_98a8_0800361b1103
call esi
test eax, eax
jne 0x50b720
push 0x200
push 0x2b4
lea eax, [esp + 0x24]
push eax
push 0
push 0x6b1258
call esi
test eax, eax
je 0x50b733
lea eax, [esp + 0x28]
push eax
push 0x6b1050
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
jmp 0x50b73a
and dword [0x6abf30], 0
push dword [esp + 0x10]
call edi
jmp 0x50b749
and dword [0x6abf30], 0
push 0x6b1258
call sub.MSVCRT.dll_wcslen
pop ecx
cmp word [eax*2 + 0x6b1256], 0x5c
je 0x50b770
push 0x5cc328
push 0x6b1258
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 0x14]
push eax
push 0x11
push 0
call ebx
test eax, eax
mov ebx, 0x2b4
lea eax, [esp + 0x1c]
jne 0x50b7d4
push 0x4009
push ebx
push eax
push 0
push dword [esp + 0x24]
call esi
test eax, eax
je 0x50b7a4
mov eax, dword [esp + 0x20]
mov dword [0x6b166c], eax
push 0x208
push ebx
lea eax, [esp + 0x24]
push eax
push 0
push dword [esp + 0x24]
call esi
test eax, eax
je 0x50b7cc
lea eax, [esp + 0x28]
push eax
push 0x6b1460
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
push dword [esp + 0x14]
call edi
jmp 0x50b817
push 0x4001
push ebx
push eax
push 0
mov edi, str.::20D04FE0_3AEA_1069_A2D8_08002B30309D
push edi
call esi
test eax, eax
je 0x50b7f2
mov eax, dword [esp + 0x20]
mov dword [0x6b166c], eax
push 0x200
push ebx
lea eax, [esp + 0x24]
push eax
push 0
push edi
call esi
test eax, eax
je 0x50b817
lea eax, [esp + 0x28]
push eax
push 0x6b1460
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
mov esi, 0xa4
push esi
push 0
push 0x6b0fa8
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x6b0fa8], 0x18
mov dword [0x6b0fac], esi
mov dword [0x6b0fb0], 0x509f32
mov dword [0x6b0fb4], 0x50a555
push str.shell32.dll
mov dword [0x6b0fc4], 0x50ad8c
mov dword [0x6b0fc0], 0x50a671
mov dword [0x6b0fb8], 0x50a611
mov dword [0x6b1024], 0x50a5ac
mov dword [0x6b1020], 0x50ad11
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x6b1680], eax
mov dword [0x6b0fa0], 1
cmp dword [0x6b1678], 0
jne 0x50b8dc
mov eax, dword [ebp]
mov esi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x50b8b8
push dword [0x6b1678]
call esi
push eax
mov dword [0x6b1678], eax
call esi
test eax, eax
jne 0x50b8b0
push 0x50a6c4
push 0xfffffffffffffffc
push dword [0x6b1678]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [0x6b167c], eax
mov ebx, dword [esp + 0x4f4]
mov esi, 0x50010000
test ebx, 0x1000000
je 0x50b8f3
add esi, 0x20
test ebx, 0x4000000
jne 0x50b8fe
or esi, 2
test ebx, 0x8000000
jne 0x50b909
or esi, 1
xor edi, edi
test ebx, 0x100000
jne 0x50b918
mov edi, 0x200
lea eax, [esp + 0x4ec]
push eax
lea eax, [esp + 0x4ec]
push eax
lea eax, [esp + 0x4ec]
push eax
lea eax, [esp + 0x4ec]
push eax
call fcn.00518b9b
push 0
push dword [0x6aef9c]
push 0xffffffffffffffff
push dword [ebp]
push dword [esp + 0x4fc]
push dword [esp + 0x4fc]
push dword [esp + 0x4fc]
push dword [esp + 0x4fc]
push esi
push 0
push str.SysTreeView32
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x224
push 8
push dword [0x6aef98]
mov edi, eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test edi, edi
je 0x50ba3c
test ebp, ebp
je 0x50ba3c
push dword [0x6b104c]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x1109
push edi
call esi
push 4
push 4
push 0x112c
push edi
call esi
push 0x509c9c
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov esi, dword [esp + 0x4dc]
push esi
push dword [0x6b2c50]
mov dword [0x6b0fa4], eax
call fcn.0052e778
mov edi, eax
lea ecx, [ebp + 0xc]
mov eax, dword [esp + 0x18]
push 0x5cc334
push ecx
or dword [edi + 0x14], 0xffffffff
mov dword [edi + 0x10], ebp
mov dword [ebp], eax
mov dword [ebp + 8], ebx
mov dword [ebp + 4], esi
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
push 0x6b0fa8
push dword [esp + 0x1c]
push edi
push esi
call fcn.00511af9
push section..rdata
push edi
mov esi, eax
call fcn.0050ad8c
push dword [esp + 0x4f0]
push edi
call fcn.0050ad8c
mov eax, esi
jmp 0x50ba3e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c8
ret 0x1c