Function at 0x415d2c
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.00417910
mov eax, dword [0x431138]
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 - 0x5ea4], eax
mov eax, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 0x24]
mov dword [ebp - 0x5eb0], eax
mov eax, dword [ebp + 0x28]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x5ea8], eax
mov eax, dword [ebp + 0x2c]
xor ebx, ebx
push 0x3c
mov dword [ebp - 0x5ea0], eax
lea eax, [ebp - 0x5ef0]
push ebx
push eax
mov dword [ebp - 0x5e98], ecx
mov dword [ebp - 0x5e9c], ebx
call fcn.004164f0
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 0x41607a
push ebx
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x41607a
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 0x41607a
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], 0xbb8
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 esi, dword [ebp - 0x5ea8]
mov dword [esi], eax
cmp eax, ebx
je 0x41607a
xor eax, eax
push 0x4ffe
mov word [ebp - 0x5e90], ax
lea eax, [ebp - 0x5e8e]
push ebx
push eax
call fcn.004164f0
push dword [ebp - 0x5ec4]
lea eax, [ebp - 0x5e90]
push eax
call fcn.00417c0e
push dword [ebp - 0x5ea4]
call fcn.00416de1
add esp, 0x18
test eax, eax
je 0x415f3c
lea eax, [ebp - 0x5e90]
push 0x4299e0
push eax
call fcn.00417bdd
push dword [ebp - 0x5ea4]
lea eax, [ebp - 0x5e90]
push eax
call fcn.00417bdd
add esp, 0x10
push dword [ebp - 0x5e98]
lea eax, [ebp - 0x5eac]
push 0x84280000
push eax
push ebx
push ebx
lea eax, [ebp - 0x5e90]
push eax
push dword [ebp - 0x5eb4]
mov dword [ebp - 0x5eac], 0x4299d8
push dword [esi]
mov dword [ebp - 0x5ea8], ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, dword [ebp - 0x5ea0]
mov dword [edi], eax
cmp eax, ebx
je 0x41607a
push 0x80000000
mov esi, str.Accept:___r_n
push esi
call fcn.00416de1
pop ecx
push eax
push esi
push dword [edi]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x41607a
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]
lea eax, [ebp - 0x58]
push 0x20000000
push eax
movsw word es:[edi], word [esi]
call fcn.00416de1
mov esi, dword [ebp - 0x5ea0]
mov edi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
pop ecx
push eax
lea eax, [ebp - 0x58]
push eax
push dword [esi]
call edi
test eax, eax
je 0x41607a
xor eax, eax
push 0x206
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push ebx
push eax
call fcn.004164f0
push dword [ebp + 0x20]
lea eax, [ebp - 0x260]
push str.Content_Length:__lu_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x260]
push 0x20000000
push eax
call fcn.00416de1
pop ecx
push eax
lea eax, [ebp - 0x260]
push eax
push dword [esi]
call edi
test eax, eax
je 0x41607a
push dword [ebp + 0x20]
push dword [ebp - 0x5eb0]
push ebx
push ebx
push dword [esi]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x41607a
push dword [esi]
mov ecx, dword [ebp - 0x5e98]
call fcn.00415ccc
push dword [esi]
mov ecx, dword [ebp - 0x5e98]
call fcn.00415ccc
cmp eax, 0x12c
jae 0x41607a
mov dword [ebp - 0x5e9c], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x5e9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004164df
leave
ret 0x28