Function at 0x1400a5330
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbp
push rbx
push r12
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x1401ac580]
xor rax, rsp
mov qword [rbp + 0x2f], rax
cmp qword [rcx + 0x18], 8
mov r12, rdx
mov rbx, rcx
jb 0x1400a535f
mov rcx, qword [rcx]
mov qword [rsp + 0x120], rsi
xor edx, edx
mov qword [rsp + 0xe8], rdi
mov qword [rsp + 0xe0], r14
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400a5902
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400a57b0
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x1400a53a5
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400a553d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test r12, r12
je 0x1400a58fe
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x1400a53d0
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp - 0x51]
xor r9d, r9d
call fcn.1400a5940
mov rcx, qword [rbp - 0x39]
lea rbx, str.Could_not_create_directory
mov r8, qword [rbp - 0x41]
mov rax, rcx
sub rax, r8
mov edi, 0x1b
cmp rax, rdi
jb 0x1400a5477
lea rax, [r8 + 0x1b]
cmp rcx, 0x10
lea rsi, [rbp - 0x51]
mov qword [rbp - 0x41], rax
cmovae rsi, qword [rbp - 0x51]
lea rax, [0x14015490b]
cmp rax, rsi
jbe 0x1400a543b
lea rax, [rsi + r8]
cmp rbx, rax
ja 0x1400a543b
cmp rsi, rbx
ja 0x1400a5433
xor r14d, r14d
jmp 0x1400a543e
mov r14, rsi
sub r14, rbx
jmp 0x1400a543e
mov r14, rdi
inc r8
lea rcx, [rsi + 0x1b]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memmove
mov r8, r14
mov rdx, rbx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
sub rdi, r14
lea rdx, [rbx + 0x1b]
add rdx, r14
lea rcx, [rsi + r14]
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbp - 0x51]
jmp 0x1400a5493
mov qword [rsp + 0x28], rdi
lea rcx, [rbp - 0x51]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov rdx, rdi
call fcn.14005e9a0
movups xmm0, xmmword [rax]
lea rdx, [rbp - 0x71]
mov rcx, r12
movups xmm1, xmmword [rax + 0x10]
mov qword [rax + 0x10], 0
movups xmmword [rbp - 0x71], xmm0
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
movups xmmword [rbp - 0x61], xmm1
mov byte [rax], 0
call fcn.14001d5c0
mov rdx, qword [rbp - 0x59]
cmp rdx, 0x10
jb 0x1400a54f8
mov rcx, qword [rbp - 0x71]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a54f3
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400a5536
call fcn.1400e7420
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x1400a58fe
mov rcx, qword [rbp - 0x51]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a58f9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a58f9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test al, 0x10
jne 0x1400a5902
test r12, r12
je 0x1400a58fe
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x1400a555b
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp - 0x31]
xor r9d, r9d
call fcn.1400a5940
mov rcx, qword [rbp - 0x19]
lea rbx, str.Could_not_create_directory
mov r8, qword [rbp - 0x21]
mov rax, rcx
sub rax, r8
mov edi, 0x1b
cmp rax, rdi
jb 0x1400a5602
lea rax, [r8 + 0x1b]
cmp rcx, 0x10
lea rsi, [rbp - 0x31]
mov qword [rbp - 0x21], rax
cmovae rsi, qword [rbp - 0x31]
lea rax, [0x14015490b]
cmp rax, rsi
jbe 0x1400a55c6
lea rax, [rsi + r8]
cmp rbx, rax
ja 0x1400a55c6
cmp rsi, rbx
ja 0x1400a55be
xor r14d, r14d
jmp 0x1400a55c9
mov r14, rsi
sub r14, rbx
jmp 0x1400a55c9
mov r14, rdi
inc r8
lea rcx, [rsi + 0x1b]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memmove
mov r8, r14
mov rdx, rbx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
sub rdi, r14
lea rdx, [rbx + 0x1b]
add rdx, r14
lea rcx, [rsi + r14]
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbp - 0x31]
jmp 0x1400a561e
mov qword [rsp + 0x28], rdi
lea rcx, [rbp - 0x31]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov rdx, rdi
call fcn.14005e9a0
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rbp - 0x71], xmm0
movdqu xmmword [rbp - 0x61], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x71], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x61], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rbp - 0x59]
mov rcx, qword [rbp - 0x61]
mov rax, rdx
sub rax, rcx
cmp rax, 0x1e
jb 0x1400a569a
cmp rdx, 0x10
lea rax, [rcx + 0x1e]
lea rbx, [rbp - 0x71]
mov qword [rbp - 0x61], rax
cmovae rbx, qword [rbp - 0x71]
lea rdx, str.:_non_directory_already_exists
add rbx, rcx
mov r8d, 0x1e
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbp - 0x71]
mov byte [rbx + 0x1e], 0
jmp 0x1400a56ba
xor r8d, r8d
mov qword [rsp + 0x20], 0x1e
lea r9, str.:_non_directory_already_exists
lea rcx, [rbp - 0x71]
lea edx, [r8 + 0x1e]
call fcn.140008a40
movups xmm0, xmmword [rax]
lea rdx, [rbp - 0x11]
mov rcx, r12
movups xmm1, xmmword [rax + 0x10]
mov qword [rax + 0x10], 0
movups xmmword [rbp - 0x11], xmm0
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
movups xmmword [rbp - 1], xmm1
mov byte [rax], 0
call fcn.14001d5c0
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x1400a5723
mov rcx, qword [rbp - 0x11]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a571e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400a57a9
call fcn.1400e7420
mov rdx, qword [rbp - 0x59]
cmp rdx, 0x10
jb 0x1400a575a
mov rcx, qword [rbp - 0x71]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a5755
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400a57a9
call fcn.1400e7420
mov rdx, qword [rbp - 0x19]
movdqa xmm0, xmmword [0x14014c160]
mov byte [rbp - 0x71], 0
movdqu xmmword [rbp - 0x61], xmm0
cmp rdx, 0x10
jb 0x1400a58fe
mov rcx, qword [rbp - 0x31]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a58f9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a58f9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test r12, r12
je 0x1400a58fe
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x1400a57c6
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp + 0xf]
xor r9d, r9d
call fcn.1400a5940
mov edx, 0x20
mov qword [rbp - 0x69], 0
lea rcx, [rbp - 0x71]
call fcn.14003f760
movups xmm0, xmmword [str.Could_not_create_directory]
movzx edx, byte [rbp - 0x79]
lea r9, [rbp + 0xf]
mov edi, 0x1b
mov qword [rbp - 0x71], rax
movups xmmword [rax], xmm0
lea r8, [rbp - 0x71]
mov qword [rbp - 0x61], rdi
movsd xmm1, qword [0x140154900]
movsd qword [rax + 0x10], xmm1
movzx ecx, word [0x140154908]
mov word [rax + 0x18], cx
movzx ecx, byte [0x14015490a]
mov byte [rax + 0x1a], cl
lea rcx, [rbp - 0x11]
mov qword [rbp - 0x59], 0x1f
mov byte [rax + 0x1b], 0
call fcn.140063480
lea rdx, [rbp - 0x11]
mov rcx, r12
call fcn.14001d5c0
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x1400a5889
mov rcx, qword [rbp - 0x11]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a5884
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400a58f2
call fcn.1400e7420
mov rdx, qword [rbp - 0x59]
cmp rdx, 0x10
jb 0x1400a58c0
mov rcx, qword [rbp - 0x71]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a58bb
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400a58f2
call fcn.1400e7420
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x1400a58fe
mov rcx, qword [rbp + 0xf]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a58f9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a58f9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e7420
xor al, al
jmp 0x1400a5904
mov al, 1
mov r14, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
mov rsi, qword [rsp + 0x120]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400e74c0
add rsp, 0xf0
pop r12
pop rbx
pop rbp
ret