Function at 0x407e70
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 0x42e073
mov eax, dword fs:[0]
push eax
sub esp, 0x4b8
mov eax, dword [0x44a064]
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.00410e30
push 0x445fac
push 0x440bac
mov dword [ebp - 0x4c0], 0x20
call fcn.0042d36c
add esp, 0x14
test eax, eax
jne 0x407f60
movups xmm0, xmmword [0x445fb8]
movzx eax, word [0x445fe0]
mov word [ebp - 0x428], ax
movzx eax, word [0x44601c]
movups xmmword [ebp - 0x450], xmm0
mov word [ebp - 0x218], ax
movups xmm0, xmmword [0x445fc8]
movups xmmword [ebp - 0x440], xmm0
movq xmm0, qword [0x445fd8]
movq qword [ebp - 0x430], xmm0
movups xmm0, xmmword [0x445fe4]
movups xmmword [ebp - 0x250], xmm0
movups xmm0, xmmword [0x445ff4]
movups xmmword [ebp - 0x240], xmm0
movups xmm0, xmmword [0x446004]
movups xmmword [ebp - 0x230], xmm0
movq xmm0, qword [0x446014]
movq qword [ebp - 0x220], xmm0
jmp 0x407fdc
movups xmm0, xmmword [0x446020]
mov eax, dword [0x446038]
mov dword [ebp - 0x438], eax
movzx eax, word [0x44603c]
movups xmmword [ebp - 0x450], xmm0
mov word [ebp - 0x434], ax
movq xmm0, qword [0x446030]
mov eax, dword [0x446068]
movq qword [ebp - 0x440], xmm0
movups xmm0, xmmword [0x446040]
mov dword [ebp - 0x228], eax
movzx eax, word [0x44606c]
movups xmmword [ebp - 0x250], xmm0
mov word [ebp - 0x224], ax
movups xmm0, xmmword [0x446050]
movups xmmword [ebp - 0x240], xmm0
movq xmm0, qword [0x446060]
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.004091f0
push 0xc
push 0x446070
lea ecx, [ebp - 0x468]
call fcn.00401ab0
lea eax, [ebp + 8]
push eax
lea edx, [ebp - 0x468]
lea ecx, [ebp - 0x480]
call fcn.00408540
add esp, 4
mov esi, eax
lea eax, [ebp - 0x468]
cmp eax, esi
je 0x40809e
mov eax, dword [ebp - 0x454]
cmp eax, 0x10
jb 0x408077
inc eax
lea ecx, [ebp - 0x468]
push eax
push dword [ebp - 0x468]
call fcn.00401eb0
push esi
lea ecx, [ebp - 0x468]
mov dword [ebp - 0x454], 0xf
mov dword [ebp - 0x458], 0
mov byte [ebp - 0x468], 0
call fcn.00401de0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x46c]
cmp eax, 0x10
jb 0x4080c0
inc eax
lea ecx, [ebp - 0x480]
push eax
push dword [ebp - 0x480]
call fcn.00401eb0
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x4080dd
mov eax, dword [ecx]
jmp 0x4080df
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x498]
push edx
push eax
call fcn.00401f10
lea ecx, [ebp - 0x4b0]
call fcn.00407d70
push eax
lea edx, [ebp - 0x468]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x480]
call fcn.00408510
add esp, 0x1c
mov esi, eax
lea eax, [ebp - 0x468]
cmp eax, esi
je 0x408168
mov eax, dword [ebp - 0x454]
cmp eax, 0x10
jb 0x408141
inc eax
lea ecx, [ebp - 0x468]
push eax
push dword [ebp - 0x468]
call fcn.00401eb0
push esi
lea ecx, [ebp - 0x468]
mov dword [ebp - 0x454], 0xf
mov dword [ebp - 0x458], 0
mov byte [ebp - 0x468], 0
call fcn.00401de0
mov eax, dword [ebp - 0x46c]
cmp eax, 0x10
jb 0x408186
inc eax
lea ecx, [ebp - 0x480]
push eax
push dword [ebp - 0x480]
call fcn.00401eb0
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 0x4081c3
inc eax
lea ecx, [ebp - 0x4b0]
push eax
push dword [ebp - 0x4b0]
call fcn.00401eb0
lea eax, [ebp + 0x20]
push eax
lea edx, [ebp - 0x468]
lea ecx, [ebp - 0x4b0]
call fcn.00408540
add esp, 4
mov esi, eax
lea eax, [ebp - 0x468]
cmp eax, esi
je 0x40822c
mov eax, dword [ebp - 0x454]
cmp eax, 0x10
jb 0x408205
inc eax
lea ecx, [ebp - 0x468]
push eax
push dword [ebp - 0x468]
call fcn.00401eb0
push esi
lea ecx, [ebp - 0x468]
mov dword [ebp - 0x454], 0xf
mov dword [ebp - 0x458], 0
mov byte [ebp - 0x468], 0
call fcn.00401de0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x49c]
cmp eax, 0x10
jb 0x40824e
inc eax
lea ecx, [ebp - 0x4b0]
push eax
push dword [ebp - 0x4b0]
call fcn.00401eb0
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 0x40826d
inc esi
cmp esi, 3
jb 0x408256
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 0x40843e
push 0
push 0
push 3
push 0x446080
push 0x446080
push 0x1bb
lea ecx, [ebp - 0x450]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
test edi, edi
je 0x408415
push 1
push 0x4800000
push 0
push 0
push 0x446084
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.00401bb0
lea ecx, [ebp - 0x480]
call fcn.00407c70
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x408323
mov eax, dword [eax]
push eax
push 0x440ad4
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov eax, dword [ebp - 0x46c]
cmp eax, 8
jb 0x408350
inc eax
lea ecx, [ebp - 0x480]
push eax
push dword [ebp - 0x480]
call fcn.00401e50
xor eax, eax
mov dword [ebp - 0x46c], 7
mov dword [ebp - 0x470], 0
mov word [ebp - 0x480], ax
test esi, esi
je 0x408415
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 0x408415
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 0x408415
mov ecx, 0x446098
lea eax, [ebp - 0x50]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4083dc
test dx, dx
je 0x4083d8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4083dc
add eax, 4
add ecx, 4
test dx, dx
jne 0x4083b6
xor eax, eax
jmp 0x4083e1
sbb eax, eax
or eax, 1
test eax, eax
je 0x408415
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 0x408277
jmp 0x40843e
push dword [ebp - 0x4bc]
mov eax, dword [sym.imp.WININET.dll_InternetCloseHandle]
call eax
test edi, edi
je 0x408431
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
jmp 0x408437
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test esi, esi
je 0x40843e
push esi
call edi
mov eax, dword [ebp - 0x484]
cmp eax, 8
jb 0x40845c
inc eax
lea ecx, [ebp - 0x498]
push eax
push dword [ebp - 0x498]
call fcn.00401e50
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 0x408497
inc eax
lea ecx, [ebp - 0x468]
push eax
push dword [ebp - 0x468]
call fcn.00401eb0
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x454], 0xf
mov dword [ebp - 0x458], 0
mov byte [ebp - 0x468], 0
cmp eax, 0x10
jb 0x4084c7
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00401eb0
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp eax, 0x10
jb 0x4084ee
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.00401eb0
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.0040cc96
mov esp, ebp
pop ebp
ret