Function at 0x4b04f0
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.00404a54
xor eax, eax
push ebp
push 0x4b0851
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
xor ecx, ecx
push ebp
push 0x4b0803
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.00404e68
mov eax, dword [ebp - 0x17c]
call fcn.004af250
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push esi
mov eax, ebx
call fcn.004597ac
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.00407988
test eax, eax
je 0x4b05ae
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 0x4b07ac
mov eax, dword [ebp - 4]
call fcn.00409780
test al, al
jne 0x4b05e7
lea eax, [ebp - 0x180]
push eax
mov ecx, 7
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404ac4
mov eax, dword [ebp - 0x180]
mov edx, 0x4b086c
call fcn.00408e8c
test eax, eax
jne 0x4b0619
push 0x4011
push 0x160
lea eax, [ebp - 0x178]
push eax
push 0x80
mov eax, dword [ebp - 4]
call fcn.00404a64
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [ebp - 0x174]
mov dword [ebp - 8], eax
jmp 0x4b07ac
mov eax, dword [ebp - 4]
call fcn.00409790
test al, al
je 0x4b0654
push 0x4011
push 0x2000
lea eax, [ebp - 0x178]
push eax
push 0x10
mov eax, dword [ebp - 4]
call fcn.00404a64
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [ebp - 0x174]
mov dword [ebp - 8], eax
jmp 0x4b07ac
cmp dword [ebp - 4], 0
je 0x4b07ac
lea eax, [ebp - 0x184]
mov edx, dword [ebp - 4]
call fcn.00404e68
mov eax, dword [ebp - 0x184]
lea edx, [ebp - 0x14]
call fcn.004aee88
mov eax, dword [ebp - 0x14]
mov edx, 0x4b087c
call fcn.004049b0
jne 0x4b077f
mov eax, ebx
call fcn.0044a4b4
test al, al
jne 0x4b06da
cmp byte [ebx + 0x338], 0
je 0x4b06da
mov eax, ebx
call fcn.004b0b14
inc eax
jle 0x4b06da
mov eax, ebx
call fcn.004b0b14
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.00404048
jmp 0x4b080a
cmp byte [ebx + 0x344], 0
je 0x4b0730
mov eax, dword [0x4f4754]
mov eax, dword [eax]
mov esi, dword [eax + 0x98]
cmp word [ebx + 0x2fa], 0
je 0x4b070c
push esi
lea ecx, [ebp - 0x15]
mov edx, ebx
mov eax, dword [ebx + 0x2fc]
call dword [ebx + 0x2f8]
cmp byte [ebp - 0x15], 0
jne 0x4b07ac
mov eax, dword [ebx + 0x2e0]
mov edx, esi
call fcn.004603f4
mov edx, eax
mov dword [ebp - 0x174], edx
mov dword [ebp - 8], edx
jmp 0x4b07ac
push 0x4011
push 0x160
lea eax, [ebp - 0x178]
push eax
push 0x80
push 0x4b0884
call sub.shell32.dll_SHGetFileInfoA
cmp word [ebx + 0x30a], 0
je 0x4b0774
mov eax, dword [ebp - 0x178]
push eax
mov ecx, 0x4b0894
mov edx, ebx
mov eax, dword [ebx + 0x30c]
call dword [ebx + 0x308]
mov eax, dword [ebp - 0x174]
mov dword [ebp - 8], eax
jmp 0x4b07ac
push 0x4011
push 0x160
lea eax, [ebp - 0x178]
push eax
push 0x80
mov eax, dword [ebp - 0x14]
call fcn.00404a64
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 0x4b080a
xor eax, eax
push ebp
push 0x4b07ee
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0xffffffff
je 0x4b07db
mov eax, dword [ebp - 0x174]
push eax
call sub.user32.dll_DestroyIcon
jmp 0x4b07e0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b07f5
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0858
lea eax, [ebp - 0x184]
call fcn.00404cb0
lea eax, [ebp - 0x180]
call fcn.004045a4
lea eax, [ebp - 0x17c]
call fcn.00404cb0
lea eax, [ebp - 0x14]
call fcn.004045a4
lea eax, [ebp - 0xc]
call fcn.00406348
lea eax, [ebp - 4]
call fcn.004045a4
ret