Function at 0x14000a490
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rsi, [0x140014440]
mov ebx, 0x2b
lea r13, [0x1400190a0]
mov r12, rdx
test rdx, rdx
jns 0x140009528
mov edx, 0x50
mov rcx, r13
call fcn.140003fb0
mov rdx, qword [0x140014b60]
xor ecx, ecx
mov r9d, 0x18
mov qword [rax], 0
lea r12, [rax + 0x10]
mov r8d, 1
mov qword [rax + 0x10], rdx
xor edx, edx
mov qword [rax + 8], 0
mov qword [rax + 0x18], 0
mov qword [rax + 0x30], 0
mov qword [rax + 0x38], 0
mov qword [rax + 0x40], 0
mov qword [rax + 0x48], 0
lea rax, str.IndexDefect
mov qword [r12 + 0x18], rbx
mov rbx, rcx
mov qword [r12 + 0x10], rax
mov qword [r12 + 0x20], rsi
mov qword [rsp + 0x20], 8
call fcn.140008500
add rbx, 1
mov qword [r12 + 0x30], rax
jno 0x140009710
call fcn.140006ab0
mov rcx, r12
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140009300
lea r13, [rsp + 0x40]
mov rdx, rcx
mov rcx, r13
call fcn.140002f60
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
cmp byte [0x14001bb40], 0
jne 0x1400096c0
mov rdx, r12
mov rcx, r13
call fcn.140002f60
mov r12, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
cmp byte [0x14001bb40], 0
jne 0x1400096c0
lea rdx, [rbx + r12 + 0x13]
mov rcx, r13
call fcn.140008060
mov rbp, qword [rsp + 0x40]
mov r9, qword [rsp + 0x48]
mov edx, 0x2078
mov rdi, rbp
lea r13, [rbp + r9 + 8]
mov rsi, r9
add rdi, 6
mov dword [r13], 0x65646e69
mov word [r13 + 4], dx
mov byte [r13 + 6], 0
jo 0x140009760
lea r13, [rbp + r9 + 0xe]
test rbx, rbx
jle 0x1400095fb
mov r8, rbx
add r8, 1
jo 0x140009777
mov qword [rsp + 0x38], r9
test r8, r8
js 0x140009698
lea rdx, [r14 + 8]
mov rcx, r13
call sub.msvcrt.dll_memcpy
add rbx, rdi
mov r9, qword [rsp + 0x38]
jo 0x140009777
lea r13, [rbx + r9 + 8]
mov rdi, rbx
movabs rax, 0x206e6920746f6e20
mov rbx, rdi
mov dword [r13 + 8], 0x2e2e2030
mov qword [r13], rax
add rbx, 0xd
mov eax, 0x20
mov word [r13 + 0xc], ax
jo 0x140009740
test r12, r12
jle 0x14000965d
mov r8, r12
add r8, 1
jo 0x14000978b
test r8, r8
js 0x1400096e8
lea rcx, [rbx + r9 + 8]
lea rdx, [r15 + 8]
call sub.msvcrt.dll_memcpy
add r12, rbx
jo 0x14000978b
mov rbx, r12
lea r13, [0x1400190a0]
test r15, r15
je 0x140009670
test byte [r15 + 7], 0x40
je 0x1400096d8
test r14, r14
je 0x14000946f
test byte [r14 + 7], 0x40
jne 0x14000946f
mov rdx, r14
mov rcx, r13
call fcn.1400052b0
jmp 0x14000946f
movabs r8, 0x7fffffffffffffff
xor edx, edx
movabs rcx, 0x8000000000000000
call fcn.140007310
mov r9, qword [rsp + 0x38]
jmp 0x1400095fb
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, r15
mov rcx, r13
call fcn.1400052b0
jmp 0x140009670
movabs r8, 0x7fffffffffffffff
xor edx, edx
movabs rcx, 0x8000000000000000
call fcn.140007310
jmp 0x14000965d
add rax, 8
lea rsi, str.sysFatal
mov qword [r12 + 0x28], rbx
mov qword [rax], rsi
lea rsi, str.fatal.nim
mov qword [rax + 8], 0x35
mov qword [rax + 0x10], rsi
jmp 0x14000950d
mov qword [rsp + 0x38], r9
mov rbx, rdi
call fcn.140006ab0
mov r9, qword [rsp + 0x38]
jmp 0x140009628
mov qword [rsp + 0x38], r9
mov rdi, rbp
call fcn.140006ab0
mov r9, qword [rsp + 0x38]
jmp 0x1400095b9
mov qword [rsp + 0x38], r9
call fcn.140006ab0
mov r9, qword [rsp + 0x38]
jmp 0x1400095fb
call fcn.140006ab0
jmp 0x14000965d
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbp, qword [fcn.140012870]
xor r12d, r12d
mov rsi, rcx
mov rbx, rdx
lea rdi, [rsp + 0x20]
jmp 0x14000a4c2
add r12, 1
jo 0x14000a570
cmp r12, rbx
jge 0x14000a510
test r12, r12
js 0x14000a558
mov r13, r12
mov ecx, 1
call rbp
shl r13, 4
xor r8d, r8d
mov rdx, rdi
add r13, rsi
mov rcx, rax
movdqu xmm0, xmmword [r13]
movaps xmmword [rsp + 0x20], xmm0
call fcn.14000a340
cmp byte [0x14001bb40], 0
je 0x14000a4b8
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rbx, qword [fcn.140012870]
mov ecx, 1
call rbx
mov r8d, 1
mov edx, 1
lea rcx, [0x1400142b8]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbx
mov rcx, rax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.140012160
lea rdx, [rbx - 1]
mov rcx, r12
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp 0x140009440
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.140006ab0