Function at 0x40a070
Capabilities:
Create http request
Download and write a file
Get common file path
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421dbb
mov eax, dword fs:[0]
push eax
mov eax, 0x4234
call fcn.004181c0
mov eax, dword [0x42e460]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push 0x22
push str.Loading_extendion_installer_from:
lea ecx, [ebp - 0x422c]
mov dword [ebp - 0x4234], 0
mov dword [ebp - 0x4214], 0x100
mov dword [ebp - 0x4218], 0xf
mov dword [ebp - 0x421c], 0
mov byte [ebp - 0x422c], 0
call fcn.00401b50
push 0xffffffffffffffff
push 0
push 0x431b48
lea ecx, [ebp - 0x422c]
mov dword [ebp - 4], 0
call fcn.004079d0
push 0
push 0
push 0
push 0
push 0x42ac88
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp dword [0x431b5c], 0x10
mov ecx, 0x431b48
push 3
cmovae ecx, dword [0x431b48]
mov ebx, eax
push 0x84000300
push 0
push 0
push ecx
push ebx
mov dword [ebp - 0x423c], ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
test edi, edi
je 0x40a1ab
lea eax, [ebp - 0x4234]
push eax
lea eax, [ebp - 0x4214]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x13
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, 0x42aca0
lea eax, [ebp - 0x210]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a196
test dx, dx
je 0x40a192
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a196
add eax, 4
add ecx, 4
test dx, dx
jne 0x40a170
xor eax, eax
jmp 0x40a19b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40a1e0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push ebx
call esi
cmp dword [ebp - 0x4218], 0x10
jb 0x40a1c2
push dword [ebp - 0x422c]
call fcn.00411307
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004112f8
mov esp, ebp
pop ebp
ret
push 0x2000
lea eax, [ebp - 0x4210]
push 0
push eax
call fcn.004181f0
add esp, 0xc
mov dword [ebp - 0x4214], 0
xor eax, eax
mov word [ebp - 0x2210], ax
lea eax, [ebp - 0x2210]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp - 0x2210], 0
jne 0x40a229
xor ecx, ecx
jmp 0x40a241
lea ecx, [ebp - 0x2210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a232
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x2210]
mov ecx, esi
push eax
call fcn.00401d00
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x40a277
cmp dword [esi + 0x14], 8
jb 0x40a261
mov eax, dword [esi]
jmp 0x40a263
mov eax, esi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x40a277
push 0x42a438
mov ecx, esi
call fcn.00402e70
push 0xb
push str.updater.zip
mov ecx, esi
call fcn.00403660
cmp dword [esi + 0x14], 8
jb 0x40a28d
mov esi, dword [esi]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40a2c1
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x423c]
jmp 0x40a1a9
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x4214]
push eax
push 0x2000
lea eax, [ebp - 0x4210]
mov byte [ebp - 0x4235], 1
push eax
push edi
call esi
test eax, eax
je 0x40a343
jmp 0x40a2f0
mov eax, dword [ebp - 0x4214]
test eax, eax
je 0x40a343
push 0
lea ecx, [ebp - 0x4230]
push ecx
push eax
lea eax, [ebp - 0x4210]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x4214]
cmp eax, dword [ebp - 0x4230]
jne 0x40a33c
lea eax, [ebp - 0x4214]
push eax
push 0x2000
lea eax, [ebp - 0x4210]
push eax
push edi
call esi
test eax, eax
jne 0x40a2f0
jmp 0x40a343
mov byte [ebp - 0x4235], 0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x423c]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x4218], 0x10
jb 0x40a372
push dword [ebp - 0x422c]
call fcn.00411307
add esp, 4
mov al, byte [ebp - 0x4235]
jmp 0x40a1c4