Function at 0x10050470
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a38b3
mov eax, dword fs:[0]
push eax
sub esp, 0x4b8
mov eax, dword [0x100d00b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xor eax, eax
push 0x40
push eax
mov dword [ebp - 0x4b4], eax
lea eax, [ebp - 0x50]
push eax
call fcn.1006fa00
push 0x100c3350
push str.90729A37
mov dword [ebp - 0x4c0], 0x20
call fcn.1008854a
add esp, 0x14
test eax, eax
jne 0x1005054d
movups xmm0, xmmword [str.dot.taokexing.net.cn]
mov ax, word [0x100c3384]
mov word [ebp - 0x428], ax
movups xmmword [ebp - 0x450], xmm0
movups xmm0, xmmword [0x100c336c]
movups xmmword [ebp - 0x440], xmm0
movq xmm0, qword [0x100c337c]
movq qword [ebp - 0x430], xmm0
movups xmm0, xmmword [str.http:__dot.taokexing.net.cn]
movups xmmword [ebp - 0x250], xmm0
movups xmm0, xmmword [0x100c3398]
movups xmmword [ebp - 0x240], xmm0
movups xmm0, xmmword [0x100c33a8]
movups xmmword [ebp - 0x230], xmm0
movq xmm0, qword [0x100c33b8]
movq qword [ebp - 0x220], xmm0
jmp 0x100505ba
movups xmm0, xmmword [str.dssp.stnts.com]
mov eax, dword [0x100c33d8]
mov dword [ebp - 0x438], eax
mov ax, word [0x100c33dc]
movups xmmword [ebp - 0x450], xmm0
mov word [ebp - 0x434], ax
movq xmm0, qword [0x100c33d0]
mov eax, dword [0x100c3408]
movq qword [ebp - 0x440], xmm0
movups xmm0, xmmword [str.http:__dssp.stnts.com]
mov dword [ebp - 0x228], eax
movups xmmword [ebp - 0x250], xmm0
movups xmm0, xmmword [0x100c33f0]
movups xmmword [ebp - 0x240], xmm0
movq xmm0, qword [0x100c3400]
movq qword [ebp - 0x230], xmm0
mov dword [ebp - 0x454], 0xf
mov dword [ebp - 0x458], 0
mov byte [ebp - 0x468], 0
xor eax, eax
mov dword [ebp - 0x484], 7
mov dword [ebp - 0x488], 0
mov word [ebp - 0x498], ax
lea ecx, [ebp - 0x498]
mov byte [ebp - 4], 3
call fcn.10050c00
push 0xc
push str._optputmq
lea ecx, [ebp - 0x468]
call fcn.100017d0
lea eax, [ebp + 8]
push eax
lea edx, [ebp - 0x468]
lea ecx, [ebp - 0x480]
call fcn.10050b20
add esp, 4
mov esi, eax
lea eax, [ebp - 0x468]
cmp eax, esi
je 0x1005067c
mov eax, dword [ebp - 0x454]
cmp eax, 0x10
jb 0x10050655
inc eax
lea ecx, [ebp - 0x468]
push eax
push dword [ebp - 0x468]
call fcn.10001ca0
push esi
lea ecx, [ebp - 0x468]
mov dword [ebp - 0x454], 0xf
mov dword [ebp - 0x458], 0
mov byte [ebp - 0x468], 0
call fcn.10001c30
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x46c]
cmp eax, 0x10
jb 0x1005069e
inc eax
lea ecx, [ebp - 0x480]
push eax
push dword [ebp - 0x480]
call fcn.10001ca0
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x100506bb
mov eax, dword [ecx]
jmp 0x100506bd
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x498]
push edx
push eax
call fcn.10009520
lea ecx, [ebp - 0x4b0]
call fcn.10050370
push eax
lea edx, [ebp - 0x468]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x480]
call fcn.10050af0
add esp, 0x1c
mov esi, eax
lea eax, [ebp - 0x468]
cmp eax, esi
je 0x10050746
mov eax, dword [ebp - 0x454]
cmp eax, 0x10
jb 0x1005071f
inc eax
lea ecx, [ebp - 0x468]
push eax
push dword [ebp - 0x468]
call fcn.10001ca0
push esi
lea ecx, [ebp - 0x468]
mov dword [ebp - 0x454], 0xf
mov dword [ebp - 0x458], 0
mov byte [ebp - 0x468], 0
call fcn.10001c30
mov eax, dword [ebp - 0x46c]
cmp eax, 0x10
jb 0x10050764
inc eax
lea ecx, [ebp - 0x480]
push eax
push dword [ebp - 0x480]
call fcn.10001ca0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x49c]
mov dword [ebp - 0x46c], 0xf
mov dword [ebp - 0x470], 0
mov byte [ebp - 0x480], 0
cmp eax, 0x10
jb 0x100507a1
inc eax
lea ecx, [ebp - 0x4b0]
push eax
push dword [ebp - 0x4b0]
call fcn.10001ca0
lea eax, [ebp + 0x20]
push eax
lea edx, [ebp - 0x468]
lea ecx, [ebp - 0x4b0]
call fcn.10050b20
add esp, 4
mov esi, eax
lea eax, [ebp - 0x468]
cmp eax, esi
je 0x1005080a
mov eax, dword [ebp - 0x454]
cmp eax, 0x10
jb 0x100507e3
inc eax
lea ecx, [ebp - 0x468]
push eax
push dword [ebp - 0x468]
call fcn.10001ca0
push esi
lea ecx, [ebp - 0x468]
mov dword [ebp - 0x454], 0xf
mov dword [ebp - 0x458], 0
mov byte [ebp - 0x468], 0
call fcn.10001c30
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x49c]
cmp eax, 0x10
jb 0x1005082c
inc eax
lea ecx, [ebp - 0x4b0]
push eax
push dword [ebp - 0x4b0]
call fcn.10001ca0
mov edi, dword [sym.imp.WININET.dll_InternetCheckConnectionW]
xor esi, esi
push 0
push 1
lea eax, [ebp - 0x250]
push eax
call edi
test eax, eax
jne 0x1005084b
inc esi
cmp esi, 3
jb 0x10050834
xor eax, eax
xor esi, esi
mov dword [ebp - 0x4b8], eax
push 0
push 0
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x4c0], 0x20
push 0
push 0
movups xmmword [ebp - 0x50], xmm0
movups xmmword [ebp - 0x40], xmm0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x4bc], eax
test eax, eax
je 0x10050a19
push 0
push 0
push 3
push 0x100c30d8
push 0x100c30d8
push 0x50
lea ecx, [ebp - 0x450]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
test edi, edi
je 0x100509f0
push 1
push 0x4000000
push 0
push 0
push str.HTTP_1.0
sub esp, 0x18
lea eax, [ebp - 0x468]
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.100018d0
lea ecx, [ebp - 0x480]
call fcn.1000e230
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x100508fe
mov eax, dword [eax]
push eax
push 0x100bafb0
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov eax, dword [ebp - 0x46c]
cmp eax, 8
jb 0x1005092b
inc eax
lea ecx, [ebp - 0x480]
push eax
push dword [ebp - 0x480]
call fcn.10009440
xor eax, eax
mov dword [ebp - 0x46c], 7
mov dword [ebp - 0x470], 0
mov word [ebp - 0x480], ax
test esi, esi
je 0x100509f0
push eax
push eax
push eax
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov dword [ebp - 0x4b4], eax
test eax, eax
je 0x100509f0
push 0
lea eax, [ebp - 0x4c0]
push eax
lea eax, [ebp - 0x50]
push eax
push 0x13
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [ebp - 0x4b4], eax
test eax, eax
je 0x100509f0
mov ecx, 0x100c3430
lea eax, [ebp - 0x50]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100509b7
test dx, dx
je 0x100509b3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100509b7
add eax, 4
add ecx, 4
test dx, dx
jne 0x10050991
xor eax, eax
jmp 0x100509bc
sbb eax, eax
or eax, 1
test eax, eax
je 0x100509f0
push dword [ebp - 0x4bc]
mov eax, dword [sym.imp.WININET.dll_InternetCloseHandle]
inc dword [ebp - 0x4b8]
call eax
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
xor esi, esi
cmp dword [ebp - 0x4b8], 3
jbe 0x10050855
jmp 0x10050a19
push dword [ebp - 0x4bc]
mov eax, dword [sym.imp.WININET.dll_InternetCloseHandle]
call eax
test edi, edi
je 0x10050a0c
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
jmp 0x10050a12
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test esi, esi
je 0x10050a19
push esi
call edi
mov eax, dword [ebp - 0x484]
cmp eax, 8
jb 0x10050a37
inc eax
lea ecx, [ebp - 0x498]
push eax
push dword [ebp - 0x498]
call fcn.10009440
xor eax, eax
mov dword [ebp - 0x484], 7
mov word [ebp - 0x498], ax
mov eax, dword [ebp - 0x454]
mov dword [ebp - 0x488], 0
cmp eax, 0x10
jb 0x10050a72
inc eax
lea ecx, [ebp - 0x468]
push eax
push dword [ebp - 0x468]
call fcn.10001ca0
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x454], 0xf
mov dword [ebp - 0x458], 0
mov byte [ebp - 0x468], 0
cmp eax, 0x10
jb 0x10050aa2
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.10001ca0
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp eax, 0x10
jb 0x10050ac9
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.10001ca0
mov eax, dword [ebp - 0x4b4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006c262
mov esp, ebp
pop ebp
ret