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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe7c
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x184], ebx
mov dword [ebp - 0x180], ebx
mov dword [ebp - 0x17c], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404824
xor eax, eax
push ebp
push 0x4a7eb7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 4]
mov edx, dword [0x4e3b68]
mov edx, dword [edx]
call fcn.00404780
je 0x4a7e70
xor ecx, ecx
push ebp
push 0x4a7e69
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
call sub.shell32.dll_SHGetMalloc
lea eax, [ebp - 0x17c]
mov edx, dword [ebp - 4]
call fcn.00404c08
mov eax, dword [ebp - 0x17c]
call fcn.004a6700
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push esi
mov eax, ebx
call fcn.00461964
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.004078e8
test eax, eax
je 0x4a7c14
push 0x108
push 0x160
lea eax, [ebp - 0x178]
push eax
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [ebp - 0x174]
mov dword [ebp - 8], eax
jmp 0x4a7e12
mov eax, dword [ebp - 4]
call fcn.00409858
test al, al
jne 0x4a7c4d
lea eax, [ebp - 0x180]
push eax
mov ecx, 7
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404894
mov eax, dword [ebp - 0x180]
mov edx, 0x4a7ed0
call fcn.00408f08
test eax, eax
jne 0x4a7c7f
push 0x4011
push 0x160
lea eax, [ebp - 0x178]
push eax
push 0x80
mov eax, dword [ebp - 4]
call fcn.00404834
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [ebp - 0x174]
mov dword [ebp - 8], eax
jmp 0x4a7e12
mov eax, dword [ebp - 4]
call fcn.00409868
test al, al
je 0x4a7cba
push 0x4011
push 0x2000
lea eax, [ebp - 0x178]
push eax
push 0x10
mov eax, dword [ebp - 4]
call fcn.00404834
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [ebp - 0x174]
mov dword [ebp - 8], eax
jmp 0x4a7e12
cmp dword [ebp - 4], 0
je 0x4a7e12
lea eax, [ebp - 0x184]
mov edx, dword [ebp - 4]
call fcn.00404c08
mov eax, dword [ebp - 0x184]
lea edx, [ebp - 0x14]
call fcn.004a6338
mov eax, dword [ebp - 0x14]
mov edx, 0x4a7ee0
call fcn.00404780
jne 0x4a7de5
mov eax, ebx
call fcn.004509e8
test al, al
jne 0x4a7d40
cmp byte [ebx + 0x338], 0
je 0x4a7d40
mov eax, ebx
call fcn.004a8190
inc eax
jle 0x4a7d40
mov eax, ebx
call fcn.004a8190
mov esi, eax
mov dword [ebp - 0x174], esi
mov dword [ebp - 8], esi
push esi
call sub.user32.dll_DestroyIcon
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
call fcn.00403e40
jmp 0x4a7e70
cmp byte [ebx + 0x344], 0
je 0x4a7d96
mov eax, dword [0x4e3aa8]
mov eax, dword [eax]
mov esi, dword [eax + 0x98]
cmp word [ebx + 0x2fa], 0
je 0x4a7d72
push esi
lea ecx, [ebp - 0x15]
mov edx, ebx
mov eax, dword [ebx + 0x2fc]
call dword [ebx + 0x2f8]
cmp byte [ebp - 0x15], 0
jne 0x4a7e12
mov eax, dword [ebx + 0x2e0]
mov edx, esi
call fcn.004685f0
mov edx, eax
mov dword [ebp - 0x174], edx
mov dword [ebp - 8], edx
jmp 0x4a7e12
push 0x4011
push 0x160
lea eax, [ebp - 0x178]
push eax
push 0x80
push 0x4a7ee8
call sub.shell32.dll_SHGetFileInfoA
cmp word [ebx + 0x30a], 0
je 0x4a7dda
mov eax, dword [ebp - 0x178]
push eax
mov ecx, 0x4a7ef8
mov edx, ebx
mov eax, dword [ebx + 0x30c]
call dword [ebx + 0x308]
mov eax, dword [ebp - 0x174]
mov dword [ebp - 8], eax
jmp 0x4a7e12
push 0x4011
push 0x160
lea eax, [ebp - 0x178]
push eax
push 0x80
mov eax, dword [ebp - 0x14]
call fcn.00404834
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [ebp - 0x174]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7e70
xor eax, eax
push ebp
push 0x4a7e54
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0xffffffff
je 0x4a7e41
mov eax, dword [ebp - 0x174]
push eax
call sub.user32.dll_DestroyIcon
jmp 0x4a7e46
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7e5b
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7ebe
lea eax, [ebp - 0x184]
call fcn.00404a80
lea eax, [ebp - 0x180]
call fcn.00404374
lea eax, [ebp - 0x17c]
call fcn.00404a80
lea eax, [ebp - 0x14]
call fcn.00404374
lea eax, [ebp - 0xc]
call fcn.00406344
lea eax, [ebp - 4]
call fcn.00404374
ret