Function at 0x4984e0
Capabilities:
Check http status code
Check internet connectivity via wininet
Connect to http server
Create http request
Delete file
Download and write a file
Get http content length
Move file
Read data from internet
Receive and write data from server to client
Receive data
Reference http user-agent string
Send data
Send http request
Send http request with host header
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa4b9
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x46fc
call fcn.00479690
mov eax, dword [0x4e100c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x4620], ecx
mov dword [ebp - 0x4700], 0
mov eax, dword [ebp + 0xc]
push eax
call sym.Install_adv.exe_int___cdecl_CreateDirTree_wchar_t_const__
add esp, 4
mov dword [ebp - 0x4704], 4
mov dword [ebp - 0x461c], 0
mov dword [ebp - 0x4624], 0
mov dword [ebp - 0x4614], 0
push 0
lea ecx, [ebp - 0x46e4]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x4c7654
lea edx, [ebp - 0x94]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov eax, dword [ebp - 0x4620]
cmp dword [eax], 0
je 0x4985de
mov ecx, dword [ebp - 0x4620]
add ecx, 0xcc
push ecx
mov edx, dword [ebp - 0x4620]
add edx, 4
push edx
push 0x4c7668
lea eax, [ebp - 0x60c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
push 0
lea ecx, [ebp - 0x60c]
push ecx
push 3
lea edx, [ebp - 0x94]
push edx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x461c], eax
jmp 0x498621
mov eax, dword [ebp - 0x46e4]
and eax, 4
jne 0x498606
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x94]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x461c], eax
jmp 0x498621
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x94]
push edx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x461c], eax
cmp dword [ebp - 0x461c], 0
jne 0x498666
push 0x4c768c
call sym.Install_adv.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
push eax
call sym.Install_adv.exe_public:_void___cdecl_CNsLog::WriteLog_wchar_t_const__
add esp, 8
cmp dword [ebp + 0x14], 0
je 0x49865f
sub esp, 8
xorps xmm0, xmm0
movsd qword [esp], xmm0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 4
call dword [ebp + 0x14]
xor eax, eax
jmp 0x49996e
mov dword [ebp - 0x4680], 0xbb8
push 4
lea ecx, [ebp - 0x4680]
push ecx
push 2
mov edx, dword [ebp - 0x461c]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov dword [ebp - 0x4650], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x4610]
call fcn.004093e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4610]
call fcn.0040dab0
push 0
push 0x4c76bc
lea ecx, [ebp - 0x4610]
call fcn.0040f3c0
test eax, eax
jne 0x4986d5
mov dword [ebp - 0x4650], 7
jmp 0x498705
push 0
push 0x4c76cc
lea ecx, [ebp - 0x4610]
call fcn.0040f3c0
test eax, eax
jne 0x498705
mov dword [ebp - 0x4650], 8
mov ecx, dword [ebp - 0x4620]
mov dword [ecx + 0x1e0], 0x1bb
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x4610]
call fcn.00409300
lea ecx, [ebp - 0x4618]
call fcn.00409500
mov byte [ebp - 4], 1
push 8
push 0x4c76e0
lea ecx, [ebp - 0x4610]
call fcn.0040f3c0
mov dword [ebp - 0x463c], eax
cmp dword [ebp - 0x463c], 0
jle 0x498802
mov eax, dword [ebp - 0x463c]
sub eax, dword [ebp - 0x4650]
push eax
mov ecx, dword [ebp - 0x4650]
push ecx
lea edx, [ebp - 0x46f0]
push edx
lea ecx, [ebp - 0x4610]
call fcn.004125d0
mov dword [ebp - 0x4684], eax
mov eax, dword [ebp - 0x4684]
mov dword [ebp - 0x4688], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4688]
push ecx
lea ecx, [ebp - 0x4618]
call fcn.00409350
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x46f0]
call fcn.004093c0
lea ecx, [ebp - 0x4610]
call fcn.00409530
sub eax, dword [ebp - 0x463c]
push eax
lea edx, [ebp - 0x46dc]
push edx
lea ecx, [ebp - 0x4610]
call fcn.00412500
mov dword [ebp - 0x46ec], eax
mov eax, dword [ebp - 0x46ec]
mov dword [ebp - 0x46e8], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x46e8]
push ecx
lea ecx, [ebp - 0x4610]
call fcn.00409350
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x46dc]
call fcn.004093c0
jmp 0x498874
lea ecx, [ebp - 0x4610]
call fcn.00409530
sub eax, dword [ebp - 0x4650]
push eax
mov edx, dword [ebp - 0x4650]
push edx
lea eax, [ebp - 0x468c]
push eax
lea ecx, [ebp - 0x4610]
call fcn.004125d0
mov dword [ebp - 0x46cc], eax
mov ecx, dword [ebp - 0x46cc]
mov dword [ebp - 0x46e0], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x46e0]
push edx
lea ecx, [ebp - 0x4618]
call fcn.00409350
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x468c]
call fcn.004093c0
push 0x4c76e4
lea ecx, [ebp - 0x4610]
call fcn.00409300
push 0
push 0x4c76e8
lea ecx, [ebp - 0x4618]
call fcn.0040f3c0
mov dword [ebp - 0x463c], eax
cmp dword [ebp - 0x463c], 0
jle 0x498943
lea ecx, [ebp - 0x4618]
call fcn.00409530
sub eax, dword [ebp - 0x463c]
sub eax, 1
push eax
lea eax, [ebp - 0x4670]
push eax
lea ecx, [ebp - 0x4618]
call fcn.00412500
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4670]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call fcn.0043ae24
add esp, 4
mov ecx, dword [ebp - 0x4620]
mov dword [ecx + 0x1e0], eax
mov edx, dword [ebp - 0x463c]
push edx
lea eax, [ebp - 0x4698]
push eax
lea ecx, [ebp - 0x4618]
call fcn.00412440
mov dword [ebp - 0x4690], eax
mov ecx, dword [ebp - 0x4690]
mov dword [ebp - 0x4694], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x4694]
push edx
lea ecx, [ebp - 0x4618]
call fcn.00409350
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4698]
call fcn.004093c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4670]
call fcn.004093c0
mov dword [ebp - 0x4658], 0
mov eax, dword [ebp - 0x4620]
mov ecx, dword [ebp - 0x4658]
cmp ecx, dword [eax + 0x1b0]
jge 0x498a65
push 0
push SysReAllocString
push 3
push 0
push 0
mov edx, dword [ebp - 0x4620]
movzx eax, word [edx + 0x1e0]
push eax
lea ecx, [ebp - 0x4618]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp - 0x461c]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x4624], eax
cmp dword [ebp - 0x4624], 0
je 0x4989b2
jmp 0x498a65
mov edx, dword [ebp - 0x4658]
add edx, 1
mov dword [ebp - 0x4658], edx
mov eax, dword [ebp - 0x4620]
mov ecx, dword [ebp - 0x4658]
cmp ecx, dword [eax + 0x1b0]
jl 0x498a4d
push 0x4c76ec
call sym.Install_adv.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
push eax
call sym.Install_adv.exe_public:_void___cdecl_CNsLog::WriteLog_wchar_t_const__
add esp, 8
cmp dword [ebp + 0x14], 0
je 0x498a0a
sub esp, 8
xorps xmm0, xmm0
movsd qword [esp], xmm0
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 4
call dword [ebp + 0x14]
mov eax, dword [ebp - 0x461c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x469c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4618]
call fcn.004093c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4610]
call fcn.004093c0
mov eax, dword [ebp - 0x469c]
jmp 0x49996e
mov ecx, dword [ebp - 0x4620]
mov edx, dword [ecx + 0x1b4]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x49894d
mov eax, dword [ebp - 0x4620]
cmp dword [eax], 0
je 0x498ad0
mov ecx, dword [ebp - 0x4620]
add ecx, 0xe4
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov edx, dword [ebp - 0x4620]
add edx, 0xe4
push edx
push 0x2b
mov eax, dword [ebp - 0x4624]
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov ecx, dword [ebp - 0x4620]
add ecx, 0x148
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov edx, dword [ebp - 0x4620]
add edx, 0x148
push edx
push 0x2c
mov eax, dword [ebp - 0x4624]
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov ecx, dword [ebp - 0x4620]
cmp dword [ecx + 0x1e0], 0x1bb
jne 0x498b1b
push 0
push 0x80803000
push 0x4e2318
push 0
push 0x4c7720
lea ecx, [ebp - 0x4610]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4c7734
mov edx, dword [ebp - 0x4624]
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x4614], eax
jmp 0x498b52
push 0
push SysReAllocString
push 0x4e2318
push 0
push 0x4c773c
lea ecx, [ebp - 0x4610]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4c7750
mov eax, dword [ebp - 0x4624]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x4614], eax
cmp dword [ebp - 0x4614], 0
jne 0x498be4
push 0x4c7758
call sym.Install_adv.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
push eax
call sym.Install_adv.exe_public:_void___cdecl_CNsLog::WriteLog_wchar_t_const__
add esp, 8
cmp dword [ebp + 0x14], 0
je 0x498b94
sub esp, 8
xorps xmm0, xmm0
movsd qword [esp], xmm0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 4
call dword [ebp + 0x14]
mov edx, dword [ebp - 0x4624]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x461c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x46a0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4618]
call fcn.004093c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4610]
call fcn.004093c0
mov eax, dword [ebp - 0x46a0]
jmp 0x49996e
push 0x3e8
push 0
lea ecx, [ebp - 0x47c]
push ecx
call fcn.004307d0
add esp, 0xc
push 0x4c7798
lea edx, [ebp - 0x47c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x4c7820
lea eax, [ebp - 0x47c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4c7860
lea ecx, [ebp - 0x47c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4c78d8
lea edx, [ebp - 0x47c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4c778c
lea eax, [ebp - 0x47c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x4618]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea ecx, [ebp - 0x47c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4c7930
lea edx, [ebp - 0x47c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4c7938
lea eax, [ebp - 0x47c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x4628]
call fcn.004093e0
mov byte [ebp - 4], 7
push 0x4c78a4
lea ecx, [ebp - 0x4628]
call fcn.004155d0
xorps xmm0, xmm0
movlpd qword [ebp - 0x4638], xmm0
cmp dword [ebp + 0x10], 0
je 0x498d56
lea ecx, [ebp - 0x4628]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call sym.Install_adv.exe_long_long___int64____cdecl_FileSize_wchar_t_const__
add esp, 4
mov dword [ebp - 0x4638], eax
mov dword [ebp - 0x4634], edx
cmp dword [ebp - 0x4634], 0
jl 0x498d56
jg 0x498cfd
cmp dword [ebp - 0x4638], 0
jbe 0x498d56
lea ecx, [ebp - 0x4668]
call fcn.00409500
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x4634]
push edx
mov eax, dword [ebp - 0x4638]
push eax
push str.Range:bytes_I64d__r_n
lea ecx, [ebp - 0x4668]
push ecx
call fcn.00409ab0
add esp, 0x10
lea ecx, [ebp - 0x4668]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea edx, [ebp - 0x47c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x4668]
call fcn.004093c0
push 0xa0000000
lea eax, [ebp - 0x47c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea ecx, [ebp - 0x47c]
push ecx
mov edx, dword [ebp - 0x4614]
push edx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x4614]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov dword [ebp - 0x4630], 0
mov dword [ebp - 0x466c], 4
cmp dword [ebp + 0x10], 0
je 0x49915c
push 0
lea ecx, [ebp - 0x466c]
push ecx
lea edx, [ebp - 0x4630]
push edx
push 0x20000013
mov eax, dword [ebp - 0x4614]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4990bb
cmp dword [ebp - 0x4630], 0xc8
jl 0x498df7
cmp dword [ebp - 0x4630], 0xce
jg 0x498df7
jmp 0x4990b6
cmp dword [ebp - 0x4630], 0x12c
jl 0x498e14
cmp dword [ebp - 0x4630], 0x133
jg 0x498e14
jmp 0x4990b6
cmp dword [ebp - 0x4630], 0x190
jl 0x498ff5
cmp dword [ebp - 0x4630], 0x1a1
jg 0x498ff5
cmp dword [ebp - 0x4630], 0x1a0
je 0x498e50
cmp dword [ebp - 0x4630], 0x19d
jne 0x498f4f
mov ecx, dword [ebp - 0x4614]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0
push 0x400200
push 0x4e2318
push 0
push 0x4c798c
lea ecx, [ebp - 0x4610]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4c79a0
mov edx, dword [ebp - 0x4624]
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x4614], eax
cmp dword [ebp - 0x4614], 0
jne 0x498f35
push 0x4c79a8
call sym.Install_adv.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
push eax
call sym.Install_adv.exe_public:_void___cdecl_CNsLog::WriteLog_wchar_t_const__
add esp, 8
cmp dword [ebp + 0x14], 0
je 0x498ed6
sub esp, 8
xorps xmm0, xmm0
movsd qword [esp], xmm0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 4
call dword [ebp + 0x14]
mov ecx, dword [ebp - 0x4624]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x461c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x46a4], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4628]
call fcn.004093c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4618]
call fcn.004093c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4610]
call fcn.004093c0
mov eax, dword [ebp - 0x46a4]
jmp 0x49996e
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x4614]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
jmp 0x498ff0
push 0x4c79e4
call sym.Install_adv.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
push eax
call sym.Install_adv.exe_public:_void___cdecl_CNsLog::WriteLog_wchar_t_const__
add esp, 8
cmp dword [ebp + 0x14], 0
je 0x498f84
sub esp, 8
xorps xmm0, xmm0
movsd qword [esp], xmm0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 4
call dword [ebp + 0x14]
mov edx, dword [ebp - 0x4614]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x4624]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x461c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x46a8], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4628]
call fcn.004093c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4618]
call fcn.004093c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4610]
call fcn.004093c0
mov eax, dword [ebp - 0x46a8]
jmp 0x49996e
jmp 0x4990b6
cmp dword [ebp - 0x4630], 0x1f4
jl 0x4990b6
cmp dword [ebp - 0x4630], 0x1f9
jg 0x4990b6
push 0x4c7a14
call sym.Install_adv.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
push eax
call sym.Install_adv.exe_public:_void___cdecl_CNsLog::WriteLog_wchar_t_const__
add esp, 8
cmp dword [ebp + 0x14], 0
je 0x49904a
sub esp, 8
xorps xmm0, xmm0
movsd qword [esp], xmm0
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 4
call dword [ebp + 0x14]
mov eax, dword [ebp - 0x4614]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x4624]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x461c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x46ac], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4628]
call fcn.004093c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4618]
call fcn.004093c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4610]
call fcn.004093c0
mov eax, dword [ebp - 0x46ac]
jmp 0x49996e
jmp 0x49915c
push 0x4c7a44
call sym.Install_adv.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
push eax
call sym.Install_adv.exe_public:_void___cdecl_CNsLog::WriteLog_wchar_t_const__
add esp, 8
cmp dword [ebp + 0x14], 0
je 0x4990f0
sub esp, 8
xorps xmm0, xmm0
movsd qword [esp], xmm0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 4
call dword [ebp + 0x14]
mov ecx, dword [ebp - 0x4614]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x4624]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x461c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x46b0], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4628]
call fcn.004093c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4618]
call fcn.004093c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4610]
call fcn.004093c0
mov eax, dword [ebp - 0x46b0]
jmp 0x49996e
mov ecx, dword [ebp - 0x4614]
push ecx
mov ecx, dword [ebp - 0x4620]
call sym.Install_adv.exe_private:_int___thiscall_CNsDownload::isGzip_void__
mov dword [ebp - 0x46d0], eax
mov dword [ebp - 0x466c], 8
xorps xmm0, xmm0
movlpd qword [ebp - 0x4644], xmm0
xorps xmm0, xmm0
movlpd qword [ebp - 0x464c], xmm0
push 0
lea edx, [ebp - 0x466c]
push edx
lea eax, [ebp - 0x4644]
push eax
push 0x20000005
mov ecx, dword [ebp - 0x4614]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x499273
cmp dword [ebp + 0x18], 0
jne 0x499273
cmp dword [ebp + 0x14], 0
je 0x499273
push 0x4c7a74
call sym.Install_adv.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
push eax
call sym.Install_adv.exe_public:_void___cdecl_CNsLog::WriteLog_wchar_t_const__
add esp, 8
cmp dword [ebp + 0x14], 0
je 0x499207
sub esp, 8
xorps xmm0, xmm0
movsd qword [esp], xmm0
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 4
call dword [ebp + 0x14]
mov eax, dword [ebp - 0x4614]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x4624]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x461c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x46b4], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4628]
call fcn.004093c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4618]
call fcn.004093c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4610]
call fcn.004093c0
mov eax, dword [ebp - 0x46b4]
jmp 0x49996e
mov byte [ebp - 0x4629], 0
cmp dword [ebp - 0x4640], 0
jg 0x499295
jl 0x49928e
cmp dword [ebp - 0x4644], 0
ja 0x499295
mov byte [ebp - 0x4629], 1
mov eax, dword [ebp - 0x4644]
cmp eax, dword [ebp - 0x4638]
jne 0x49938d
mov ecx, dword [ebp - 0x4640]
cmp ecx, dword [ebp - 0x4634]
jne 0x49938d
cmp dword [ebp - 0x4630], 0xc8
jne 0x49938d
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x4628]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call fcn.0043c1ab
add esp, 8
cmp dword [ebp + 0x14], 0
je 0x499321
sub esp, 8
xorps xmm0, xmm0
movsd qword [esp], xmm0
mov ecx, dword [ebp - 0x4634]
push ecx
mov edx, dword [ebp - 0x4638]
push edx
mov eax, dword [ebp - 0x4634]
push eax
mov ecx, dword [ebp - 0x4638]
push ecx
mov edx, dword [ebp + 8]
push edx
push 2
call dword [ebp + 0x14]
mov eax, dword [ebp - 0x4614]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x4624]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x461c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x46b8], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4628]
call fcn.004093c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4618]
call fcn.004093c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4610]
call fcn.004093c0
mov eax, dword [ebp - 0x46b8]
jmp 0x49996e
cmp dword [ebp + 0x10], 0
je 0x49939f
cmp dword [ebp - 0x4630], 0xce
je 0x4993bc
lea ecx, [ebp - 0x4628]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xorps xmm0, xmm0
movlpd qword [ebp - 0x4638], xmm0
push 0
push 0
push 4
push 0
push 0
push 0x10000000
lea ecx, [ebp - 0x4628]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4664], eax
cmp dword [ebp - 0x4664], 0xffffffff
jne 0x499458
mov eax, dword [ebp - 0x4614]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x4624]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x461c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x46bc], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4628]
call fcn.004093c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4618]
call fcn.004093c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4610]
call fcn.004093c0
mov eax, dword [ebp - 0x46bc]
jmp 0x49996e
push 2
push 0
push 0
mov eax, dword [ebp - 0x4664]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x46c0], 0x1388
push 4
lea ecx, [ebp - 0x46c0]
push ecx
push 6
mov edx, dword [ebp - 0x461c]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x46d8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x467c], eax
mov dword [ebp - 0x4660], 0x64
mov eax, dword [ebp - 0x4620]
movzx ecx, byte [eax + 0x1ac]
test ecx, ecx
jne 0x499836
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x4620]
call sym.Install_adv.exe_public:_int___thiscall_CNsDownload::isStop_wchar_t_const__
test eax, eax
je 0x49951a
mov eax, dword [ebp - 0x464c]
cmp eax, dword [ebp - 0x4644]
jne 0x4994f3
mov ecx, dword [ebp - 0x4648]
cmp ecx, dword [ebp - 0x4640]
je 0x499515
cmp dword [ebp + 0x14], 0
je 0x499515
sub esp, 8
xorps xmm0, xmm0
movsd qword [esp], xmm0
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 3
call dword [ebp + 0x14]
jmp 0x499836
mov dword [ebp - 0x4654], 0
lea eax, [ebp - 0x4654]
push eax
push 0x4000
lea ecx, [ebp - 0x460c]
push ecx
mov edx, dword [ebp - 0x4614]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4995ed
push 0x4c7aa4
call sym.Install_adv.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
push eax
call sym.Install_adv.exe_public:_void___cdecl_CNsLog::WriteLog_wchar_t_const__
add esp, 8
cmp dword [ebp + 0x14], 0
je 0x499581
sub esp, 8
xorps xmm0, xmm0
movsd qword [esp], xmm0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 4
call dword [ebp + 0x14]
mov ecx, dword [ebp - 0x4614]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x4624]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x461c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x46c4], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4628]
call fcn.004093c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4618]
call fcn.004093c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4610]
call fcn.004093c0
mov eax, dword [ebp - 0x46c4]
jmp 0x49996e
cmp dword [ebp - 0x4654], 0
jne 0x4995fb
jmp 0x499836
mov byte [ebp - 4], 9
push 0
lea ecx, [ebp - 0x46fc]
push ecx
mov edx, dword [ebp - 0x4654]
push edx
lea eax, [ebp - 0x460c]
push eax
mov ecx, dword [ebp - 0x4664]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x499684
mov dword [ebp - 4], 7
jmp 0x4996cb
xorps xmm0, xmm0
movss dword [ebp - 0x465c], xmm0
mov eax, dword [ebp - 0x4654]
mov dword [ebp - 0x4674], eax
cvtsi2sd xmm0, dword [ebp - 0x4674]
mov ecx, dword [ebp - 0x4674]
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4c92d0]
movsd qword [ebp - 0x470c], xmm0
cvtsd2ss xmm0, qword [ebp - 0x470c]
movss dword [ebp - 0x465c], xmm0
mov edx, dword [ebp - 0x4660]
mov dword [ebp - 0x4678], edx
cvtsi2sd xmm0, dword [ebp - 0x4678]
mov eax, dword [ebp - 0x4678]
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4c92d0]
movsd qword [ebp - 0x46f8], xmm0
cvtsd2ss xmm0, qword [ebp - 0x46f8]
divss xmm0, dword [0x4c91e8]
movss xmm1, dword [ebp - 0x465c]
divss xmm1, xmm0
movss dword [ebp - 0x465c], xmm1
mov ecx, dword [ebp - 0x4644]
cmp ecx, dword [ebp - 0x464c]
jne 0x499794
mov edx, dword [ebp - 0x4640]
cmp edx, dword [ebp - 0x4648]
jne 0x499794
movzx eax, byte [ebp - 0x4629]
test eax, eax
jne 0x499794
jmp 0x499836
cmp dword [ebp + 0x14], 0
je 0x4997e7
cvtss2sd xmm0, dword [ebp - 0x465c]
sub esp, 8
movsd qword [esp], xmm0
mov ecx, dword [ebp - 0x4644]
add ecx, dword [ebp - 0x4638]
mov edx, dword [ebp - 0x4640]
adc edx, dword [ebp - 0x4634]
push edx
push ecx
mov eax, dword [ebp - 0x464c]
add eax, dword [ebp - 0x4638]
mov ecx, dword [ebp - 0x4648]
adc ecx, dword [ebp - 0x4634]
push ecx
push eax
mov edx, dword [ebp + 8]
push edx
push 1
call dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x467c], eax
mov eax, dword [ebp - 0x467c]
sub eax, dword [ebp - 0x46d8]
mov dword [ebp - 0x4660], eax
jne 0x499811
mov dword [ebp - 0x4660], 0x64
mov ecx, dword [ebp - 0x4654]
xor edx, edx
add ecx, dword [ebp - 0x464c]
adc edx, dword [ebp - 0x4648]
mov dword [ebp - 0x464c], ecx
mov dword [ebp - 0x4648], edx
jmp 0x4994af
mov eax, dword [ebp - 0x4664]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x4644]
cmp ecx, dword [ebp - 0x464c]
jne 0x49985f
mov edx, dword [ebp - 0x4640]
cmp edx, dword [ebp - 0x4648]
je 0x49986e
movzx eax, byte [ebp - 0x4629]
test eax, eax
je 0x499907
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x46d0], 0
je 0x4998a1
push 0
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x4628]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call sym.Install_adv.exe_public:_static_class_CNsZlib____cdecl_CNsZlib::Instance_void_
mov ecx, eax
call sym.Install_adv.exe_public:_long_int___thiscall_CNsZlib::DecodeFile_wchar_t_const___wchar_t_const___unsigned_long_int_
jmp 0x4998b9
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x4628]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call fcn.0043c1ab
add esp, 8
cmp dword [ebp + 0x14], 0
je 0x499907
sub esp, 8
xorps xmm0, xmm0
movsd qword [esp], xmm0
mov ecx, dword [ebp - 0x4644]
add ecx, dword [ebp - 0x4638]
mov edx, dword [ebp - 0x4640]
adc edx, dword [ebp - 0x4634]
push edx
push ecx
mov eax, dword [ebp - 0x464c]
add eax, dword [ebp - 0x4638]
mov ecx, dword [ebp - 0x4648]
adc ecx, dword [ebp - 0x4634]
push ecx
push eax
mov edx, dword [ebp + 8]
push edx
push 2
call dword [ebp + 0x14]
mov eax, dword [ebp - 0x4614]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x4624]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x461c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x46d4], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4628]
call fcn.004093c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4618]
call fcn.004093c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4610]
call fcn.004093c0
mov eax, dword [ebp - 0x46d4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042eb1e
mov esp, ebp
pop ebp
ret 0x14