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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x4a8
mov rax, qword [0x1403d66b0]
xor rax, rsp
mov qword [rsp + 0x490], rax
cmp qword [rsp + 0x4c0], 0
je 0x14015ddc3
mov rcx, qword [rsp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14015ddc3
xor edx, edx
mov rcx, qword [rsp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rax, qword [rsp + 0x4c8]
movzx eax, word [rax]
test eax, eax
jne 0x14015ddd7
jmp 0x14015dfd1
mov rax, qword [rsp + 0x4c8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
test eax, eax
je 0x14015de2e
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x2f
je 0x14015de14
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5c
jne 0x14015de1e
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
add rax, 2
mov qword [rsp + 0x28], rax
jmp 0x14015ddee
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x4c8]
cmp qword [rsp + 0x30], rax
je 0x14015dede
mov rax, qword [rsp + 0x4c8]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
sar rax, 1
shl rax, 1
lea rcx, [rsp + 0x280]
mov rdi, rcx
mov rsi, qword [rsp + 0x4c8]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x4c8]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
sar rax, 1
shl rax, 1
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0x208
jae 0x14015dea7
jmp 0x14015deac
call fcn.14027ffc0
xor eax, eax
mov rcx, qword [rsp + 0x50]
mov word [rsp + rcx + 0x280], ax
lea rdx, [rsp + 0x280]
mov rcx, qword [rsp + 0x4c0]
call fcn.14015dd70
mov rax, qword [rsp + 0x58]
add rax, 2
mov qword [rsp + 0x58], rax
mov eax, 2
imul rax, rax, 0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0x208
jae 0x14015def9
jmp 0x14015defe
call fcn.14027ffc0
xor eax, eax
mov rcx, qword [rsp + 0x60]
mov word [rsp + rcx + 0x70], ax
cmp qword [rsp + 0x4c0], 0
je 0x14015df74
mov rax, qword [rsp + 0x4c0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax]
mov word [rsp + 0x20], ax
mov rax, qword [rsp + 0x40]
movzx ecx, word [rsp + 0x20]
mov word [rax], cx
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x40]
add rax, 2
mov qword [rsp + 0x40], rax
cmp word [rsp + 0x20], 0
jne 0x14015df36
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
sub qword [rsp + 0x38], 2
add qword [rsp + 0x38], 2
mov rax, qword [rsp + 0x38]
cmp word [rax], 0
jne 0x14015df84
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x4c8]
xor edx, edx
movzx edi, word [rcx + rdx*2]
mov word [rax + rdx*2], di
inc rdx
test di, di
jne 0x14015dfa4
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14015dfd1
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.14027f960
add rsp, 0x4a8
pop rdi
pop rsi
ret