Function at 0x42ea70
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4436bc
mov eax, dword fs:[0]
push eax
sub esp, 0x6ac
mov eax, dword [0x454080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6a8], ecx
mov dword [ebp - 0x4a0], 4
mov dword [ebp - 0x49c], 0
mov dword [ebp - 0x4b0], 0
mov dword [ebp - 0x484], 0
mov eax, dword [ebp - 0x6a8]
mov dword [eax + 0x1b8], 0
push 0
lea ecx, [ebp - 0x4a4]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x4483f4
lea edx, [ebp - 0x47c]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov eax, dword [ebp - 0x6a8]
cmp dword [eax], 0
je 0x42eb5f
mov ecx, dword [ebp - 0x6a8]
add ecx, 0xcc
push ecx
mov edx, dword [ebp - 0x6a8]
add edx, 4
push edx
push 0x448408
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
push 0
lea ecx, [ebp - 0x644]
push ecx
push 3
lea edx, [ebp - 0x47c]
push edx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x49c], eax
jmp 0x42eba2
mov eax, dword [ebp - 0x4a4]
and eax, 4
jne 0x42eb87
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x47c]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x49c], eax
jmp 0x42eba2
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x47c]
push edx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x49c], eax
cmp dword [ebp - 0x49c], 0
jne 0x42ebc3
push 0x44842c
call sym.Install_classic.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
mov ecx, eax
call sym.Install_classic.exe_public:_void___thiscall_CNsLog::WriteLog_wchar_t_const__
xor eax, eax
jmp 0x42f228
mov dword [ebp - 0x4ac], 0xbb8
push 4
lea eax, [ebp - 0x4ac]
push eax
push 2
mov ecx, dword [ebp - 0x49c]
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
lea edx, [ebp - 0x494]
push edx
mov ecx, dword [ebp + 8]
call fcn.00404c20
mov dword [ebp - 4], 0
lea esi, [ebp - 0x480]
call fcn.00404be0
mov byte [ebp - 4], 1
mov ecx, 8
mov edx, 0x448458
lea esi, [ebp - 0x494]
call fcn.00408dd0
mov dword [ebp - 0x4a8], eax
cmp dword [ebp - 0x4a8], 0
jle 0x42ece2
mov eax, dword [ebp - 0x4a8]
sub eax, 7
push eax
push 7
lea ecx, [ebp - 0x650]
push ecx
lea ecx, [ebp - 0x494]
call fcn.0040d1e0
mov dword [ebp - 0x6ac], eax
mov edx, dword [ebp - 0x6ac]
mov dword [ebp - 0x6b0], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x6b0]
lea edi, [ebp - 0x480]
call fcn.00404cf0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x650]
call fcn.00404cd0
lea eax, [ebp - 0x494]
call fcn.00404db0
sub eax, dword [ebp - 0x4a8]
push eax
lea eax, [ebp - 0x654]
push eax
lea ecx, [ebp - 0x494]
call fcn.00411f20
mov dword [ebp - 0x6b4], eax
mov ecx, dword [ebp - 0x6b4]
mov dword [ebp - 0x6b8], ecx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x6b8]
lea edi, [ebp - 0x494]
call fcn.00404cf0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x654]
call fcn.00404cd0
jmp 0x42ed00
mov edx, dword [ebp + 8]
lea edi, [ebp - 0x480]
call fcn.00404d60
mov edx, 0x44845c
lea edi, [ebp - 0x494]
call fcn.00404d60
mov dword [ebp - 0x48c], 0
mov edx, dword [ebp - 0x6a8]
mov eax, dword [ebp - 0x48c]
cmp eax, dword [edx + 0x1b0]
jge 0x42edf2
push 0
push SysReAllocString
push 3
push 0
push 0
push 0x50
lea eax, [ebp - 0x480]
call fcn.00404da0
push eax
mov ecx, dword [ebp - 0x49c]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x4b0], eax
cmp dword [ebp - 0x4b0], 0
je 0x42ed63
jmp 0x42edf2
mov edx, dword [ebp - 0x48c]
add edx, 1
mov dword [ebp - 0x48c], edx
mov eax, dword [ebp - 0x6a8]
mov ecx, dword [ebp - 0x48c]
cmp ecx, dword [eax + 0x1b0]
jl 0x42edda
push 0x448460
call sym.Install_classic.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
mov ecx, eax
call sym.Install_classic.exe_public:_void___thiscall_CNsLog::WriteLog_wchar_t_const__
mov edx, dword [ebp - 0x49c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x658], 0
mov byte [ebp - 4], 0
lea eax, [ebp - 0x480]
call fcn.00404cd0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x494]
call fcn.00404cd0
mov eax, dword [ebp - 0x658]
jmp 0x42f228
mov eax, dword [ebp - 0x6a8]
mov ecx, dword [eax + 0x1b4]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42ed0a
mov edx, dword [ebp - 0x6a8]
cmp dword [edx], 0
je 0x42ee5b
mov eax, dword [ebp - 0x6a8]
add eax, 0xe4
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov ecx, dword [ebp - 0x6a8]
add ecx, 0xe4
push ecx
push 0x2b
mov edx, dword [ebp - 0x4b0]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [ebp - 0x6a8]
add eax, 0x148
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov ecx, dword [ebp - 0x6a8]
add ecx, 0x148
push ecx
push 0x2c
mov edx, dword [ebp - 0x4b0]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push SysReAllocString
push 0x456098
push 0
push 0x448498
lea eax, [ebp - 0x494]
call fcn.00404da0
push eax
push 0x4484ac
mov eax, dword [ebp - 0x4b0]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x484], eax
cmp dword [ebp - 0x484], 0
jne 0x42eefc
push 0x4484b4
call sym.Install_classic.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
mov ecx, eax
call sym.Install_classic.exe_public:_void___thiscall_CNsLog::WriteLog_wchar_t_const__
mov ecx, dword [ebp - 0x4b0]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x49c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x65c], 0
mov byte [ebp - 4], 0
lea eax, [ebp - 0x480]
call fcn.00404cd0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x494]
call fcn.00404cd0
mov eax, dword [ebp - 0x65c]
jmp 0x42f228
xor eax, eax
mov word [ebp - 0x3fc], ax
push 0x3e6
push 0
lea ecx, [ebp - 0x3fa]
push ecx
call fcn.004177b0
add esp, 0xc
push 0x4484f0
lea edx, [ebp - 0x3fc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x448578
lea eax, [ebp - 0x3fc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4485b8
lea ecx, [ebp - 0x3fc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x448630
lea edx, [ebp - 0x3fc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4484e4
lea eax, [ebp - 0x3fc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x480]
call fcn.00404da0
push eax
lea ecx, [ebp - 0x3fc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x448688
lea edx, [ebp - 0x3fc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x448690
lea eax, [ebp - 0x3fc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0xa0000000
lea ecx, [ebp - 0x3fc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea edx, [ebp - 0x3fc]
push edx
mov eax, dword [ebp - 0x484]
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x484]
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov edx, dword [ebp - 0x484]
push edx
mov ecx, dword [ebp - 0x6a8]
call sym.Install_classic.exe_public:_int___thiscall_CNsNet::isGzip_void__
mov dword [ebp - 0x490], eax
mov dword [ebp - 0x498], 0x4000
mov eax, dword [ebp - 0x498]
cmp eax, dword [ebp + 0x10]
jl 0x42f027
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp - 0x498], ecx
mov dword [ebp - 0x488], 0
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.004177b0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x6a8]
movzx eax, byte [edx + 0x1ac]
test eax, eax
jne 0x42f13c
mov ecx, dword [ebp - 0x488]
add ecx, dword [ebp - 0x498]
cmp ecx, dword [ebp + 0x10]
jge 0x42f13c
mov dword [ebp - 0x648], 0
lea edx, [ebp - 0x648]
push edx
mov eax, dword [ebp - 0x498]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x484]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x42f10e
push 0x4485fc
call sym.Install_classic.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
mov ecx, eax
call sym.Install_classic.exe_public:_void___thiscall_CNsLog::WriteLog_wchar_t_const__
mov eax, dword [ebp - 0x484]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x4b0]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x49c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x660], 0
mov byte [ebp - 4], 0
lea eax, [ebp - 0x480]
call fcn.00404cd0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x494]
call fcn.00404cd0
mov eax, dword [ebp - 0x660]
jmp 0x42f228
cmp dword [ebp - 0x648], 0
jne 0x42f119
jmp 0x42f13c
mov eax, dword [ebp - 0x488]
add eax, dword [ebp - 0x648]
mov dword [ebp - 0x488], eax
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x648]
mov dword [ebp - 0x10], ecx
jmp 0x42f049
mov edx, dword [ebp - 0x10]
mov byte [edx], 0
mov eax, dword [ebp - 0x6a8]
mov ecx, dword [ebp - 0x488]
mov dword [eax + 0x1b8], ecx
cmp dword [ebp - 0x490], 0
je 0x42f1d0
mov dword [ebp - 0x64c], 0
lea edx, [ebp + 0x10]
push edx
lea eax, [ebp - 0x64c]
push eax
mov ecx, dword [ebp - 0x488]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sym.Install_classic.exe_public:_static_class_CNsZlib____cdecl_CNsZlib::Instance_void_
mov ecx, eax
call sym.Install_classic.exe_public:_long_int___thiscall_CNsZlib::DecodeGZipBuffer_unsigned_char___long_int__unsigned_char____long_int__
cmp dword [ebp - 0x64c], 0
je 0x42f1a9
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x64c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004181c0
add esp, 0xc
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
mov byte [eax], 0
mov ecx, dword [ebp - 0x6a8]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0x1b8], edx
mov eax, dword [ebp - 0x64c]
push eax
call fcn.00417769
add esp, 4
mov ecx, dword [ebp - 0x484]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x4b0]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x49c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x664], 1
mov byte [ebp - 4], 0
lea eax, [ebp - 0x480]
call fcn.00404cd0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x494]
call fcn.00404cd0
mov eax, dword [ebp - 0x664]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004168aa
mov esp, ebp
pop ebp
ret 0xc