Function at 0x140009b70
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov rax, qword [0x1401ca2e0]
xor rax, rsp
mov qword [rbp + 0x27], rax
movzx r14d, dx
mov rbx, rcx
mov edi, 0xffff
cmp di, dx
jne 0x140009bc6
xor eax, eax
cmp dx, di
cmove r14w, ax
movzx eax, r14w
jmp 0x140009e0a
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x140009c03
mov rax, qword [rcx + 0x58]
movsxd r9, dword [rax]
lea rdx, [r8 + r9*2]
cmp r8, rdx
jae 0x140009c03
lea ecx, [r9 - 1]
mov dword [rax], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], r14w
movzx eax, r14w
jmp 0x140009e0a
cmp qword [rcx + 0x80], 0
je 0x140009e07
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140009c42
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
sub rdx, rcx
sar rdx, 1
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp qword [rbx + 0x68], 0
jne 0x140009c6b
mov rdx, qword [rbx + 0x80]
movzx ecx, r14w
call fcn.1400d35c4
cmp ax, di
je 0x140009e07
movzx edi, r14w
jmp 0x140009e07
mov word [rbp - 0x19], r14w
mov edx, 0xf
mov qword [rbp + 0x1f], rdx
mov byte [rbp + 7], 0
xor ecx, ecx
mov qword [rbp + 7], rcx
mov qword [rbp + 0x17], 8
lea rax, [rbp + 7]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
mov rcx, qword [rbp + 7]
mov r9, qword [rbp + 0x1f]
nop dword [rax]
nop word [rax + rax]
lea rdx, [rbp + 7]
cmp r9, 0x10
cmovae rdx, rcx
lea r8, [rbp + 7]
cmovae r8, rcx
mov rcx, qword [rbx + 0x68]
mov r10, qword [rcx]
add rdx, qword [rbp + 0x17]
lea rax, [rbp - 0x11]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r8
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x17]
lea r8, [rbp - 0x19]
lea rdx, [rbx + 0x74]
call qword [r10 + 0x38]
test eax, eax
js 0x140009daf
cmp eax, 1
jg 0x140009d91
lea rax, [rbp + 7]
mov rcx, qword [rbp + 7]
mov r9, qword [rbp + 0x1f]
cmp r9, 0x10
cmovae rax, rcx
mov rsi, qword [rbp - 0x11]
sub rsi, rax
je 0x140009d59
lea rax, [rbp + 7]
cmp r9, 0x10
cmovae rax, rcx
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, rax
call fcn.1400d42b0
mov r9, qword [rbp + 0x1f]
mov rcx, qword [rbp + 7]
cmp rsi, rax
jne 0x140009db7
mov byte [rbx + 0x72], 1
lea rax, [rbp - 0x19]
cmp qword [rbp - 9], rax
jne 0x140009d8b
test rsi, rsi
jne 0x140009cb0
cmp qword [rbp + 0x17], 0x20
jae 0x140009db7
xor r8d, r8d
lea edx, [rsi + 8]
lea rcx, [rbp + 7]
call fcn.140005b80
jmp 0x140009c9a
movzx edi, r14w
jmp 0x140009db7
cmp eax, 3
jne 0x140009daf
mov rdx, qword [rbx + 0x80]
movzx ecx, word [rbp - 0x19]
call fcn.1400d35c4
cmp ax, di
je 0x140009daf
movzx edi, r14w
mov rcx, qword [rbp + 7]
mov r9, qword [rbp + 0x1f]
cmp r9, 0x10
jb 0x140009e07
lea rax, [r9 + 1]
cmp rax, 0x1000
jb 0x140009e02
test byte [rbp + 7], 0x1f
je 0x140009dd5
call fcn.1400c9cc0
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140009de4
call fcn.1400c9cc0
int3
sub rcx, rax
cmp rcx, 8
jae 0x140009df3
call fcn.1400c9cc0
int3
cmp rcx, 0x27
jbe 0x140009dff
call fcn.1400c9cc0
int3
mov rcx, rax
call fcn.14001de90
movzx eax, di
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400a7ab0
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret