Function at 0x401aca
Capabilities:
Check http status code
Connect to http server
Create http request
Download and write a file
Parse url
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Write file on windows

Disassembly:
push 0xc6c
push 0x41e6c8
call fcn.00411ee0
xor esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], esi
push esi
push esi
push esi
push esi
push str.jupdate
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x401cc2
push 0x3c
pop edi
push edi
push esi
lea eax, [ebp - 0x7c]
push eax
call fcn.00412120
add esp, 0xc
mov dword [ebp - 0x7c], edi
lea eax, [ebp - 0x87c]
mov dword [ebp - 0x6c], eax
mov eax, 0x400
mov dword [ebp - 0x68], eax
mov word [ebp - 0x64], si
lea ecx, [ebp - 0x47c]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0xc7c]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x7c]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push esi
push esi
push 3
mov edi, 0x41e625
push edi
push edi
push dword [ebp - 0x64]
push dword [ebp - 0x6c]
push dword [ebp - 0x28]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x2c], eax
cmp eax, esi
je 0x401cc2
mov ebx, dword [ebp + 0x10]
cmp dword [ebp - 0x4c], esi
je 0x401b93
push dword [ebp - 0x50]
jmp 0x401b98
push 0x41e6b8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x44], esi
je 0x401bae
push dword [ebp - 0x48]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
push 0x4400000
push esi
push edi
push str.HTTP_1.1
push ebx
push 0x41e6a8
push dword [ebp - 0x2c]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, esi
je 0x401cc2
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x401cc2
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x3c], 4
push esi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x20000013
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x34], 0xc8
jne 0x401cc5
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0xc], esi
jne 0x401c4a
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x14]
push ebx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401cc5
cmp dword [ebp - 0x20], esi
jbe 0x401cc5
mov dword [ebp - 0x1c], 1
jmp 0x401cc5
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x30], esi
or dword [ebp - 0x38], 0xffffffff
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x38], edi
cmp edi, 0xffffffff
je 0x401cc5
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x14]
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401cb3
cmp dword [ebp - 0x20], esi
jbe 0x401caf
push esi
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x20]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x30], eax
cmp eax, esi
jne 0x401c7d
jmp 0x401cb6
mov dword [ebp - 0x1c], esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], esi
ja 0x401cc5
mov dword [ebp - 0x1c], esi
or dword [ebp - 4], 0xffffffff
call fcn.00401cd9
mov eax, dword [ebp - 0x1c]
call fcn.00411f1b
ret