Function at 0x471300
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539dd3
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x244], ecx
mov eax, dword [ebp + 0xc]
xor edi, edi
cmp dword [ebp + 0x10], edi
mov edx, dword [ebp + 0x14]
cmovne edi, eax
xor esi, esi
cmp dword [ebp + 0x18], esi
cmovne esi, edx
test edi, edi
je 0x471352
xor eax, eax
mov word [edi], ax
test esi, esi
je 0x47135b
xor eax, eax
mov word [esi], ax
cmp dword [ecx], 0
jne 0x471367
xor eax, eax
jmp 0x47156e
push 1
xorps xmm0, xmm0
lea ecx, [ebp - 0x20]
push str.shell32
movups xmmword [ebp - 0x20], xmm0
call fcn.004873a0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x138]
push 0x108
push 0
push eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
call fcn.00509680
push 0x108
lea eax, [ebp - 0x240]
push 0
push eax
call fcn.00509680
add esp, 0x18
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
push 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 0x24], 0
je 0x471505
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x47140c
push str.SHBindToObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47140c
lea ecx, [ebp - 0x28]
push ecx
push 0x5606ac
push 0
push dword [ebp - 0x24]
push 0
call eax
jmp 0x471435
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x471505
mov eax, dword [ecx]
lea edx, [ebp - 0x28]
push edx
push 0x5606ac
push 0
push dword [ebp - 0x24]
push ecx
call dword [eax + 0x14]
cmp dword [ebp - 0x28], 0
je 0x471505
mov eax, dword [ebp - 0x244]
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x471505
push 1
push eax
push dword [ebp - 0x24]
call dword [sym.imp.SHELL32.dll_ILIsParent]
test eax, eax
je 0x471505
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
call dword [sym.imp.SHELL32.dll_ILFindChild]
mov edx, eax
mov dword [ebp - 0x244], edx
test edx, edx
je 0x471505
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x138]
push edx
mov edx, dword [ebp - 0x244]
push 0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x240]
push edx
push 0x8000
push dword [ebp - 0x244]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
test edi, edi
je 0x4714dd
cmp dword [ebp - 0x138], 0
jne 0x4714dd
push 0
push dword [ebp - 0x134]
push dword [ebp + 0x10]
push edi
call fcn.004823d0
add esp, 0x10
test esi, esi
je 0x4714fe
cmp dword [ebp - 0x240], 0
jne 0x4714fe
push 0
push dword [ebp - 0x23c]
push dword [ebp + 0x18]
push esi
call fcn.004823d0
add esp, 0x10
mov edi, 1
jmp 0x471507
xor edi, edi
cmp dword [ebp - 0x138], 0
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
jne 0x47151e
push dword [ebp - 0x134]
call esi
cmp dword [ebp - 0x240], 0
jne 0x47152f
push dword [ebp - 0x23c]
call esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x471539
push eax
call esi
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x471546
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x471553
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x47155d
push ecx
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004873e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret 0x14