Function at 0x45a890
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 0x460b4a
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x48200c]
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 - 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 0x4759ac
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 0x45a962
mov eax, dword [ebp - 0x228]
add eax, 0xcc
push eax
mov ecx, dword [ebp - 0x228]
add ecx, 4
push ecx
push 0x4759c0
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 0x45a9a5
mov edx, dword [ebp - 0x240]
and edx, 4
jne 0x45a98a
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 0x45a9a5
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 0x45a9b5
xor eax, eax
jmp 0x45ad2d
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x224]
call fcn.00406d40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.0040f7b0
lea ecx, [ebp - 0x234]
call fcn.00406e20
mov byte [ebp - 4], 1
push 8
push 0x4759e4
lea ecx, [ebp - 0x224]
call fcn.0040f850
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
jle 0x45ab29
push 0
push 0x4759e8
lea ecx, [ebp - 0x224]
call fcn.0040f850
test eax, eax
jne 0x45aa77
mov eax, dword [ebp - 0x238]
sub eax, 8
push eax
push 8
lea ecx, [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x224]
call fcn.0040cc80
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.00406ca0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24c]
call fcn.00406d00
jmp 0x45aacc
mov ecx, dword [ebp - 0x238]
sub ecx, 7
push ecx
push 7
lea edx, [ebp - 0x258]
push edx
lea ecx, [ebp - 0x224]
call fcn.0040cc80
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.00406ca0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x258]
call fcn.00406d00
lea ecx, [ebp - 0x224]
call fcn.00406e60
sub eax, dword [ebp - 0x238]
push eax
lea edx, [ebp - 0x264]
push edx
lea ecx, [ebp - 0x224]
call fcn.0040f720
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.00406ca0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x264]
call fcn.00406d00
jmp 0x45ab48
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x234]
call fcn.00406c50
push 0x4759fc
lea ecx, [ebp - 0x224]
call fcn.00406c50
push 0
push 0x200
push 3
push 0
push 0
push 0x50
lea ecx, [ebp - 0x234]
call fcn.00406e70
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 0x45abc2
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.00406d00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00406d00
mov eax, dword [ebp - 0x268]
jmp 0x45ad2d
mov edx, dword [ebp - 0x228]
cmp dword [edx], 0
je 0x45ac2b
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 0x483320
push 0
push 0x475a00
lea ecx, [ebp - 0x224]
call fcn.00406e70
push eax
push 0x475a14
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 0x45acb8
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.00406d00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00406d00
mov eax, dword [ebp - 0x26c]
jmp 0x45ad2d
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.00406d00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00406d00
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.0041e140
mov esp, ebp
pop ebp
ret 4