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

Disassembly:
mov eax, 0x100c
call fcn.0040ecd0
push ebx
push ebp
push esi
push edi
push 0
push 0
push 0
push 1
push 0xe39250
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x10], ebx
jne 0x401b6b
push 0xe39238
push 0x15533d0
call fcn.00403330
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00402800
mov eax, dword [esi]
xor edi, edi
mov ecx, dword [eax + 4]
lea eax, [ecx + esi]
mov cl, byte [ecx + esi + 4]
test cl, 6
jne 0x401b4f
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x401b4f
mov edi, 4
mov eax, dword [esi]
push 0
push edi
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.00402970
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x100c
ret
mov edi, dword [esp + 0x1020]
mov eax, dword [edi + 4]
test eax, eax
jne 0x401b7e
mov eax, 0x42e798
push 0
push SysReAllocStringLen
push 0
push 0
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebp, eax
test ebp, ebp
jne 0x401c14
push 0xe39228
push 0x15533d0
call fcn.00403330
mov esi, eax
mov eax, dword [edi + 4]
add esp, 8
test eax, eax
jne 0x401bb7
mov eax, 0x42e798
push eax
push esi
call fcn.00403330
add esp, 8
mov ecx, esi
push 0xa
call fcn.00402800
mov ecx, dword [esi]
xor edi, edi
mov edx, dword [ecx + 4]
mov cl, byte [edx + esi + 4]
test cl, 6
lea eax, [edx + esi]
jne 0x401bf1
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x401bf1
mov edi, 4
mov eax, dword [esi]
push 0
push edi
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.00402970
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x100c
ret
mov ebx, dword [esp + 0x1024]
mov eax, dword [ebx + 4]
test eax, eax
jne 0x401c27
mov eax, 0x42e798
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401ce3
push 0xe39218
push 0x15533d0
call fcn.00403330
mov esi, eax
mov eax, dword [ebx + 4]
add esp, 8
test eax, eax
jne 0x401c6b
mov eax, 0x42e798
push eax
push esi
call fcn.00403330
add esp, 8
mov ecx, esi
push 0xa
call fcn.00402800
mov ecx, dword [esi]
xor edi, edi
mov edx, dword [ecx + 4]
mov cl, byte [edx + esi + 4]
test cl, 6
lea eax, [edx + esi]
jne 0x401ca5
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x401ca5
mov edi, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
test edi, edi
je 0x401cc6
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x28]
or eax, edi
test edx, edx
jne 0x401cbe
or al, 4
push 0
push eax
call fcn.0041a2e7
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x100c
ret
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push 0x1000
push eax
push ebp
call edi
test eax, eax
je 0x401d3a
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x401d33
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x24]
push eax
push edx
push esi
call ebx
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push 0x1000
push ecx
push ebp
call edi
test eax, eax
jne 0x401d05
mov ebx, dword [esp + 0x1024]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
push 0xe39208
push 0x15533d0
call fcn.00403330
mov esi, eax
mov eax, dword [ebx + 4]
add esp, 8
test eax, eax
jne 0x401d71
mov eax, 0x42e798
push eax
push esi
call fcn.00403330
add esp, 8
mov ecx, esi
push 0xa
call fcn.00402800
mov eax, dword [esi]
xor edi, edi
mov ecx, dword [eax + 4]
lea eax, [ecx + esi]
mov cl, byte [ecx + esi + 4]
test cl, 6
jne 0x401dab
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x401dab
mov edi, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
test edi, edi
je 0x401dcc
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x28]
or eax, edi
test edx, edx
jne 0x401dc4
or al, 4
push 0
push eax
call fcn.0041a2e7
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x100c
ret