Function at 0x1400172d0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x108
movups xmmword [rsp + 0xf0], xmm6
mov r12, qword [0x14004add0]
mov rsi, qword [r12]
mov qword [rsp + 0xe8], rsi
mov esi, dword [rcx]
mov rbp, rdx
mov edi, r8d
and esi, 0xffff00
je 0x140017340
xor ebx, ebx
mov rax, qword [rsp + 0xe8]
sub rax, qword [r12]
jne 0x14001797b
movups xmm6, xmmword [rsp + 0xf0]
mov eax, ebx
add rsp, 0x108
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140019fc0
mov rdx, qword [0x140050910]
mov rcx, rax
mov r13, rax
call fcn.14001a060
cmp byte [0x140050908], 0
mov ebx, eax
je 0x1400174b0
cmp ebx, 0x1f4
setg bl
or bl, dil
je 0x14001730e
mov rdx, qword [rbp]
mov rcx, r13
call fcn.14001a060
mov r14, qword [0x140050a20]
mov r10, qword [0x140050a18]
mov dword [rsp + 0xc2], 0x2d2d
movsxd rdx, eax
sar eax, 0x1f
mov dword [rsp + 0xc6], 0x2d2d
mov rcx, qword [0x140050a30]
imul rdx, rdx, 0x10624dd3
movq xmm6, r14
movq xmm3, r10
mov qword [0x140050910], r13
punpcklqdq xmm6, xmm3
sar rdx, 0x26
sub edx, eax
movsxd rax, edx
mov qword [rsp + 0xa0], rax
mov rax, qword [0x14004b240]
mov rax, qword [rax]
test rax, rax
je 0x1400177c0
mov byte [rsp + 0x78], bl
mov r15d, ebx
xor r9d, r9d
xor r11d, r11d
mov byte [rsp + 0x80], 0
mov r8, qword [0x140050a28]
jmp 0x140017462
cmp byte [rax + 0x1a8], 0
jne 0x14001742a
mov byte [rax + 0x1a8], 1
add rcx, rdx
mov byte [rsp + 0x80], bl
mov rdx, qword [rax + 0x188]
test rdx, rdx
je 0x1400174a7
cmp byte [rax + 0x1a9], 0
jne 0x14001744c
mov byte [rax + 0x1a9], 1
add r8, rdx
mov r9d, ebx
movzx edx, byte [rax + 0x1c3]
mov rax, qword [rax]
add r11, rdx
test rax, rax
je 0x1400174e0
movdqu xmm0, xmmword [rax + 0x178]
movdqu xmm2, xmmword [rax + 0x188]
mov rdx, qword [rax + 0x178]
add r14, qword [rax + 0x180]
punpckhqdq xmm0, xmm2
add r10, qword [rax + 0x190]
paddq xmm6, xmm0
test rdx, rdx
jne 0x140017410
mov rdx, qword [rax + 0x188]
xor r15d, r15d
test rdx, rdx
jne 0x140017436
mov byte [rsp + 0x78], 0
jmp 0x14001744c
mov rax, qword [0x14004b210]
mov r8d, 0x42
mov edx, 1
lea rcx, str.DL__UL___Dled__Uled__Xfers__Live_Total_____Current__Left____Speed_n
mov byte [0x140050908], 1
mov r9, qword [rax]
call sub.msvcrt.dll_fwrite
jmp 0x140017366
test r9b, r9b
je 0x1400174ec
mov qword [0x140050a28], r8
cmp byte [rsp + 0x80], 0
je 0x1400174fd
mov qword [0x140050a30], rcx
lea rax, [rsp + 0xc2]
movq qword [rsp + 0x80], xmm6
mov qword [rsp + 0x98], rax
test r15b, r15b
jne 0x140017820
lea rax, [rsp + 0xc6]
cmp byte [rsp + 0x78], 0
movhps qword [rsp + 0x90], xmm6
mov qword [rsp + 0x88], rax
jne 0x1400177f0
mov edx, dword [0x140050a14]
lea r8, [0x140050920]
mov rax, rdx
lea rdx, [rdx + rdx*2]
shl rdx, 3
add eax, 1
mov qword [r8 + rdx + 0x10], r13
mov dword [0x140050a14], eax
movups xmmword [r8 + rdx], xmm6
cmp eax, 9
ja 0x140017758
cmp byte [0x140050a10], 0
jne 0x140017980
mov rdx, qword [rbp]
mov rcx, r13
mov qword [rsp + 0x78], r10
mov qword [rsp + 0xa8], r11
call fcn.14001a060
mov r11, qword [rsp + 0xa8]
mov r10, qword [rsp + 0x78]
movsd xmm0, qword [0x140048160]
test eax, eax
je 0x1400175c5
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
divsd xmm0, qword [0x140048168]
pxor xmm1, xmm1
cvtsi2sd xmm1, r14
divsd xmm1, xmm0
cvttsd2si r14, xmm1
pxor xmm1, xmm1
cvtsi2sd xmm1, r10
divsd xmm1, xmm0
cvttsd2si rax, xmm1
cmp r14, rax
cmovl r14, rax
test r14, r14
je 0x140017890
test r15b, r15b
je 0x140017890
mov rcx, qword [0x140050a30]
mov rsi, qword [rsp + 0x80]
mov qword [rsp + 0x78], r11
lea rbp, [rsp + 0xca]
mov rax, rcx
cqo
idiv r14
mov r13, rax
mov rax, rcx
mov rcx, rbp
sub rax, rsi
lea rsi, [rsp + 0xd4]
cqo
idiv r14
mov rdx, rax
call fcn.140017110
mov rdx, r13
mov rcx, rsi
call fcn.140017110
mov r11, qword [rsp + 0x78]
lea r8, [rsp + 0xde]
mov rdx, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], r11
lea r15, [rsp + 0xb0]
mov rcx, r8
mov qword [rsp + 0xa0], r8
call fcn.140017110
test dil, dil
mov rcx, r14
lea rax, [0x1400480dd]
lea r9, [0x1400480df]
lea rdx, [rsp + 0xbc]
cmovne r9, rax
mov qword [rsp + 0x78], r9
call fcn.140016f40
mov rcx, qword [rsp + 0x90]
lea rdx, [rsp + 0xb6]
mov rdi, qword [0x140050900]
mov r14, rax
call fcn.140016f40
mov rcx, qword [rsp + 0x80]
mov rdx, r15
mov r13, rax
call fcn.140016f40
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0xa0]
mov rdx, qword [0x14004b210]
mov r11, qword [rsp + 0xa8]
mov rcx, qword [rdx]
mov qword [rsp + 0x60], r9
lea rdx, str._r__3s___3s__s__s__5lld__5lld___s__s__s__s__5s
mov qword [rsp + 0x48], r8
mov r9, qword [rsp + 0x88]
mov qword [rsp + 0x58], r14
mov r8, qword [rsp + 0x98]
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.libcurl_4.dll_curl_mfprintf]
jmp 0x140017310
mov byte [0x140050a10], 1
mov dword [0x140050a14], 0
mov esi, esi
mov rcx, r13
mov qword [rsp + 0x78], r10
lea rax, [rsi + rsi*2]
mov qword [rsp + 0xa8], r11
mov rdx, qword [r8 + rax*8 + 0x10]
call fcn.14001a060
mov edx, dword [0x140050a14]
lea r8, [0x140050920]
mov r10, qword [rsp + 0x78]
mov r11, qword [rsp + 0xa8]
lea rdx, [rdx + rdx*2]
lea rdx, [r8 + rdx*8]
sub r14, qword [rdx]
sub r10, qword [rdx + 8]
jmp 0x1400175a9
test rcx, rcx
jne 0x140017936
lea rax, [rsp + 0xc2]
mov qword [rsp + 0x98], rax
movq qword [rsp + 0x80], xmm6
mov r15d, ebx
xor r11d, r11d
nop dword [rax + rax]
mov rcx, qword [0x140050a28]
test rcx, rcx
jne 0x1400178d0
lea rax, [rsp + 0xc6]
movhps qword [rsp + 0x90], xmm6
mov qword [rsp + 0x88], rax
jmp 0x140017542
mov rcx, qword [0x140050a30]
test rcx, rcx
je 0x14001751f
movq rax, xmm6
mov qword [rsp + 0x90], r11
lea r8, str._3lld
lea rax, [rax + rax*4]
mov qword [rsp + 0x88], r10
lea rax, [rax + rax*4]
shl rax, 2
cqo
idiv rcx
mov rcx, qword [rsp + 0x98]
mov edx, 4
mov r9, rax
call qword [sym.imp.libcurl_4.dll_curl_msnprintf]
mov r11, qword [rsp + 0x90]
mov r10, qword [rsp + 0x88]
jmp 0x14001751f
mov byte [rsp + 0xd2], 0
lea rbp, [rsp + 0xca]
movabs rax, 0x2d2d3a2d2d3a2d2d
lea rsi, [rsp + 0xd4]
mov qword [rsp + 0xca], rax
mov qword [rsp + 0xd4], rax
mov byte [rsp + 0xdc], 0
jmp 0x140017657
movhlps xmm4, xmm6
mov qword [rsp + 0xa8], r11
lea r8, str._3lld
movq rax, xmm4
mov qword [rsp + 0x78], r10
movq qword [rsp + 0x90], xmm4
lea rax, [rax + rax*4]
lea rax, [rax + rax*4]
shl rax, 2
cqo
idiv rcx
lea rcx, [rsp + 0xc6]
mov edx, 4
mov qword [rsp + 0x88], rcx
mov r9, rax
call qword [sym.imp.libcurl_4.dll_curl_msnprintf]
mov r11, qword [rsp + 0xa8]
mov r10, qword [rsp + 0x78]
jmp 0x140017542
lea rax, [r14 + r14*4]
mov qword [rsp + 0x78], r10
lea r8, str._3lld
lea rax, [rax + rax*4]
shl rax, 2
cqo
idiv rcx
lea rcx, [rsp + 0xc2]
mov edx, 4
mov qword [rsp + 0x98], rcx
mov r9, rax
call qword [sym.imp.libcurl_4.dll_curl_msnprintf]
mov r10, qword [rsp + 0x78]
jmp 0x1400177d9
call fcn.14001e3f0
mov esi, eax
jmp 0x140017769