Function at 0x4047a0
Capabilities:
Get common file path
Get file system object information
Get startup folder

Disassembly:
push ebp
sub esp, 0x3ec
lea ebp, [esp - 4]
mov eax, dword [0x4a946c]
xor eax, ebp
mov dword [ebp + 0x3ec], eax
push 0x24
mov eax, 0x46d6cb
call fcn.004550bc
xor ebx, ebx
cmp byte [ebp + 0x3f8], bl
mov esi, ecx
je 0x4047d5
call fcn.004038b9
push ebx
push ebx
mov ecx, esi
call fcn.00403e11
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [esi + 0x20]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp + 0x2c0]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp + 0x2c0]
lea edi, [esi + 0x58]
push eax
mov ecx, edi
call fcn.00401759
push 0x32
push 0x32
push 0x18
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
lea ecx, [esi + 0x254]
call fcn.00449e5d
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push dword [esi + 0x258]
call fcn.00403dbf
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], vtable.CBitmap.0
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
call fcn.0044a8e5
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x30]
call fcn.0044acd9
push ebx
push 0x18
push 1
push 0x20
push 0x20
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
lea ecx, [ebp - 0x18]
call fcn.0044af11
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
call fcn.0044af96
push 5
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push 0x1f
push 0x1f
push ebx
push ebx
lea ecx, [ebp - 0x30]
call fcn.0044c188
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jne 0x4048b5
xor eax, eax
jmp 0x4048b8
mov eax, dword [eax + 4]
push eax
push dword [ebp - 0x2c]
call fcn.0044af96
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], eax
call fcn.0044ad3d
push ebx
push dword [ebp - 0x10]
lea ecx, [esi + 0x254]
call fcn.00403e38
call fcn.0044b9a6
mov eax, dword [eax + 4]
push 0x22
push str.shell32.dll
push dword [eax + 0x44]
call dword [sym.imp.SHELL32.dll_ExtractIconA]
push eax
push 0xffffffffffffffff
push dword [esi + 0x258]
call fcn.00403da1
mov dword [ebp - 0x1c], eax
call fcn.0044b9a6
mov eax, dword [eax + 4]
push 0xf
push str.shell32.dll
push dword [eax + 0x44]
call dword [sym.imp.SHELL32.dll_ExtractIconA]
push eax
push 0xffffffffffffffff
push dword [esi + 0x258]
call fcn.00403da1
push 0x301
push 0x160
lea ecx, [ebp]
push ecx
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov edi, dword [edi]
push 0x303
push 0x160
lea eax, [ebp + 0x160]
push eax
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
or edi, 0xffffffff
cmp dword [ebp - 0x1c], edi
jne 0x40498e
push dword [ebp]
push edi
push dword [esi + 0x258]
call fcn.00403da1
cmp dword [ebp - 0x1c], edi
jne 0x40498e
push dword [ebp + 0x160]
push edi
push dword [esi + 0x258]
call fcn.00403da1
push ebx
lea eax, [esi + 0x254]
push eax
mov ecx, esi
call fcn.00403e11
push dword [ebp - 0x10]
mov ecx, esi
push dword [ebp - 0x10]
push 1
push 0xffff0000
push 0x478710
call fcn.00403947
push eax
mov ecx, esi
mov dword [esi + 0x5c], eax
call fcn.004044e4
push dword [esi + 0x5c]
push 2
push 0x1102
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.0044ad53
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], vtable.CBitmap.0
call fcn.00402ccf
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3ec]
xor ecx, ebp
call fcn.004550ad
add ebp, 0x3f0
leave
ret 4