Function at 0x40572c
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Make an http request with a cookie
Parse url
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a045
mov eax, dword fs:[0]
push eax
mov eax, 0x10e8
call fcn.0041a300
mov eax, dword [0x433774]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x10ac], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x10a4], eax
mov eax, dword [ebp + 0x48]
mov dword [ebp - 0x10a8], eax
mov eax, dword [ebp + 0x50]
mov dword [ebp - 0x1088], eax
mov eax, dword [ebp + 0x54]
mov dword [ebp - 0x10b0], eax
xor ebx, ebx
push 0x7ff
lea eax, [ebp - 0x843]
push ebx
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x10a0], ebx
mov byte [ebp - 0x844], bl
call fcn.0041a070
push 0x823
lea eax, [ebp - 0x1067]
push ebx
push eax
mov byte [ebp - 0x1068], bl
call fcn.0041a070
add esp, 0x18
push 0xc
pop ecx
mov esi, str.Content_Type:_application_x_www_form_urlencoded_r_n
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10b4], str.Accept:_text_html_application_xhtmlxml_application_xml_q0.9___q0.8
movsw word es:[edi], word [esi]
mov dword [ebp - 0x109c], ebx
cmp dword [ebp - 0x1088], ebx
jne 0x405800
lea eax, [ebp - 0x10b8]
mov dword [ebp - 0x1088], eax
mov eax, dword [ebp - 0x1088]
mov dword [eax], ebx
mov eax, dword [ebp - 0x10b0]
cmp eax, ebx
je 0x405814
mov dword [eax], ebx
mov ecx, dword [ebp - 0x10a4]
mov edi, 0x42e465
push edi
call fcn.00402e41
mov ecx, dword [ebp - 0x10a8]
push edi
call fcn.00402e41
push 3
push 0x42e9a4
push dword [ebp - 0x10ac]
call fcn.0040ea23
add esp, 0xc
test eax, eax
jne 0x405878
cmp dword [ebp + 0x34], 1
jbe 0x405878
push 0x42e9a8
lea eax, [ebp + 8]
push eax
call fcn.00402a56
push ebx
lea eax, [ebp + 0x24]
push eax
or eax, 0xffffffff
lea esi, [ebp + 8]
call fcn.00403231
push ebx
push edi
lea ecx, [ebp + 0x24]
call fcn.00402dcc
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x10f4]
push ebx
push eax
mov dword [ebp - 0x1098], ebx
mov dword [ebp - 0x1094], ebx
mov dword [ebp - 0x108c], ebx
call fcn.0041a070
lea eax, [ebp - 0x1068]
mov dword [ebp - 0x10e4], eax
lea eax, [ebp - 0x844]
mov dword [ebp - 0x10f4], esi
add esp, 0xc
cmp dword [ebp + 0x1c], 0x10
mov esi, 0x800
mov dword [ebp - 0x10c8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10e0], 0x824
mov dword [ebp - 0x10c4], esi
jae 0x4058dd
lea eax, [ebp + 8]
lea ecx, [ebp - 0x10f4]
push ecx
push 0x80000000
push dword [ebp + 0x18]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x405908
mov eax, dword [ebp - 0x1088]
mov dword [eax], 0x7d1
jmp 0x405c4d
push ebx
push edi
push edi
push ebx
push str.Mozilla_5.0__Windows_NT_6.1__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_28.0.1500.72_Safari_537.36
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x1098], eax
cmp eax, ebx
jne 0x405932
mov eax, dword [ebp - 0x1088]
mov dword [eax], 0x7d2
jmp 0x405c4d
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x10dc]
push dword [ebp - 0x10e4]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x1094], eax
cmp eax, ebx
jne 0x405966
mov eax, dword [ebp - 0x1088]
mov dword [eax], 0x7d3
jmp 0x405c4d
push ebx
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x405982
mov eax, dword [ebp - 0x1088]
mov dword [eax], 0x7d4
jmp 0x405c4d
push ebx
push 0x84480000
lea eax, [ebp - 0x10b4]
push eax
push edi
push str.HTTP_1.0
lea eax, [ebp - 0x844]
push eax
push dword [ebp - 0x10ac]
mov byte [ebp - 4], 2
push dword [ebp - 0x1094]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x108c], eax
cmp eax, ebx
jne 0x4059cd
mov eax, dword [ebp - 0x1088]
mov dword [eax], 0x7d5
jmp 0x405c4d
mov dword [ebp - 4], 1
push 0x54
push str.Accept:_text_html_application_xhtmlxml_application_xml_q0.9_image_webp___q0.8_r_n
lea ecx, [ebp - 0x1084]
mov dword [ebp - 0x1070], 0xf
mov dword [ebp - 0x1074], ebx
mov byte [ebp - 0x1084], bl
call fcn.00402dcc
mov byte [ebp - 4], 4
cmp dword [ebp - 0x1070], 0x10
mov eax, dword [ebp - 0x1084]
jae 0x405a15
lea eax, [ebp - 0x1084]
mov edi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push 0xa0000000
push dword [ebp - 0x1074]
push eax
push dword [ebp - 0x108c]
call edi
lea ecx, [ebp - 0x1084]
test eax, eax
jne 0x405a52
mov eax, dword [ebp - 0x1088]
mov dword [eax], 0x7d6
push ebx
push 1
call fcn.00402ec6
jmp 0x405c4d
push 0x21
push str.Accept_Language:_zh_CN_zh_q0.8_r_n
call fcn.00402dcc
cmp dword [ebp - 0x1070], 0x10
mov eax, dword [ebp - 0x1084]
jae 0x405a73
lea eax, [ebp - 0x1084]
push 0xa0000000
push dword [ebp - 0x1074]
push eax
push dword [ebp - 0x108c]
call edi
test eax, eax
jne 0x405a9f
mov eax, dword [ebp - 0x1088]
mov dword [eax], 0x7d7
lea ecx, [ebp - 0x1084]
jmp 0x405a45
push 0x20000000
push 0x1e
push str.Cookie:_notified_NotifyUser11
push dword [ebp - 0x108c]
call edi
test eax, eax
jne 0x405ac5
mov eax, dword [ebp - 0x1088]
mov dword [eax], 0x7d8
jmp 0x405a97
mov edi, dword [ebp - 0x108c]
push 4
lea eax, [ebp + 0x4c]
push eax
push 2
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
cmp dword [ebp + 0x34], 1
jbe 0x405b06
lea eax, [ebp - 0x44]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405ae6
mov ecx, dword [ebp + 0x24]
sub eax, edx
cmp dword [ebp + 0x38], 0x10
jae 0x405afb
lea ecx, [ebp + 0x24]
push dword [ebp + 0x34]
push ecx
push eax
lea eax, [ebp - 0x44]
push eax
jmp 0x405b19
cmp dword [ebp + 0x38], 0x10
mov eax, dword [ebp + 0x24]
jae 0x405b12
lea eax, [ebp + 0x24]
push dword [ebp + 0x34]
push eax
push 0xffffffffffffffff
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, ebx
jne 0x405b35
mov eax, dword [ebp - 0x1088]
mov dword [eax], 0x7d9
jmp 0x405a97
push esi
lea eax, [ebp - 0x844]
push ebx
push eax
call fcn.0041a070
add esp, 0xc
lea eax, [ebp - 0x1090]
push eax
push esi
lea eax, [ebp - 0x844]
push eax
push edi
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
call edi
jmp 0x405bb7
cmp dword [ebp - 0x1090], ebx
je 0x405bc1
mov ebx, dword [ebp - 0x1090]
lea eax, [ebp - 0x844]
push eax
mov eax, dword [ebp - 0x10a4]
call fcn.004032c6
mov eax, dword [ebp - 0x1090]
add dword [ebp - 0x109c], eax
push esi
lea eax, [ebp - 0x844]
push 0
push eax
call fcn.0041a070
add esp, 0xc
lea eax, [ebp - 0x1090]
push eax
push esi
lea eax, [ebp - 0x844]
push eax
push dword [ebp - 0x108c]
call edi
xor ebx, ebx
test eax, eax
jne 0x405b60
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
lea eax, [ebp - 0x844]
push ebx
push eax
call fcn.0041a070
add esp, 0xc
push ebx
lea eax, [ebp - 0x1090]
push eax
lea eax, [ebp - 0x844]
push eax
push 0x16
push dword [ebp - 0x108c]
mov dword [ebp - 0x1090], esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x405c0a
mov eax, dword [ebp - 0x1088]
mov dword [eax], 0x7da
jmp 0x405a97
mov ebx, dword [ebp - 0x1090]
lea eax, [ebp - 0x844]
push eax
mov eax, dword [ebp - 0x10a8]
call fcn.004032c6
xor eax, eax
xor esi, esi
cmp dword [ebp - 0x109c], esi
push esi
setne al
push 1
lea ecx, [ebp - 0x1084]
mov dword [ebp - 0x10a0], eax
call fcn.00402ec6
xor ebx, ebx
cmp dword [ebp - 0x10a0], esi
jne 0x405c5f
mov esi, dword [ebp - 0x10b0]
cmp esi, ebx
je 0x405c5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x108c], ebx
je 0x405c75
push dword [ebp - 0x108c]
call esi
cmp dword [ebp - 0x1094], ebx
je 0x405c85
push dword [ebp - 0x1094]
call esi
cmp dword [ebp - 0x1098], ebx
je 0x405c95
push dword [ebp - 0x1098]
call esi
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.00402ec6
push ebx
push 1
lea ecx, [ebp + 0x24]
call fcn.00402ec6
mov eax, dword [ebp - 0x10a0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040db3d
leave
ret 0x50