Function at 0x140072960
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0x80
mov rax, qword [0x140112ac0]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rcx + 0x70], 0
mov rbp, rcx
je 0x140072dd7
cmp byte [rcx + 0x79], 0
je 0x140072dd7
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 8]
cmp eax, 0xffffffff
jne 0x1400729a5
xor al, al
jmp 0x140072b6d
xor ecx, ecx
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0xa0], rsi
mov edx, 0xf
mov qword [rsp + 0xa8], rdi
mov byte [rsp + 0x40], 0
cmp rdx, 0x10
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x58], rdx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x50], 8
cmovae rax, rcx
mov qword [rsp + 0x70], r13
xor r13d, r13d
mov byte [rax + 8], cl
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x40]
cmp r9, 0x10
jb 0x140072a13
mov rdi, r8
test r8, r8
je 0x140072a44
jmp 0x140072a18
lea rdi, [rsp + 0x40]
cmp r9, 0x10
lea rax, [rsp + 0x40]
cmovae rax, r8
cmp rax, rdi
ja 0x140072a44
mov rax, qword [rsp + 0x50]
cmp r9, 0x10
lea rcx, [rsp + 0x40]
cmovae rcx, r8
add rcx, rax
cmp rdi, rcx
jbe 0x140072a53
call fcn.1400abd34
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
cmp rax, 0xfffffffffffffffc
je 0x140072a87
mov rax, qword [rsp + 0x50]
cmp r9, 0x10
lea rcx, [rsp + 0x40]
cmovae rcx, r8
add rcx, rax
cmp rdi, rcx
jb 0x140072a87
call fcn.1400abd34
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
cmp r9, 0x10
jb 0x140072a9c
mov rbx, r8
test r8, r8
je 0x140072acd
jmp 0x140072aa1
lea rbx, [rsp + 0x40]
cmp r9, 0x10
lea rax, [rsp + 0x40]
cmovae rax, r8
cmp rax, rbx
ja 0x140072acd
mov rax, qword [rsp + 0x50]
cmp r9, 0x10
lea rcx, [rsp + 0x40]
cmovae rcx, r8
add rcx, rax
cmp rbx, rcx
jbe 0x140072adc
call fcn.1400abd34
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
cmp rax, 0xfffffffffffffffc
je 0x140072b06
mov rax, qword [rsp + 0x50]
cmp r9, 0x10
lea rcx, [rsp + 0x40]
cmovae rcx, r8
add rcx, rax
cmp rbx, rcx
jb 0x140072b06
call fcn.1400abd34
mov rcx, qword [rbp + 0x70]
lea rdx, [rsp + 0x30]
lea r9, [rdi + rsi]
mov rax, qword [rcx]
mov qword [rsp + 0x20], rdx
lea rdx, [rbp + 0x7c]
mov r8, rbx
call qword [rax + 0x30]
test eax, eax
je 0x140072b83
sub eax, 1
je 0x140072b87
sub eax, 2
jne 0x140072da9
cmp qword [rsp + 0x58], 0x10
jb 0x140072b49
mov rcx, qword [rsp + 0x40]
call fcn.1400ab7f0
mov al, 1
mov r12, qword [rsp + 0x78]
mov rdi, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x98]
mov r13, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400ac220
add rsp, 0x80
pop rbp
ret
mov byte [rbp + 0x79], r13b
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x40]
cmp r9, 0x10
jb 0x140072ba1
mov rbx, r8
test r8, r8
je 0x140072bd2
jmp 0x140072ba6
lea rbx, [rsp + 0x40]
cmp r9, 0x10
lea rax, [rsp + 0x40]
cmovae rax, r8
cmp rax, rbx
ja 0x140072bd2
mov rax, qword [rsp + 0x50]
cmp r9, 0x10
lea rcx, [rsp + 0x40]
cmovae rcx, r8
add rcx, rax
cmp rbx, rcx
jbe 0x140072be1
call fcn.1400abd34
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
cmp rax, 0xfffffffffffffffc
je 0x140072c15
mov rax, qword [rsp + 0x50]
cmp r9, 0x10
lea rcx, [rsp + 0x40]
cmovae rcx, r8
add rcx, rax
cmp rbx, rcx
jb 0x140072c15
call fcn.1400abd34
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x30]
sub rdi, rbx
je 0x140072cc7
cmp r9, 0x10
jb 0x140072c33
mov rbx, r8
test r8, r8
je 0x140072c64
jmp 0x140072c38
lea rbx, [rsp + 0x40]
cmp r9, 0x10
lea rax, [rsp + 0x40]
cmovae rax, r8
cmp rax, rbx
ja 0x140072c64
mov rax, qword [rsp + 0x50]
cmp r9, 0x10
lea rcx, [rsp + 0x40]
cmovae rcx, r8
add rcx, rax
cmp rbx, rcx
jbe 0x140072c73
call fcn.1400abd34
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
cmp rax, 0xfffffffffffffffc
je 0x140072c9d
mov rax, qword [rsp + 0x50]
cmp r9, 0x10
lea rdx, [rsp + 0x40]
cmovae rdx, r8
add rdx, rax
cmp rbx, rdx
jb 0x140072c9d
call fcn.1400abd34
mov r9, qword [rbp + 0x88]
mov r8, rdi
mov edx, 1
mov rcx, rbx
call fcn.1400b218c
cmp rdi, rax
jne 0x140072da9
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x40]
cmp byte [rbp + 0x79], r13b
je 0x140072dc2
test rdi, rdi
jne 0x140072a03
or rax, 0xffffffffffffffff
sub rax, qword [rsp + 0x50]
cmp rax, 8
ja 0x140072cf8
call fcn.1400a9e14
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rbx, 8
cmp rbx, 0xfffffffffffffffe
jbe 0x140072d16
call fcn.1400a9e14
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x40]
cmp r9, rbx
jae 0x140072d80
mov r8, qword [rsp + 0x50]
lea rcx, [rsp + 0x38]
mov rdx, rbx
call fcn.140002c20
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x40]
test rbx, rbx
je 0x140072a03
mov rax, qword [rsp + 0x50]
cmp r9, 0x10
lea rcx, [rsp + 0x40]
cmovae rcx, r8
xor edx, edx
mov qword [rcx + rax], rdx
cmp qword [rsp + 0x58], 0x10
lea rax, [rsp + 0x40]
cmovae rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rbx
mov byte [rax + rbx], dl
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x40]
jmp 0x140072a03
test rbx, rbx
jne 0x140072d37
cmp r9, 0x10
lea rax, [rsp + 0x40]
mov qword [rsp + 0x50], r13
cmovae rax, r8
mov byte [rax], r13b
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x40]
jmp 0x140072a03
cmp qword [rsp + 0x58], 0x10
jb 0x140072dbb
mov rcx, qword [rsp + 0x40]
call fcn.1400ab7f0
xor al, al
jmp 0x140072b4b
cmp r9, 0x10
jb 0x140072dd0
mov rcx, r8
call fcn.1400ab7f0
mov al, 1
jmp 0x140072b4b
mov al, 1
jmp 0x140072b6d