Function at 0x14001c070
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x1400dd078]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rcx
cmp byte [rdx + 4], 0
je 0x14001c0aa
mov eax, dword [rcx + 0x20]
cmp dword [rdx], eax
jl 0x14001c2d2
mov r9, r8
mov r8, rdx
lea rdx, [0x1400c3be4]
lea rcx, [rbp - 0x29]
call fcn.14001bd10
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
lea rdi, [rbx + 0x40]
mov qword [rbp - 0x59], rdi
mov byte [rbp - 0x51], 1
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockShared
nop
mov rcx, qword [rbx + 0x30]
cmp rcx, 0xffffffffffffffff
jne 0x14001c1bb
test rdi, rdi
je 0x14001c2f5
mov rcx, rdi
call sub.KERNEL32.dll_ReleaseSRWLockShared
mov byte [rbp - 0x51], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
mov r15, rdi
mov qword [rbp - 0x39], rdi
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov byte [rbp - 0x31], 1
cmp qword [rbx + 0x30], 0xffffffffffffffff
jne 0x14001c199
mov r9d, 1
lea r8d, [r9 + 2]
mov rdx, rbx
lea rcx, [rbp - 0x69]
call fcn.14001aa50
mov r14, qword [rax]
mov qword [rax], 0xffffffffffffffff
mov rcx, qword [rbx + 0x30]
cmp rcx, 0xffffffffffffffff
je 0x14001c151
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x30], r14
mov rcx, qword [rbp - 0x69]
cmp rcx, 0xffffffffffffffff
je 0x14001c169
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rbx + 0x30]
cmp r14, 0xffffffffffffffff
je 0x14001c199
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov r9d, 0x10
lea r8, [rbp - 9]
lea edx, [r9 - 8]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
mov rax, qword [rbp - 9]
xchg qword [rbx + 0x38], rax
mov r15, qword [rbp - 0x39]
mov rcx, r15
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockShared
mov byte [rbp - 0x51], 1
mov rcx, qword [rbx + 0x30]
cmp rcx, 0xffffffffffffffff
je 0x14001c292
xor r14d, r14d
mov dword [rbp - 0x61], r14d
mov qword [rbp + 7], r14
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x1f], r14
mov qword [rbp + 0x17], 0xffffffffffffffff
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0x10
cmovae rdx, qword [rbp - 0x29]
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x61]
mov r8d, dword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbp - 0x61]
lock xadd qword [rbx + 0x38], rax
mov rax, qword [rbx + 0x38]
cmp rax, qword [rbx + 0x28]
jbe 0x14001c292
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
lea r9d, [r14 + 0x10]
lea r8, [rbp - 0x49]
lea edx, [r14 + 8]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
mov rax, qword [rbp - 0x49]
xchg qword [rbx + 0x38], rax
mov rax, qword [rbx + 0x38]
cmp rax, qword [rbx + 0x28]
jbe 0x14001c292
test rdi, rdi
je 0x14001c2f5
mov rcx, rdi
call sub.KERNEL32.dll_ReleaseSRWLockShared
mov byte [rbp - 0x51], r14b
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x49], rdi
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov byte [rbp - 0x41], 1
lea r8d, [r14 + 3]
lea rdx, [rbx + 0x30]
mov rcx, rbx
call fcn.14001b020
nop
mov rcx, rdi
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockShared
xchg qword [rbx + 0x38], r14
mov rcx, rdi
call sub.KERNEL32.dll_ReleaseSRWLockShared
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x14001c2d2
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c2cd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c300
call fcn.14006235c
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400620b0
mov rbx, qword [rsp + 0x118]
add rsp, 0xd0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 1
call fcn.14001a100
nop
call fcn.14006b338
int3