Function at 0x4653ee
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5f34
call fcn.0046a820
mov eax, dword [0x4bfcf0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5ed8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x5ef8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x5ee4], eax
mov eax, dword [ebp + 0x20]
push ebx
push esi
mov esi, dword [ebp + 0x28]
mov dword [ebp - 0x5ef4], eax
mov eax, dword [ebp + 0x2c]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x5eec], eax
mov eax, dword [ebp + 0x30]
xor ebx, ebx
push 0x3c
mov dword [ebp - 0x5ee8], eax
lea eax, [ebp - 0x5f34]
push ebx
push eax
mov dword [ebp - 0x5edc], ecx
mov dword [ebp - 0x5ee0], ebx
call fcn.00466c70
lea eax, [ebp - 0x4ac]
mov dword [ebp - 0x5f30], eax
lea eax, [ebp - 0x8bc]
mov dword [ebp - 0x5f24], eax
lea eax, [ebp - 0x6b4]
mov dword [ebp - 0x5f18], eax
lea eax, [ebp - 0xed4]
mov dword [ebp - 0x5f10], eax
lea eax, [ebp - 0xccc]
mov dword [ebp - 0x5f08], eax
lea eax, [ebp - 0xac4]
mov dword [ebp - 0x5f00], eax
mov eax, 0x104
add esp, 0xc
mov dword [ebp - 0x5f14], eax
mov dword [ebp - 0x5f04], eax
mov dword [ebp - 0x5f2c], eax
mov dword [ebp - 0x5f0c], eax
mov dword [ebp - 0x5f20], eax
mov dword [ebp - 0x5efc], eax
lea eax, [ebp - 0x5f34]
push eax
push ebx
push ebx
push edi
mov dword [ebp - 0x5f34], 0x3c
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x465757
push ebx
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x465757
push ebx
push ebx
push ebx
push 1
push dword [ebp - 0x5ed8]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi], eax
cmp eax, ebx
je 0x465757
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionExW]
push ebx
push 4
lea ecx, [ebp - 0x5ed8]
push ecx
push 2
push eax
mov dword [ebp - 0x5ed8], 0xbb8
call edi
push ebx
push 4
lea eax, [ebp - 0x5ed8]
push eax
push 5
push dword [esi]
call edi
push ebx
push 4
lea eax, [ebp - 0x5ed8]
push eax
push 6
push dword [esi]
call edi
push dword [ebp - 0x5edc]
push ebx
push 3
push dword [ebp - 0x5f10]
push dword [ebp - 0x5f18]
push dword [ebp - 0x5f1c]
push dword [ebp - 0x5f24]
push dword [esi]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, dword [ebp - 0x5eec]
mov dword [esi], eax
cmp eax, ebx
je 0x465757
xor eax, eax
push 0x4ffe
mov word [ebp - 0x5ed4], ax
lea eax, [ebp - 0x5ed2]
push ebx
push eax
call fcn.00466c70
push dword [ebp - 0x5f08]
lea eax, [ebp - 0x5ed4]
push eax
call fcn.0046b81a
push dword [ebp - 0x5ee4]
call fcn.00468f76
add esp, 0x18
test eax, eax
je 0x4655fe
lea eax, [ebp - 0x5ed4]
push 0x49c4b4
push eax
call fcn.0046b7e9
push dword [ebp - 0x5ee4]
lea eax, [ebp - 0x5ed4]
push eax
call fcn.0046b7e9
add esp, 0x10
push dword [ebp - 0x5edc]
lea eax, [ebp - 0x5ef0]
push 0x84280000
push eax
push ebx
push ebx
lea eax, [ebp - 0x5ed4]
push eax
push dword [ebp - 0x5ef8]
mov dword [ebp - 0x5ef0], 0x4a6f20
push dword [esi]
mov dword [ebp - 0x5eec], ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, dword [ebp - 0x5ee8]
mov dword [edi], eax
cmp eax, ebx
je 0x465757
push SysReAllocString
mov esi, str.Accept:___r_n
push esi
call fcn.00468f76
pop ecx
push eax
push esi
push dword [edi]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x465757
cmp dword [ebp + 0x14], 1
push 0x14
pop ecx
mov esi, str.Content_Type:_application_octet_stream_r_n
lea edi, [ebp - 0x9c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x10
pop ecx
mov esi, str.Content_Type:_application_json_r_n
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea esi, [ebp - 0x48]
je 0x46569a
lea esi, [ebp - 0x9c]
push 0x20000000
push esi
call fcn.00468f76
mov edi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
pop ecx
push eax
push esi
mov esi, dword [ebp - 0x5ee8]
push dword [esi]
call edi
test eax, eax
je 0x465757
xor eax, eax
push 0x206
mov word [ebp - 0x2a4], ax
lea eax, [ebp - 0x2a2]
push ebx
push eax
call fcn.00466c70
push dword [ebp + 0x24]
lea eax, [ebp - 0x2a4]
push str.Content_Length:__lu_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x2a4]
push 0x20000000
push eax
call fcn.00468f76
pop ecx
push eax
lea eax, [ebp - 0x2a4]
push eax
push dword [esi]
call edi
test eax, eax
je 0x465757
push dword [ebp + 0x24]
push dword [ebp - 0x5ef4]
push ebx
push ebx
push dword [esi]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x465757
push dword [esi]
mov ecx, dword [ebp - 0x5edc]
call fcn.0046538e
push dword [esi]
mov ecx, dword [ebp - 0x5edc]
call fcn.0046538e
cmp eax, 0x12c
jae 0x465757
mov dword [ebp - 0x5ee0], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x5ee0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00466576
leave
ret 0x2c