Function at 0x42540b
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 0x42542b
xor esi, esi
mov dword [ebp - 8], esi
test ebx, ebx
je 0x42543e
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebx, esi
mov dword [ebp - 4], ebx
test edi, edi
je 0x42544b
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.00438861
mov esi, eax
test esi, esi
js 0x4255b0
mov esi, dword [ebp + 0x28]
xor edi, edi
test esi, esi
je 0x425473
mov edx, esi
cmp word [esi], di
jne 0x425476
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x425484
mov ecx, eax
cmp word [eax], di
jne 0x425487
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 0x425576
mov ebx, dword [ebp + 0x24]
test ebx, ebx
je 0x4254ee
xor eax, eax
cmp word [ebx], ax
je 0x4254ee
test esi, esi
je 0x4254ee
cmp word [esi], ax
je 0x4254ee
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 0x4254ee
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.004255e5
mov esi, eax
test esi, esi
js 0x42555e
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.00425725
mov esi, eax
test esi, esi
js 0x425549
cmp dword [ebp - 8], 0
jne 0x425429
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 0x4255bd
mov eax, dword [ebp + 0x18]
push dword [eax]
push str.Failed_to_send_request_to_URL:__ls
push esi
call fcn.00430877
add esp, 0xc
jmp 0x4255bd
mov eax, dword [ebp + 0x18]
push dword [eax]
push str.Failed_to_open_internet_URL:__ls
push esi
call fcn.00430877
mov ebx, dword [ebp - 4]
add esp, 0xc
jmp 0x4255bd
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.0042fef9
mov eax, dword [ebp + 0x18]
push dword [eax]
push str.Failed_to_connect_to_URL:__ls
jmp 0x425553
push str.Failed_to_break_URL_into_server_and_resource_parts.
push esi
call fcn.00430877
pop ecx
pop ecx
lea eax, [ebp - 0x24]
push eax
call fcn.0043888c
test ebx, ebx
je 0x4255d1
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
je 0x4255dc
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x30