Function at 0x401350
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, 0x1018
call fcn.0043b240
mov eax, dword [0x46dbc0]
xor eax, esp
mov dword [esp + 0x1014], eax
push ebx
push ebp
mov ebp, dword [esp + 0x1024]
push esi
push edi
push 0
push 0
push 0
push 1
push str.DownloadApp
mov esi, ecx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x4013bb
push 0x45fc44
call fcn.00402300
add esp, 4
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00401a60
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx + esi]
jmp 0x4015a4
mov ebx, 0x10
cmp dword [esi + 0x18], ebx
jb 0x4013ca
mov eax, dword [esi + 4]
jmp 0x4013cd
lea eax, [esi + 4]
push 0
push SysReAllocString
push 0
push 0
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
test edi, edi
jne 0x40145d
push esi
push ecx
push 0x45fc5c
call fcn.00402300
add esp, 8
push eax
call fcn.00402550
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00401a60
mov edx, dword [esi]
mov eax, dword [edx + 4]
add eax, esi
test byte [eax + 8], 6
jne 0x40142c
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x40142c
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x40144d
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], 0
jne 0x401445
or eax, 4
push 0
push eax
call fcn.00401200
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x4015e3
cmp dword [ebp + 0x18], ebx
jb 0x401467
mov eax, dword [ebp + 4]
jmp 0x40146a
lea eax, [ebp + 4]
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 0x401509
push ebp
push ecx
push 0x45fc6c
call fcn.00402300
add esp, 8
push eax
call fcn.00402550
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00401a60
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx + esi]
xor ebx, ebx
test byte [eax + 8], 6
jne 0x4014d3
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x4014d3
mov ebx, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test ebx, ebx
je 0x4014f4
mov eax, dword [ecx + 8]
or eax, ebx
cmp dword [ecx + 0x28], 0
jne 0x4014ec
or eax, 4
push 0
push eax
call fcn.00401200
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
jmp 0x4015e3
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x28]
push ecx
push edi
call ebx
test eax, eax
je 0x401562
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x401530
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x40155e
push 0
lea edx, [esp + 0x20]
push edx
push eax
lea eax, [esp + 0x2c]
push eax
push esi
call ebp
lea ecx, [esp + 0x14]
push ecx
push 0x1000
lea edx, [esp + 0x28]
push edx
push edi
call ebx
test eax, eax
jne 0x401530
mov ebp, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
push ebp
push ecx
push 0x45fc7c
call fcn.00402300
add esp, 8
push eax
call fcn.00402550
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00401a60
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
lea eax, [edx + esi]
xor edi, edi
test byte [eax + 8], 6
jne 0x4015c2
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x4015c2
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x4015e3
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], 0
jne 0x4015db
or eax, 4
push 0
push eax
call fcn.00401200
mov ecx, dword [esp + 0x1024]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043986a
add esp, 0x1018
ret