Function at 0x421860
Capabilities:
Check http status code
Check internet connectivity via wininet
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x4d9770]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x430], 4
mov ecx, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x424], ecx
xor ebx, ebx
mov ecx, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x43c], ecx
mov ecx, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x434], ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x438], ecx
mov ecx, dword [ebp + 0x1c]
push eax
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x428], ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
push 7
add esi, 0x46f0
mov dword [ebp - 0x42c], eax
push 0x478d2c
push esi
call fcn.0045e09a
add esp, 0xc
push 8
test eax, eax
jne 0x4218f0
push 0x478d2c
jmp 0x421909
push 0x478d34
push esi
call fcn.0045e09a
add esp, 0xc
test eax, eax
jne 0x421934
push 9
push 0x478d34
lea eax, [ebp - 0x418]
push 0x400
push eax
call fcn.004534a6
push dword [ebp - 0x424]
lea eax, [ebp - 0x418]
push 0x400
push eax
call fcn.0045338c
add esp, 0x1c
lea eax, [ebp - 0x418]
push eax
push str.The_Start_URL_is____s
push 1
push dword [0x514990]
call fcn.00449450
mov esi, dword [ebp - 0x42c]
add esp, 0x10
test esi, esi
je 0x421c46
push str.Initialize_Done
push 1
push dword [0x514990]
call fcn.00449450
add esp, 0xc
lea eax, [ebp - 0x440]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x421c46
push str.InternetGetConnectedState_Done
push 1
push dword [0x514990]
call fcn.00449450
add esp, 0xc
lea eax, [ebp - 0x418]
push 0
push 0
push 0x84000c00
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x421c48
push str.InternetOpenURL_Done
push 1
push dword [0x514990]
call fcn.00449450
mov ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x430]
add esp, 0xc
push 0
push eax
lea eax, [ebp - 0x428]
push eax
push 0x20000013
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x421c0e
cmp dword [ebp - 0x428], 0xc8
je 0x421a31
push str.HTTPStatus_Not_OK
push 1
push dword [0x514990]
call fcn.00449450
add esp, 0xc
mov eax, dword [ebp - 0x41c]
jmp 0x421c48
mov ebx, dword [ebp - 0x424]
push ebx
push str.HTTPStatus_OK._The_Host_is____s
push 1
push dword [0x514990]
call fcn.00449450
push 7
lea eax, [ebp - 0x418]
push 0x478d2c
push eax
call fcn.0045e09a
add esp, 0x1c
test eax, eax
jne 0x421a69
lea ecx, [eax + 0x50]
jmp 0x421a8f
push 8
lea eax, [ebp - 0x418]
push 0x478d34
push eax
call fcn.0045e09a
mov ecx, dword [ebp - 0x440]
add esp, 0xc
test eax, eax
mov edx, 0x1bb
cmove ecx, edx
push 0
push 0
push 3
push 0
push 0
push ecx
push ebx
push esi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
test ebx, ebx
jne 0x421aef
push str.Connection_Not_Established
push 1
push dword [0x514990]
call fcn.00449450
push 0x13
push 0x47d1ac
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.004534a6
mov eax, dword [ebp - 0x420]
lea ecx, [ebp - 0x18]
add esp, 0x1c
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044d06d
mov esp, ebp
pop ebp
ret 0x18
push 7
lea eax, [ebp - 0x418]
xor esi, esi
push 0x478d2c
push eax
call fcn.0045e09a
add esp, 0xc
test eax, eax
jne 0x421b12
mov esi, SysReAllocString
jmp 0x421b32
push 8
lea eax, [ebp - 0x418]
push 0x478d34
push eax
call fcn.0045e09a
add esp, 0xc
mov ecx, 0x800000
test eax, eax
cmove esi, ecx
push 0
push esi
push 0
push 0
push 0
push dword [ebp - 0x434]
push 0x47d1c0
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
jne 0x421b9a
push str.HTTPOpenRequest_Failed
push 1
push dword [0x514990]
call fcn.00449450
push 0x13
push 0x47d1e0
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.004534a6
mov eax, dword [ebp - 0x420]
lea ecx, [ebp - 0x18]
add esp, 0x1c
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044d06d
mov esp, ebp
pop ebp
ret 0x18
mov esi, dword [ebp - 0x438]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421ba5
sub ecx, edx
push ecx
push esi
push 0xffffffffffffffff
push dword [ebp - 0x43c]
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x421a26
push str.HTTPSendRequest_Failed
push 1
push dword [0x514990]
call fcn.00449450
push 0xe
push 0x47d20c
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.004534a6
mov eax, dword [ebp - 0x420]
lea ecx, [ebp - 0x18]
add esp, 0x1c
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044d06d
mov esp, ebp
pop ebp
ret 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4787e4
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.004085e0
lea eax, [ebp - 0x18]
push eax
push str.Error_invokded____s
push 1
push dword [0x514990]
call fcn.00449450
mov eax, dword [ebp - 0x41c]
add esp, 0x20
jmp 0x421c48
xor eax, eax
cmp dword [ebp - 0x428], 0x1f6
jne 0x421c89
push 0xb
push 0x47d230
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.004534a6
mov eax, dword [ebp - 0x420]
lea ecx, [ebp - 0x18]
add esp, 0x10
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044d06d
mov esp, ebp
pop ebp
ret 0x18
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x421c96
push eax
call esi
test edi, edi
je 0x421c9d
push edi
call esi
test ebx, ebx
je 0x421ca4
push ebx
call esi
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x421cb1
push eax
call esi
push str.Exiting_POST
push 1
push dword [0x514990]
call fcn.00449450
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.0044d06d
mov esp, ebp
pop ebp
ret 0x18