Function at 0x517114
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.00407248
xor eax, eax
push ebp
push 0x51748d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 4]
mov edx, dword [0x525754]
mov edx, dword [edx]
call fcn.00407920
je 0x517449
xor ecx, ecx
push ebp
push 0x517442
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
call fcn.0040a218
push eax
call sub.shell32.dll_SHGetMalloc
lea eax, [ebp - 0x2d0]
mov edx, dword [ebp - 4]
call fcn.004074c4
mov eax, dword [ebp - 0x2d0]
call fcn.00515818
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push esi
mov eax, ebx
call fcn.004a5948
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.0040cc3c
test eax, eax
je 0x5171ed
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 0x5173eb
mov eax, dword [ebp - 4]
call fcn.00414ff4
test al, al
jne 0x517226
lea eax, [ebp - 0x2d4]
push eax
mov ecx, 7
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00407988
mov eax, dword [ebp - 0x2d4]
mov edx, 0x5174ac
call fcn.00414174
test eax, eax
jne 0x517258
push 0x4011
push 0x2b4
lea eax, [ebp - 0x2c9]
push eax
push 0x80
mov eax, dword [ebp - 4]
call fcn.004072ec
push eax
call sub.shell32.dll_SHGetFileInfoW
mov eax, dword [ebp - 0x2c5]
mov dword [ebp - 0x10], eax
jmp 0x5173eb
mov eax, dword [ebp - 4]
call fcn.0041503c
test al, al
je 0x517293
push 0x4011
push 0x2000
lea eax, [ebp - 0x2c9]
push eax
push 0x10
mov eax, dword [ebp - 4]
call fcn.004072ec
push eax
call sub.shell32.dll_SHGetFileInfoW
mov eax, dword [ebp - 0x2c5]
mov dword [ebp - 0x10], eax
jmp 0x5173eb
cmp dword [ebp - 4], 0
je 0x5173eb
lea eax, [ebp - 0x2d8]
mov edx, dword [ebp - 4]
call fcn.004074c4
mov eax, dword [ebp - 0x2d8]
lea edx, [ebp - 8]
call fcn.005153b0
mov eax, dword [ebp - 8]
mov edx, 0x5174c8
call fcn.00407920
jne 0x5173be
mov eax, ebx
call fcn.0046d948
test al, al
jne 0x517319
cmp byte [ebx + 0x3b0], 0
je 0x517319
mov eax, ebx
call fcn.005177a0
inc eax
jle 0x517319
mov eax, ebx
call fcn.005177a0
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 0x517449
cmp byte [ebx + 0x3bc], 0
je 0x51736f
mov eax, dword [0x5256a4]
mov eax, dword [eax]
mov esi, dword [eax + 0xa0]
cmp word [ebx + 0x372], 0
je 0x51734b
push esi
lea ecx, [ebp - 0x15]
mov edx, ebx
mov eax, dword [ebx + 0x374]
call dword [ebx + 0x370]
cmp byte [ebp - 0x15], 0
jne 0x5173eb
mov eax, dword [ebx + 0x358]
mov edx, esi
call fcn.004b50e4
mov edx, eax
mov dword [ebp - 0x2c5], edx
mov dword [ebp - 0x10], edx
jmp 0x5173eb
push 0x4011
push 0x2b4
lea eax, [ebp - 0x2c9]
push eax
push 0x80
push 0x5174d4
call sub.shell32.dll_SHGetFileInfoW
cmp word [ebx + 0x382], 0
je 0x5173b3
mov eax, dword [ebp - 0x2c9]
push eax
mov ecx, 0x5174ec
mov edx, ebx
mov eax, dword [ebx + 0x384]
call dword [ebx + 0x380]
mov eax, dword [ebp - 0x2c5]
mov dword [ebp - 0x10], eax
jmp 0x5173eb
push 0x4011
push 0x2b4
lea eax, [ebp - 0x2c9]
push eax
push 0x80
mov eax, dword [ebp - 8]
call fcn.004072ec
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 0x517449
xor eax, eax
push ebp
push 0x51742d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0xffffffff
je 0x51741a
mov eax, dword [ebp - 0x2c5]
push eax
call sub.user32.dll_DestroyIcon
jmp 0x51741f
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x517434
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x517494
lea eax, [ebp - 0x2d8]
call fcn.00406d04
lea eax, [ebp - 0x2d4]
call fcn.00407250
lea eax, [ebp - 0x2d0]
call fcn.00406d04
lea eax, [ebp - 0xc]
call fcn.0040a218
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407258
ret