Function at 0x14000d560
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rbx
lea rbp, [rax - 0x5f]
sub rsp, 0x88
cmp qword [0x140027050], 0
mov rbx, rcx
je 0x14000d80d
mov qword [rax + 8], rsi
lea rdx, str.logpath
mov qword [rax - 0x18], rdi
call fcn.14000c630
movdqa xmm1, xmmword [0x14001da70]
lea rdx, [rbp + 0x27]
mov rax, qword [rbx]
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
xor esi, esi
mov rcx, rbx
movdqu xmmword [rbp + 0x37], xmm1
mov word [rbp + 0x27], si
call qword [rax + 0x38]
test al, al
jne 0x14000d5ff
lea rdx, [0x140027768]
lea rcx, [rbp + 0x6f]
call fcn.14000e670
cmp qword [0x140027058], 0x10
lea rax, [0x140027040]
mov qword [0x140027050], rsi
lea rcx, [rbp + 0x6f]
cmovae rax, qword [0x140027040]
mov byte [rax], sil
call fcn.14000e6a0
jmp 0x14000d7ba
lea rcx, [rbp + 0x27]
call fcn.14000d9d0
cmp eax, 1
jne 0x14000d621
lea rdx, str.Unsafe_path
mov rcx, rbx
call fcn.14000c630
jmp 0x14000d7ba
cmp byte [0x1400277b8], sil
je 0x14000d646
lea rdx, str.before_trim
mov rcx, rbx
call fcn.14000c630
mov rax, qword [rbx]
lea rdx, [rbp + 0x27]
mov rcx, rbx
call qword [rax + 0x48]
lea rdx, str.about_to_open
mov rcx, rbx
call fcn.14000c630
cmp qword [rbp + 0x3f], 8
lea rcx, [rbp + 0x27]
mov qword [rsp + 0x30], rsi
cmovae rcx, qword [rbp + 0x27]
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov dword [rsp + 0x20], 4
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000d7ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000d6aa
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x14000d7b1
lea rdx, str.moved
mov rcx, rbx
call fcn.14000c630
movdqa xmm1, xmmword [0x14001ed00]
lea rdx, [0x140027768]
xorps xmm0, xmm0
lea rcx, [rbp + 0x77]
movups xmmword [rbp + 7], xmm0
mov byte [rbp + 7], sil
movdqu xmmword [rbp + 0x17], xmm1
call fcn.14000e670
movups xmm2, xmmword [rbp + 7]
lea rcx, [rbp + 0x77]
movups xmm3, xmmword [rbp + 0x17]
movups xmm0, xmmword [0x140027040]
movups xmm1, xmmword [0x140027050]
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm1
movups xmmword [0x140027040], xmm2
movups xmmword [0x140027050], xmm3
call fcn.14000e6a0
cmp qword [rbp + 0x1f], 0x10
lea rdx, [rbp + 7]
mov r8d, dword [rbp + 0x17]
lea r9, [rbp + 0x6f]
cmovae rdx, qword [rbp + 7]
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
lea rcx, str.failed_to_write
lea rdx, str.wrote
cmove rdx, rcx
mov rcx, rbx
call fcn.14000c630
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x14000d7b1
mov rcx, qword [rbp + 7]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d7ac
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d7ac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001af28
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp + 0x3f]
cmp rdx, 8
jb 0x14000d7fd
mov rcx, qword [rbp + 0x27]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d7f8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d7f8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001af28
mov rsi, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x80]
add rsp, 0x88
pop rbx
pop rbp
ret