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

Disassembly:
sub esp, 0x4c8
push ebx
push ebp
push esi
push edi
push dword [0x51fbd4]
call fcn.00417b88
xor ebx, ebx
mov ebp, eax
cmp dword [0x51fb00], ebx
jne 0x4089e7
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.00425d1a
push 1
call fcn.00425cd7
mov dword [0x51f4cc], eax
test eax, eax
je 0x408b81
push str.My_Documents
push 0x51f4d0
call fcn.004187d6
push str.My_Computer
push 0x51f8e0
call fcn.004187d6
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 ebx
lea eax, [esp + 0x2e0]
push eax
call esi
test eax, eax
je 0x408773
mov eax, dword [esp + 0x20]
mov dword [0x51faf4], eax
lea eax, [esp + 0x10]
push eax
push 5
push ebx
call sub.SHELL32.dll_SHGetSpecialFolderLocation
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
test eax, eax
jne 0x40887c
push 0x51f6d8
push dword [esp + 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov dword [0x4e7f98], eax
test eax, eax
je 0x408874
push 0x4009
push 0x2b4
lea eax, [esp + 0x24]
push eax
push ebx
push dword [esp + 0x20]
call esi
test eax, eax
jne 0x4087fa
push 0x4001
push 0x2b4
lea eax, [esp + 0x24]
push eax
push ebx
push str.::450d8fba_ad25_11d0_98a8_0800361b1103
call esi
test eax, eax
jne 0x4087fa
push 0x4001
push 0x2b4
lea eax, [esp + 0x24]
push eax
push ebx
push 0x51f6d8
call esi
test eax, eax
je 0x408805
mov eax, dword [esp + 0x20]
mov dword [0x51fae8], eax
jmp 0x40880b
mov dword [0x4e7f98], ebx
push 0x208
push 0x2b4
lea eax, [esp + 0x24]
push eax
push ebx
push dword [esp + 0x20]
call esi
test eax, eax
jne 0x408863
push 0x200
push 0x2b4
lea eax, [esp + 0x24]
push eax
push ebx
push str.::450d8fba_ad25_11d0_98a8_0800361b1103
call esi
test eax, eax
jne 0x408863
push 0x200
push 0x2b4
lea eax, [esp + 0x24]
push eax
push ebx
push 0x51f6d8
call esi
test eax, eax
jne 0x408863
mov dword [0x4e7f98], ebx
jmp 0x408874
lea eax, [esp + 0x28]
push eax
push 0x51f4d0
call fcn.004187d6
pop ecx
pop ecx
push dword [esp + 0x10]
call edi
jmp 0x408882
mov dword [0x4e7f98], ebx
push 0x51f6d8
call fcn.004187f8
pop ecx
cmp word [eax*2 + 0x51f6d6], 0x5c
je 0x4088a9
push 0x4cc188
push 0x51f6d8
call fcn.004187a5
pop ecx
pop ecx
lea eax, [esp + 0x14]
push eax
push 0x11
push ebx
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
lea eax, [esp + 0x1c]
jne 0x408910
push 0x4009
push 0x2b4
push eax
push ebx
push dword [esp + 0x24]
call esi
test eax, eax
je 0x4088dd
mov eax, dword [esp + 0x20]
mov dword [0x51faec], eax
push 0x208
push 0x2b4
lea eax, [esp + 0x24]
push eax
push ebx
push dword [esp + 0x24]
call esi
test eax, eax
je 0x408908
lea eax, [esp + 0x28]
push eax
push 0x51f8e0
call fcn.004187d6
pop ecx
pop ecx
push dword [esp + 0x14]
call edi
jmp 0x408959
push 0x4001
mov edi, 0x2b4
push edi
push eax
push ebx
push str.::20D04FE0_3AEA_1069_A2D8_08002B30309D
call esi
test eax, eax
je 0x408931
mov eax, dword [esp + 0x20]
mov dword [0x51faec], eax
push 0x200
push edi
lea eax, [esp + 0x24]
push eax
push ebx
push str.::20D04FE0_3AEA_1069_A2D8_08002B30309D
call esi
test eax, eax
je 0x408959
lea eax, [esp + 0x28]
push eax
push 0x51f8e0
call fcn.004187d6
pop ecx
pop ecx
mov esi, 0xa8
push esi
push ebx
push 0x51f420
call fcn.00401510
add esp, 0xc
mov dword [0x51f420], 0x18
mov dword [0x51f424], esi
mov dword [0x51f428], 0x4097bb
mov dword [0x51f42c], 0x409e10
push str.shell32.dll
mov dword [0x51f43c], 0x409e67
mov dword [0x51f438], 0x40a3b5
mov dword [0x51f430], 0x40a408
mov dword [0x51f49c], 0x40a54b
mov dword [0x51f498], 0x40a4d0
mov dword [0x51f460], 0x40a468
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x51fb04], eax
mov dword [0x51fb00], 1
cmp dword [0x51faf8], ebx
jne 0x408a26
mov eax, dword [ebp]
mov esi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x408a02
push dword [0x51faf8]
call esi
push eax
mov dword [0x51faf8], eax
call esi
test eax, eax
jne 0x4089fa
push 0x409270
push 0xfffffffffffffffc
push dword [0x51faf8]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [0x51fafc], eax
mov ebx, dword [esp + 0x4f4]
mov esi, ebx
shr esi, 0x13
and esi, 0x20
or esi, 0x50010000
test ebx, 0x4000000
jne 0x408a46
or esi, 2
test ebx, 0x8000000
jne 0x408a51
or esi, 1
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.00422a46
push 0
push dword [0x4e8c20]
mov eax, ebx
push 0xffffffffffffffff
push dword [ebp]
shr eax, 0xb
push dword [esp + 0x4fc]
not eax
push dword [esp + 0x4fc]
and eax, 0x200
push dword [esp + 0x4fc]
push dword [esp + 0x4fc]
push esi
push 0
push str.SysTreeView32
push eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x224
push 8
push dword [0x4e8c1c]
mov edi, eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test edi, edi
je 0x408b81
test ebp, ebp
je 0x408b81
push dword [0x51f4cc]
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 0x40a5b6
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov esi, dword [esp + 0x4dc]
push esi
push dword [0x51fbd0]
mov dword [0x51f4c8], eax
call fcn.00418d53
mov edi, eax
lea ecx, [ebp + 0xc]
mov eax, dword [esp + 0x18]
push 0x4cd10c
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 fcn.004187d6
pop ecx
pop ecx
push 0x51f420
push dword [esp + 0x1c]
push edi
push esi
call fcn.00422a9b
push 0x4cd1c4
push edi
mov esi, eax
call fcn.00409e67
push dword [esp + 0x4f0]
push edi
call fcn.00409e67
mov eax, esi
jmp 0x408b83
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c8
ret 0x1c