Function at 0x14000d2b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xf0
mov rax, qword [0x14010c1f0]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x50], rcx
xor esi, esi
mov qword [rcx], rsi
cmp qword [rdx + 0x18], 8
jb 0x14000d2f0
mov rbx, qword [rdx]
mov ecx, 0x30
call fcn.1400a36b0
mov r14, rax
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rsi
mov qword [rax + 0x28], rsi
mov qword [rax], 0xffffffffffffffff
lea rcx, [rax + 8]
mov qword [rcx], rsi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 7
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rbx + r8*2], 0
jne 0x14000d330
mov rdx, rbx
call fcn.14003d900
mov byte [r14 + 0x28], 0
lea rax, [rsp + 0xd8]
cmp rdi, rax
je 0x14000d362
mov rdx, qword [rdi]
mov qword [rdi], r14
test rdx, rdx
je 0x14000d36b
jmp 0x14000d365
mov rdx, r14
call fcn.140024930
nop
mov rbx, qword [rdi]
cmp qword [rbx + 0x18], 0
je 0x14000d508
xorps xmm0, xmm0
movups xmmword [rsp + 0xc0], xmm0
lea rcx, [rbx + 8]
cmp qword [rcx + 0x18], 8
jb 0x14000d392
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0xffffffffffffffff
mov dword [rsp + 0x28], 0x4000000
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x14000d3f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
lea r12, [0x14010cea8]
mov qword [rsp + 0x68], r12
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0xc0], xmm0
lea r14, [0x14010ce10]
jmp 0x14000d409
lea r14, [0x14010ce10]
mov qword [rsp + 0xc8], r14
lea r12, [0x14010cea8]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14000d418
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r15
cmp r15, 0xffffffffffffffff
je 0x14000d4b7
mov dword [rsp + 0x20], esi
mov r9d, 4
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LockFile]
test eax, eax
je 0x14000d4b3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0xd8], eax
mov dword [rsp + 0xd0], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0xd0]
mov r8d, 0x10
lea rdx, [rsp + 0xd8]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000d49a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], r12
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0xc0], xmm0
mov dword [rsp + 0xc0], esi
mov qword [rsp + 0xc8], r14
mov eax, 1
xchg byte [rbx + 0x28], al
jmp 0x14000d4b7
xchg byte [rbx + 0x28], sil
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax + 8]
cmp qword [0x14010ce18], rcx
jne 0x14000d546
cmp dword [rsp + 0xc0], 0
jne 0x14000d546
jmp 0x14000d4dd
mov rax, rdi
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1400a3640
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov edx, 0x57
lea rcx, [rsp + 0x60]
call fcn.140003d50
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x40], xmm0
lea r8, str.file_path_is_empty
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.140003de0
lea rdx, [0x140108e60]
lea rcx, [rsp + 0x70]
call fcn.1400a5db0
movaps xmm0, xmmword [rsp + 0xc0]
movdqa xmmword [rsp + 0x40], xmm0
lea r8, str.failed_to_lock
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x98]
call fcn.140003de0
lea rdx, [0x140108e60]
lea rcx, [rsp + 0x98]
call fcn.1400a5db0
int3