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 0x100a38d3
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.1006fa30
push 0x100c3350
push str.7D08CA1A
mov dword [ebp - 0x4c0], 0x20
call fcn.1008856b
add esp, 0x14
test eax, eax
jne 0x10050560
movups xmm0, xmmword [str.dot.taokexing.net.cn]
movzx eax, word [0x100c3384]
mov word [ebp - 0x428], ax
movzx eax, word [0x100c33c0]
movups xmmword [ebp - 0x450], xmm0
mov word [ebp - 0x218], ax
movups xmm0, xmmword [0x100c336c]
movups xmmword [ebp - 0x440], xmm0
movq xmm0, qword [0x100c337c]
movq qword [ebp - 0x430], xmm0
movups xmm0, xmmword [str.https:__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 0x100505dc
movups xmm0, xmmword [0x100c33c4]
mov eax, dword [0x100c33dc]
mov dword [ebp - 0x438], eax
movzx eax, word [0x100c33e0]
movups xmmword [ebp - 0x450], xmm0
mov word [ebp - 0x434], ax
movq xmm0, qword [0x100c33d4]
mov eax, dword [0x100c340c]
movq qword [ebp - 0x440], xmm0
movups xmm0, xmmword [str.https:__dssp.stnts.com]
mov dword [ebp - 0x228], eax
movzx eax, word [0x100c3410]
movups xmmword [ebp - 0x250], xmm0
mov word [ebp - 0x224], ax
movups xmm0, xmmword [0x100c33f4]
movups xmmword [ebp - 0x240], xmm0
movq xmm0, qword [0x100c3404]
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.10050c20
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.10050b40
add esp, 4
mov esi, eax
lea eax, [ebp - 0x468]
cmp eax, esi
je 0x1005069e
mov eax, dword [ebp - 0x454]
cmp eax, 0x10
jb 0x10050677
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 0x100506c0
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 0x100506dd
mov eax, dword [ecx]
jmp 0x100506df
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.10050b10
add esp, 0x1c
mov esi, eax
lea eax, [ebp - 0x468]
cmp eax, esi
je 0x10050768
mov eax, dword [ebp - 0x454]
cmp eax, 0x10
jb 0x10050741
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 0x10050786
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 0x100507c3
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.10050b40
add esp, 4
mov esi, eax
lea eax, [ebp - 0x468]
cmp eax, esi
je 0x1005082c
mov eax, dword [ebp - 0x454]
cmp eax, 0x10
jb 0x10050805
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 0x1005084e
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 0x1005086d
inc esi
cmp esi, 3
jb 0x10050856
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 0x10050a3e
push 0
push 0
push 3
push 0x100c30d8
push 0x100c30d8
push 0x1bb
lea ecx, [ebp - 0x450]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
test edi, edi
je 0x10050a15
push 1
push 0x4800000
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 0x10050923
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 0x10050950
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 0x10050a15
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 0x10050a15
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 0x10050a15
mov ecx, 0x100c3438
lea eax, [ebp - 0x50]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100509dc
test dx, dx
je 0x100509d8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100509dc
add eax, 4
add ecx, 4
test dx, dx
jne 0x100509b6
xor eax, eax
jmp 0x100509e1
sbb eax, eax
or eax, 1
test eax, eax
je 0x10050a15
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 0x10050877
jmp 0x10050a3e
push dword [ebp - 0x4bc]
mov eax, dword [sym.imp.WININET.dll_InternetCloseHandle]
call eax
test edi, edi
je 0x10050a31
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
jmp 0x10050a37
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test esi, esi
je 0x10050a3e
push esi
call edi
mov eax, dword [ebp - 0x484]
cmp eax, 8
jb 0x10050a5c
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 0x10050a97
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 0x10050ac7
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 0x10050aee
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.1006c2b1
mov esp, ebp
pop ebp
ret