Function at 0x525ab0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1418
call fcn.00537800
mov eax, dword [0x68e4d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x414]
mov esi, ecx
push 0
push eax
call fcn.0058abd0
add esp, 0xc
call fcn.0040c210
mov edi, dword [esi]
lea ecx, [ebp - 0x1415]
test eax, eax
je 0x525afa
call fcn.00525050
jmp 0x525aff
call fcn.005257d0
push eax
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x414]
push eax
call edi
cmp dword [esi + 4], 0
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
je 0x525bb0
push 0x800
lea eax, [ebp - 0x1414]
push 0
push eax
call fcn.0058abd0
add esp, 0xc
lea eax, [ebp - 0x1414]
push 1
push 0x19
push eax
push 0
call ebx
push 0x800
lea eax, [ebp - 0xc14]
push 0
push eax
call fcn.0058abd0
add esp, 0xc
lea ecx, [ebp - 0x1415]
call fcn.00525130
push eax
lea eax, [ebp - 0x1414]
push eax
lea eax, [ebp - 0xc14]
push eax
call edi
push 0
push 0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xc14]
push eax
push str.__sourcedesktop
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x1415]
call fcn.005253d0
push eax
mov ecx, esi
call fcn.00525d60
test eax, eax
je 0x525d29
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0058abd0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x17
push eax
push 0
call ebx
lea ecx, [ebp - 0x1415]
call fcn.00524e90
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [esi + 8], 0
mov eax, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, dword [sym.imp.SHELL32.dll_SHCreateDirectory]
je 0x525c8b
lea ecx, [ebp - 0x20c]
push ecx
call eax
test eax, eax
jne 0x525c1b
lea eax, [ebp - 0x20c]
push eax
push 0
call ebx
push 0x800
lea eax, [ebp - 0xc14]
push 0
push eax
call fcn.0058abd0
add esp, 0xc
lea ecx, [ebp - 0x1415]
call fcn.00525210
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xc14]
push eax
call edi
push 0
push 0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xc14]
push eax
push str.__sourcestmenu
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x1415]
call fcn.00525590
push eax
mov ecx, esi
call fcn.00525d60
test eax, eax
je 0x525d29
mov eax, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [esi + 0xc], 0
je 0x525d3c
lea ecx, [ebp - 0x20c]
push ecx
call eax
test eax, eax
jne 0x525cad
lea eax, [ebp - 0x20c]
push eax
push 0
call ebx
push 0x800
lea eax, [ebp - 0xc14]
push 0
push eax
call fcn.0058abd0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x63fe08
push eax
lea eax, [ebp - 0xc14]
push eax
call edi
push 0x208
lea eax, [ebp - 0xe1c]
push 0
push eax
call fcn.0058abd0
add esp, 0xc
lea eax, [ebp - 0xe1c]
push str.uninstall.exe
push dword [esi]
push eax
call edi
push 1
push 0
lea eax, [ebp - 0xe1c]
mov ecx, esi
push eax
lea eax, [ebp - 0xc14]
push eax
push 0
lea eax, [ebp - 0xe1c]
push eax
push 0x63fe28
call fcn.00525d60
test eax, eax
jne 0x525d3c
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005367cc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005367cc
mov esp, ebp
pop ebp
ret