Function at 0x4858b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa5a5
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4e3074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x220], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x4858f4
jmp 0x485b98
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x208
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.00456880
add esp, 0xc
lea ecx, [ebp - 0x21c]
call fcn.00405120
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
add edx, 0x8fc
push edx
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax + 0x16b0]
push ecx
push 0x4c5910
lea edx, [ebp - 0x21c]
push edx
call fcn.00405800
add esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1584], 0
je 0x4859ff
lea ecx, [ebp - 0x218]
push ecx
call sym.Install_silent.exe_int___cdecl_GetDesktopPath_wchar_t__
add esp, 4
push 1
mov edx, dword [ebp + 8]
add edx, 0xb54
push edx
push 0
push 0
lea ecx, [ebp - 0x21c]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x218]
push ecx
call sym.Install_silent.exe_int___cdecl_CreateShortcut_wchar_t_const___wchar_t_const___wchar_t_const___wchar_t_const___unsigned_short_int__wchar_t_const___int_
add esp, 0x1c
mov edx, dword [ebp - 0x220]
cmp dword [edx + 0x1648], 0
je 0x4859ff
lea ecx, [ebp - 0x224]
call fcn.00405120
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x218]
push ecx
push str._s_s.lnk
lea edx, [ebp - 0x224]
push edx
call fcn.00405800
add esp, 0x10
push 1
lea ecx, [ebp - 0x224]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call sym.Install_silent.exe_int___cdecl_SetShortcutAsAdmin_wchar_t_const___int_
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.00405060
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1580], 0
je 0x485b75
lea ecx, [ebp - 0x218]
push ecx
call sym.Install_silent.exe_int___cdecl_GetProgramsPath_wchar_t__
add esp, 4
push 0x4c5930
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp + 8]
add eax, 0xce4
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x485a66
lea eax, [ebp - 0x218]
push eax
call sym.Install_silent.exe_int___cdecl_CreateFolder_wchar_t_const__
add esp, 4
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x21c]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x218]
push edx
call sym.Install_silent.exe_int___cdecl_CreateShortcut_wchar_t_const___wchar_t_const___wchar_t_const___wchar_t_const___unsigned_short_int__wchar_t_const___int_
add esp, 0x1c
mov eax, dword [ebp - 0x220]
cmp dword [eax + 0x1648], 0
je 0x485aef
lea ecx, [ebp - 0x228]
call fcn.00405120
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0x4c5934
lea eax, [ebp - 0x228]
push eax
call fcn.00405800
add esp, 0x10
push 1
lea ecx, [ebp - 0x228]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call sym.Install_silent.exe_int___cdecl_SetShortcutAsAdmin_wchar_t_const___int_
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00405060
mov ecx, dword [ebp + 8]
add ecx, 0x708
push ecx
mov edx, dword [ebp - 0x220]
mov eax, dword [edx + 0x16b0]
push eax
push 0x4c5948
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00405800
add esp, 0x10
call sym.Install_silent.exe_int___cdecl_isEnglish_void_
test eax, eax
je 0x485b4d
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x21c]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push str.Uninstall
lea edx, [ebp - 0x218]
push edx
call sym.Install_silent.exe_int___cdecl_CreateShortcut_wchar_t_const___wchar_t_const___wchar_t_const___wchar_t_const___unsigned_short_int__wchar_t_const___int_
add esp, 0x1c
jmp 0x485b75
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x21c]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4c5968
lea eax, [ebp - 0x218]
push eax
call sym.Install_silent.exe_int___cdecl_CreateShortcut_wchar_t_const___wchar_t_const___wchar_t_const___wchar_t_const___unsigned_short_int__wchar_t_const___int_
add esp, 0x1c
mov ecx, dword [ebp - 0x220]
call sym.Install_silent.exe_private:_void___thiscall_CNsInstaller::CreateUserShortcuts_void_
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00405060
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042fc0d
mov esp, ebp
pop ebp
ret 4