Function at 0x437d30
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 0x450a38
mov eax, dword fs:[0]
push eax
sub esp, 0x6c4
mov eax, dword [0x467080]
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 - 0x6c0], 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 - 0x6c0]
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 0x459c24
lea edx, [ebp - 0x47c]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov eax, dword [ebp - 0x6c0]
cmp dword [eax], 0
je 0x437e1f
mov ecx, dword [ebp - 0x6c0]
add ecx, 0xcc
push ecx
mov edx, dword [ebp - 0x6c0]
add edx, 4
push edx
push 0x459c38
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 0x437e62
mov eax, dword [ebp - 0x4a4]
and eax, 4
jne 0x437e47
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 0x437e62
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 0x437e83
push 0x459c5c
call sym.Install_comm.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
mov ecx, eax
call sym.Install_comm.exe_public:_void___thiscall_CNsLog::WriteLog_wchar_t_const__
xor eax, eax
jmp 0x438508
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 esi, [ebp - 0x480]
call fcn.004058a0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x494]
push edx
mov ecx, dword [ebp + 8]
call fcn.004058e0
mov byte [ebp - 4], 1
lea edi, [ebp - 0x494]
call fcn.0040a4d0
push 0x459c88
push 0x459c8c
lea ecx, [ebp - 0x494]
call fcn.00410eb0
xor ecx, ecx
mov edx, 0x459c9c
lea esi, [ebp - 0x494]
call fcn.0040a4a0
mov dword [ebp - 0x4a8], eax
cmp dword [ebp - 0x4a8], 0
jle 0x437fba
mov eax, dword [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x650]
push ecx
lea ecx, [ebp - 0x494]
call fcn.00411240
mov dword [ebp - 0x6c4], eax
mov edx, dword [ebp - 0x6c4]
mov dword [ebp - 0x6c8], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x6c8]
lea edi, [ebp - 0x480]
call fcn.004059b0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x650]
call fcn.00405990
lea eax, [ebp - 0x494]
call fcn.00405a70
sub eax, dword [ebp - 0x4a8]
push eax
lea eax, [ebp - 0x654]
push eax
lea ecx, [ebp - 0x494]
call fcn.00414730
mov dword [ebp - 0x6cc], eax
mov ecx, dword [ebp - 0x6cc]
mov dword [ebp - 0x6d0], ecx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x6d0]
lea edi, [ebp - 0x494]
call fcn.004059b0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x654]
call fcn.00405990
jmp 0x437fdb
lea eax, [ebp - 0x494]
lea edi, [ebp - 0x480]
call fcn.004059b0
mov edx, 0x459ca0
lea edi, [ebp - 0x494]
call fcn.00405a20
mov dword [ebp - 0x48c], 0
mov edx, dword [ebp - 0x6c0]
mov eax, dword [ebp - 0x48c]
cmp eax, dword [edx + 0x1b0]
jge 0x4380d0
push 0
push SysReAllocString
push 3
push 0
push 0
movzx ecx, word [ebp + 0x14]
push ecx
lea eax, [ebp - 0x480]
call fcn.00405a60
push eax
mov edx, dword [ebp - 0x49c]
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x4b0], eax
cmp dword [ebp - 0x4b0], 0
je 0x438041
jmp 0x4380d0
mov eax, dword [ebp - 0x48c]
add eax, 1
mov dword [ebp - 0x48c], eax
mov ecx, dword [ebp - 0x6c0]
mov edx, dword [ebp - 0x48c]
cmp edx, dword [ecx + 0x1b0]
jl 0x4380b8
push 0x459ca4
call sym.Install_comm.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
mov ecx, eax
call sym.Install_comm.exe_public:_void___thiscall_CNsLog::WriteLog_wchar_t_const__
mov eax, dword [ebp - 0x49c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x658], 0
mov byte [ebp - 4], 0
lea eax, [ebp - 0x494]
call fcn.00405990
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x480]
call fcn.00405990
mov eax, dword [ebp - 0x658]
jmp 0x438508
mov ecx, dword [ebp - 0x6c0]
mov edx, dword [ecx + 0x1b4]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x437fe5
mov eax, dword [ebp - 0x6c0]
cmp dword [eax], 0
je 0x43813b
mov ecx, dword [ebp - 0x6c0]
add ecx, 0xe4
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov edx, dword [ebp - 0x6c0]
add edx, 0xe4
push edx
push 0x2b
mov eax, dword [ebp - 0x4b0]
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov ecx, dword [ebp - 0x6c0]
add ecx, 0x148
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov edx, dword [ebp - 0x6c0]
add edx, 0x148
push edx
push 0x2c
mov eax, dword [ebp - 0x4b0]
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push SysReAllocString
push 0x4690f8
push 0
push 0x459cdc
lea eax, [ebp - 0x494]
call fcn.00405a60
push eax
push 0x459cf0
mov ecx, dword [ebp - 0x4b0]
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x484], eax
cmp dword [ebp - 0x484], 0
jne 0x4381dc
push 0x459cf8
call sym.Install_comm.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
mov ecx, eax
call sym.Install_comm.exe_public:_void___thiscall_CNsLog::WriteLog_wchar_t_const__
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 - 0x65c], 0
mov byte [ebp - 4], 0
lea eax, [ebp - 0x494]
call fcn.00405990
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x480]
call fcn.00405990
mov eax, dword [ebp - 0x65c]
jmp 0x438508
xor ecx, ecx
mov word [ebp - 0x3fc], cx
push 0x3e6
push 0
lea edx, [ebp - 0x3fa]
push edx
call fcn.00419d00
add esp, 0xc
push 0x459d28
lea eax, [ebp - 0x3fc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x459db0
lea ecx, [ebp - 0x3fc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x459df0
lea edx, [ebp - 0x3fc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x459e40
lea eax, [ebp - 0x3fc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x459e34
lea ecx, [ebp - 0x3fc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x480]
call fcn.00405a60
push eax
lea edx, [ebp - 0x3fc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x459e98
lea eax, [ebp - 0x3fc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x459ea0
lea ecx, [ebp - 0x3fc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0xa0000000
lea edx, [ebp - 0x3fc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x3fc]
push eax
mov ecx, dword [ebp - 0x484]
push ecx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x484]
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov eax, dword [ebp - 0x484]
push eax
mov ecx, dword [ebp - 0x6c0]
call sym.Install_comm.exe_public:_int___thiscall_CNsNet::isGzip_void__
mov dword [ebp - 0x490], eax
mov dword [ebp - 0x498], 0x4000
mov ecx, dword [ebp - 0x498]
cmp ecx, dword [ebp + 0x10]
jl 0x438307
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp - 0x498], edx
mov dword [ebp - 0x488], 0
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00419d00
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x6c0]
movzx ecx, byte [eax + 0x1ac]
test ecx, ecx
jne 0x43841c
mov edx, dword [ebp - 0x488]
add edx, dword [ebp - 0x498]
cmp edx, dword [ebp + 0x10]
jge 0x43841c
mov dword [ebp - 0x648], 0
lea eax, [ebp - 0x648]
push eax
mov ecx, dword [ebp - 0x498]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x484]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4383ee
push 0x459ef4
call sym.Install_comm.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
mov ecx, eax
call sym.Install_comm.exe_public:_void___thiscall_CNsLog::WriteLog_wchar_t_const__
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 - 0x660], 0
mov byte [ebp - 4], 0
lea eax, [ebp - 0x494]
call fcn.00405990
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x480]
call fcn.00405990
mov eax, dword [ebp - 0x660]
jmp 0x438508
cmp dword [ebp - 0x648], 0
jne 0x4383f9
jmp 0x43841c
mov ecx, dword [ebp - 0x488]
add ecx, dword [ebp - 0x648]
mov dword [ebp - 0x488], ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x648]
mov dword [ebp - 0x10], edx
jmp 0x438329
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
mov ecx, dword [ebp - 0x6c0]
mov edx, dword [ebp - 0x488]
mov dword [ecx + 0x1b8], edx
cmp dword [ebp - 0x490], 0
je 0x4384b0
mov dword [ebp - 0x64c], 0
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x64c]
push ecx
mov edx, dword [ebp - 0x488]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sym.Install_comm.exe_public:_static_class_CNsZlib____cdecl_CNsZlib::Instance_void_
mov ecx, eax
call sym.Install_comm.exe_public:_long_int___thiscall_CNsZlib::DecodeGZipBuffer_unsigned_char___long_int__unsigned_char____long_int__
cmp dword [ebp - 0x64c], 0
je 0x4384b0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x64c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041a710
add esp, 0xc
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp + 0x10]
mov byte [ecx], 0
mov edx, dword [ebp - 0x6c0]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x1b8], eax
mov ecx, dword [ebp - 0x64c]
push ecx
call fcn.00419cb9
add esp, 4
mov edx, dword [ebp - 0x484]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x4b0]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x49c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x664], 1
mov byte [ebp - 4], 0
lea eax, [ebp - 0x494]
call fcn.00405990
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x480]
call fcn.00405990
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.00418dfa
mov esp, ebp
pop ebp
ret 0x10