Function at 0x140002170
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x10f0
call fcn.14001bc70
sub rsp, rax
mov rax, qword [0x140026010]
xor rax, rsp
mov qword [rsp + 0x10e8], rax
mov r13, rcx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov esi, 1
mov edx, esi
lea rcx, str.AutoUpdater
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r12, rax
test rax, rax
je 0x1400025aa
lea rdx, [0x1400260a8]
cmp qword [0x1400260c0], 0x10
cmovae rdx, qword [0x1400260a8]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r14, rax
test rax, rax
jne 0x14000221c
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x1400025aa
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
mov qword [rsp + 0xa8], r15
mov qword [rsp + 0xb0], 0xf
mov byte [rsp + 0x98], r15b
lea r9, [rsp + 0x80]
mov r8d, 0x1000
lea rdx, [rsp + 0xe0]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14000231d
nop word [rax + rax]
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x14000231d
mov edi, eax
mov rcx, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0xb0]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x1400022d9
lea rax, [rdi + rcx]
mov qword [rsp + 0xa8], rax
lea rbx, [rsp + 0x98]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x98]
add rbx, rcx
mov r8d, edi
lea rdx, [rsp + 0xe0]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x1400022f6
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0xe0]
mov rdx, rdi
lea rcx, [rsp + 0x98]
call fcn.140005ba0
lea r9, [rsp + 0x80]
mov r8d, 0x1000
lea rdx, [rsp + 0xe0]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140002270
xor edx, edx
lea rcx, [rsp + 0x88]
call fcn.140004c20
nop
mov qword [rsp + 0x78], r15
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0xb8]
call fcn.140005600
movzx edx, byte [rsp + 0x88]
movzx r15d, byte [rax]
mov byte [rsp + 0x88], r15b
mov byte [rax], dl
lea rcx, [rax + 8]
mov rax, qword [rsp + 0x90]
mov rdi, qword [rcx]
mov qword [rsp + 0x90], rdi
mov qword [rcx], rax
call fcn.1400046b0
nop
cmp r15d, 9
ja case.0x14000239e.3
lea rdx, [0x140000000]
mov ecx, dword [rdx + r15*4 + 0x25dc]
add rcx, rdx
jmp rcx
mov rax, qword [rdi + 8]
cmp qword [rdi], rax
jmp 0x1400023ae
cmp qword [rdi + 8], 0
sete al
test al, al
je case.0x14000239e.3
movzx edx, r15b
lea rcx, [rsp + 0x90]
call fcn.1400046b0
nop
mov rdx, qword [rsp + 0xb0]
cmp rdx, 0x10
jb 0x1400025aa
inc rdx
mov rcx, qword [rsp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002409
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002577
call fcn.14001b0c4
jmp 0x1400025aa
cmp r15b, 2
jne 0x140002518
mov rbx, qword [rdi + 8]
mov rdx, qword [rdi]
mov rcx, rbx
sub rcx, rdx
sar rcx, 4
test rcx, rcx
jne 0x14000246c
mov rax, qword [rdi + 0x10]
sub rax, rdx
sar rax, 4
cmp rax, 1
jae 0x14000244e
mov rcx, rdi
call fcn.14000a5f0
jmp 0x14000246c
sub rsi, rcx
je 0x140002468
xor edx, edx
mov rcx, rbx
call fcn.140004c20
nop
add rbx, 0x10
sub rsi, 1
jne 0x140002453
mov qword [rdi + 8], rbx
mov rdx, qword [rdi]
lea rcx, [rsp + 0xb8]
call fcn.140003670
nop
lea rdx, str.commit
lea rcx, [rsp + 0xb8]
call fcn.140005440
lea rdx, str.author
mov rcx, rax
call fcn.140005440
mov rdx, rax
lea rcx, [rsp + 0xc8]
call fcn.140003670
nop
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x30]
call fcn.140003670
movzx edx, byte [r13]
movzx ecx, byte [rax]
mov byte [r13], cl
mov byte [rax], dl
lea rcx, [rax + 8]
mov rdx, qword [r13 + 8]
mov r8, qword [rcx]
mov qword [r13 + 8], r8
mov qword [rcx], rdx
movzx edx, byte [rax]
call fcn.1400046b0
nop
movzx edx, byte [rsp + 0xc8]
lea rcx, [rsp + 0xd0]
call fcn.1400046b0
nop
movzx edx, byte [rsp + 0xb8]
lea rcx, [rsp + 0xc0]
call fcn.1400046b0
nop
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
movzx edx, r15b
lea rcx, [rsp + 0x90]
call fcn.1400046b0
nop
mov rdx, qword [rsp + 0xb0]
cmp rdx, 0x10
jb 0x140002583
inc rdx
mov rcx, qword [rsp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000257e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000257e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001b0c4
mov al, 1
jmp 0x1400025ac
xor al, al
mov rcx, qword [rsp + 0x10e8]
xor rcx, rsp
call fcn.14001ae10
lea r11, [rsp + 0x10f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret