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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd28
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x2d8], ebx
mov dword [ebp - 0x2d4], ebx
mov dword [ebp - 0x2d0], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00407220
xor eax, eax
push ebp
push 0x5177d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 4]
mov edx, dword [0x525764]
mov edx, dword [edx]
call fcn.004078f8
je 0x517791
xor ecx, ecx
push ebp
push 0x51778a
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
call fcn.0040a2c4
push eax
call sub.shell32.dll_SHGetMalloc
lea eax, [ebp - 0x2d0]
mov edx, dword [ebp - 4]
call fcn.0040749c
mov eax, dword [ebp - 0x2d0]
call fcn.00515b60
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push esi
mov eax, ebx
call fcn.004a58e8
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.0040ccb0
test eax, eax
je 0x517535
push 0x108
push 0x2b4
lea eax, [ebp - 0x2c9]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.shell32.dll_SHGetFileInfoW
mov eax, dword [ebp - 0x2c5]
mov dword [ebp - 0x10], eax
jmp 0x517733
mov eax, dword [ebp - 4]
call fcn.00415050
test al, al
jne 0x51756e
lea eax, [ebp - 0x2d4]
push eax
mov ecx, 7
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00407960
mov eax, dword [ebp - 0x2d4]
mov edx, 0x5177f4
call fcn.004141d0
test eax, eax
jne 0x5175a0
push 0x4011
push 0x2b4
lea eax, [ebp - 0x2c9]
push eax
push 0x80
mov eax, dword [ebp - 4]
call fcn.004072c4
push eax
call sub.shell32.dll_SHGetFileInfoW
mov eax, dword [ebp - 0x2c5]
mov dword [ebp - 0x10], eax
jmp 0x517733
mov eax, dword [ebp - 4]
call fcn.00415098
test al, al
je 0x5175db
push 0x4011
push 0x2000
lea eax, [ebp - 0x2c9]
push eax
push 0x10
mov eax, dword [ebp - 4]
call fcn.004072c4
push eax
call sub.shell32.dll_SHGetFileInfoW
mov eax, dword [ebp - 0x2c5]
mov dword [ebp - 0x10], eax
jmp 0x517733
cmp dword [ebp - 4], 0
je 0x517733
lea eax, [ebp - 0x2d8]
mov edx, dword [ebp - 4]
call fcn.0040749c
mov eax, dword [ebp - 0x2d8]
lea edx, [ebp - 8]
call fcn.005156f8
mov eax, dword [ebp - 8]
mov edx, 0x517810
call fcn.004078f8
jne 0x517706
mov eax, ebx
call fcn.0046d984
test al, al
jne 0x517661
cmp byte [ebx + 0x3b0], 0
je 0x517661
mov eax, ebx
call fcn.00517ae8
inc eax
jle 0x517661
mov eax, ebx
call fcn.00517ae8
mov esi, eax
mov dword [ebp - 0x2c5], esi
mov dword [ebp - 0x10], esi
push esi
call sub.user32.dll_DestroyIcon
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
call fcn.00405f44
jmp 0x517791
cmp byte [ebx + 0x3bc], 0
je 0x5176b7
mov eax, dword [0x5256b4]
mov eax, dword [eax]
mov esi, dword [eax + 0xa0]
cmp word [ebx + 0x372], 0
je 0x517693
push esi
lea ecx, [ebp - 0x15]
mov edx, ebx
mov eax, dword [ebx + 0x374]
call dword [ebx + 0x370]
cmp byte [ebp - 0x15], 0
jne 0x517733
mov eax, dword [ebx + 0x358]
mov edx, esi
call fcn.004b50f4
mov edx, eax
mov dword [ebp - 0x2c5], edx
mov dword [ebp - 0x10], edx
jmp 0x517733
push 0x4011
push 0x2b4
lea eax, [ebp - 0x2c9]
push eax
push 0x80
push 0x51781c
call sub.shell32.dll_SHGetFileInfoW
cmp word [ebx + 0x382], 0
je 0x5176fb
mov eax, dword [ebp - 0x2c9]
push eax
mov ecx, 0x517834
mov edx, ebx
mov eax, dword [ebx + 0x384]
call dword [ebx + 0x380]
mov eax, dword [ebp - 0x2c5]
mov dword [ebp - 0x10], eax
jmp 0x517733
push 0x4011
push 0x2b4
lea eax, [ebp - 0x2c9]
push eax
push 0x80
mov eax, dword [ebp - 8]
call fcn.004072c4
push eax
call sub.shell32.dll_SHGetFileInfoW
mov eax, dword [ebp - 0x2c5]
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x517791
xor eax, eax
push ebp
push 0x517775
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0xffffffff
je 0x517762
mov eax, dword [ebp - 0x2c5]
push eax
call sub.user32.dll_DestroyIcon
jmp 0x517767
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51777c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5177dc
lea eax, [ebp - 0x2d8]
call fcn.00406cdc
lea eax, [ebp - 0x2d4]
call fcn.00407228
lea eax, [ebp - 0x2d0]
call fcn.00406cdc
lea eax, [ebp - 0xc]
call fcn.0040a2c4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407230
ret