Function at 0x4258df
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor esi, esi
lea edi, [ebp - 0x24]
push 7
xor eax, eax
mov ebx, esi
pop ecx
rep stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
mov edi, eax
jmp 0x4258ff
xor esi, esi
mov dword [ebp - 8], esi
test ebx, ebx
je 0x425912
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebx, esi
mov dword [ebp - 4], ebx
test edi, edi
je 0x42591f
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, esi
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 0x18]
push dword [eax]
call fcn.0043c98d
mov esi, eax
test esi, esi
js 0x425a84
mov esi, dword [ebp + 0x28]
xor edi, edi
test esi, esi
je 0x425947
mov edx, esi
cmp word [esi], di
jne 0x42594a
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x425958
mov ecx, eax
cmp word [eax], di
jne 0x42595b
mov ecx, dword [ebp - 0x18]
push edi
push edi
push 3
pop eax
xor edi, edi
inc edi
cmp dword [ebp - 0x24], edi
cmove eax, edi
push eax
push edx
push ecx
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp + 0x14]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
test edi, edi
je 0x425a4a
mov ebx, dword [ebp + 0x24]
test ebx, ebx
je 0x4259c2
xor eax, eax
cmp word [ebx], ax
je 0x4259c2
test esi, esi
je 0x4259c2
cmp word [esi], ax
je 0x4259c2
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0x2b
push edi
call ebx
test eax, eax
je 0x4259c2
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
push 0x2c
push edi
call ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x20]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x24]
push dword [ebp + 0x1c]
push edi
call fcn.00425abb
mov esi, eax
test esi, esi
js 0x425a32
push dword [ebp + 0x34]
mov ebx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x18]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00425bfd
mov esi, eax
test esi, esi
js 0x425a1d
cmp dword [ebp - 8], 0
jne 0x4258fd
mov eax, dword [ebp + 0x2c]
mov dword [eax], edi
xor edi, edi
mov eax, dword [ebp + 0x30]
mov dword [eax], ebx
xor ebx, ebx
jmp 0x425a91
mov eax, dword [ebp + 0x18]
push dword [eax]
push str.Failed_to_send_request_to_URL:__ls
push esi
call fcn.004348ae
add esp, 0xc
jmp 0x425a91
mov eax, dword [ebp + 0x18]
push dword [eax]
push str.Failed_to_open_internet_URL:__ls
push esi
call fcn.004348ae
mov ebx, dword [ebp - 4]
add esp, 0xc
jmp 0x425a91
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x216
push str.downloadengine.cpp
call fcn.00433f1c
mov eax, dword [ebp + 0x18]
push dword [eax]
push str.Failed_to_connect_to_URL:__ls
jmp 0x425a27
push str.Failed_to_break_URL_into_server_and_resource_parts.
push esi
call fcn.004348ae
pop ecx
pop ecx
lea eax, [ebp - 0x24]
push eax
call fcn.0043c9b8
test ebx, ebx
je 0x425aa5
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
je 0x425ab0
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30