Function at 0x216517a30
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x38
mov ecx, 0x30
lea r13, [0x21658b1fd]
call fcn.2165146c0
lea rcx, [0x21658b280]
mov r12, rax
lea rax, [0x217699ec0]
mov qword [r12], rax
mov qword [r12 + 0x10], r13
call fcn.216514be0
lea r9, [0x21658b20c]
mov rdx, r13
mov rcx, r12
mov qword [r12 + 0x18], rax
lea r8, [0x21658b216]
mov qword [rsp + 0x20], 0x35
call fcn.216517950
nop
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x148
movups xmmword [rsp + 0xa0], xmm6
movups xmmword [rsp + 0xb0], xmm7
movups xmmword [rsp + 0xc0], xmm8
movups xmmword [rsp + 0xd0], xmm9
movups xmmword [rsp + 0xe0], xmm10
movups xmmword [rsp + 0xf0], xmm11
movups xmmword [rsp + 0x100], xmm12
movups xmmword [rsp + 0x110], xmm13
movups xmmword [rsp + 0x120], xmm14
movups xmmword [rsp + 0x130], xmm15
cmp qword [0x217699bb8], 0
mov qword [rsp + 0x190], rcx
mov qword [rsp + 0x198], rdx
mov byte [rsp + 0x5f], 1
je 0x216517cee
mov rax, qword [0x217699ba8]
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x80], rsp
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
mov qword [0x217699ba8], rax
lea rax, [0x216517d70]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x68], 0
test rcx, rcx
je 0x216517de8
mov qword [rsp + 0x38], 0
cmp byte [rcx], 0
je 0x216517e20
nop dword [rax + rax]
add qword [rsp + 0x38], 1
mov rbx, qword [rsp + 0x190]
mov rax, qword [rsp + 0x38]
cmp byte [rbx + rax], 0
jne 0x216517b18
mov rdi, rax
cmp rax, 7
mov eax, 7
cmovge rax, rdi
mov qword [rsp + 0x40], rax
lea rdx, [rax + 0x21]
lea rcx, [0x2176970a0]
call fcn.216514970
mov rsi, qword [rsp + 0x38]
lea r11, [rax + 0x20]
mov rdx, rax
lea r10, [rax + 0x10]
mov qword [rax + 8], 1
movq xmm0, rsi
movhps xmm0, qword [rsp + 0x40]
movups xmmword [rax + 0x10], xmm0
mov rax, qword [rsp + 0x190]
lea rcx, [rax + 1]
mov rax, r11
sub rax, rcx
cmp rax, 0xe
jbe 0x216517df0
cmp rsi, 6
jbe 0x216517df0
lea rcx, [rsi + 1]
cmp rsi, 0xe
jbe 0x216517e33
mov r8, rcx
xor eax, eax
and r8, 0xfffffffffffffff0
nop dword [rax]
mov rsi, qword [rsp + 0x190]
movdqu xmm1, xmmword [rsi + rax]
movups xmmword [rdx + rax + 0x20], xmm1
add rax, 0x10
movups xmmword [rsp + 0x40], xmm1
cmp rax, r8
jne 0x216517bc0
mov r8, rcx
and r8, 0xfffffffffffffff0
mov rax, r8
cmp rcx, r8
je 0x216517cb2
mov r9, qword [rsp + 0x38]
sub rcx, r8
sub r9, r8
cmp r9, 6
jbe 0x216517c28
mov rbx, qword [rsp + 0x190]
mov r9, qword [rbx + r8]
mov qword [rdx + r8 + 0x20], r9
mov r8, rcx
and r8, 0xfffffffffffffff8
add rax, r8
cmp rcx, r8
je 0x216517cb2
mov rbx, qword [rsp + 0x190]
mov rdi, qword [rsp + 0x38]
movzx ecx, byte [rbx + rax]
mov byte [rdx + rax + 0x20], cl
lea rcx, [rax + 1]
cmp rdi, rcx
jl 0x216517cb2
movzx r8d, byte [rbx + rax + 1]
lea rcx, [rax + 2]
mov byte [rdx + rax + 0x21], r8b
cmp rdi, rcx
jl 0x216517cb2
movzx ecx, byte [rbx + rax + 2]
mov byte [r11 + rax + 2], cl
lea rcx, [rax + 3]
cmp rdi, rcx
jl 0x216517cb2
movzx r8d, byte [rbx + rax + 3]
lea rcx, [rax + 4]
mov byte [rdx + rax + 0x23], r8b
cmp rdi, rcx
jl 0x216517cb2
movzx r8d, byte [rbx + rax + 4]
lea rcx, [rax + 5]
mov byte [rdx + rax + 0x24], r8b
cmp rdi, rcx
jl 0x216517cb2
movzx r8d, byte [rbx + rax + 5]
lea rcx, [rax + 6]
mov byte [rdx + rax + 0x25], r8b
cmp rdi, rcx
jl 0x216517cb2
movzx eax, byte [rbx + rax + 6]
mov byte [rdx + rcx + 0x20], al
mov rcx, r10
call qword [0x217699bb8]
mov rax, qword [0x217699ba8]
cmp qword [rsp + 0x68], 0
mov byte [rsp + 0x5f], 0
mov rax, qword [rax]
mov qword [0x217699ba8], rax
je 0x216517cee
mov rcx, qword [0x217699ba0]
test rcx, rcx
je 0x216517e3d
call fcn.2165186d0
movzx eax, byte [rsp + 0x5f]
test al, al
jne 0x216517da9
movups xmm6, xmmword [rsp + 0xa0]
movups xmm7, xmmword [rsp + 0xb0]
movups xmm8, xmmword [rsp + 0xc0]
movups xmm9, xmmword [rsp + 0xd0]
movups xmm10, xmmword [rsp + 0xe0]
movups xmm11, xmmword [rsp + 0xf0]
movups xmm12, xmmword [rsp + 0x100]
movups xmm13, xmmword [rsp + 0x110]
movups xmm14, xmmword [rsp + 0x120]
movups xmm15, xmmword [rsp + 0x130]
add rsp, 0x148
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 2
call qword [fcn.216589340]
mov r8, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x190]
mov r9, rax
mov edx, 1
mov qword [rsp + 0x38], rax
call sub.msvcrt.dll_fwrite
mov rcx, qword [rsp + 0x38]
call fcn.216588c28
jmp 0x216517cfb
xor r10d, r10d
jmp 0x216517cb2
mov r8, qword [rsp + 0x38]
xor eax, eax
add r8, 1
nop dword [rax + rax]
mov rdi, qword [rsp + 0x190]
movzx ecx, byte [rdi + rax]
mov byte [rdx + rax + 0x20], cl
add rax, 1
cmp rax, r8
jne 0x216517e00
jmp 0x216517cb2
mov qword [rsp + 0x40], 7
mov edx, 0x28
jmp 0x216517b4a
xor r8d, r8d
xor eax, eax
jmp 0x216517c04
mov ecx, 0x30
call fcn.2165146c0
lea rdx, [0x217699e40]
lea rdi, [0x21658b21f]
mov qword [rsp + 0x38], rax
mov qword [rax], rdx
lea rcx, [0x21658b2c0]
mov qword [rax + 0x10], rdi
call fcn.216514be0
mov rcx, qword [rsp + 0x38]
lea r9, [0x21658b20c]
lea r8, [0x21658b216]
mov rdx, rdi
mov qword [rcx + 0x18], rax
mov qword [rsp + 0x20], 0x35
call fcn.216517950
nop
nop word cs:[rax + rax]