Function at 0x422fa2
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, 0x5ef0
call fcn.004444e0
mov eax, dword [0x498d74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5e94], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x5eb4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x5eb0], eax
mov eax, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 0x24]
mov dword [ebp - 0x5eac], eax
mov eax, dword [ebp + 0x28]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x5ea4], eax
mov eax, dword [ebp + 0x2c]
xor ebx, ebx
push 0x3c
mov dword [ebp - 0x5e9c], eax
lea eax, [ebp - 0x5ef0]
push ebx
push eax
mov dword [ebp - 0x5e98], ecx
mov dword [ebp - 0x5ea0], ebx
call fcn.004424b0
lea eax, [ebp - 0x468]
mov dword [ebp - 0x5eec], eax
lea eax, [ebp - 0x670]
mov dword [ebp - 0x5ee0], eax
lea eax, [ebp - 0xc88]
mov dword [ebp - 0x5ed4], eax
lea eax, [ebp - 0xe90]
mov dword [ebp - 0x5ecc], eax
lea eax, [ebp - 0xa80]
mov dword [ebp - 0x5ec4], eax
lea eax, [ebp - 0x878]
mov dword [ebp - 0x5ebc], eax
mov eax, 0x104
add esp, 0xc
mov dword [ebp - 0x5ed0], eax
mov dword [ebp - 0x5ec0], eax
mov dword [ebp - 0x5ee8], eax
mov dword [ebp - 0x5ec8], eax
mov dword [ebp - 0x5edc], eax
mov dword [ebp - 0x5eb8], eax
lea eax, [ebp - 0x5ef0]
push eax
push ebx
push ebx
push edi
mov dword [ebp - 0x5ef0], 0x3c
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x42331c
push ebx
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x42331c
mov edi, dword [ebp - 0x5e98]
mov eax, dword [edi]
cmp eax, ebx
je 0x4230e0
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4230e0
mov eax, dword [edi]
push ebx
push ebx
add eax, 4
push eax
push 3
jmp 0x4230e5
push ebx
push ebx
push ebx
push 1
push dword [ebp - 0x5e94]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi], eax
cmp eax, ebx
je 0x42331c
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionExW]
push ebx
push 4
lea ecx, [ebp - 0x5e94]
push ecx
push 2
push eax
mov dword [ebp - 0x5e94], 0x1388
call edi
push ebx
push 4
lea eax, [ebp - 0x5e94]
push eax
push 5
push dword [esi]
call edi
push ebx
push 4
lea eax, [ebp - 0x5e94]
push eax
push 6
push dword [esi]
call edi
push dword [ebp - 0x5e98]
push ebx
push 3
push dword [ebp - 0x5ecc]
push dword [ebp - 0x5ed4]
push dword [ebp - 0x5ed8]
push dword [ebp - 0x5ee0]
push dword [esi]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, dword [ebp - 0x5ea4]
mov dword [edi], eax
cmp eax, ebx
je 0x42331c
xor eax, eax
push 0x4ffe
mov word [ebp - 0x5e90], ax
lea eax, [ebp - 0x5e8e]
push ebx
push eax
call fcn.004424b0
add esp, 0xc
push dword [ebp - 0x5ec4]
lea eax, [ebp - 0x5e90]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4800b4
lea eax, [ebp - 0x5e90]
push eax
call esi
push dword [ebp - 0x5eb0]
lea eax, [ebp - 0x5e90]
push eax
call esi
push dword [ebp - 0x5e98]
lea eax, [ebp - 0x5ea8]
push 0x84280000
push eax
push ebx
push ebx
lea eax, [ebp - 0x5e90]
push eax
push dword [ebp - 0x5eb4]
mov dword [ebp - 0x5ea8], 0x480028
push dword [edi]
mov dword [ebp - 0x5ea4], ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, dword [ebp - 0x5e9c]
mov dword [edi], eax
cmp eax, ebx
je 0x42331c
push SysReAllocStringLen
mov esi, 0x48000c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
push dword [edi]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x42331c
push 0x14
pop ecx
mov esi, str.Content_Type:_application_octet_stream_r_n
lea edi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
push 0x20000000
lea eax, [ebp - 0x58]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp - 0x5e9c]
mov edi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [esi]
call edi
test eax, eax
je 0x42331c
xor eax, eax
push 0x206
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push ebx
push eax
call fcn.004424b0
push dword [ebp + 0x20]
lea eax, [ebp - 0x260]
push str.Content_Length:__d_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push 0x20000000
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x260]
push eax
push dword [esi]
call edi
test eax, eax
je 0x42331c
xor edi, edi
push dword [ebp + 0x20]
push dword [ebp - 0x5eac]
push ebx
push ebx
push dword [esi]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
inc edi
cmp eax, ebx
jne 0x4232f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2ee2
jne 0x42331c
cmp edi, 3
jl 0x4232c5
jmp 0x42331c
push dword [esi]
mov ecx, dword [ebp - 0x5e98]
call fcn.00422f42
push dword [esi]
mov ecx, dword [ebp - 0x5e98]
call fcn.00422f42
cmp eax, 0x12c
jae 0x42331c
mov dword [ebp - 0x5ea0], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x5ea0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044249e
leave
ret 0x28