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

Disassembly:
mov dword [rsp + 0x20], r9d
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x4c0]
sub rsp, 0x5c0
cmp dword [rcx + 8], 0xffffffff
mov r14, r8
mov esi, edx
mov rdi, rcx
je 0x14000a470
mov rcx, qword [rcx]
call fcn.140009b20
mov rbx, qword [rdi]
mov dword [rdi + 8], 0xffffffff
cmp esi, dword [rbx + 8]
jl 0x14000a492
mov eax, 0x10000
add rsp, 0x5c0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov qword [rsp + 0x5f0], r12
xor r12d, r12d
cmp dword [rbx + 0x14], esi
jle 0x14000a4ea
mov qword [rsp + 0x5f8], r15
test rbx, rbx
je 0x14000a4df
mov eax, dword [rbx + 0x28]
lea r8, [rbx + 0x7c]
lea rdx, [rbx + 0x2c]
mov dword [rbx + 0x18], eax
xor r9d, r9d
mov dword [rbx + 0x14], r12d
mov rcx, rbx
mov dword [rsp + 0x20], r12d
call fcn.140008e80
mov ecx, r12d
test eax, eax
sete cl
mov dword [rbx + 0x1c], ecx
mov rbx, qword [rdi]
mov r15, qword [rsp + 0x5f8]
cmp dword [rbx + 0x14], esi
jge 0x14000a54a
nop dword [rax]
mov rax, rbx
test rbx, rbx
je 0x14000a542
cmp dword [rbx + 0x1c], r12d
je 0x14000a542
mov edx, dword [rbx + 0x14]
inc edx
cmp edx, dword [rbx + 8]
je 0x14000a542
mov ecx, dword [rbx + 0x54]
lea r8, [rbx + 0x7c]
add ecx, dword [rbx + 0x50]
xor r9d, r9d
mov eax, dword [rbx + 0x4c]
add eax, 0x2e
mov dword [rbx + 0x14], edx
add ecx, eax
mov dword [rsp + 0x20], r12d
add dword [rbx + 0x18], ecx
lea rdx, [rbx + 0x2c]
mov rcx, rbx
call fcn.140008e80
test eax, eax
mov ecx, r12d
sete cl
mov dword [rbx + 0x1c], ecx
mov rax, qword [rdi]
mov rbx, rax
cmp dword [rax + 0x14], esi
jl 0x14000a4f0
lea r8, [rbp + 0x280]
mov edx, esi
mov rcx, rdi
call fcn.140009bd0
test byte [rbp + 0x388], 0x10
movzx eax, byte [r14]
je 0x14000a5a0
cmp al, 0x2f
je 0x14000a57f
cmp al, 0x5c
je 0x14000a57f
test al, al
je 0x14000a57b
cmp byte [r14 + 1], 0x3a
je 0x14000a57f
xor cl, cl
jmp 0x14000a581
mov cl, 1
test cl, cl
lea rax, [rdi + 0x150]
mov rdx, r14
cmove r12, rax
mov rcx, r12
call fcn.14000a320
xor eax, eax
jmp 0x14000a93a
mov r9, r14
mov rcx, r14
test al, al
je 0x14000a5c7
nop word [rax + rax]
cmp al, 0x2f
je 0x14000a5b8
cmp al, 0x5c
jne 0x14000a5bc
lea r9, [rcx + 1]
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x14000a5b0
lea rdx, [rsp + 0x50]
mov rcx, r14
sub rdx, r14
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14000a5d2
cmp r9, r14
jne 0x14000a5ec
mov byte [rsp + 0x50], r12b
jmp 0x14000a61b
mov rax, r9
sub rax, r14
mov byte [rsp + rax + 0x50], r12b
movzx eax, byte [rsp + 0x50]
cmp al, 0x2f
je 0x14000a725
cmp al, 0x5c
je 0x14000a725
test al, al
je 0x14000a61b
cmp byte [rsp + 0x51], 0x3a
je 0x14000a725
mov qword [rsp + 0x20], r9
lea rbx, [rdi + 0x150]
mov r8, rbx
lea r9, [rsp + 0x50]
lea rdx, str._s_s_s
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.USER32.dll_wsprintfA]
test rbx, rbx
je 0x14000a661
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14000a661
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
movzx eax, byte [rsp + 0x50]
test al, al
je 0x14000a7fb
lea rsi, [rsp + 0x50]
lea rcx, [rsp + 0x50]
cmp al, 0x2f
je 0x14000a680
cmp al, 0x5c
jne 0x14000a683
mov rsi, rcx
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x14000a678
lea rax, [rsp + 0x50]
cmp rsi, rax
je 0x14000a6cb
lea rax, [rsp + 0x50]
sub rsi, rax
lea rdx, [rsp + 0x50]
mov r8, rsi
lea rcx, [rbp + 0x170]
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rbp + 0x170]
mov byte [rbp + rsi + 0x170], r12b
mov rcx, rbx
call fcn.14000a320
mov byte [rbp + 0x60], r12b
test rbx, rbx
je 0x14000a6ee
lea rcx, [rbp + 0x60]
sub rcx, rbx
nop dword [rax + rax]
movzx eax, byte [rbx]
mov byte [rbx + rcx], al
lea rbx, [rbx + 1]
test al, al
jne 0x14000a6e0
lea rcx, [rbp + 0x60]
dec rcx
cmp byte [rcx + 1], r12b
lea rcx, [rcx + 1]
jne 0x14000a6f5
lea r8, [rsp + 0x50]
xor edx, edx
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14000a710
jmp 0x14000a7e0
lea r8, [rsp + 0x50]
lea rdx, str._s_s
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.USER32.dll_wsprintfA]
movzx eax, byte [rsp + 0x50]
test al, al
je 0x14000a7fb
lea rbx, [rsp + 0x50]
lea rcx, [rsp + 0x50]
cmp al, 0x2f
je 0x14000a75d
cmp al, 0x5c
jne 0x14000a760
mov rbx, rcx
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x14000a755
lea rax, [rsp + 0x50]
cmp rbx, rax
je 0x14000a7a7
lea rax, [rsp + 0x50]
sub rbx, rax
lea rdx, [rsp + 0x50]
mov r8, rbx
lea rcx, [rbp + 0x170]
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rbp + 0x170]
mov byte [rbp + rbx + 0x170], r12b
xor ecx, ecx
call fcn.14000a320
lea rcx, [rbp + 0x60]
mov byte [rbp + 0x60], r12b
dec rcx
cmp byte [rcx + 1], r12b
lea rcx, [rcx + 1]
jne 0x14000a7b2
lea r8, [rsp + 0x50]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14000a7d0
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14000a7fb
xor edx, edx
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [rbp + 0x388]
lea rcx, [rbp + 0x3b0]
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000a83d
mov eax, 0x200
jmp 0x14000a93a
mov rdx, qword [rdi + 0x140]
mov rcx, qword [rdi]
call fcn.140009580
cmp qword [rdi + 0x148], r12
jne 0x14000a870
mov ecx, 0x4000
call qword [sym.imp.mfc140.dll_Ordinal_265]
mov qword [rdi + 0x148], rax
nop word [rax + rax]
mov rcx, qword [rdi + 0x148]
xor edx, edx
mov r8d, 0x4000
call sub.VCRUNTIME140.dll_memset
mov rdx, qword [rdi + 0x148]
lea r9, [rbp + 0x508]
mov rcx, qword [rdi]
mov r8d, 0x4000
call fcn.1400097a0
mov ebx, eax
cmp eax, 0xffffff96
je 0x14000a922
test eax, eax
js 0x14000a91b
jle 0x14000a8d0
mov rdx, qword [rdi + 0x148]
lea r9, [rbp + 0x510]
mov r8d, eax
mov qword [rsp + 0x20], r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000a914
cmp byte [rbp + 0x508], r12b
jne 0x14000a8e1
cmp ebx, 0x4000
jge 0x14000a870
lea r9, [rbp + 0x39c]
mov rcx, rsi
lea r8, [rbp + 0x38c]
lea rdx, [rbp + 0x394]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call fcn.140009b20
xor eax, eax
jmp 0x14000a93a
mov ebx, 0x400
jmp 0x14000a927
mov ebx, 0x5000000
jmp 0x14000a927
mov ebx, 0x1000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call fcn.140009b20
mov eax, ebx
mov r12, qword [rsp + 0x5f0]
add rsp, 0x5c0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret