Function at 0x14000caa0
Capabilities:
Check if file exists
Create directory
Get file attributes
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14009f088]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r14, rcx
mov qword [rsp + 0x40], rcx
xor r13d, r13d
mov dword [rsp + 0x30], r13d
lea rcx, [rbp + 0xf]
call fcn.140012e30
nop
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], 7
mov word [rbp - 0x71], r13w
mov dword [rsp + 0x30], 2
mov rdx, qword [rbp + 0x1f]
add rdx, 0x14
lea rcx, [rbp - 0x71]
call fcn.140002cf0
lea r9, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae r9, qword [rbp + 0xf]
mov rdi, qword [rbp + 0x1f]
mov rsi, qword [rbp - 0x61]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
sub rax, rsi
cmp rdi, rax
ja 0x14000cb73
lea rax, [rsi + rdi]
mov qword [rbp - 0x61], rax
lea rbx, [rbp - 0x71]
cmp rcx, 8
cmovae rbx, qword [rbp - 0x71]
lea r8, [rdi + rdi]
lea rcx, [rbx + rsi*2]
mov rdx, r9
call fcn.14004cf20
lea rax, [rsi + rdi]
mov word [rbx + rax*2], r13w
jmp 0x14000cb84
mov qword [rsp + 0x20], rdi
mov rdx, rdi
lea rcx, [rbp - 0x71]
call fcn.140002fb0
mov rcx, qword [rbp - 0x61]
mov rdx, qword [rbp - 0x59]
mov rax, rdx
sub rax, rcx
cmp rax, 0x14
jb 0x14000cbca
lea rdi, [rcx + 0x14]
mov qword [rbp - 0x61], rdi
lea rbx, [rbp - 0x71]
cmp rdx, 8
cmovae rbx, qword [rbp - 0x71]
lea rcx, [rbx + rcx*2]
mov r8d, 0x28
lea rdx, [0x1400899d8]
call fcn.14004cf20
mov word [rbx + rdi*2], r13w
jmp 0x14000cbe8
mov qword [rsp + 0x20], 0x14
lea r9, [0x1400899d8]
mov edx, 0x14
lea rcx, [rbp - 0x71]
call fcn.140002fb0
lea r15, [r14 + 0x418]
lea rax, [rbp - 0x71]
cmp r15, rax
je 0x14000cc25
mov rcx, r15
call fcn.140001ee0
movups xmm0, xmmword [rbp - 0x71]
movups xmmword [r15], xmm0
movups xmm1, xmmword [rbp - 0x61]
movups xmmword [r15 + 0x10], xmm1
mov qword [rbp - 0x61], r13
mov eax, 7
mov qword [rbp - 0x59], rax
mov word [rbp - 0x71], r13w
jmp 0x14000cc29
mov rax, qword [rbp - 0x59]
cmp rax, 8
jb 0x14000cc65
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000cc60
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d44a
call fcn.14002e8b4
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rcx, qword [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000cc91
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rcx, qword [rbp + 0xf]
call fcn.140054158
mov ecx, 0x20
call fcn.14002e8bc
mov rbx, rax
mov qword [rsp + 0x38], rax
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
cmp rax, r15
je 0x14000ccd2
mov rdx, r15
cmp qword [r15 + 0x18], 8
jb 0x14000ccc5
mov rdx, qword [r15]
mov r8, qword [r15 + 0x10]
mov rcx, rbx
call fcn.1400020e0
nop
lea rdi, [r14 + 0x528]
lea rax, [rsp + 0x38]
cmp rdi, rax
je 0x14000ccf0
mov rdx, qword [rdi]
mov qword [rdi], rbx
test rdx, rdx
je 0x14000ccf8
jmp 0x14000ccf3
mov rdx, rbx
call fcn.1400104d0
mov rdi, qword [rdi]
mov ecx, 0x28
call fcn.14002e8bc
mov rbx, rax
mov qword [rsp + 0x38], rax
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], 7
mov word [rbp - 0x71], r13w
mov r8d, 7
lea rdx, [0x140089a08]
lea rcx, [rbp - 0x71]
call fcn.1400020e0
nop
mov dword [rsp + 0x30], 0xc
lea rcx, [rbx + 8]
mov qword [rcx + 0x10], r13
mov qword [rcx + 0x18], 7
mov word [rcx], r13w
lea rax, [rbp - 0x71]
cmp rcx, rax
je 0x14000cd71
lea rdx, [rbp - 0x71]
cmp qword [rbp - 0x59], 8
cmovae rdx, qword [rbp - 0x71]
mov r8, qword [rbp - 0x61]
call fcn.1400020e0
mov qword [rbx], rdi
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x14000cdb4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000cdaf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d450
call fcn.14002e8b4
lea rdi, [r14 + 0x530]
lea rax, [rsp + 0x38]
cmp rdi, rax
je 0x14000cdd2
mov rdx, qword [rdi]
mov qword [rdi], rbx
test rdx, rdx
je 0x14000cdda
jmp 0x14000cdd5
mov rdx, rbx
call fcn.140010450
mov rcx, r15
cmp qword [r15 + 0x18], 8
jb 0x14000cde7
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r12, 0xffffffffffffffff
cmp eax, 0xffffffff
jne 0x14000d019
lea rdx, [0x14008660e]
lea ecx, [r12 + 3]
call fcn.140054464
mov qword [rbp - 0x21], r13
mov qword [rbp - 0x19], 0xf
mov byte [rbp - 0x31], 0
mov r8, r12
inc r8
cmp byte [rax + r8], 0
jne 0x14000ce21
mov rdx, rax
lea rcx, [rbp - 0x31]
call fcn.140002290
nop
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], 7
mov word [rbp - 0x71], r13w
lea rcx, [rbp - 0x31]
mov rbx, qword [rbp - 0x31]
mov rsi, qword [rbp - 0x19]
cmp rsi, 0x10
cmovae rcx, rbx
mov qword [rsp + 0x20], 7
lea r9, [0x140089a18]
xor r8d, r8d
mov r14, qword [rbp - 0x21]
mov rdx, r14
call fcn.1400026e0
cmp rax, 0xffffffffffffffff
je 0x14000cecf
lea rcx, [rbp - 0x31]
cmp rsi, 0x10
cmovae rcx, rbx
mov qword [rsp + 0x20], 0xb
lea r9, [0x140089a20]
xor r8d, r8d
mov rdx, r14
call fcn.1400026e0
lea rcx, [0x140089a30]
lea rdx, [0x140089a58]
cmp rax, 0xffffffffffffffff
cmovne rdx, rcx
mov r8, r12
inc r8
cmp word [rdx + r8*2], 0
jne 0x14000cec2
jmp 0x14000cedc
mov r8d, 7
lea rdx, [0x140089a80]
lea rcx, [rbp - 0x71]
call fcn.1400020e0
mov qword [rbp - 1], r13
mov qword [rbp + 7], 7
mov word [rbp - 0x11], r13w
mov r8d, 8
lea rdx, [0x140089990]
lea rcx, [rbp - 0x11]
call fcn.1400020e0
mov rcx, qword [rdi]
mov r9, qword [rcx]
cmp qword [r9 + 0x18], 8
jb 0x14000cf1c
mov r9, qword [r9]
lea r8, [rbp - 0x71]
cmp qword [rbp - 0x59], 8
cmovae r8, qword [rbp - 0x71]
lea rdx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rdx, qword [rbp - 0x11]
add rcx, 8
cmp qword [rcx + 0x18], 8
jb 0x14000cf46
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x14000cf8d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000cf87
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d456
call fcn.14002e8b4
nop
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x14000cfcd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000cfc8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d45c
call fcn.14002e8b4
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], 7
mov word [rbp - 0x71], r13w
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x14000d019
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d014
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d462
call fcn.14002e8b4
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], 7
mov word [rbp - 0x71], r13w
mov r8d, 7
lea rdx, [0x140089980]
lea rcx, [rbp - 0x71]
call fcn.1400020e0
nop
mov qword [rbp - 0x21], r13
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], r13w
mov r8d, 8
lea rdx, [0x140089990]
lea rcx, [rbp - 0x31]
call fcn.1400020e0
nop
mov rcx, qword [rdi]
lea r8, [rcx + 8]
lea rax, [rbp - 0x71]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x31]
lea rdx, [rbp - 0x51]
mov rcx, qword [rcx]
call fcn.14000b6f0
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x14000d0ca
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d0c5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d468
call fcn.14002e8b4
mov qword [rbp - 0x21], r13
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], r13w
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x14000d11b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d116
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d46e
call fcn.14002e8b4
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], 7
mov word [rbp - 0x71], r13w
lea rsi, [rbp - 0x51]
mov r13, qword [rbp - 0x51]
mov r8, qword [rbp - 0x39]
cmp r8, 8
cmovae rsi, r13
lea rax, [rbp - 0x51]
cmovae rax, r13
mov r11, qword [rbp - 0x41]
lea rcx, [rax + r11*2]
lea rbx, [rbp - 0x51]
cmovae rbx, r13
xor eax, eax
mov edi, eax
mov r14, rcx
sub r14, rbx
inc r14
shr r14, 1
cmp rbx, rcx
cmova r14, rax
test r14, r14
je 0x14000d19b
sub rsi, rbx
movzx ecx, word [rbx]
call fcn.1400534a8
mov word [rsi + rbx], ax
lea rbx, [rbx + 2]
inc rdi
cmp rdi, r14
jne 0x14000d177
mov r11, qword [rbp - 0x41]
mov r13, qword [rbp - 0x51]
mov r8, qword [rbp - 0x39]
lea r10, [rbp - 0x51]
cmp r8, 8
cmovae r10, r13
cmp r11, 0xa
jb 0x14000d22b
lea rbx, [r11 - 9]
lea rbx, [r10 + rbx*2]
mov rax, r10
nop dword [rax + rax]
mov rdx, rbx
sub rdx, rax
sar rdx, 1
je 0x14000d227
movzx ecx, word [rax]
cmp cx, 0x53
je 0x14000d1de
add rax, 2
sub rdx, 1
jmp 0x14000d1c9
test rax, rax
je 0x14000d227
mov r9d, 0xa
lea rdx, [0x1400899a8]
mov r8, rax
cmp cx, word [rdx]
jne 0x14000d20c
add r8, 2
add rdx, 2
sub r9, 1
je 0x14000d212
movzx ecx, word [r8]
jmp 0x14000d1f3
add rax, 2
jmp 0x14000d1c0
sub rax, r10
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x14000d227
xor esi, esi
mov ebx, esi
jmp 0x14000d2ba
mov r8, qword [rbp - 0x39]
lea r10, [rbp - 0x51]
cmp r8, 8
cmovae r10, r13
cmp r11, 0xb
jb 0x14000d2aa
add r11, 0xfffffffffffffff6
lea r11, [r10 + r11*2]
mov rax, r10
nop dword [rax + rax]
mov rdx, r11
sub rdx, rax
sar rdx, 1
je 0x14000d2aa
movzx ecx, word [rax]
cmp cx, 0x54
je 0x14000d26e
add rax, 2
sub rdx, 1
jmp 0x14000d259
test rax, rax
je 0x14000d2aa
mov r9d, 0xb
lea rdx, [0x1400899c0]
mov r8, rax
cmp cx, word [rdx]
jne 0x14000d29c
add r8, 2
add rdx, 2
sub r9, 1
je 0x14000d2a2
movzx ecx, word [r8]
jmp 0x14000d283
add rax, 2
jmp 0x14000d250
sub rax, r10
sar rax, 1
jmp 0x14000d2ad
mov rax, r12
xor esi, esi
mov ebx, esi
cmp rax, 0xffffffffffffffff
sete bl
inc ebx
mov edx, ebx
call fcn.140008890
lea r14, [0x1400a4950]
mov qword [rbp - 0x79], r14
mov rcx, r14
call fcn.14002d46c
test eax, eax
je 0x14000d2e0
mov ecx, eax
call fcn.14002cf28
nop
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov r8d, 4
lea rdx, [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x38]
mov r8d, 4
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [r15 + 0x18], 8
jb 0x14000d33d
mov r15, qword [r15]
mov qword [rbp - 1], rsi
mov qword [rbp + 7], 7
mov word [rbp - 0x11], si
nop dword [rax]
inc r12
cmp word [r15 + r12*2], 0
jne 0x14000d350
mov r8, r12
mov rdx, r15
lea rcx, [rbp - 0x11]
call fcn.1400020e0
lea rdx, [rbp - 0x11]
mov rcx, rdi
call fcn.140009650
nop
mov rcx, r14
call fcn.14002d490
test eax, eax
je 0x14000d38b
mov ecx, eax
call fcn.14002cf28
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 8
jb 0x14000d3cb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d3c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d474
call fcn.14002e8b4
mov qword [rbp - 0x41], rsi
mov qword [rbp - 0x39], 7
mov word [rbp - 0x51], si
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x14000d417
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d412
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d444
call fcn.14002e8b4
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14002e890
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14004fe44
nop
call fcn.14004fe44
nop
call fcn.14004fe44
nop
call fcn.14004fe44
nop
call fcn.14004fe44
nop
call fcn.14004fe44
nop
call fcn.14004fe44
nop
call fcn.14004fe44
nop
call fcn.14004fe44
int3