Function at 0x44f130
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 0x46036d
mov eax, dword fs:[0]
push eax
sub esp, 0x670
mov eax, dword [0x47e014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60c], ecx
mov dword [ebp - 0x674], 0
mov dword [ebp - 0x678], 4
mov dword [ebp - 0x614], 0
mov dword [ebp - 0x61c], 0
mov dword [ebp - 0x618], 0
push 0
lea eax, [ebp - 0x640]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x47059c
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov edx, dword [ebp - 0x60c]
cmp dword [edx], 0
je 0x44f216
mov eax, dword [ebp - 0x60c]
add eax, 0xcc
push eax
mov ecx, dword [ebp - 0x60c]
add ecx, 4
push ecx
push 0x4705b0
lea edx, [ebp - 0x608]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
push 0
lea eax, [ebp - 0x608]
push eax
push 3
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x614], eax
jmp 0x44f259
mov edx, dword [ebp - 0x640]
and edx, 4
jne 0x44f23e
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x614], eax
jmp 0x44f259
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x614], eax
cmp dword [ebp - 0x614], 0
jne 0x44f27a
push 0x4705d4
call sym.Install_silent.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
mov ecx, eax
call sym.Install_silent.exe_public:_void___thiscall_CNsLog::WriteLog_wchar_t_const__
xor eax, eax
jmp 0x44f924
mov dword [ebp - 0x644], 0xbb8
push 4
lea edx, [ebp - 0x644]
push edx
push 2
mov eax, dword [ebp - 0x614]
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
lea ecx, [ebp - 0x620]
call fcn.004050d0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x610]
call fcn.00405020
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x610]
call fcn.004091d0
push 0x470600
push 0x470604
lea ecx, [ebp - 0x610]
call fcn.00409490
push 0
push 0x470614
lea ecx, [ebp - 0x610]
call fcn.00404f40
mov dword [ebp - 0x63c], eax
cmp dword [ebp - 0x63c], 0
jle 0x44f3b3
mov edx, dword [ebp - 0x63c]
push edx
lea eax, [ebp - 0x650]
push eax
lea ecx, [ebp - 0x610]
call fcn.00404ec0
mov dword [ebp - 0x648], eax
mov ecx, dword [ebp - 0x648]
mov dword [ebp - 0x64c], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x64c]
push edx
lea ecx, [ebp - 0x620]
call fcn.00404f80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x650]
call fcn.00404fe0
lea ecx, [ebp - 0x610]
call fcn.00405330
sub eax, dword [ebp - 0x63c]
push eax
lea eax, [ebp - 0x65c]
push eax
lea ecx, [ebp - 0x610]
call fcn.00409140
mov dword [ebp - 0x654], eax
mov ecx, dword [ebp - 0x654]
mov dword [ebp - 0x658], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x658]
push edx
lea ecx, [ebp - 0x610]
call fcn.00404f80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x65c]
call fcn.00404fe0
jmp 0x44f3d5
lea eax, [ebp - 0x610]
push eax
lea ecx, [ebp - 0x620]
call fcn.00404f80
push 0x470618
lea ecx, [ebp - 0x610]
call fcn.00405230
mov dword [ebp - 0x628], 0
mov ecx, dword [ebp - 0x60c]
mov edx, dword [ebp - 0x628]
cmp edx, dword [ecx + 0x1b0]
jge 0x44f4ca
push 0
push SysReAllocString
push 3
push 0
push 0
movzx eax, word [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x620]
call fcn.00405110
push eax
mov ecx, dword [ebp - 0x614]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x61c], eax
cmp dword [ebp - 0x61c], 0
je 0x44f43b
jmp 0x44f4ca
mov edx, dword [ebp - 0x628]
add edx, 1
mov dword [ebp - 0x628], edx
mov eax, dword [ebp - 0x60c]
mov ecx, dword [ebp - 0x628]
cmp ecx, dword [eax + 0x1b0]
jl 0x44f4b2
push 0x47061c
call sym.Install_silent.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
mov ecx, eax
call sym.Install_silent.exe_public:_void___thiscall_CNsLog::WriteLog_wchar_t_const__
mov edx, dword [ebp - 0x614]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x660], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x610]
call fcn.00404fe0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x620]
call fcn.00404fe0
mov eax, dword [ebp - 0x660]
jmp 0x44f924
mov eax, dword [ebp - 0x60c]
mov ecx, dword [eax + 0x1b4]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x44f3df
mov edx, dword [ebp - 0x60c]
cmp dword [edx], 0
je 0x44f533
mov eax, dword [ebp - 0x60c]
add eax, 0xe4
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov ecx, dword [ebp - 0x60c]
add ecx, 0xe4
push ecx
push 0x2b
mov edx, dword [ebp - 0x61c]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [ebp - 0x60c]
add eax, 0x148
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov ecx, dword [ebp - 0x60c]
add ecx, 0x148
push ecx
push 0x2c
mov edx, dword [ebp - 0x61c]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push SysReAllocString
push 0x47e980
push 0
push 0x47064c
lea ecx, [ebp - 0x610]
call fcn.00405110
push eax
push str.POST
mov eax, dword [ebp - 0x61c]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x618], eax
cmp dword [ebp - 0x618], 0
jne 0x44f5d4
push 0x47066c
call sym.Install_silent.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
mov ecx, eax
call sym.Install_silent.exe_public:_void___thiscall_CNsLog::WriteLog_wchar_t_const__
mov ecx, dword [ebp - 0x61c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x614]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x664], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x610]
call fcn.00404fe0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x620]
call fcn.00404fe0
mov eax, dword [ebp - 0x664]
jmp 0x44f924
push 0x3e8
push 0
lea eax, [ebp - 0x478]
push eax
call fcn.00427170
add esp, 0xc
push str.Accept:__r_n
lea ecx, [ebp - 0x478]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x4706b8
lea edx, [ebp - 0x478]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Accept_Language:zh_CN_zh_r_n
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Accept_Charset:gb2312_utf_8_r_n
lea ecx, [ebp - 0x478]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x47076c
lea edx, [ebp - 0x478]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x620]
call fcn.00405110
push eax
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x470778
lea ecx, [ebp - 0x478]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x470780
lea edx, [ebp - 0x478]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Content_Type:application_x_www_form_urlencoded_r_n
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0xa0000000
lea ecx, [ebp - 0x478]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea edx, [ebp - 0x478]
push edx
mov eax, dword [ebp - 0x618]
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
mov eax, dword [ebp - 0x618]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov dword [ebp - 0x67c], eax
mov ecx, dword [ebp - 0x618]
push ecx
mov ecx, dword [ebp - 0x60c]
call sym.Install_silent.exe_public:_int___thiscall_CNsNet::isGzip_void__
mov dword [ebp - 0x66c], eax
mov dword [ebp - 0x62c], 0x4000
mov edx, dword [ebp - 0x62c]
cmp edx, dword [ebp + 0x18]
jl 0x44f712
mov eax, dword [ebp + 0x18]
sub eax, 1
mov dword [ebp - 0x62c], eax
mov dword [ebp - 0x624], 0
mov ecx, dword [ebp + 0x18]
push ecx
push 0
mov edx, dword [ebp + 0x14]
push edx
call fcn.00427170
add esp, 0xc
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x634], eax
mov ecx, dword [ebp - 0x60c]
movzx edx, byte [ecx + 0x1ac]
test edx, edx
jne 0x44f833
mov eax, dword [ebp - 0x624]
add eax, dword [ebp - 0x62c]
cmp eax, dword [ebp + 0x18]
jge 0x44f833
mov dword [ebp - 0x630], 0
lea ecx, [ebp - 0x630]
push ecx
mov edx, dword [ebp - 0x62c]
push edx
mov eax, dword [ebp - 0x634]
push eax
mov ecx, dword [ebp - 0x618]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x44f7ff
push 0x4707d4
call sym.Install_silent.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
mov ecx, eax
call sym.Install_silent.exe_public:_void___thiscall_CNsLog::WriteLog_wchar_t_const__
mov edx, dword [ebp - 0x618]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x61c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x614]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x668], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x610]
call fcn.00404fe0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x620]
call fcn.00404fe0
mov eax, dword [ebp - 0x668]
jmp 0x44f924
cmp dword [ebp - 0x630], 0
jne 0x44f80a
jmp 0x44f833
mov edx, dword [ebp - 0x624]
add edx, dword [ebp - 0x630]
mov dword [ebp - 0x624], edx
mov eax, dword [ebp - 0x634]
add eax, dword [ebp - 0x630]
mov dword [ebp - 0x634], eax
jmp 0x44f737
mov ecx, dword [ebp - 0x634]
mov byte [ecx], 0
cmp dword [ebp - 0x66c], 0
jne 0x44f859
mov edx, dword [ebp + 0x14]
push edx
call fcn.0042d240
add esp, 4
cmp dword [ebp - 0x624], eax
je 0x44f8cc
mov dword [ebp - 0x638], 0
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp - 0x638]
push ecx
mov edx, dword [ebp - 0x624]
push edx
mov eax, dword [ebp + 0x14]
push eax
call sym.Install_silent.exe_public:_static_class_CNsZlib____cdecl_CNsZlib::Instance_void_
mov ecx, eax
call sym.Install_silent.exe_public:_long_int___thiscall_CNsZlib::DecodeGZipBuffer_unsigned_char___long_int__unsigned_char____long_int__
cmp dword [ebp - 0x638], 0
je 0x44f8cc
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x638]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.004272d0
add esp, 0xc
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp + 0x18]
mov byte [ecx], 0
mov edx, dword [ebp - 0x60c]
mov eax, dword [ebp + 0x18]
mov dword [edx + 0x1b8], eax
mov ecx, dword [ebp - 0x638]
push ecx
call fcn.0042cef3
add esp, 4
mov edx, dword [ebp - 0x618]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x61c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x614]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x670], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x610]
call fcn.00404fe0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x620]
call fcn.00404fe0
mov eax, dword [ebp - 0x670]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004216bd
mov esp, ebp
pop ebp
ret 0x18