Function at 0x140001b24
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 rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd00
mov rax, qword [0x140048f50]
xor rax, rsp
mov qword [rsp + 0xcf0], rax
mov r12d, r9d
mov dword [rsp + 0x54], r9d
mov rsi, r8
mov r15, rdx
mov rbx, rcx
xor eax, eax
mov qword [rsp + 0x70], rax
mov r14d, eax
mov qword [rsp + 0x60], rax
mov edi, eax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.jupdate
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r13, rax
mov qword [rsp + 0x70], rax
xor ecx, ecx
test rax, rax
jne 0x140001ba3
mov ebx, ecx
mov dword [rsp + 0x40], ecx
jmp 0x140001e53
mov r14d, 0x68
mov r8d, r14d
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.14001e2f0
mov dword [rsp + 0x80], r14d
lea rax, [rsp + 0x4f0]
mov qword [rsp + 0x98], rax
mov ecx, 0x400
mov dword [rsp + 0xa0], ecx
xor r14d, r14d
mov word [rsp + 0xa4], r14w
lea rax, [rsp + 0xf0]
mov qword [rsp + 0xc8], rax
mov dword [rsp + 0xd0], ecx
lea rax, [rsp + 0x8f0]
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0xe0], ecx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, eax
lea r9, [rsp + 0x80]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCrackUrlA]
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], 3
lea rax, [0x140035cab]
mov qword [rsp + 0x20], rax
mov r9, rax
movzx r8d, word [rsp + 0xa4]
mov rdx, qword [rsp + 0x98]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetConnectA]
mov r14, rax
mov qword [rsp + 0x60], rax
xor ecx, ecx
test rax, rax
je 0x140001b98
cmp dword [rsp + 0xd0], ecx
mov rcx, rsi
mov rdx, qword [rsp + 0xc8]
jne 0x140001ca1
lea rdx, [0x140035d34]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
xor ebx, ebx
cmp dword [rsp + 0xe0], ebx
je 0x140001cc3
mov rdx, qword [rsp + 0xd8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 0x4c00000
mov qword [rsp + 0x28], rbx
lea rax, [0x140035cab]
mov qword [rsp + 0x20], rax
lea r9, str.HTTP_1.1
mov r8, rsi
lea rdx, [0x140035d24]
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rdi, rax
mov qword [rsp + 0x68], rax
xor ecx, ecx
test rax, rax
je 0x140001b9a
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpSendRequestA]
xor ecx, ecx
test eax, eax
je 0x140001b9a
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x48]
mov edx, 0x20000013
mov rcx, rdi
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
xor ecx, ecx
mov dword [rsp + 0x40], ecx
cmp dword [rsp + 0x48], 0xc8
jne 0x140001e53
mov dword [rsp + 0x44], ecx
test r15, r15
jne 0x140001da3
lea r9, [rsp + 0x44]
mov r8d, r12d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
xor ecx, ecx
test eax, eax
je 0x140001e53
cmp dword [rsp + 0x44], ecx
jbe 0x140001e53
lea ebx, [rcx + 1]
jmp 0x140001e4f
mov dword [rsp + 0x50], ecx
mov r12d, ecx
mov dword [rsp + 0x4c], ecx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140001e53
mov ebx, 1
mov dword [rsp + 0x40], ebx
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x54]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
xor ecx, ecx
test eax, eax
je 0x140001e38
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x140001e3e
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x50]
mov r8d, eax
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x44]
add r12d, eax
mov dword [rsp + 0x4c], r12d
test eax, eax
jne 0x140001de9
jmp 0x140001e3e
mov ebx, ecx
mov dword [rsp + 0x40], ecx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
test r12d, r12d
cmove ebx, ecx
mov dword [rsp + 0x40], ebx
test rdi, rdi
je 0x140001e61
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test r14, r14
je 0x140001e6f
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test r13, r13
je 0x140001e7d
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0xcf0]
xor rcx, rsp
call fcn.14001eba0
add rsp, 0xd00
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret