Function at 0x41c210
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 [0x4ce6a8]
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, 0x46dc
mov dword [ebp - 0x42c], eax
push 0x470b18
push esi
call fcn.004568da
add esp, 0xc
push 8
test eax, eax
jne 0x41c2a0
push 0x470b18
jmp 0x41c2b9
push 0x470b20
push esi
call fcn.004568da
add esp, 0xc
test eax, eax
jne 0x41c2e4
push 9
push 0x470b20
lea eax, [ebp - 0x418]
push 0x400
push eax
call fcn.0044dcbe
push dword [ebp - 0x424]
lea eax, [ebp - 0x418]
push 0x400
push eax
call fcn.0044dba2
add esp, 0x1c
lea eax, [ebp - 0x418]
push eax
push str.The_Start_URL_is____s
push 1
push dword [0x50c768]
call fcn.00444090
mov esi, dword [ebp - 0x42c]
add esp, 0x10
test esi, esi
je 0x41c5f6
push str.Initialize_Done
push 1
push dword [0x50c768]
call fcn.00444090
add esp, 0xc
lea eax, [ebp - 0x440]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x41c5f6
push str.InternetGetConnectedState_Done
push 1
push dword [0x50c768]
call fcn.00444090
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 0x41c5f8
push str.InternetOpenURL_Done
push 1
push dword [0x50c768]
call fcn.00444090
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 0x41c5be
cmp dword [ebp - 0x428], 0xc8
je 0x41c3e1
push str.HTTPStatus_Not_OK
push 1
push dword [0x50c768]
call fcn.00444090
add esp, 0xc
mov eax, dword [ebp - 0x41c]
jmp 0x41c5f8
mov ebx, dword [ebp - 0x424]
push ebx
push str.HTTPStatus_OK._The_Host_is____s
push 1
push dword [0x50c768]
call fcn.00444090
push 7
lea eax, [ebp - 0x418]
push 0x470b18
push eax
call fcn.004568da
add esp, 0x1c
test eax, eax
jne 0x41c419
lea ecx, [eax + 0x50]
jmp 0x41c43f
push 8
lea eax, [ebp - 0x418]
push 0x470b20
push eax
call fcn.004568da
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 0x41c49f
push str.Connection_Not_Established
push 1
push dword [0x50c768]
call fcn.00444090
push 0x13
push 0x474aec
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.0044dcbe
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.00447cbd
mov esp, ebp
pop ebp
ret 0x18
push 7
lea eax, [ebp - 0x418]
xor esi, esi
push 0x470b18
push eax
call fcn.004568da
add esp, 0xc
test eax, eax
jne 0x41c4c2
mov esi, SysReAllocString
jmp 0x41c4e2
push 8
lea eax, [ebp - 0x418]
push 0x470b20
push eax
call fcn.004568da
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 0x474b00
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
jne 0x41c54a
push str.HTTPOpenRequest_Failed
push 1
push dword [0x50c768]
call fcn.00444090
push 0x13
push 0x474b20
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.0044dcbe
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.00447cbd
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 0x41c555
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 0x41c3d6
push str.HTTPSendRequest_Failed
push 1
push dword [0x50c768]
call fcn.00444090
push 0xe
push 0x474b4c
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.0044dcbe
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.00447cbd
mov esp, ebp
pop ebp
ret 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4707d4
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.00408300
lea eax, [ebp - 0x18]
push eax
push str.Error_invokded____s
push 1
push dword [0x50c768]
call fcn.00444090
mov eax, dword [ebp - 0x41c]
add esp, 0x20
jmp 0x41c5f8
xor eax, eax
cmp dword [ebp - 0x428], 0x1f6
jne 0x41c639
push 0xb
push 0x474b70
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.0044dcbe
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.00447cbd
mov esp, ebp
pop ebp
ret 0x18
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x41c646
push eax
call esi
test edi, edi
je 0x41c64d
push edi
call esi
test ebx, ebx
je 0x41c654
push ebx
call esi
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x41c661
push eax
call esi
push str.Exiting_POST
push 1
push dword [0x50c768]
call fcn.00444090
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.00447cbd
mov esp, ebp
pop ebp
ret 0x18