Function at 0x140026e30
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [r11 - 0x78], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x1400cfdf0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r15, r8
mov r14, rdx
mov rdi, rcx
mov qword [r11 - 0x50], rdx
mov qword [r11 - 0x48], r8
xor ebp, ebp
mov qword [r11 - 0x68], rbp
mov qword [r11 - 0x58], rbp
lea r8, [0x14009a928]
mov rdx, qword [rdx]
lea rcx, [r11 - 0x68]
call fcn.140068b14
mov rcx, qword [rsp + 0x40]
test rcx, rcx
jne 0x140026efd
mov r14, qword [r14]
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [r14 - 8], eax
sub eax, 1
jg 0x140026ec8
mov rdi, qword [r14 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14000dba0]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
nop
mov r14, qword [r15]
lock xadd dword [r14 - 8], esi
sub esi, 1
jg 0x140026ef3
mov rdi, qword [r14 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14000dba0]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
mov eax, 2
jmp 0x14002714b
xor edx, edx
lea r8d, [rdx + 2]
call fcn.1400691fc
mov rcx, qword [rsp + 0x40]
call fcn.140069754
movsxd rbx, eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.1400691fc
mov rcx, rbx
call fcn.14004e500
mov r13, rax
test rax, rax
jne 0x140026fa7
mov rcx, qword [rsp + 0x40]
call fcn.140068f88
nop
mov r14, qword [r14]
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [r14 - 8], eax
sub eax, 1
jg 0x140026f72
mov rdi, qword [r14 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14000dba0]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
nop
mov r14, qword [r15]
lock xadd dword [r14 - 8], esi
sub esi, 1
jg 0x140026f9d
mov rdi, qword [r14 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14000dba0]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
mov eax, 1
jmp 0x14002714b
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8d, 1
mov rdx, rbx
mov rcx, r13
call fcn.140068e5c
mov rbx, rax
mov esi, 0xffffffff
test eax, eax
jle 0x1400270d3
mov dword [rsp + 0x48], ebp
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, ebx
mov rdx, r13
lea rcx, [rdi + 0x98]
call fcn.14001d640
mov ecx, dword [rsp + 0x48]
call fcn.14004e500
mov r12, rax
test rax, rax
je 0x1400270d3
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, r12
mov r8d, ebx
mov rdx, r13
lea rcx, [rdi + 0x98]
call fcn.14001d640
test eax, eax
jne 0x1400270cb
mov rcx, qword [rsp + 0x40]
call fcn.140068f88
mov qword [rsp + 0x40], rbp
mov rax, qword [r15]
mov rcx, r14
cmp dword [rax - 0x10], ebp
cmovg rcx, r15
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.14001e050
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
lea r8, [0x1400992e8]
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140068b14
mov r9, qword [rsp + 0x50]
test r9, r9
je 0x14002709d
mov r8d, dword [rsp + 0x48]
lea edx, [rsi + 2]
mov rcx, r12
call fcn.1400699ac
mov rcx, qword [rsp + 0x50]
call fcn.140068f88
lea rbp, [rbx - 0x18]
mov eax, esi
lock xadd dword [rbp + 0x10], eax
sub eax, 1
jg 0x1400270c9
mov rdi, qword [rbp]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14000dba0]
mov rdx, rbp
mov rcx, rdi
call rbx
xor ebp, ebp
mov rcx, r12
call fcn.14004d92c
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400270e7
call fcn.140068f88
mov qword [rsp + 0x40], rbp
mov rcx, r13
call fcn.14004d92c
nop
mov r14, qword [r14]
mov eax, esi
lock xadd dword [r14 - 8], eax
sub eax, 1
jg 0x14002711e
mov rdi, qword [r14 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14000dba0]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
nop
mov r14, qword [r15]
lock xadd dword [r14 - 8], esi
sub esi, 1
jg 0x140027149
mov rdi, qword [r14 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14000dba0]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14004e4a0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret