Function at 0x14005a660
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140212c80]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rbx, qword [rbp + 0x50]
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
mov rcx, qword [rcx]
call fcn.1400ba030
mov rcx, qword [rbx]
mov dword [rcx], eax
mov rax, qword [rbx]
mov rcx, qword [rbx + 0x10]
mov eax, dword [rax]
mov dword [rcx + 0x110], eax
mov rax, qword [rbx]
cmp dword [rax], 0
jne 0x14005a6ed
mov rax, qword [rbx + 8]
mov rbx, qword [rax]
mov rcx, rbx
call fcn.1400583d0
mov rcx, qword [rbx + 0x160]
cmp rcx, 0xffffffffffffffff
je 0x14005a6e6
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14005aabd
mov al, 1
jmp 0x14005aa93
mov rax, qword [rbx + 0x10]
inc dword [rax + 0xe8]
mov rdx, qword [rbx + 0x10]
lea rsi, [rdx + 0x110]
lea r14, [rdx + 0xe8]
lea rax, [rdx + 0x118]
cmp qword [rdx + 0x128], 0
cmovne rdx, rax
lea rcx, [rbp - 0x10]
call fcn.14002f050
nop
mov dword [rbp + 0x10], 0x41424143
mov dword [rbp + 0x14], 0x32333039
movsd xmm0, qword [str.repository]
movsd qword [rbp - 0x50], xmm0
mov eax, dword [0x140213918]
mov dword [rbp - 0x48], eax
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x44], rax
mov dword [rbp - 0x3c], 0x314
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
lea rcx, [rbp + 0x10]
call fcn.140052a60
nop
mov rdi, qword [rbp + 0x10]
test rdi, rdi
je 0x14005a812
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
mov rax, qword [rax + 0x78]
call qword [case.0x1400cc851.0]
test al, al
je 0x14005a812
lea rax, str.Curl:_url:_current_retry:___request_error:_
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], getservbyname
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x10]
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x38]
call fcn.14005bf50
nop
mov rcx, qword [rdi]
mov r10, qword [rcx + 0x18]
mov rcx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x14005a7d7
mov rcx, qword [rax]
mov rdx, qword [rax + 0x10]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rdx
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x60], xmm0
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x50]
xor edx, edx
mov rcx, rdi
mov rax, r10
call qword [case.0x1400cc851.0]
nop
lea rcx, [rbp - 0x38]
call fcn.140023540
nop
mov rsi, 0xffffffffffffffff
mov rdi, qword [rbp + 0x18]
test rdi, rdi
je 0x14005a85a
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14005a85a
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x1400cc851.0]
mov eax, esi
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x14005a85a
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x1400cc851.0]
nop
lea rcx, [rbp - 0x10]
call fcn.140023540
mov rcx, qword [rbx + 8]
call fcn.140059510
mov rax, qword [rbx + 0x18]
cmp byte [rax + 1], 0
jne 0x14005a8b1
mov rax, qword [rbx]
mov ecx, dword [rax]
cmp ecx, 6
je 0x14005a885
cmp ecx, 0x1c
jne 0x14005a8b1
mov rcx, qword [rbx + 8]
call fcn.14005ab30
mov byte [rsp + 0x30], al
mov byte [rsp + 0x31], 1
mov rcx, qword [rbx + 0x18]
movzx eax, word [rsp + 0x30]
mov word [rcx], ax
mov rax, qword [rbx + 0x18]
cmp byte [rax + 1], 0
jne 0x14005aa91
mov rdx, qword [rbx + 0x10]
mov rax, qword [rbx + 8]
movzx ecx, byte [rax + 0x7d]
cmp dword [rdx + 0xe8], ecx
jl 0x14005aa91
cmp byte [rdx + 0x20], 0
je 0x14005aa91
lea rcx, [rdx + 0x118]
cmp rcx, rdx
je 0x14005a8f2
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x14005a8ed
mov rdx, qword [rdx]
call fcn.14005c4a0
mov rdi, qword [rbx + 0x10]
add rdi, 0x118
mov r14, qword [rdi + 0x10]
mov rcx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x14005a90e
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 6
lea r9, str.https:
xor r8d, r8d
mov rdx, r14
call fcn.140044230
test rax, rax
jne 0x14005aa91
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
cmp r14, 5
jb 0x14005aab7
lea rax, [r14 - 5]
cmp rax, 0xffffffffffffffff
cmovb rsi, rax
cmp qword [rdi + 0x18], 0xf
jbe 0x14005a961
mov rdi, qword [rdi]
lea rdx, [rdi + 5]
mov r8, rsi
lea rcx, [rbp - 0x70]
call fcn.140023420
nop
lea rax, [rbp - 0x70]
cmp qword [rbp - 0x58], 0xf
cmova rax, qword [rbp - 0x70]
lea rcx, str.http
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], 6
mov qword [rsp + 0x58], rax
movabs rax, 0xb000000000000000
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
movaps xmm1, xmmword [rbp + 0x10]
movdqa xmmword [rsp + 0x70], xmm1
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x38]
call fcn.14000e020
mov rcx, qword [rbx + 0x10]
add rcx, 0x118
lea rdx, [rbp - 0x38]
call fcn.140020f00
lea rcx, [rbp - 0x38]
call fcn.140023540
nop
lea rcx, [rbp - 0x70]
call fcn.140023540
mov rdx, qword [rbx + 0x10]
add rdx, 0x118
cmp qword [rdx + 0x18], 0xf
jbe 0x14005aa1e
mov rdx, qword [rdx]
mov rcx, qword [rbx + 8]
call fcn.140059210
mov dword [rbp + 0x10], 0x41424143
mov dword [rbp + 0x14], 0x32333039
movsd xmm0, qword [str.repository]
movsd qword [rsp + 0x70], xmm0
mov eax, dword [0x140213918]
mov dword [rsp + 0x78], eax
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x7c], rax
mov dword [rbp - 0x7c], 0x333
lea rax, str.Download_failed__switch_to_HTTP_protocol_new_url_.
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], getservbyname
mov r9, qword [rbx + 0x10]
add r9, 0x118
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x70]
mov ecx, 5
call fcn.14005bb20
xor al, al
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140133600
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140012cc0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_trim_the_file_to_the_current_position_
lea rcx, [rbp - 0x38]
call fcn.1400967b0
lea rdx, [0x14020e468]
lea rcx, [rbp - 0x38]
call fcn.140135f84
int3