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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe54
mov eax, dword [0x6eb874]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xe54], ecx
mov eax, dword [ebp + 8]
push eax
push str.CWallPaperSwitch::CreateBirdWallPaperShort_bCreateDeskShortCut_d
call fcn.005564a0
add esp, 8
push 0x208
push 0
lea ecx, [ebp - 0x824]
push ecx
call fcn.0063a460
add esp, 0xc
push 0x104
lea edx, [ebp - 0x824]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x208
push 0
lea ecx, [ebp - 0x414]
push ecx
call fcn.0063a460
add esp, 0xc
push 0x6ab36c
lea edx, [ebp - 0x824]
push edx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp dword [ebp + 8], 0
je 0x5bf601
push 0x208
push 0
lea ecx, [ebp - 0xc34]
push ecx
call fcn.0063a460
add esp, 0xc
push 1
push 0x19
lea edx, [ebp - 0xc34]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x208
push 0
lea eax, [ebp - 0x61c]
push eax
call fcn.0063a460
add esp, 0xc
push 0x6ab384
lea ecx, [ebp - 0xe44]
call fcn.004131e0
push 0x6ab394
lea ecx, [ebp - 0xe50]
push ecx
call fcn.004bd3f0
add esp, 4
mov ecx, eax
call fcn.00422730
test eax, eax
jne 0x5bf504
mov dword [ebp - 0xe48], 1
jmp 0x5bf50e
mov dword [ebp - 0xe48], 0
mov dl, byte [ebp - 0xe48]
mov byte [ebp - 0xe3d], dl
lea ecx, [ebp - 0xe50]
call fcn.00413870
movzx eax, byte [ebp - 0xe3d]
test eax, eax
je 0x5bf55b
push 0x6ab3a8
lea ecx, [ebp - 0xc34]
push ecx
lea edx, [ebp - 0x61c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x6ab3c8
lea ecx, [ebp - 0xe44]
call fcn.00413a70
jmp 0x5bf584
push 0x6ab3e0
lea eax, [ebp - 0xc34]
push eax
lea ecx, [ebp - 0x61c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x6ab3f8
lea ecx, [ebp - 0xe44]
call fcn.00413a70
mov dword [ebp - 0xe4c], 0
lea edx, [ebp - 0x61c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5bf5d4
push 0
push 1
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x61c]
push ecx
push 0
lea edx, [ebp - 0x414]
push edx
lea ecx, [ebp - 0xe44]
call fcn.0040d3c0
push eax
call fcn.004bd650
add esp, 0x1c
mov dword [ebp - 0xe4c], eax
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x61c]
push ecx
mov edx, dword [ebp - 0xe4c]
push edx
push str.CreateBirdWallPaperShort_CreateShortCut__bSuc___d__szBirdLinkName_s__szExePath_s
call fcn.005564a0
add esp, 0x10
lea ecx, [ebp - 0xe44]
call fcn.00413870
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.0063a460
add esp, 0xc
push 1
push 0x17
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x6ab4b0
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5bf65c
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x6ab4c0
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5bf6a7
push 0
push 1
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x20c]
push edx
push 0
lea eax, [ebp - 0x414]
push eax
push 0x6ab4d8
call fcn.004bd650
add esp, 0x1c
push 0x208
push 0
lea ecx, [ebp - 0xa2c]
push ecx
call fcn.0063a460
add esp, 0xc
push 1
push 0x17
lea edx, [ebp - 0xa2c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x6ab4e8
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0xa2c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5bf74a
push 0x208
push 0
lea edx, [ebp - 0xe3c]
push edx
call fcn.0063a460
add esp, 0xc
push str.Uninstall.exe
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0xe3c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 1
push 0
lea edx, [ebp - 0xe3c]
push edx
lea eax, [ebp - 0xa2c]
push eax
push 0
lea ecx, [ebp - 0xe3c]
push ecx
push 0x6ab52c
call fcn.004bd650
add esp, 0x1c
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006135ac
mov esp, ebp
pop ebp
ret 4