Function at 0x42f350
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 0x4415d0
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x453080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x27c], ecx
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0x9c], 0
push 0
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x446dd4
lea ecx, [ebp - 0x94]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov edx, dword [ebp - 0x27c]
cmp dword [edx], 0
je 0x42f424
mov eax, dword [ebp - 0x27c]
add eax, 0xcc
push eax
mov ecx, dword [ebp - 0x27c]
add ecx, 4
push ecx
push 0x446e44
lea edx, [ebp - 0x244]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
push 0
lea eax, [ebp - 0x244]
push eax
push 3
lea ecx, [ebp - 0x94]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0xa4], eax
jmp 0x42f467
mov edx, dword [ebp - 0xa8]
and edx, 4
jne 0x42f44c
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0xa4], eax
jmp 0x42f467
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x94]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jne 0x42f477
xor eax, eax
jmp 0x42f76e
lea edx, [ebp - 0xa0]
push edx
mov ecx, dword [ebp + 8]
call fcn.00405c20
mov dword [ebp - 4], 0
lea esi, [ebp - 0x98]
call fcn.00405be0
mov byte [ebp - 4], 1
push 8
push 0x446e68
lea ecx, [ebp - 0x98]
call fcn.0040ea10
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
jle 0x42f571
mov eax, dword [ebp - 0xac]
sub eax, 7
push eax
push 7
lea ecx, [ebp - 0x248]
push ecx
lea ecx, [ebp - 0xa0]
call fcn.0040aa40
mov dword [ebp - 0x280], eax
mov edx, dword [ebp - 0x280]
mov dword [ebp - 0x284], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x284]
lea edi, [ebp - 0x98]
call fcn.00405cf0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x248]
call fcn.00405cd0
lea eax, [ebp - 0xa0]
call fcn.00405df0
sub eax, dword [ebp - 0xac]
push eax
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0xa0]
call fcn.0040eb00
mov dword [ebp - 0x288], eax
mov ecx, dword [ebp - 0x288]
mov dword [ebp - 0x28c], ecx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x28c]
lea edi, [ebp - 0xa0]
call fcn.00405cf0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x24c]
call fcn.00405cd0
jmp 0x42f58f
mov edx, dword [ebp + 8]
lea edi, [ebp - 0x98]
call fcn.00405d60
mov edx, 0x446e6c
lea edi, [ebp - 0xa0]
call fcn.00405d60
push 0
push 0x200
push 3
push 0
push 0
push 0x50
lea eax, [ebp - 0x98]
call fcn.00405e60
push eax
mov edx, dword [ebp - 0xa4]
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0
jne 0x42f609
mov eax, dword [ebp - 0xa4]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x250], 0
mov byte [ebp - 4], 0
lea eax, [ebp - 0x98]
call fcn.00405cd0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xa0]
call fcn.00405cd0
mov eax, dword [ebp - 0x250]
jmp 0x42f76e
mov ecx, dword [ebp - 0x27c]
cmp dword [ecx], 0
je 0x42f672
mov edx, dword [ebp - 0x27c]
add edx, 0xe4
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov eax, dword [ebp - 0x27c]
add eax, 0xe4
push eax
push 0x2b
mov ecx, dword [ebp - 0xb0]
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov edx, dword [ebp - 0x27c]
add edx, 0x148
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov eax, dword [ebp - 0x27c]
add eax, 0x148
push eax
push 0x2c
mov ecx, dword [ebp - 0xb0]
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push 0x400200
push 0x45507c
push 0
push 0x446e78
lea eax, [ebp - 0xa0]
call fcn.00405e60
push eax
push 0x446e8c
mov edx, dword [ebp - 0xb0]
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
jne 0x42f6ff
mov eax, dword [ebp - 0xb0]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0xa4]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x254], 0
mov byte [ebp - 4], 0
lea eax, [ebp - 0x98]
call fcn.00405cd0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xa0]
call fcn.00405cd0
mov eax, dword [ebp - 0x254]
jmp 0x42f76e
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x9c]
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0xb0]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0xa4]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x258], eax
mov byte [ebp - 4], 0
lea eax, [ebp - 0x98]
call fcn.00405cd0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xa0]
call fcn.00405cd0
mov eax, dword [ebp - 0x258]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00415d4a
mov esp, ebp
pop ebp
ret 4