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

Disassembly:
sub esp, 0x4c8
push ebx
push ebp
push esi
push edi
push dword [0x6c7ea8]
call fcn.0052d287
cmp dword [0x6c6028], 0
mov ebp, eax
jne 0x510256
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.00514100
push 1
call fcn.00513d7e
mov dword [0x6c60d4], eax
test eax, eax
je 0x5103f6
push str.My_Documents
push 0x6c60d8
call sub.MSVCRT.dll_wcscpy
push str.My_Computer
push 0x6c64e8
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 0x50ffe7
mov eax, dword [esp + 0x20]
mov dword [0x6c66fc], 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 0x5100fc
push 0x6c62e0
push dword [esp + 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov dword [0x6bda88], eax
test eax, eax
je 0x5100f4
push 0x4009
push 0x2b4
lea eax, [esp + 0x24]
push eax
push 0
push dword [esp + 0x20]
call esi
test eax, eax
jne 0x510075
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 0x510075
push 0x4001
push 0x2b4
lea eax, [esp + 0x24]
push eax
push 0
push 0x6c62e0
call esi
test eax, eax
je 0x510080
mov eax, dword [esp + 0x20]
mov dword [0x6c66f0], eax
jmp 0x510087
and dword [0x6bda88], 0
push 0x208
push 0x2b4
lea eax, [esp + 0x24]
push eax
push 0
push dword [esp + 0x20]
call esi
test eax, eax
jne 0x5100da
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 0x5100da
push 0x200
push 0x2b4
lea eax, [esp + 0x24]
push eax
push 0
push 0x6c62e0
call esi
test eax, eax
je 0x5100ed
lea eax, [esp + 0x28]
push eax
push 0x6c60d8
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
jmp 0x5100f4
and dword [0x6bda88], 0
push dword [esp + 0x10]
call edi
jmp 0x510103
and dword [0x6bda88], 0
push 0x6c62e0
call sub.MSVCRT.dll_wcslen
pop ecx
cmp word [eax*2 + 0x6c62de], 0x5c
je 0x51012a
push 0x5ddea0
push 0x6c62e0
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 0x51018e
push 0x4009
push ebx
push eax
push 0
push dword [esp + 0x24]
call esi
test eax, eax
je 0x51015e
mov eax, dword [esp + 0x20]
mov dword [0x6c66f4], eax
push 0x208
push ebx
lea eax, [esp + 0x24]
push eax
push 0
push dword [esp + 0x24]
call esi
test eax, eax
je 0x510186
lea eax, [esp + 0x28]
push eax
push 0x6c64e8
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
push dword [esp + 0x14]
call edi
jmp 0x5101d1
push 0x4001
push ebx
push eax
push 0
mov edi, str.::20D04FE0_3AEA_1069_A2D8_08002B30309D
push edi
call esi
test eax, eax
je 0x5101ac
mov eax, dword [esp + 0x20]
mov dword [0x6c66f4], eax
push 0x200
push ebx
lea eax, [esp + 0x24]
push eax
push 0
push edi
call esi
test eax, eax
je 0x5101d1
lea eax, [esp + 0x28]
push eax
push 0x6c64e8
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
mov esi, 0xa4
push esi
push 0
push 0x6c6030
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x6c6030], 0x18
mov dword [0x6c6034], esi
mov dword [0x6c6038], 0x50e8f3
mov dword [0x6c603c], 0x50ef0f
push str.shell32.dll
mov dword [0x6c604c], 0x50f746
mov dword [0x6c6048], 0x50f02b
mov dword [0x6c6040], 0x50efcb
mov dword [0x6c60ac], 0x50ef66
mov dword [0x6c60a8], 0x50f6cb
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x6c6708], eax
mov dword [0x6c6028], 1
cmp dword [0x6c6700], 0
jne 0x510296
mov eax, dword [ebp]
mov esi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x510272
push dword [0x6c6700]
call esi
push eax
mov dword [0x6c6700], eax
call esi
test eax, eax
jne 0x51026a
push 0x50f07e
push 0xfffffffffffffffc
push dword [0x6c6700]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [0x6c6704], eax
mov ebx, dword [esp + 0x4f4]
mov esi, 0x50010000
test ebx, 0x1000000
je 0x5102ad
add esi, 0x20
test ebx, 0x4000000
jne 0x5102b8
or esi, 2
test ebx, 0x8000000
jne 0x5102c3
or esi, 1
xor edi, edi
test ebx, 0x100000
jne 0x5102d2
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.00518488
push 0
push dword [0x6c2524]
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 [0x6c2520]
mov edi, eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test edi, edi
je 0x5103f6
test ebp, ebp
je 0x5103f6
push dword [0x6c60d4]
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 0x50e65d
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov esi, dword [esp + 0x4dc]
push esi
push dword [0x6c7ea4]
mov dword [0x6c602c], eax
call fcn.0052d8e3
mov edi, eax
lea ecx, [ebp + 0xc]
mov eax, dword [esp + 0x18]
push 0x5ddfdc
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 0x6c6030
push dword [esp + 0x1c]
push edi
push esi
call fcn.00512b57
push 0x5c8008
push edi
mov esi, eax
call fcn.0050f746
push dword [esp + 0x4f0]
push edi
call fcn.0050f746
mov eax, esi
jmp 0x5103f8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c8
ret 0x1c