Function at 0x46d770
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 0x47564a
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x49c00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x23c], 0
push 0
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x48d244
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov edx, dword [ebp - 0x228]
cmp dword [edx], 0
je 0x46d84c
mov eax, dword [ebp - 0x228]
add eax, 0xcc
push eax
mov ecx, dword [ebp - 0x228]
add ecx, 4
push ecx
push 0x48d258
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
push 0
lea eax, [ebp - 0x220]
push eax
push 3
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x22c], eax
jmp 0x46d88f
mov edx, dword [ebp - 0x240]
and edx, 4
jne 0x46d874
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x22c], eax
jmp 0x46d88f
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
jne 0x46d89f
xor eax, eax
jmp 0x46dc17
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x224]
call fcn.004095e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.0040e5c0
lea ecx, [ebp - 0x234]
call fcn.004096c0
mov byte [ebp - 4], 1
push 8
push 0x48d27c
lea ecx, [ebp - 0x224]
call fcn.0040e620
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
jle 0x46da13
push 0
push 0x48d280
lea ecx, [ebp - 0x224]
call fcn.0040e620
test eax, eax
jne 0x46d961
mov eax, dword [ebp - 0x238]
sub eax, 8
push eax
push 8
lea ecx, [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x224]
call fcn.00411d80
mov dword [ebp - 0x244], eax
mov edx, dword [ebp - 0x244]
mov dword [ebp - 0x248], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x248]
push eax
lea ecx, [ebp - 0x234]
call fcn.00409540
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24c]
call fcn.004095a0
jmp 0x46d9b6
mov ecx, dword [ebp - 0x238]
sub ecx, 7
push ecx
push 7
lea edx, [ebp - 0x258]
push edx
lea ecx, [ebp - 0x224]
call fcn.00411d80
mov dword [ebp - 0x250], eax
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x254], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x254]
push ecx
lea ecx, [ebp - 0x234]
call fcn.00409540
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x258]
call fcn.004095a0
lea ecx, [ebp - 0x224]
call fcn.00409700
sub eax, dword [ebp - 0x238]
push eax
lea edx, [ebp - 0x264]
push edx
lea ecx, [ebp - 0x224]
call fcn.00411d00
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x260], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x260]
push ecx
lea ecx, [ebp - 0x224]
call fcn.00409540
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x264]
call fcn.004095a0
jmp 0x46da32
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x234]
call fcn.004094f0
push 0x48d294
lea ecx, [ebp - 0x224]
call fcn.004094f0
push 0
push 0x200
push 3
push 0
push 0
push 0x50
lea ecx, [ebp - 0x234]
call fcn.00409710
push eax
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jne 0x46daac
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x268], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.004095a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.004095a0
mov eax, dword [ebp - 0x268]
jmp 0x46dc17
mov edx, dword [ebp - 0x228]
cmp dword [edx], 0
je 0x46db15
mov eax, dword [ebp - 0x228]
add eax, 0xe4
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov ecx, dword [ebp - 0x228]
add ecx, 0xe4
push ecx
push 0x2b
mov edx, dword [ebp - 0x230]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [ebp - 0x228]
add eax, 0x148
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov ecx, dword [ebp - 0x228]
add ecx, 0x148
push ecx
push 0x2c
mov edx, dword [ebp - 0x230]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push 0x400200
push 0x49d320
push 0
push 0x48d298
lea ecx, [ebp - 0x224]
call fcn.00409710
push eax
push 0x48d2ac
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
jne 0x46dba2
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x26c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.004095a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.004095a0
mov eax, dword [ebp - 0x26c]
jmp 0x46dc17
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov dword [ebp - 0x270], eax
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x230]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x270]
mov dword [ebp - 0x274], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.004095a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.004095a0
mov eax, dword [ebp - 0x274]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004298d0
mov esp, ebp
pop ebp
ret 4