Function at 0x140018760
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x1400b1008]
xor rax, rsp
mov qword [rbp + 0x47], rax
lea rcx, [0x1400d6920]
call fcn.14000d860
xor esi, esi
cmp dword [0x1400d6958], esi
jne 0x1400187c5
mov r8, qword [0x1400d6948]
mov rdx, qword [0x1400d6940]
sub r8, rdx
je 0x1400187c5
mov rax, qword [0x1400d6920]
test rax, rax
je 0x1400187c5
lea rcx, [0x1400d6920]
call rax
mov qword [0x1400d6920], rsi
mov rax, qword [0x1400d6930]
test rax, rax
je 0x1400187e1
lea rcx, [0x1400d6920]
call rax
mov qword [0x1400d6930], rsi
cmp dword [0x1400d6958], esi
jne 0x1400189d8
lea rax, [rbp - 0x69]
mov qword [rsp + 0xf0], rbx
mov qword [rbp - 9], rax
mov ecx, 0x1000
lea rax, [rbp - 0x59]
mov qword [rsp + 0xf8], rdi
mov qword [rbp - 1], rax
mov qword [rbp - 0x69], rsi
mov qword [rbp - 0x59], rsi
call fcn.14006bdc0
mov qword [rbp - 0x41], rsi
xorps xmm0, xmm0
mov qword [rbp - 0x31], rsi
xorps xmm1, xmm1
mov qword [rbp + 0x37], rsi
test rax, rax
jne 0x14001885f
mov qword [rbp - 0x49], rsi
mov qword [rbp - 0x39], rsi
movdqa xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], rsi
movdqa xmmword [rbp + 7], xmm1
movdqa xmmword [rbp + 0x17], xmm0
movdqa xmmword [rbp + 0x27], xmm1
mov dword [rbp - 0x11], 7
jmp 0x140018899
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
add rax, 0x1000
mov qword [rbp - 0x19], rax
lea rax, [0x14000c760]
mov qword [rbp - 0x49], rax
lea rax, [0x14000c840]
mov qword [rbp - 0x39], rax
mov dword [rbp - 0x11], esi
movdqa xmmword [rbp + 7], xmm0
movdqa xmmword [rbp + 0x17], xmm1
movdqa xmmword [rbp + 0x27], xmm0
lea rcx, [rbp - 0x49]
call fcn.14000d540
mov edx, 1
lea rcx, [rbp - 0x49]
call fcn.14000cae0
mov ebx, dword [0x1400d69a8]
lea rcx, [rbp - 0x49]
mov rdi, qword [0x1400d6af8]
mov edx, ebx
call fcn.14000d110
mov rax, qword [rbp - 0x19]
mov r8d, ebx
mov rcx, qword [rbp - 0x21]
mov rdx, rdi
sub rax, rcx
cmp rax, rbx
jae 0x1400188e9
lea rcx, [rbp - 0x49]
call fcn.14000c9d0
jmp 0x1400188f2
call fcn.140068bd0
add qword [rbp - 0x21], rbx
mov edx, 2
lea rcx, [rbp - 0x49]
call fcn.14000cae0
mov r8, qword [0x1400d69a8]
mov rdx, qword [0x1400d6af8]
call fcn.14001a120
mov edx, eax
lea rcx, [rbp - 0x49]
call fcn.14000cae0
lea rcx, [rbp - 0x49]
call fcn.14000d860
mov rdi, qword [rsp + 0xf8]
cmp dword [rbp - 0x11], esi
jne 0x140018954
mov r8, qword [rbp - 0x21]
mov rdx, qword [rbp - 0x29]
sub r8, rdx
je 0x140018954
mov rax, qword [rbp - 0x49]
test rax, rax
je 0x140018954
lea rcx, [rbp - 0x49]
call rax
mov qword [rbp - 0x49], rsi
mov rax, qword [rbp - 0x39]
test rax, rax
je 0x140018967
lea rcx, [rbp - 0x49]
call rax
mov qword [rbp - 0x39], rsi
cmp dword [rbp - 0x11], esi
jne 0x1400189c4
lea r8, [0x1400a62d4]
lea rdx, [0x1400d69b1]
lea rcx, [rbp - 0x61]
call fcn.14006aa10
test eax, eax
jne 0x1400189bb
mov r9, qword [rbp - 0x61]
lea edx, [rax + 1]
mov r8, qword [rbp - 0x59]
mov rcx, qword [rbp - 0x69]
call fcn.14006a7a0
cmp rax, qword [rbp - 0x59]
mov rcx, qword [rbp - 0x61]
sete bl
call fcn.140069e78
test bl, bl
je 0x1400189bb
lea rcx, [0x1400d69b0]
call fcn.140017d90
mov rcx, qword [rbp - 0x69]
call fcn.14006ac0c
mov rcx, qword [0x1400d6af8]
call fcn.14006ac0c
mov rbx, qword [rsp + 0xf0]
lea rcx, [0x1400d6ab8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14001a6d0
mov rsi, qword [rsp + 0x100]
add rsp, 0xe0
pop rbp
ret