Function at 0x720003
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 0xc], 0x1bb
push ebx
push esi
push edi
mov ebx, eax
je 0x72038a
cmp dword [ebp + 0xc], 0x1bc
je 0x72038a
cmp byte [ebx + 0x10f8], 0
jne 0x72038a
xor edi, edi
push edi
lea eax, [ebp - 0x18]
push eax
mov dword [ebx + 8], edi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x720072
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x7d92f0]
push eax
push str.WinInetRequest:_No_Internet_connection._Error__d_r_n
push 0xbfffffff
call fcn.0072062c
add esp, 0xc
mov eax, 0x8ca
jmp 0x7203b0
push edi
push edi
push edi
push 1
push str.OSBundleInstall
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x7200ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x7d92f0]
mov ebx, eax
push ebx
push str.WinInetRequest:_Could_not_initialize_WinInet._Error__d_r_n
push 0xbfffffff
call fcn.0072062c
add esp, 0xc
cmp ebx, edi
jne 0x7200b3
mov ebx, 0x8ca
mov eax, ebx
jmp 0x7203b0
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
push 0x7d5eb4
push 2
push eax
call esi
test eax, eax
jne 0x720103
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x7d92f0]
mov ebx, eax
push ebx
push str.WinInetRequest:_Unable_to_set_connection_timeout._Error__d_r_n
push 0xbfffffff
call fcn.0072062c
add esp, 0xc
cmp ebx, edi
jne 0x72037c
mov ebx, 0x8ca
jmp 0x72037c
push 4
mov edi, 0x7d6538
push edi
push 5
push dword [ebp - 4]
call esi
test eax, eax
jne 0x72013b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.WinInetRequest:_Unable_to_set_send_timeout._Error__d_r_n
mov esi, dword [0x7d92f0]
push 0xbfffffff
call fcn.0072062c
add esp, 0xc
test ebx, ebx
jmp 0x7200f3
push 4
push edi
push 6
push dword [ebp - 4]
call esi
test eax, eax
jne 0x720159
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.WinInetRequest:_Unable_to_set_receive_timeout._Error__d_r_n
jmp 0x720124
cmp dword [ebp + 0xc], 0x50
push dword [ebp + 0x10]
mov esi, dword [0x7d92f0]
mov edi, 0xbfffffff
jne 0x720180
push dword [ebp + 8]
push str.WinInetRequest:_Opening_connection_to_http:___s__s_r_n
push edi
call fcn.0072062c
add esp, 0x10
jmp 0x720194
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.WinInetRequest:_Opening_connection_to_http:___s:_d__s_r_n
push edi
call fcn.0072062c
add esp, 0x14
xor esi, esi
push esi
push esi
push 3
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x14], eax
cmp eax, esi
jne 0x7201d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x7d92f0]
mov ebx, eax
push ebx
push dword [ebp + 8]
push str.WinInetRequest:_Could_not_open_connection_to__s._Error__d_r_n
push edi
call fcn.0072062c
add esp, 0x10
jmp 0x720137
push esi
push dword [ebp + 0x28]
push dword [ebp + 0x2c]
push esi
push str.HTTP_1.1
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, dword [0x7d92f0]
push str.WinInetRequest:_Sending_HTTP_request_r_n
push edi
mov dword [ebp + 0xc], eax
call fcn.0072062c
pop ecx
pop ecx
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x720233
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.WinInetRequest:_HttpSendRequest_failed._Error__d_r_n
jmp 0x7202d3
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
sub eax, edx
add ecx, edx
lea edx, [ebp - 8]
push edx
push eax
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x7202ed
push dword [ebp - 8]
mov esi, dword [0x7d92f0]
push str.WinInetRequest:_Read__d_bytes_r_n
push edi
call fcn.0072062c
mov eax, dword [ebp - 8]
mov ecx, dword [ebx + 4]
add dword [ebx + 8], eax
add esp, 0xc
sub ecx, dword [ebx + 8]
jne 0x720282
mov edx, ebx
call fcn.0040d385
mov eax, dword [ebx + 0x10fc]
test eax, eax
je 0x720293
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 8], 0
jne 0x720233
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea esi, [ebx + 0xfb0]
push esi
push 0x20000013
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x7202fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.WinInetRequest:_Unable_to_query_the_status_code._Error__d_r_n
mov esi, dword [0x7d92f0]
push edi
call fcn.0072062c
add esp, 0xc
test ebx, ebx
jne 0x720364
mov ebx, 0x8ca
jmp 0x720364
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.WinInetRequest:_Unable_to_read_internet_file._Error__d_r_n
jmp 0x7202d3
push dword [esi]
mov esi, dword [0x7d92f0]
push str.WinInetRequest:_HTTP_status_code__d_r_n
push edi
call fcn.0072062c
and dword [ebp - 0xc], 0
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea esi, [ebx + 0xfb8]
push esi
push 0x36
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 0x40
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x720359
mov byte [esi], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x7d92f0]
push eax
push str.WinInetRequest:_Unable_to_query_ETAG._Error__d_r_n
push edi
call fcn.0072062c
add esp, 0xc
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
mov byte [eax + ecx], 0
xor ebx, ebx
cmp dword [ebp + 0xc], 0
je 0x720373
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x7200b3
push 0
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call fcn.0071fef4
pop edi
pop esi
pop ebx
leave
ret 0x28