Function at 0x2166b6260
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x168
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0xd0], xmm7
movaps xmmword [rsp + 0xe0], xmm8
movaps xmmword [rsp + 0xf0], xmm9
movaps xmmword [rsp + 0x100], xmm10
movaps xmmword [rsp + 0x110], xmm11
movaps xmmword [rsp + 0x120], xmm12
movaps xmmword [rsp + 0x130], xmm13
movaps xmmword [rsp + 0x140], xmm14
movaps xmmword [rsp + 0x150], xmm15
cmp qword [0x2167e7b68], 0
mov qword [rsp + 0x1b0], rcx
mov qword [rsp + 0x1b8], rdx
mov byte [rsp + 0x7f], 1
je 0x2166b6594
lea rcx, [0x216720060]
lea rax, [0x2167200a0]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x40], rax
call sub.libgcc_s_seh_1.dll___emutls_get_address
mov rdi, rax
mov qword [rsp + 0x58], rax
mov rax, qword [rax]
cmp qword [rsp + 0x1b0], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x80]
mov qword [rdi], rax
lea rax, [0x2166b6610]
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rsp
je 0x2166b66d8
mov rax, qword [rsp + 0x1b0]
mov qword [rsp + 0x38], 0
cmp byte [rax], 0
je 0x2166b6710
nop dword [rax]
add qword [rsp + 0x38], 1
mov rbx, qword [rsp + 0x1b0]
mov rax, qword [rsp + 0x38]
cmp byte [rbx + rax], 0
jne 0x2166b6380
mov rsi, rax
mov eax, 7
cmp rsi, rax
cmovge rax, rsi
mov qword [rsp + 0x68], rax
add rax, 0x21
mov qword [rsp + 0x60], rax
lea rax, [0x2167200a0]
lea rcx, [0x2167200c0]
mov qword [rsp + 0x40], rax
call sub.libgcc_s_seh_1.dll___emutls_get_address
mov rdx, qword [rsp + 0x60]
mov rcx, rax
call fcn.2166b2a80
mov qword [rax + 8], 1
mov rdx, rax
lea r10, [rax + 0x10]
mov rax, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x38]
mov qword [r10 + 8], rax
mov rax, rdx
sub rax, qword [rsp + 0x1b0]
add rax, 0x1f
mov qword [rdx + 0x10], rbx
cmp rax, 0xe
jbe 0x2166b66e0
cmp rbx, 6
jbe 0x2166b66e0
lea rcx, [rbx + 1]
cmp rbx, 0xe
jbe 0x2166b6727
mov r8, rcx
xor eax, eax
and r8, 0xfffffffffffffff0
nop word cs:[rax + rax]
mov rsi, qword [rsp + 0x1b0]
movdqu xmm0, xmmword [rsi + rax]
movups xmmword [rdx + rax + 0x20], xmm0
add rax, 0x10
movaps xmmword [rsp + 0x40], xmm0
cmp r8, rax
jne 0x2166b6440
mov r8, rcx
and r8, 0xfffffffffffffff0
mov rax, r8
cmp rcx, r8
je 0x2166b653c
mov r9, qword [rsp + 0x38]
sub r9, r8
lea rcx, [r9 + 1]
cmp r9, 6
jbe 0x2166b64a9
mov rsi, qword [rsp + 0x1b0]
mov r9, qword [rsi + r8]
mov qword [rdx + r8 + 0x20], r9
mov r8, rcx
and r8, 0xfffffffffffffff8
add rax, r8
cmp rcx, r8
je 0x2166b653c
mov rdi, qword [rsp + 0x1b0]
movzx ecx, byte [rdi + rax]
mov rdi, qword [rsp + 0x38]
mov byte [rdx + rax + 0x20], cl
lea rcx, [rax + 1]
cmp rdi, rcx
jl 0x2166b653c
mov rsi, qword [rsp + 0x1b0]
lea rcx, [rax + 2]
movzx r8d, byte [rsi + rax + 1]
mov byte [rdx + rax + 0x21], r8b
cmp rdi, rcx
jl 0x2166b653c
movzx r8d, byte [rsi + rax + 2]
lea rcx, [rax + 3]
mov byte [rdx + rax + 0x22], r8b
cmp rdi, rcx
jl 0x2166b653c
movzx r8d, byte [rsi + rax + 3]
lea rcx, [rax + 4]
mov byte [rdx + rax + 0x23], r8b
cmp rdi, rcx
jl 0x2166b653c
movzx r8d, byte [rsi + rax + 4]
lea rcx, [rax + 5]
mov byte [rdx + rax + 0x24], r8b
cmp rdi, rcx
jl 0x2166b653c
movzx r8d, byte [rsi + rax + 5]
lea rcx, [rax + 6]
mov byte [rdx + rax + 0x25], r8b
cmp rdi, rcx
jl 0x2166b653c
movzx eax, byte [rsi + rax + 6]
mov byte [rdx + rcx + 0x20], al
lea rax, [0x2167200a0]
mov rcx, r10
mov qword [rsp + 0x40], rax
call qword [0x2167e7b68]
mov rsi, qword [rsp + 0x58]
mov byte [rsp + 0x7f], 0
cmp qword [rsp + 0x88], 0
mov rax, qword [rsi]
mov rax, qword [rax]
mov qword [rsi], rax
je 0x2166b6594
lea rax, [0x2167200a0]
mov rcx, rax
mov qword [rsp + 0x40], rax
call sub.libgcc_s_seh_1.dll___emutls_get_address
mov rcx, qword [rax]
test rcx, rcx
je 0x2166b6731
call fcn.2166b6f90
movzx eax, byte [rsp + 0x7f]
test al, al
jne 0x2166b6650
movaps xmm6, xmmword [rsp + 0xc0]
movaps xmm7, xmmword [rsp + 0xd0]
movaps xmm8, xmmword [rsp + 0xe0]
movaps xmm9, xmmword [rsp + 0xf0]
movaps xmm10, xmmword [rsp + 0x100]
movaps xmm11, xmmword [rsp + 0x110]
movaps xmm12, xmmword [rsp + 0x120]
movaps xmm13, xmmword [rsp + 0x130]
movaps xmm14, xmmword [rsp + 0x140]
movaps xmm15, xmmword [rsp + 0x150]
add rsp, 0x168
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [0x216720060]
mov ecx, 2
mov qword [rsp + 0x50], rax
lea rax, [0x2167200a0]
mov qword [rsp + 0x40], rax
call qword [fcn.21671f950]
lea rdx, [0x216720060]
mov r8, qword [rsp + 0x1b8]
mov r9, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x50], rdx
mov rcx, qword [rsp + 0x1b0]
lea rdx, [0x2167200a0]
mov qword [rsp + 0x40], rdx
mov edx, 1
call sub.msvcrt.dll_fwrite
lea rax, [0x216720060]
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
lea rax, [0x2167200a0]
mov qword [rsp + 0x40], rax
call sub.msvcrt.dll_fflush
jmp 0x2166b65a1
xor r10d, r10d
jmp 0x2166b653c
mov r8, qword [rsp + 0x38]
xor eax, eax
add r8, 1
nop dword [rax + rax]
mov rdi, qword [rsp + 0x1b0]
movzx ecx, byte [rdi + rax]
mov byte [rdx + rax + 0x20], cl
add rax, 1
cmp rax, r8
jne 0x2166b66f0
jmp 0x2166b653c
mov qword [rsp + 0x60], 0x28
mov qword [rsp + 0x68], 7
jmp 0x2166b63b6
xor r8d, r8d
xor eax, eax
jmp 0x2166b6485
lea rcx, [0x2167200c0]
call sub.libgcc_s_seh_1.dll___emutls_get_address
mov rcx, rax
mov edx, 0x30
call fcn.2166b27f0
lea rdx, [0x2167e7b80]
lea rdi, str.ReraiseDefect
mov qword [rsp + 0x38], rax
mov qword [rax], rdx
lea rcx, [0x2167e2000]
mov qword [rax + 0x10], rdi
call fcn.2166b2f40
mov rcx, qword [rsp + 0x38]
lea r9, str.fatal.rce
lea r8, str.xwpdikek
mov rdx, rdi
mov qword [rcx + 0x18], rax
mov qword [rsp + 0x20], 0x35
call fcn.2166b6050
nop
nop dword [rax]