Function at 0x4197d0
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, 0x43c
mov eax, dword [0x4c8578]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, ecx
mov dword [ebp - 0x430], 4
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x438], ecx
mov ecx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x424], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x434], ecx
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push eax
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x420], ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
push 7
add esi, 0x423c
mov dword [ebp - 0x42c], eax
push 0x46ca84
push esi
call fcn.00452b0a
add esp, 0xc
push 8
test eax, eax
jne 0x419858
push 0x46ca84
jmp 0x419871
push 0x46ca8c
push esi
call fcn.00452b0a
add esp, 0xc
test eax, eax
jne 0x419897
push 9
push 0x46ca8c
lea eax, [ebp - 0x418]
push 0x400
push eax
call fcn.00449eee
push edi
lea eax, [ebp - 0x418]
push 0x400
push eax
call fcn.00449dd2
add esp, 0x1c
lea eax, [ebp - 0x418]
push eax
push str.The_Start_URL_is____s
push dword [0x502db0]
call fcn.004403a0
mov esi, dword [ebp - 0x42c]
add esp, 0xc
test esi, esi
je 0x419ba8
push str.Initialize_Done
push dword [0x502db0]
call fcn.004403a0
add esp, 8
lea eax, [ebp - 0x43c]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x419ba8
push str.InternetGetConnectedState_Done
push dword [0x502db0]
call fcn.004403a0
add esp, 8
lea eax, [ebp - 0x418]
push 0
push 0
push 0x84000c00
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
push str.After_InternetOpenURL
push dword [0x502db0]
mov dword [ebp - 0x41c], eax
call fcn.004403a0
mov eax, dword [ebp - 0x41c]
add esp, 8
test eax, eax
je 0x419bb1
push str.InternetOpenURL_Done
push dword [0x502db0]
call fcn.004403a0
mov ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x430]
add esp, 8
push 0
push eax
lea eax, [ebp - 0x420]
push eax
push 0x20000013
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x419b75
cmp dword [ebp - 0x420], 0xc8
je 0x4199df
push str.HTTPStatus_Not_OK
push dword [0x502db0]
call fcn.004403a0
add esp, 8
xor edi, edi
mov eax, dword [ebp - 0x41c]
cmp dword [ebp - 0x420], 0x1f6
jne 0x419bb8
push 0xb
push 0x470140
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.00449eee
add esp, 0x10
lea eax, [ebp - 0x18]
mov dword [ebx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443fa5
mov esp, ebp
pop ebp
ret 0x18
push edi
push str.HTTPStatus_OK._The_Host_is____s
push dword [0x502db0]
call fcn.004403a0
push 7
lea eax, [ebp - 0x418]
push 0x46ca84
push eax
call fcn.00452b0a
add esp, 0x18
test eax, eax
jne 0x419a0f
lea ecx, [eax + 0x50]
jmp 0x419a35
push 8
lea eax, [ebp - 0x418]
push 0x46ca8c
push eax
call fcn.00452b0a
mov ecx, dword [ebp - 0x43c]
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 edi
push esi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
mov dword [ebp - 0x428], edi
test edi, edi
jne 0x419a93
push str.Connection_Not_Established
push dword [0x502db0]
call fcn.004403a0
push 0x13
push 0x47008c
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.00449eee
add esp, 0x18
lea eax, [ebp - 0x18]
mov dword [ebx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443fa5
mov esp, ebp
pop ebp
ret 0x18
push 7
lea eax, [ebp - 0x418]
xor esi, esi
push 0x46ca84
push eax
call fcn.00452b0a
add esp, 0xc
test eax, eax
jne 0x419ab6
mov esi, SysReAllocString
jmp 0x419ad6
push 8
lea eax, [ebp - 0x418]
push 0x46ca8c
push eax
call fcn.00452b0a
add esp, 0xc
mov ecx, 0x800000
test eax, eax
cmove esi, ecx
push dword [ebp - 0x424]
push str.HTTPOpenRequest_OK._The_Query_String_is____s
push dword [0x502db0]
call fcn.004403a0
add esp, 0xc
push 0
push esi
push 0
push 0
push 0
push dword [ebp - 0x424]
push 0x4700d0
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
jne 0x419b2c
push str.HTTPOpenRequest_Failed
push dword [0x502db0]
call fcn.004403a0
push 0x13
push 0x4700f0
jmp 0x419a6b
mov esi, dword [ebp - 0x434]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x419b37
sub ecx, edx
push ecx
push esi
push 0xffffffffffffffff
push dword [ebp - 0x438]
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x41999a
push str.HTTPSendRequest_Failed
push dword [0x502db0]
call fcn.004403a0
push 0xe
push 0x47011c
jmp 0x419a6b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x46c744
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.00407d30
lea eax, [ebp - 0x18]
push eax
push str.Error_invokded____s
push dword [0x502db0]
call fcn.004403a0
add esp, 0x1c
jmp 0x419998
xor edi, edi
xor eax, eax
jmp 0x4199a0
xor edi, edi
jmp 0x4199a0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call esi
push edi
call esi
push dword [ebp - 0x428]
call esi
mov eax, dword [ebp - 0x42c]
push eax
call esi
push str.Exiting_POST
push dword [0x502db0]
call fcn.004403a0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.00443fa5
mov esp, ebp
pop ebp
ret 0x18