Function at 0x14000a6dc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2d10]
mov eax, 0x2e10
call fcn.14002bce0
sub rsp, rax
mov rax, qword [0x14003b008]
xor rax, rsp
mov qword [rbp + 0x2d08], rax
xor ebx, ebx
mov qword [rbp - 0x78], r9
lea r8, [rbp - 0x70]
mov dword [rsp + 0x40], ebx
mov esi, ebx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x58], rbx
mov r15d, edx
mov qword [rsp + 0x50], rbx
mov rdi, rcx
call fcn.14000a31c
test eax, eax
jne 0x14000a747
xor eax, eax
jmp 0x14000aa44
mov r14, qword [rbp - 0x50]
test r14, r14
jne 0x14000a75a
mov eax, 1
jmp 0x14000aa44
mov edx, r15d
mov rcx, rdi
call fcn.14000a2c8
test eax, eax
jne 0x14000a750
test byte [rbp - 0x64], 0x21
jne 0x14000a740
mov eax, 0xfff7
test word [rbp - 0x62], ax
jne 0x14000a740
mov r15, qword [rbp - 0x38]
lea r8, [rbp + 0x2ce0]
mov rcx, qword [rdi + 0x60]
mov rdx, r15
mov r9d, 0x1e
call qword [rdi + 0x48]
cmp rax, 0x1e
jne 0x14000a740
cmp dword [rbp + 0x2ce0], 0x4034b50
jne 0x14000a740
movzx eax, word [rbp + 0x2cfc]
movzx ecx, word [rbp + 0x2cfa]
add rax, r15
add rcx, 0x1e
add rcx, rax
mov qword [rsp + 0x48], rcx
lea rax, [rcx + r14]
cmp rax, qword [rdi]
ja 0x14000a740
mov rax, qword [rdi + 0x68]
mov r15d, 1
mov rdx, qword [rax + 0x80]
test rdx, rdx
je 0x14000a800
lea r10, [rdx + rcx]
mov r13, r14
mov rdx, r14
mov qword [rsp + 0x60], r10
mov qword [rsp + 0x70], rdx
mov r12, rbx
jmp 0x14000a83f
mov rcx, qword [rdi + 0x40]
mov eax, 0x10000
cmp r14, rax
mov rdx, r15
cmovb rax, r14
mov r8, rax
mov qword [rsp + 0x70], rax
call qword [rdi + 0x28]
mov qword [rsp + 0x60], rax
mov r10, rax
test rax, rax
je 0x14000a740
mov rcx, qword [rsp + 0x48]
mov r13, rbx
mov rdx, qword [rsp + 0x70]
mov r12, r14
cmp word [rbp - 0x62], bx
je 0x14000a9b0
mov rcx, qword [rdi + 0x40]
mov r8d, 0x8000
mov rdx, r15
mov dword [rbp + 0x1e0], ebx
call qword [rdi + 0x28]
mov qword [rsp + 0x50], rax
mov r14, rax
test rax, rax
jne 0x14000a874
or esi, 0xffffffff
jmp 0x14000aa15
mov r14, qword [rsp + 0x48]
mov rax, rbx
mov rsi, qword [rsp + 0x50]
mov rcx, rax
and ecx, 0x7fff
lea rax, [rcx + rsi]
mov qword [rbp - 0x80], rax
mov eax, 0x8000
sub rax, rcx
mov qword [rsp + 0x48], rax
test r13, r13
jne 0x14000a8e5
mov rax, qword [rdi + 0x68]
cmp qword [rax + 0x80], rbx
jne 0x14000a8e5
cmp qword [rsp + 0x70], r12
mov r13, r12
mov r8, qword [rsp + 0x60]
mov rdx, r14
cmovb r13, qword [rsp + 0x70]
mov rcx, qword [rdi + 0x60]
mov r9, r13
call qword [rdi + 0x48]
cmp rax, r13
jne 0x14000aa0d
add r14, r13
mov qword [rsp + 0x68], rbx
sub r12, r13
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x78]
mov rax, r12
mov qword [rsp + 0x78], r13
neg rax
mov r9, rsi
lea rax, [rsp + 0x48]
sbb ecx, ecx
add rdx, qword [rsp + 0x60]
and ecx, 2
mov dword [rsp + 0x30], ecx
lea rcx, [rbp + 0x1e0]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x20], rax
call fcn.140005730
sub r13, qword [rsp + 0x78]
mov esi, eax
mov rax, qword [rsp + 0x68]
add rax, qword [rsp + 0x78]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x48], rbx
je 0x14000a994
mov r9, qword [rbp - 0x78]
mov rdx, r15
mov r8, qword [rsp + 0x48]
mov rcx, qword [rbp - 0x80]
call fcn.1400185b0
cmp rax, qword [rsp + 0x48]
jne 0x14000aa0d
mov r8, qword [rsp + 0x48]
mov rdx, qword [rbp - 0x80]
mov ecx, dword [rsp + 0x40]
call fcn.1400056b0
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x58]
add rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
cmp rax, qword [rbp - 0x48]
ja 0x14000aa0d
jmp 0x14000a999
mov rax, qword [rsp + 0x58]
cmp esi, r15d
je 0x14000a87c
cmp esi, 2
jne 0x14000aaec
jmp 0x14000a87c
mov rax, qword [rdi + 0x68]
cmp qword [rax + 0x80], rbx
je 0x14000a9f6
mov r9, qword [rbp - 0x78]
mov r8, r14
mov rdx, r15
mov rcx, r10
call fcn.1400185b0
cmp rax, r14
je 0x14000a9d9
or esi, 0xffffffff
jmp 0x14000a9ec
mov rdx, qword [rsp + 0x60]
mov r8, r14
xor ecx, ecx
call fcn.1400056b0
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x58], r14
jmp 0x14000aaec
test r12, r12
jne 0x14000aa73
mov rax, rbx
cmp rax, qword [rbp - 0x48]
jne 0x14000aa0d
mov eax, dword [rsp + 0x40]
cmp eax, dword [rbp - 0x58]
je 0x14000aa10
or esi, 0xffffffff
mov r14, qword [rsp + 0x50]
mov rax, qword [rdi + 0x68]
cmp qword [rax + 0x80], rbx
jne 0x14000aa2e
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rdi + 0x40]
call qword [rdi + 0x30]
test r14, r14
je 0x14000aa3d
mov rcx, qword [rdi + 0x40]
mov rdx, r14
call qword [rdi + 0x30]
test esi, esi
sete bl
mov eax, ebx
mov rcx, qword [rbp + 0x2d08]
xor rcx, rsp
call fcn.140012de0
mov rbx, qword [rsp + 0x2e60]
add rsp, 0x2e10
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r10, qword [rsp + 0x60]
cmp rdx, r12
mov r14, r12
mov r8, r10
cmovb r14, rdx
mov rdx, rcx
mov rcx, qword [rdi + 0x60]
mov r9, r14
call qword [rdi + 0x48]
cmp rax, r14
jne 0x14000aafe
mov rdx, qword [rsp + 0x60]
mov r8, r14
mov ecx, dword [rsp + 0x40]
call fcn.1400056b0
mov r9, qword [rbp - 0x78]
mov r8, r14
mov rcx, qword [rsp + 0x60]
mov rdx, r15
mov dword [rsp + 0x40], eax
call fcn.1400185b0
cmp rax, r14
jne 0x14000aae9
mov rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x58]
add rcx, r14
mov rdx, qword [rsp + 0x70]
add rax, r14
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x58], rax
sub r12, r14
jne 0x14000aa6e
jmp 0x14000a9fe
or esi, 0xffffffff
test esi, esi
jne 0x14000aa10
mov rax, qword [rsp + 0x58]
jmp 0x14000a9fe
or esi, 0xffffffff
mov r14, rbx
jmp 0x14000aa15