Function at 0x4255ef
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor esi, esi
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x24]
mov ebx, esi
rep stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
mov edi, eax
jmp 0x42560f
xor esi, esi
mov dword [ebp - 8], esi
test ebx, ebx
je 0x425622
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebx, esi
mov dword [ebp - 4], ebx
test edi, edi
je 0x42562f
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.00438a49
mov esi, eax
test esi, esi
js 0x425794
mov esi, dword [ebp + 0x28]
xor edi, edi
test esi, esi
je 0x425657
mov edx, esi
cmp word [esi], di
jne 0x42565a
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x425668
mov ecx, eax
cmp word [eax], di
jne 0x42566b
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 0x42575a
mov ebx, dword [ebp + 0x24]
test ebx, ebx
je 0x4256d2
xor eax, eax
cmp word [ebx], ax
je 0x4256d2
test esi, esi
je 0x4256d2
cmp word [esi], ax
je 0x4256d2
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 0x4256d2
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.004257c9
mov esi, eax
test esi, esi
js 0x425742
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.00425909
mov esi, eax
test esi, esi
js 0x42572d
cmp dword [ebp - 8], 0
jne 0x42560d
mov eax, dword [ebp + 0x2c]
mov dword [eax], edi
mov eax, dword [ebp + 0x30]
xor edi, edi
mov dword [eax], ebx
xor ebx, ebx
jmp 0x4257a1
mov eax, dword [ebp + 0x18]
push dword [eax]
push str.Failed_to_send_request_to_URL:__ls
push esi
call fcn.00430a57
add esp, 0xc
jmp 0x4257a1
mov eax, dword [ebp + 0x18]
push dword [eax]
push str.Failed_to_open_internet_URL:__ls
push esi
call fcn.00430a57
mov ebx, dword [ebp - 4]
add esp, 0xc
jmp 0x4257a1
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.004300d9
mov eax, dword [ebp + 0x18]
push dword [eax]
push str.Failed_to_connect_to_URL:__ls
jmp 0x425737
push str.Failed_to_break_URL_into_server_and_resource_parts.
push esi
call fcn.00430a57
pop ecx
pop ecx
lea eax, [ebp - 0x24]
push eax
call fcn.00438a74
test ebx, ebx
je 0x4257b5
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
je 0x4257c0
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x30