Function at 0x1400ecd80
Capabilities:
Check if file exists
Get file attributes
Set file attributes
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x100
lea rbp, [rsp + 0x40]
mov qword [rbp + 0xb0], 0xfffffffffffffffe
mov rax, qword [0x1401f3f10]
xor rax, rbp
mov qword [rbp + 0xb8], rax
mov byte [rbp], 0
call fcn.140015130
mov dword [rbp + 0x2c], eax
mov rax, qword [rbp + 0xd0]
add rax, 8
mov rcx, rax
call fcn.140030730
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xffffffff
je 0x1400ece1a
mov eax, dword [rbp + 4]
and eax, 1
test eax, eax
je 0x1400ece1a
mov eax, dword [rbp + 4]
and eax, 0xfffffffe
mov dword [rbp + 0x30], eax
mov rcx, qword [rbp + 0xd0]
add rcx, 8
call fcn.140030730
mov ecx, dword [rbp + 0x30]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rax, qword [rbp + 0xd0]
add rax, 8
mov rdx, rax
lea rcx, [rbp + 0x60]
call fcn.1400300a0
nop
mov edx, 0x104
lea rcx, [rbp + 0x60]
call fcn.140030800
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edx, 0xffffffff
lea rcx, [rbp + 0x60]
call fcn.1400308e0
lea rcx, [rbp + 0x60]
call fcn.140030730
mov rcx, rax
call fcn.140031c50
movzx eax, al
test eax, eax
jne 0x1400ece80
lea rcx, [rbp + 0x60]
call fcn.140030730
mov rcx, rax
call fcn.140031d00
mov qword [rbp + 0x38], 0
mov dword [rbp + 0x98], 0x18
mov dword [rbp + 0xa8], 0
lea rcx, [rbp + 0x98]
call fcn.140031e50
movzx eax, al
test eax, eax
je 0x1400eceba
lea rax, [rbp + 0x98]
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0xd0]
add rax, 8
mov rcx, rax
call fcn.140030730
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x22
mov dword [rsp + 0x20], 2
mov r9, qword [rbp + 0x38]
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x18], 0xffffffffffffffff
je 0x1400ed096
mov dword [rbp + 8], Ordinal_265
mov ecx, Ordinal_265
call sub.mfc120u.dll_Ordinal_265
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0x10], rax
cmp qword [rbp + 0x10], 0
je 0x1400ed08c
mov r8d, Ordinal_265
xor edx, edx
mov rcx, qword [rbp + 0x10]
call sub.MSVCR120.dll_memset
lea rcx, [rbp + 0x80]
call fcn.140030030
nop
mov r9, qword [rbp + 0xe0]
mov r8, qword [rbp + 0xd8]
mov rdx, qword [str._s:_s]
lea rcx, [rbp + 0x80]
call fcn.140030c60
lea rcx, [rbp + 0x80]
call fcn.140030730
mov qword [rbp + 0x20], rax
cmp qword [rbp + 0x20], 0
jne 0x1400ecf95
mov qword [rbp + 0x40], 0
jmp 0x1400ed016
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.MSVCR120.dll_wcslen]
inc eax
mov dword [rbp + 0xc], eax
cmp dword [rbp + 0xc], 0x3fffffff
jle 0x1400ecfb7
mov qword [rbp + 0x48], 0
jmp 0x1400ed00e
movsxd rax, dword [rbp + 0xc]
shl rax, 1
mov qword [rbp + 0x58], rax
movsxd rcx, dword [rbp + 0xc]
shl rcx, 1
mov rdx, rcx
add rdx, 0xf
cmp rdx, rcx
ja 0x1400ecfdf
movabs rdx, 0xffffffffffffff0
and rdx, 0xfffffffffffffff0
mov rax, rdx
call fcn.14010f740
sub rsp, rax
lea rax, [rsp + 0x40]
mov r9d, dword [rbp + 0x2c]
mov rcx, qword [rbp + 0x58]
mov r8d, ecx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call fcn.14002ec40
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x40], rax
mov r8, qword [rbp + 0x40]
mov edx, Ordinal_265
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.MSVCR120.dll_strcpy_s]
mov eax, dword [rbp + 8]
mov r8d, eax
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp + 0xd0]
call fcn.1400ed3d0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x28]
mov r8d, dword [rbp + 8]
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400ed06e
mov eax, dword [rbp + 0x28]
cmp dword [rbp + 8], eax
jne 0x1400ed06e
mov byte [rbp], 1
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x50], rax
mov rcx, qword [rbp + 0x50]
call sub.mfc120u.dll_Ordinal_266
nop
lea rcx, [rbp + 0x80]
call fcn.140030070
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x38]
call fcn.140031ec0
movzx eax, byte [rbp]
mov byte [rbp + 1], al
lea rcx, [rbp + 0x60]
call fcn.140030070
movzx eax, byte [rbp + 1]
mov rcx, qword [rbp + 0xb8]
xor rcx, rbp
call fcn.14010f170
lea rsp, [rbp + 0xc0]
pop rbp
ret