Function at 0x40ce70
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x45a06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x24], eax
mov eax, esi
push edi
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], ebx
jb 0x40cea0
mov eax, dword [esi]
xor ecx, ecx
lea edi, [esi + 0x18]
mov word [eax], cx
mov eax, edi
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], ebx
jb 0x40ceb5
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
lea ecx, [esi + 0x30]
cmp dword [esi + 0x44], 8
mov dword [esi + 0x40], ebx
jb 0x40cec9
mov ecx, dword [esi + 0x30]
xor eax, eax
mov word [ecx], ax
lea ecx, [esi + 0x50]
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
call fcn.0041fa70
lea ecx, [esi + 0x58]
call fcn.0041fa70
push ebx
push ebx
push ebx
push ebx
push 0x4536e0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x40cf1c
mov edx, str.internet_open_
lea ecx, [ebp - 0x1c]
call fcn.0040b6fd
push eax
mov ecx, edi
call fcn.00405ab4
lea ecx, [ebp - 0x1c]
call fcn.00402499
jmp 0x40d08a
push 0x40b6c0
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
cmp eax, 0xffffffff
jne 0x40cf6e
xor eax, eax
mov dword [ebp - 0x10], ebx
push str.SetStatusCallback_failed
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 7
mov word [ebp - 0x20], ax
mov byte [ebp - 8], bl
call fcn.004011b7
lea eax, [ebp - 0x20]
push eax
push eax
push 0x361
push str.lite_installer::Downloader::OpenDownload
push 1
call fcn.00415994
add esp, 0x14
lea ecx, [ebp - 0x20]
call fcn.00402499
lea eax, [esi + 0x30]
push eax
push 0x80000000
push 0xffffffffffffffff
push str.Accept:__
push dword [ebp - 0x30]
push dword [ebp - 0x28]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ecx, eax
mov dword [ebp - 0x34], ecx
test ecx, ecx
jne 0x40cfbf
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov edx, str.internet_open_url_
lea ecx, [ebp - 0x1c]
call fcn.0040b6fd
push eax
mov ecx, edi
call fcn.00405ab4
lea ecx, [ebp - 0x1c]
call fcn.00402499
jmp 0x40d07b
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x40d001
push ebx
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetSetFilePointer]
cmp eax, dword [ebp - 0x3c]
je 0x40d001
mov edx, str.internet_set_file_pointer_
lea ecx, [ebp - 0x1c]
call fcn.0040b6fd
push eax
mov ecx, edi
call fcn.00405ab4
lea ecx, [ebp - 0x1c]
call fcn.00402499
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x28]
push ebx
push edi
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [ebp - 0x30]
mov ecx, esi
call fcn.004067a8
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x34]
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x54]
mov dword [esi + 0x54], edi
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [esi + 0x5c], ecx
lea ecx, [ebp - 0x20]
push str.Connection_established:
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 7
mov word [ebp - 0x20], ax
mov byte [ebp - 8], bl
call fcn.004011b7
push esi
mov ecx, eax
call fcn.004023c1
lea eax, [ebp - 0x20]
push eax
push eax
push 0x37c
push str.lite_installer::Downloader::OpenDownload
push ebx
call fcn.00415994
add esp, 0x14
lea ecx, [ebp - 0x20]
call fcn.00402499
mov bl, 1
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0x4573d8
call fcn.0041fa70
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x4573d8
call fcn.0041fa70
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427412
mov esp, ebp
pop ebp
ret 8