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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov r9, qword [rcx]
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov r10, qword [r9]
lea rax, [r10 + 1]
mov qword [r9], rax
test r10, r10
jne 0x14021a393
mov rax, qword [rdx]
movzx ecx, word [rax]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswalpha]
test eax, eax
je 0x14021a393
mov rax, qword [rsi]
add rax, 2
cmp word [rax], 0x3a
je 0x14021a4be
mov rax, qword [rdi]
xor esi, esi
mov word [rax], si
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp si, word [rcx]
je 0x14021a4f7
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14021a3be
test al, 0x10
jne 0x14021a4b3
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp si, word [rcx]
je 0x14021a518
xor edx, edx
mov qword [rsp + 0x80], r14
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r14, [0x14030de70]
mov ebx, eax
mov r8, r14
lea rdx, [0x1402125d0]
lea rcx, [0x14030de68]
call sub.MSVCP140.dll_int___cdecl_std::_Execute_once_struct_std::once_flag____ptr64__int____cdecl___void____ptr64__void____ptr64__void____ptr64____ptr64___void____ptr64_
test ebx, ebx
je 0x14021a412
mov dword [rbp - 0x50], esi
test eax, eax
je 0x14021a416
mov qword [rbp - 0x48], r14
lea rax, [rbp - 0x50]
jmp 0x14021a42e
test eax, eax
jne 0x14021a41d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
lea rax, [rbp - 0x30]
mov qword [rbp - 0x28], r14
movups xmm0, xmmword [rax]
movd eax, xmm0
movups xmmword [rbp - 0x30], xmm0
test eax, eax
je 0x14021a4ab
lea rbx, [0x14030de58]
mov dword [rbp - 0x50], esi
mov r8, rbx
mov qword [rbp - 0x48], rsi
lea rdx, [0x1402125b0]
lea rcx, [0x14030de50]
call sub.MSVCP140.dll_int___cdecl_std::_Execute_once_struct_std::once_flag____ptr64__int____cdecl___void____ptr64__void____ptr64__void____ptr64____ptr64___void____ptr64_
test eax, eax
jne 0x14021a46c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov rcx, qword [rbp - 0x28]
lea r8, [rbp - 0x50]
mov edx, dword [rbp - 0x30]
mov dword [rbp - 0x50], reloc.WS2_32.dll_recvfrom
mov qword [rbp - 0x48], rbx
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov rax, qword [rcx]
call qword [rax + 0x28]
test al, al
jne 0x14021a4ab
mov rcx, qword [rbp - 0x48]
lea rdx, [rbp - 0x30]
mov r8d, dword [rbp - 0x50]
mov rax, qword [rcx]
call qword [rax + 0x20]
test al, al
je 0x14021a4d6
mov r14, qword [rsp + 0x80]
mov rax, qword [rdi]
mov ecx, 0x5c
mov word [rax], cx
lea r11, [rsp + 0x70]
mov al, 1
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
lea rdx, str.DirectoryCreateRecursively:_cannot_create_directory
lea rcx, [rbp - 0x18]
call fcn.140076ca0
lea rdx, [0x1402fa960]
lea rcx, [rbp - 0x18]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.DirectoryExists:_empty_path
lea rcx, [rbp - 0x30]
call fcn.140076ca0
lea rdx, [0x1402fa960]
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.DirectoryCreate:_empty_path
lea rcx, [rbp - 0x50]
call fcn.140076ca0
lea rdx, [0x1402fa960]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3