Function at 0x447910
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 0x44f36c
mov eax, dword fs:[0]
push eax
sub esp, 0x668
mov eax, dword [0x46800c]
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], 4
mov dword [ebp - 0x614], 0
mov dword [ebp - 0x61c], 0
mov dword [ebp - 0x618], 0
mov eax, dword [ebp - 0x60c]
mov dword [eax + 0x1b8], 0
push 0
lea ecx, [ebp - 0x640]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x45da08
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov eax, dword [ebp - 0x60c]
cmp dword [eax], 0
je 0x4479fd
mov ecx, dword [ebp - 0x60c]
add ecx, 0xcc
push ecx
mov edx, dword [ebp - 0x60c]
add edx, 4
push edx
push 0x45da1c
lea eax, [ebp - 0x608]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
push 0
lea ecx, [ebp - 0x608]
push ecx
push 3
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x614], eax
jmp 0x447a40
mov eax, dword [ebp - 0x640]
and eax, 4
jne 0x447a25
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x614], eax
jmp 0x447a40
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x614], eax
cmp dword [ebp - 0x614], 0
jne 0x447a61
push 0x45da40
call sym.nsUninstall.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
mov ecx, eax
call sym.nsUninstall.exe_public:_void___thiscall_CNsLog::WriteLog_wchar_t_const__
xor eax, eax
jmp 0x4480ef
mov dword [ebp - 0x644], 0xbb8
push 4
lea eax, [ebp - 0x644]
push eax
push 2
mov ecx, dword [ebp - 0x614]
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
lea ecx, [ebp - 0x620]
call fcn.00409460
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x610]
call fcn.004093b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x610]
call fcn.00410a30
push 0x45da6c
push 0x45da70
lea ecx, [ebp - 0x610]
call fcn.00413bf0
push 0
push 0x45da80
lea ecx, [ebp - 0x610]
call fcn.00410a80
mov dword [ebp - 0x63c], eax
cmp dword [ebp - 0x63c], 0
jle 0x447b9a
mov eax, dword [ebp - 0x63c]
push eax
lea ecx, [ebp - 0x650]
push ecx
lea ecx, [ebp - 0x610]
call fcn.004139c0
mov dword [ebp - 0x648], eax
mov edx, dword [ebp - 0x648]
mov dword [ebp - 0x64c], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x64c]
push eax
lea ecx, [ebp - 0x620]
call fcn.0040b7b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x650]
call fcn.00409370
lea ecx, [ebp - 0x610]
call fcn.004094a0
sub eax, dword [ebp - 0x63c]
push eax
lea ecx, [ebp - 0x65c]
push ecx
lea ecx, [ebp - 0x610]
call fcn.004109a0
mov dword [ebp - 0x654], eax
mov edx, dword [ebp - 0x654]
mov dword [ebp - 0x658], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x658]
push eax
lea ecx, [ebp - 0x610]
call fcn.0040b7b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x65c]
call fcn.00409370
jmp 0x447bbc
lea ecx, [ebp - 0x610]
push ecx
lea ecx, [ebp - 0x620]
call fcn.0040b7b0
push 0x45da84
lea ecx, [ebp - 0x610]
call fcn.00409320
mov dword [ebp - 0x628], 0
mov edx, dword [ebp - 0x60c]
mov eax, dword [ebp - 0x628]
cmp eax, dword [edx + 0x1b0]
jge 0x447cb1
push 0
push SysReAllocString
push 3
push 0
push 0
movzx ecx, word [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x620]
call fcn.004094b0
push eax
mov edx, dword [ebp - 0x614]
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x61c], eax
cmp dword [ebp - 0x61c], 0
je 0x447c22
jmp 0x447cb1
mov eax, dword [ebp - 0x628]
add eax, 1
mov dword [ebp - 0x628], eax
mov ecx, dword [ebp - 0x60c]
mov edx, dword [ebp - 0x628]
cmp edx, dword [ecx + 0x1b0]
jl 0x447c99
push 0x45da88
call sym.nsUninstall.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
mov ecx, eax
call sym.nsUninstall.exe_public:_void___thiscall_CNsLog::WriteLog_wchar_t_const__
mov eax, dword [ebp - 0x614]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x660], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x610]
call fcn.00409370
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x620]
call fcn.00409370
mov eax, dword [ebp - 0x660]
jmp 0x4480ef
mov ecx, dword [ebp - 0x60c]
mov edx, dword [ecx + 0x1b4]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x447bc6
mov eax, dword [ebp - 0x60c]
cmp dword [eax], 0
je 0x447d1c
mov ecx, dword [ebp - 0x60c]
add ecx, 0xe4
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov edx, dword [ebp - 0x60c]
add edx, 0xe4
push edx
push 0x2b
mov eax, dword [ebp - 0x61c]
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov ecx, dword [ebp - 0x60c]
add ecx, 0x148
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov edx, dword [ebp - 0x60c]
add edx, 0x148
push edx
push 0x2c
mov eax, dword [ebp - 0x61c]
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push SysReAllocString
push 0x468978
push 0
push 0x45dab8
lea ecx, [ebp - 0x610]
call fcn.004094b0
push eax
push 0x45dacc
mov ecx, dword [ebp - 0x61c]
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x618], eax
cmp dword [ebp - 0x618], 0
jne 0x447dbd
push 0x45dad4
call sym.nsUninstall.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
mov ecx, eax
call sym.nsUninstall.exe_public:_void___thiscall_CNsLog::WriteLog_wchar_t_const__
mov edx, dword [ebp - 0x61c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x614]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x664], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x610]
call fcn.00409370
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x620]
call fcn.00409370
mov eax, dword [ebp - 0x664]
jmp 0x4480ef
push 0x3e8
push 0
lea ecx, [ebp - 0x478]
push ecx
call fcn.004187d0
add esp, 0xc
push str.Accept:text_html_application_xml_q0.9_application_json___q0.8_r_n
lea edx, [ebp - 0x478]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x45db98
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Accept_Language:zh_CN_zh_q0.5_r_n
lea ecx, [ebp - 0x478]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Accept_Charset:gb2312_utf_8_q0.7__q0.7_r_n
lea edx, [ebp - 0x478]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x45db04
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x620]
call fcn.004094b0
push eax
lea ecx, [ebp - 0x478]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x45dca8
lea edx, [ebp - 0x478]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x45dcb0
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]
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x618]
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov edx, dword [ebp - 0x618]
push edx
mov ecx, dword [ebp - 0x60c]
call sym.nsUninstall.exe_public:_int___thiscall_CNsNet::isGzip_void__
mov dword [ebp - 0x66c], eax
mov dword [ebp - 0x62c], 0x4000
mov eax, dword [ebp - 0x62c]
cmp eax, dword [ebp + 0x10]
jl 0x447edf
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp - 0x62c], ecx
mov dword [ebp - 0x624], 0
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.004187d0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x634], ecx
mov edx, dword [ebp - 0x60c]
movzx eax, byte [edx + 0x1ac]
test eax, eax
jne 0x448000
mov ecx, dword [ebp - 0x624]
add ecx, dword [ebp - 0x62c]
cmp ecx, dword [ebp + 0x10]
jge 0x448000
mov dword [ebp - 0x630], 0
lea edx, [ebp - 0x630]
push edx
mov eax, dword [ebp - 0x62c]
push eax
mov ecx, dword [ebp - 0x634]
push ecx
mov edx, dword [ebp - 0x618]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x447fcc
push 0x45dc1c
call sym.nsUninstall.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
mov ecx, eax
call sym.nsUninstall.exe_public:_void___thiscall_CNsLog::WriteLog_wchar_t_const__
mov eax, dword [ebp - 0x618]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
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 - 0x668], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x610]
call fcn.00409370
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x620]
call fcn.00409370
mov eax, dword [ebp - 0x668]
jmp 0x4480ef
cmp dword [ebp - 0x630], 0
jne 0x447fd7
jmp 0x448000
mov eax, dword [ebp - 0x624]
add eax, dword [ebp - 0x630]
mov dword [ebp - 0x624], eax
mov ecx, dword [ebp - 0x634]
add ecx, dword [ebp - 0x630]
mov dword [ebp - 0x634], ecx
jmp 0x447f04
mov edx, dword [ebp - 0x634]
mov byte [edx], 0
mov eax, dword [ebp - 0x60c]
mov ecx, dword [ebp - 0x624]
mov dword [eax + 0x1b8], ecx
cmp dword [ebp - 0x66c], 0
je 0x448097
mov dword [ebp - 0x638], 0
lea edx, [ebp + 0x10]
push edx
lea eax, [ebp - 0x638]
push eax
mov ecx, dword [ebp - 0x624]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sym.nsUninstall.exe_public:_static_class_CNsZlib____cdecl_CNsZlib::Instance_void_
mov ecx, eax
call sym.nsUninstall.exe_public:_long_int___thiscall_CNsZlib::DecodeGZipBuffer_unsigned_char___long_int__unsigned_char____long_int__
cmp dword [ebp - 0x638], 0
je 0x448097
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x638]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00418c50
add esp, 0xc
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
mov byte [eax], 0
mov ecx, dword [ebp - 0x60c]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0x1b8], edx
mov eax, dword [ebp - 0x638]
push eax
call fcn.0041eee4
add esp, 4
mov ecx, dword [ebp - 0x618]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x61c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x614]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x670], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x610]
call fcn.00409370
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x620]
call fcn.00409370
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.00416d81
mov esp, ebp
pop ebp
ret 0x10