Function at 0x1400c9a20
Capabilities:
Get file attributes
Set file attributes
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov rax, qword [0x140672360]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov rdi, rdx
mov rbx, rcx
xor sil, sil
xor edx, edx
mov r8d, 0x308
lea rcx, [rbp + 0xf0]
call fcn.14035c350
lea rcx, [rbp + 0xf0]
call fcn.1401ce640
nop
lea rdx, [rbp + 0xf0]
mov rcx, rbx
call fcn.1400c96d0
xor r14d, r14d
test al, al
je 0x1400c9daf
xor edx, edx
mov r8d, 0x138
lea rcx, [rbp - 0x50]
call fcn.14035c350
lea rcx, [rbp - 0x50]
call fcn.1401ceda0
nop
mov rax, qword [rbp - 0x50]
lea rdx, [rbp + 0xf0]
lea rcx, [rbp - 0x50]
mov rax, qword [rax + 0x10]
call qword [case.0x1401cd220.0]
test al, al
je 0x1400c9b01
mov rbx, qword [rbp + 0x128]
test rbx, rbx
je 0x1400c9b01
nop word [rax + rax]
mov rax, qword [rbx]
lea rdx, [rbp - 0x50]
mov rcx, rbx
mov rax, qword [rax + 0x70]
call qword [case.0x1401cd220.0]
test al, al
je 0x1400c9b01
mov rbx, qword [rbx + 0x50]
test rbx, rbx
jne 0x1400c9ae0
mov rax, qword [rbp - 0x50]
lea rdx, [rbp + 0xf0]
lea rcx, [rbp - 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x1401cd220.0]
test al, al
je 0x1400c9d6f
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x60], 0xf
mov byte [rbp - 0x78], 0
movsxd r8, dword [rbp + 0xe0]
mov rdx, qword [rbp + 0xc0]
lea rcx, [rbp - 0x78]
call fcn.140073120
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0x10
cmovae rdx, qword [rbp - 0x78]
lea rcx, [rsp + 0x68]
call fcn.1400ae230
nop
cmp qword [rdi + 0x18], 8
jb 0x1400c9b70
mov rdi, qword [rdi]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 7
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdi + r8*2], 0
jne 0x1400c9b90
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.1400739a0
xor sil, sil
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x1400c9be2
and eax, 0xfffffffe
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400c9c9c
mov word [rsp + 0x60], 0xfeff
mov ecx, dword [rsp + 0x78]
lea edi, [rcx + rcx]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x64]
mov r8d, 2
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400c9c93
cmp dword [rsp + 0x64], 2
jne 0x1400c9c93
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rdx, qword [rsp + 0x68]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x64]
mov r8d, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400c9c93
movzx esi, sil
mov eax, 1
cmp dword [rsp + 0x64], edi
cmove esi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x1400c9cdf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c9cd9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c9e79
call fcn.140359090
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x1400c9d20
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c9d1b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c9e7f
call fcn.140359090
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], r14w
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x1400c9d6f
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c9d69
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c9e73
call fcn.140359090
nop
lea rax, vtable.tinyxml2::XMLPrinter.0
mov qword [rbp - 0x50], rax
lea rax, [rbp + 0xc8]
mov rcx, qword [rbp + 0xc0]
cmp rcx, rax
je 0x1400c9d92
call fcn.140359090
lea rax, [rbp - 0x38]
mov rcx, qword [rbp - 0x40]
cmp rcx, rax
je 0x1400c9da4
call fcn.140359090
lea rax, vtable.tinyxml2::XMLVisitor.0
mov qword [rbp - 0x50], rax
lea rax, vtable.tinyxml2::XMLDocument.0
mov qword [rbp + 0xf0], rax
lea rcx, [rbp + 0xf0]
call fcn.1401ce8a0
lea rcx, [rbp + 0x378]
call fcn.1401d00e0
lea rcx, [rbp + 0x2f8]
call fcn.1401d02e0
lea rcx, [rbp + 0x278]
call fcn.1401d04f0
lea rcx, [rbp + 0x1f8]
call fcn.1401d06a0
lea rax, [rbp + 0x1a0]
mov rcx, qword [rbp + 0x198]
cmp rcx, rax
je 0x1400c9e11
call fcn.140359090
test dword [rbp + 0x168], 0x200
je 0x1400c9e29
mov rcx, qword [rbp + 0x170]
call fcn.140359090
mov dword [rbp + 0x168], r14d
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x170], xmm0
lea rcx, [rbp + 0xf0]
call fcn.1401cc8d0
nop
movzx eax, sil
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.140359070
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140368068
nop
call fcn.140368068
nop
call fcn.140368068
int3