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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe6db
mov eax, dword fs:[0]
push eax
sub esp, 0x508
mov eax, dword [0x550070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4d4], ecx
lea ecx, [ebp - 0x508]
call fcn.00403790
mov dword [ebp - 4], 0
mov dword [ebp - 0x510], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
jne 0x46ee8d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x508]
call fcn.004036f0
jmp 0x46f0da
push 0
push 0x24
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x4d4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jl 0x46eef4
push 0x2b4
push 0
lea ecx, [ebp - 0x4cc]
push ecx
call fcn.004d43c0
add esp, 0xc
push 0x4000
push 0x2b4
lea edx, [ebp - 0x4cc]
push edx
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [ebp - 0x514], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x4c8]
mov dword [ecx + 0xc], edx
lea eax, [ebp - 0x504]
push eax
push 0x11
mov ecx, dword [ebp - 0x4d4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x46f0c8
push 0x2b4
push 0
lea eax, [ebp - 0x4cc]
push eax
call fcn.004d43c0
add esp, 0xc
push 0x4209
push 0x2b4
lea ecx, [ebp - 0x4cc]
push ecx
push 0
mov edx, dword [ebp - 0x504]
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [ebp - 0x50c], eax
mov eax, dword [ebp - 0x50c]
push eax
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
add ecx, 0xe0c
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::ITreeInfo::SetImageList_struct__IMAGELIST__]
mov dword [ebp - 0x4fc], 0
xor edx, edx
mov dword [ebp - 0x4f8], edx
mov dword [ebp - 0x4f4], edx
mov dword [ebp - 0x4f0], edx
mov dword [ebp - 0x4ec], edx
mov dword [ebp - 0x4e8], edx
mov dword [ebp - 0x4e4], edx
mov dword [ebp - 0x4e0], edx
mov dword [ebp - 0x4dc], edx
mov dword [ebp - 0x4d8], edx
lea eax, [ebp - 0x4c0]
mov dword [ebp - 0x4ec], eax
mov ecx, dword [ebp - 0x4c8]
mov dword [ebp - 0x4e4], ecx
mov edx, dword [ebp - 0x4c8]
mov dword [ebp - 0x4e0], edx
mov eax, dword [ebp - 0x4f4]
or eax, 0x60
mov dword [ebp - 0x4f4], eax
mov ecx, dword [ebp - 0x4f0]
or ecx, 0x60
mov dword [ebp - 0x4f0], ecx
mov edx, dword [ebp - 0x4fc]
or edx, 0x2b
mov dword [ebp - 0x4fc], edx
push 0
push 0
lea eax, [ebp - 0x4fc]
push eax
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
call dword [sym.imp.DuiLib.dll_public:_struct_DuiLib::DTV_ITEM_INFO____thiscall_DuiLib::CTreeViewExUI::InsertItem_struct_DuiLib::DTV_ITEM___struct_DuiLib::DTV_ITEM_INFO___struct_DuiLib::DTV_ITEM_INFO__]
mov dword [ebp - 0x500], eax
cmp dword [ebp - 0x500], 0
je 0x46f0bb
mov dword [ebp - 0x4d0], 0
jmp 0x46f042
mov edx, dword [ebp - 0x4d0]
add edx, 1
mov dword [ebp - 0x4d0], edx
cmp dword [ebp - 0x4d0], 5
jae 0x46f0bb
xor eax, eax
mov dword [ebp - 0x4fc], eax
mov dword [ebp - 0x4f8], eax
mov dword [ebp - 0x4f4], eax
mov dword [ebp - 0x4f0], eax
mov dword [ebp - 0x4ec], eax
mov dword [ebp - 0x4e8], eax
mov dword [ebp - 0x4e4], eax
mov dword [ebp - 0x4e0], eax
mov dword [ebp - 0x4dc], eax
mov dword [ebp - 0x4d8], eax
push 0
mov ecx, dword [ebp - 0x500]
push ecx
lea edx, [ebp - 0x4fc]
push edx
mov eax, dword [ebp - 0x4d0]
mov ecx, dword [eax*8 + 0x5518f4]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x4d4]
call fcn.0046d800
jmp 0x46f033
mov eax, dword [ebp - 0x504]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x508]
call fcn.004036f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d181f
mov esp, ebp
pop ebp
ret 4