Function at 0x14000d210
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 [0x14010c1d0]
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 0x14000d250
mov rbx, qword [rdx]
mov ecx, 0x30
call fcn.1400a2ac0
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 0x14000d290
mov rdx, rbx
call fcn.14003d860
mov byte [r14 + 0x28], 0
lea rax, [rsp + 0xd8]
cmp rdi, rax
je 0x14000d2c2
mov rdx, qword [rdi]
mov qword [rdi], r14
test rdx, rdx
je 0x14000d2cb
jmp 0x14000d2c5
mov rdx, r14
call fcn.140024890
nop
mov rbx, qword [rdi]
cmp qword [rbx + 0x18], 0
je 0x14000d468
xorps xmm0, xmm0
movups xmmword [rsp + 0xc0], xmm0
lea rcx, [rbx + 8]
cmp qword [rcx + 0x18], 8
jb 0x14000d2f2
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 0x14000d353
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
lea r12, [0x14010ce88]
mov qword [rsp + 0x68], r12
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0xc0], xmm0
lea r14, [0x14010cdf0]
jmp 0x14000d369
lea r14, [0x14010cdf0]
mov qword [rsp + 0xc8], r14
lea r12, [0x14010ce88]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14000d378
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r15
cmp r15, 0xffffffffffffffff
je 0x14000d417
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 0x14000d413
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 0x14000d3fa
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 0x14000d417
xchg byte [rbx + 0x28], sil
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax + 8]
cmp qword [0x14010cdf8], rcx
jne 0x14000d4a6
cmp dword [rsp + 0xc0], 0
jne 0x14000d4a6
jmp 0x14000d43d
mov rax, rdi
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1400a2a50
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.140003d40
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.140003dd0
lea rdx, [0x140108cc0]
lea rcx, [rsp + 0x70]
call fcn.1400a51c0
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.140003dd0
lea rdx, [0x140108cc0]
lea rcx, [rsp + 0x98]
call fcn.1400a51c0
int3