Function at 0x4721fb
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor esi, esi
lea edi, [ebp - 0x28]
push 7
mov edx, esi
xor eax, eax
pop ecx
mov ebx, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
rep stosd dword es:[edi], eax
jmp 0x472221
mov edx, dword [ebp - 8]
xor esi, esi
mov dword [ebp - 0xc], esi
test edx, edx
je 0x472236
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, esi
mov dword [ebp - 4], edi
jmp 0x472239
mov edi, dword [ebp - 8]
test ebx, ebx
je 0x472244
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [ebp - 0x28]
mov ebx, esi
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.00476491
mov esi, eax
test esi, esi
js 0x4723d7
mov esi, dword [ebp + 0x1c]
xor ebx, ebx
test esi, esi
je 0x47226e
mov edx, esi
cmp word [esi], bx
jne 0x472271
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x47227f
mov ecx, eax
cmp word [eax], bx
jne 0x472282
mov ecx, dword [ebp - 0x1c]
xor eax, eax
cmp dword [ebp - 0x28], 1
push ebx
push ebx
setne al
lea eax, [eax*2 + 1]
push eax
push edx
push ecx
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebx, eax
test ebx, ebx
je 0x472386
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x4722ef
xor eax, eax
cmp word [edi], ax
je 0x4722ef
test esi, esi
je 0x4722ef
cmp word [esi], ax
je 0x4722ef
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push edi
push 0x2b
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
je 0x4722ef
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
push 0x2c
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x28]
push dword [ebp + 0x10]
push ebx
call fcn.0047241b
mov esi, eax
test esi, esi
js 0x472360
push dword [ebp + 0x2c]
mov edi, dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x20]
mov dword [ebp - 8], edi
push dword [ebp + 0xc]
push edi
call fcn.00472598
mov esi, eax
test esi, esi
js 0x47234a
cmp dword [ebp - 0xc], 0
jne 0x47221c
mov eax, dword [ebp + 0x24]
mov dword [eax], ebx
xor ebx, ebx
mov eax, dword [ebp + 0x28]
mov dword [eax], edi
xor edi, edi
jmp 0x4723f3
mov eax, dword [ebp + 0xc]
push dword [eax]
push str.Failed_to_send_request_to_URL:__ls
push esi
push 0xf
push 5
push 0x23f
jmp 0x4723c8
mov eax, dword [ebp + 0xc]
push dword [eax]
push str.Failed_to_open_internet_URL:__ls
push esi
push 0xf
push 5
push 0x23c
push str.d:_awixwix_srclibsdutilwixtoolset.dutildlutil.cpp
call fcn.004012a1
mov edi, dword [ebp - 4]
add esp, 0x1c
jmp 0x4723f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x47239d
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4723a4
mov esi, 0x80004005
push esi
push 0x230
push str.d:_awixwix_srclibsdutilwixtoolset.dutildlutil.cpp
call fcn.0040129e
mov eax, dword [ebp + 0xc]
push dword [eax]
push str.Failed_to_connect_to_URL:__ls
push esi
push 0xf
push 5
push 0x230
push str.d:_awixwix_srclibsdutilwixtoolset.dutildlutil.cpp
call fcn.004012a1
add esp, 0x1c
jmp 0x4723f3
push str.Failed_to_break_URL_into_server_and_resource_parts.
push esi
push 0xf
push 5
push 0x22d
push str.d:_awixwix_srclibsdutilwixtoolset.dutildlutil.cpp
call fcn.004012a1
add esp, 0x18
lea eax, [ebp - 0x28]
push eax
call fcn.004764e2
test edi, edi
je 0x472407
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test ebx, ebx
je 0x472412
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x28