Function at 0x490420
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1456
mov eax, dword fs:[0]
push eax
sub esp, 0x990
mov eax, dword [0x4ec00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x978], ecx
push 0x4cd4a4
push 0x1f54
call sym.Install_adv.exe_int___cdecl_NsResSize_int__wchar_t_const__
add esp, 8
mov dword [ebp - 0x990], eax
cmp dword [ebp - 0x990], 0
jg 0x490477
jmp 0x49085e
mov eax, dword [ebp - 0x990]
push eax
call fcn.0047ac4d
add esp, 4
mov dword [ebp - 0x998], eax
mov ecx, dword [ebp - 0x998]
mov dword [ebp - 0x98c], ecx
mov edx, dword [ebp - 0x98c]
push edx
push 0x4cd4ac
push 0x1f54
call sym.Install_adv.exe_int___cdecl_NsResGetBuff_int__wchar_t_const___void__
add esp, 0xc
mov dword [ebp - 0x994], 0
mov eax, dword [ebp - 0x98c]
mov dword [ebp - 0x97c], eax
push 4
mov ecx, dword [ebp - 0x97c]
push ecx
lea edx, [ebp - 0x994]
push edx
call fcn.00434120
add esp, 0xc
mov eax, dword [ebp - 0x97c]
add eax, 4
mov dword [ebp - 0x97c], eax
mov ecx, dword [ebp - 0x978]
add ecx, 0x15fc
call fcn.00416a50
mov dword [ebp - 0x988], 0
jmp 0x49051a
mov ecx, dword [ebp - 0x988]
add ecx, 1
mov dword [ebp - 0x988], ecx
mov edx, dword [ebp - 0x988]
cmp edx, dword [ebp - 0x994]
jge 0x490843
push 0x540
mov eax, dword [ebp - 0x97c]
push eax
lea ecx, [ebp - 0x550]
push ecx
call fcn.00434120
add esp, 0xc
mov edx, dword [ebp - 0x97c]
add edx, 0x540
mov dword [ebp - 0x97c], edx
lea eax, [ebp - 0x4d8]
push eax
lea ecx, [ebp - 0x970]
call fcn.004096a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3ac]
push ecx
lea ecx, [ebp - 0x980]
call fcn.004096a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x970]
call fcn.0040dba0
lea ecx, [ebp - 0x980]
call fcn.0040dba0
lea ecx, [ebp - 0x970]
call fcn.00420100
lea ecx, [ebp - 0x980]
call fcn.00420100
mov byte [ebp - 0x969], 0
push 0
push 0x4cd4b4
lea ecx, [ebp - 0x970]
call fcn.0040f4b0
test eax, eax
jne 0x4905d8
mov byte [ebp - 0x969], 1
lea edx, [ebp - 0x970]
push edx
mov ecx, dword [ebp - 0x978]
call sym.Install_adv.exe_private:_void___thiscall_CNsInstaller::ReplaceSysPath_class_ATL::CStringT_wchar_t__class_ATL::StrTraitATL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____
lea eax, [ebp - 0x980]
push eax
mov ecx, dword [ebp - 0x978]
call sym.Install_adv.exe_private:_void___thiscall_CNsInstaller::ReplaceSysPath_class_ATL::CStringT_wchar_t__class_ATL::StrTraitATL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____
push 0x4cd4c8
lea ecx, [ebp - 0x970]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp - 0x978]
call sym.Install_adv.exe_public:_void___thiscall_CNsInstaller::CheckDir_wchar_t_const___wchar_t_const__
lea ecx, [ebp - 0x974]
call fcn.004097c0
mov byte [ebp - 4], 2
push 0
push 0x4cd4cc
lea ecx, [ebp - 0x970]
call fcn.0040f4b0
test eax, eax
jne 0x4906ce
lea ecx, [ebp - 0x550]
push ecx
mov edx, dword [ebp - 0x970]
push edx
push str._s_s.url
lea eax, [ebp - 0x974]
push eax
call fcn.00409d70
add esp, 0x10
lea ecx, [ebp - 0x980]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea ecx, [ebp - 0x974]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call sym.Install_adv.exe_int___cdecl_CreateUrlShortcut_wchar_t_const___wchar_t_const__
add esp, 8
movzx ecx, byte [ebp - 0x969]
test ecx, ecx
je 0x4906c9
mov dword [ebp - 0x75c], 1
lea ecx, [ebp - 0x974]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea edx, [ebp - 0x758]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x75c]
push eax
mov ecx, dword [ebp - 0x978]
add ecx, 0x15fc
call fcn.0041fd00
jmp 0x490781
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x980]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea ecx, [ebp - 0x550]
push ecx
lea ecx, [ebp - 0x970]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call sym.Install_adv.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
lea edx, [ebp - 0x550]
push edx
mov eax, dword [ebp - 0x970]
push eax
push 0x4cd4f0
lea ecx, [ebp - 0x974]
push ecx
call fcn.00409d70
add esp, 0x10
movzx edx, byte [ebp - 0x969]
test edx, edx
je 0x490765
mov dword [ebp - 0x968], 1
lea ecx, [ebp - 0x974]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea eax, [ebp - 0x964]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x968]
push ecx
mov ecx, dword [ebp - 0x978]
add ecx, 0x15fc
call fcn.0041fd00
cmp dword [ebp - 0x78], 0
je 0x490781
push 1
lea ecx, [ebp - 0x974]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call sym.Install_adv.exe_int___cdecl_SetShortcutAsAdmin_wchar_t_const___int_
add esp, 8
lea edx, [ebp - 0x280]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x49080e
lea ecx, [ebp - 0x984]
call fcn.004097c0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x280]
push eax
mov ecx, dword [ebp - 0x978]
mov edx, dword [ecx + 0x16b0]
push edx
push 0x4cd504
lea eax, [ebp - 0x984]
push eax
call fcn.00409d70
add esp, 0x10
lea ecx, [ebp - 0x984]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4907ff
lea ecx, [ebp - 0x984]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea ecx, [ebp - 0x974]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call sym.Install_adv.exe_int___cdecl_SetShortcutIcon_wchar_t_const___wchar_t_const__
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x984]
call fcn.00409680
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x974]
call fcn.00409680
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x980]
call fcn.00409680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x970]
call fcn.00409680
jmp 0x49050b
mov ecx, dword [ebp - 0x98c]
mov dword [ebp - 0x99c], ecx
mov edx, dword [ebp - 0x99c]
push edx
call fcn.0047ac48
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042f10e
mov esp, ebp
pop ebp
ret