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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x57]
sub rsp, 0x100
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rbx, r9
mov rdi, r8
mov rsi, rcx
lea rcx, [rbp - 0x31]
call fcn.14015b6c0
nop
mov r8d, 0x4000
lea rdx, [rbp - 0x31]
lea rcx, [rsp + 0x30]
call fcn.14015be40
nop
mov rax, qword [rbp - 0x61]
cmp byte [rax], 0
jne 0x1401403c7
mov rbx, qword [rbx]
mov qword [rbp + 0x27], rbx
mov rdi, qword [rdi]
mov qword [rbp + 0x2f], rdi
mov rax, qword [rsp + 0x30]
mov r8d, 0x1e
lea rdx, str.__xml_version_1.0__encoding_
lea rcx, [rsp + 0x30]
call qword [rax + 0x20]
mov qword [rbp - 0x21], rbx
lea rcx, [rbp - 0x21]
call fcn.14001c160
mov rcx, qword [rsp + 0x30]
mov r9, qword [rcx + 0x20]
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call r9
mov rax, qword [rsp + 0x30]
mov r8d, 3
lea rdx, [0x1402bd5d0]
lea rcx, [rsp + 0x30]
call qword [rax + 0x20]
mov rbx, qword [rbp - 0x79]
mov qword [rbp - 0x19], rbx
lea rcx, [rbp - 0x19]
call fcn.14001c160
mov rcx, qword [rsp + 0x30]
mov r9, qword [rcx + 0x20]
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call r9
mov rbx, qword [rbp - 0x79]
mov qword [rbp - 0x11], rbx
lea rcx, [rbp - 0x11]
call fcn.14001c160
mov rcx, qword [rsp + 0x30]
mov r9, qword [rcx + 0x20]
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call r9
cmp byte [rdi], 0
je 0x14014025f
mov qword [rbp - 9], rdi
lea rcx, [rbp - 9]
call fcn.14001c160
mov rcx, qword [rsp + 0x30]
mov r9, qword [rcx + 0x20]
mov r8, rax
mov rdx, rdi
lea rcx, [rsp + 0x30]
call r9
mov rbx, qword [rbp - 0x79]
mov qword [rbp - 1], rbx
lea rcx, [rbp - 1]
call fcn.14001c160
mov rcx, qword [rsp + 0x30]
mov r9, qword [rcx + 0x20]
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call r9
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140140780
mov rbx, qword [rbp - 0x79]
mov qword [rbp + 7], rbx
lea rcx, [rbp + 7]
call fcn.14001c160
mov rcx, qword [rsp + 0x30]
mov r9, qword [rcx + 0x20]
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call r9
lea rsi, [0x1402be068]
mov ebx, 0xffffffff
mov rax, qword [rbp - 0x49]
mov rcx, qword [rbp - 0x69]
test rax, rax
je 0x140140314
xor edi, edi
mov dword [rbp + 0x7f], edi
test rcx, rcx
je 0x140140310
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x7f]
mov r8d, eax
mov rdx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14014030c
lea rcx, [rbp + 0xf]
call fcn.140137280
nop
mov rdx, qword [rbp - 0x61]
mov rcx, qword [rax]
mov qword [rbp + 0x37], rcx
mov qword [rbp - 0x61], rcx
mov qword [rax], rdx
mov rcx, qword [rbp + 0xf]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x14014030c
mov eax, ebx
lock xadd dword [rcx], eax
test eax, eax
jne 0x14014030c
call fcn.14010a370
mov rcx, qword [rbp - 0x69]
mov qword [rbp - 0x49], rdi
test rcx, rcx
je 0x140140359
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x140140359
lea rcx, [rbp + 0x17]
call fcn.140137280
nop
mov rdx, qword [rbp - 0x61]
mov rcx, qword [rax]
mov qword [rbp + 0x3f], rcx
mov qword [rbp - 0x61], rcx
mov qword [rax], rdx
mov rcx, qword [rbp + 0x17]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x140140359
lock xadd dword [rcx], ebx
test ebx, ebx
jne 0x140140359
call fcn.14010a370
mov rax, qword [rbp - 0x61]
cmp byte [rax], 0
jne 0x1401403c7
lea rcx, [rsp + 0x30]
call fcn.14015bd50
mov rax, qword [rbp - 0x31]
cmp byte [rax], 0
je 0x1401403d1
lea rdx, [rbp - 0x31]
lea rcx, [rbp + 0x47]
call fcn.140018b20
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401403d1
mov ebx, 4
nop word [rax + rax]
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x31]
call fcn.14015e980
test al, al
jne 0x1401403c3
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, 1
jns 0x1401403a0
jmp 0x1401403d1
mov bl, 1
jmp 0x1401403d3
lea rcx, [rsp + 0x30]
call fcn.14015bd50
xor bl, bl
lea rcx, [rbp - 0x31]
call fcn.14015b610
movzx eax, bl
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret