Function at 0x46db30
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 0x475aea
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 0x48d294
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 0x46dc0c
mov eax, dword [ebp - 0x228]
add eax, 0xcc
push eax
mov ecx, dword [ebp - 0x228]
add ecx, 4
push ecx
push 0x48d2a8
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 0x46dc4f
mov edx, dword [ebp - 0x240]
and edx, 4
jne 0x46dc34
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 0x46dc4f
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 0x46dc5f
xor eax, eax
jmp 0x46dfd7
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.0040d800
lea ecx, [ebp - 0x234]
call fcn.004096c0
mov byte [ebp - 4], 1
push 8
push 0x48d2cc
lea ecx, [ebp - 0x224]
call fcn.0040f3c0
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
jle 0x46ddd3
push 0
push 0x48d2d0
lea ecx, [ebp - 0x224]
call fcn.0040f3c0
test eax, eax
jne 0x46dd21
mov eax, dword [ebp - 0x238]
sub eax, 8
push eax
push 8
lea ecx, [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x224]
call fcn.00412580
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 0x46dd76
mov ecx, dword [ebp - 0x238]
sub ecx, 7
push ecx
push 7
lea edx, [ebp - 0x258]
push edx
lea ecx, [ebp - 0x224]
call fcn.00412580
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.00412500
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 0x46ddf2
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x234]
call fcn.004094f0
push 0x48d2e4
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 0x46de6c
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 0x46dfd7
mov edx, dword [ebp - 0x228]
cmp dword [edx], 0
je 0x46ded5
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 0x48d2e8
lea ecx, [ebp - 0x224]
call fcn.00409710
push eax
push 0x48d2fc
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 0x46df62
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 0x46dfd7
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.00429d20
mov esp, ebp
pop ebp
ret 4