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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x570]
sub rsp, 0x670
mov rax, qword [0x140055910]
xor rax, rsp
mov qword [rbp + 0x560], rax
xor r15d, r15d
mov r8, rcx
test rcx, rcx
je 0x14000d092
mov edi, 0x104
mov rax, r8
mov ecx, edi
cmp word [rax], r15w
je 0x14000d073
add rax, 2
sub rcx, 1
jne 0x14000d063
mov rax, rcx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rcx, rcx
je 0x14000d08d
sub rdi, rcx
jmp 0x14000d09c
mov rdi, r15
jmp 0x14000d09c
mov rdi, qword [rsp + 0x20]
mov ebx, 0x80070057
test ebx, ebx
cmovs rdi, r15
js 0x14000d2e3
mov r13d, 0x105
lea rcx, [rsp + 0x30]
mov edx, r13d
call fcn.140003870
mov ebx, eax
test eax, eax
jns 0x14000d0c8
mov ecx, eax
jmp 0x14000d2e5
lea rax, [rdi - 1]
cmp rax, rdi
ja 0x14000d0d9
mov rdi, rax
mov ebx, r15d
jmp 0x14000d0e5
mov ebx, 0x80070216
mov ecx, ebx
call fcn.14000b750
mov ecx, ebx
call fcn.14000b770
test ebx, ebx
js 0x14000d2e3
add rdi, rdi
mov ecx, 0x5c
cmp word [rsp + rdi + 0x30], cx
jne 0x14000d116
cmp rdi, 0x20a
jae 0x14000d31f
mov word [rsp + rdi + 0x30], r15w
cmp word [rsp + 0x30], cx
lea rax, [rsp + 0x30]
lea rdi, [rsp + 0x32]
mov word [rbp + 0x140], r15w
cmovne rdi, rax
mov r14d, r15d
mov edx, ecx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcschr]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x14000d172
mov r8, rdi
lea rcx, [rbp + 0x350]
mov rdx, r13
call fcn.140003870
mov ebx, eax
test eax, eax
js 0x14000d0c1
lea r14d, [rsi + 1]
jmp 0x14000d20c
mov rcx, rsi
sub rcx, rdi
sar rcx, 1
cmp rcx, 0x7ffffffe
ja 0x14000d2de
lea rax, [rbp + 0x350]
mov r9, rdi
sub r9, rax
lea rdx, [rbp + 0x350]
mov r8, r13
lea rax, [r8 - 0x105]
add rax, rcx
je 0x14000d1c2
movzx eax, word [r9 + rdx]
test ax, ax
je 0x14000d1c2
mov word [rdx], ax
add rdx, 2
sub r8, 1
jne 0x14000d19f
test r8, r8
lea rax, [rdx - 2]
cmovne rax, rdx
mov word [rax], r15w
mov rax, r8
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x8007007a
test r8, r8
je 0x14000d2e3
cmp rsi, rdi
jb 0x14000d2d7
add rcx, rcx
cmp rcx, 0x20a
jae 0x14000d31f
mov word [rbp + rcx + 0x350], r15w
lea r8, [rbp + 0x350]
mov rdx, r13
lea rcx, [rbp + 0x140]
call fcn.1400038fc
mov ebx, eax
test eax, eax
js 0x14000d0c1
lea rcx, [rbp + 0x140]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14000d248
test al, 0x10
jne 0x14000d279
xor edx, edx
lea rcx, [rbp + 0x140]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14000d2b0
lea rcx, [rbp + 0x140]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14000d2b0
test rsi, rsi
je 0x14000d2a2
lea r8, [0x140035e20]
mov rdx, r13
lea rcx, [rbp + 0x140]
lea rdi, [rsi + 2]
call fcn.1400038fc
mov ebx, eax
test eax, eax
js 0x14000d0c1
test r14d, r14d
jne 0x14000d2ea
lea ecx, [r14 + 0x5c]
jmp 0x14000d134
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x14000d2c7
mov ebx, 0x80004005
jmp 0x14000d2e3
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14000d2e3
mov ebx, 0x80070216
jmp 0x14000d2e3
mov ebx, 0x80070057
mov ecx, ebx
call fcn.14000b750
mov ecx, ebx
call fcn.14000b770
mov eax, ebx
mov rcx, qword [rbp + 0x560]
xor rcx, rsp
call fcn.14002fd10
lea r11, [rsp + 0x670]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
call fcn.14002fe88
int3