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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x578]
sub rsp, 0x660
mov rax, qword [0x1400548d0]
xor rax, rsp
mov qword [rbp + 0x550], rax
xor r12d, r12d
test rcx, rcx
je 0x14000dbab
mov r8d, 0x104
mov rax, rcx
mov edx, r8d
cmp word [rax], r12w
je 0x14000d8af
add rax, 2
sub rdx, 1
jne 0x14000d89f
mov rax, rdx
neg rax
mov rax, rdx
sbb ebx, ebx
sub r8, rdx
not ebx
and ebx, 0x80070057
neg rax
mov eax, ebx
sbb rdi, rdi
and rdi, r8
test rdx, rdx
je 0x14000dbb2
lea rax, [rsp + 0x20]
mov r8d, 0x105
sub rcx, rax
lea rdx, [rsp + 0x20]
lea rax, [r8 + 0x7ffffef9]
test rax, rax
je 0x14000d90e
movzx eax, word [rcx + rdx]
test ax, ax
je 0x14000d90e
mov word [rdx], ax
add rdx, 2
sub r8, 1
jne 0x14000d8ec
test r8, r8
lea rax, [rdx - 2]
cmovne rax, rdx
mov word [rax], r12w
mov rax, r8
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x8007007a
test r8, r8
jne 0x14000d939
mov ecx, ebx
jmp 0x14000dbb4
lea rax, [rdi - 1]
cmp rax, rdi
ja 0x14000d94a
mov rdi, rax
mov ebx, r12d
jmp 0x14000d956
mov ebx, 0x80070216
mov ecx, ebx
call fcn.14000b6d0
mov ecx, ebx
call fcn.14000b5f4
test ebx, ebx
js 0x14000d932
add rdi, rdi
mov ecx, 0x5c
cmp word [rsp + rdi + 0x20], cx
jne 0x14000d983
cmp rdi, 0x20a
jae 0x14000dbef
mov word [rsp + rdi + 0x20], r12w
cmp word [rsp + 0x20], cx
lea rdi, [rsp + 0x20]
lea rax, [rsp + 0x22]
mov word [rbp + 0x340], r12w
cmove rdi, rax
mov r15d, r12d
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 r14, rax
test rax, rax
jne 0x14000da29
lea rax, [rbp + 0x130]
mov r8, rdi
sub r8, rax
lea rcx, [rbp + 0x130]
mov edx, 0x105
lea rax, [rdx + 0x7ffffef9]
test rax, rax
je 0x14000d9f6
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14000d9f6
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14000d9d3
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r12w
mov rax, rdx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x8007007a
test rdx, rdx
je 0x14000d932
mov r15d, 1
jmp 0x14000dac6
mov rcx, r14
sub rcx, rdi
sar rcx, 1
cmp rcx, 0x7ffffffe
ja 0x14000dba1
lea rax, [rbp + 0x130]
mov r9, rdi
sub r9, rax
lea rdx, [rbp + 0x130]
mov r8d, 0x105
lea rax, [r8 - 0x105]
add rax, rcx
je 0x14000da7c
movzx eax, word [r9 + rdx]
test ax, ax
je 0x14000da7c
mov word [rdx], ax
add rdx, 2
sub r8, 1
jne 0x14000da59
test r8, r8
lea rax, [rdx - 2]
cmovne rax, rdx
mov word [rax], r12w
mov rax, r8
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x8007007a
test r8, r8
je 0x14000d932
cmp r14, rdi
jb 0x14000db97
add rcx, rcx
cmp rcx, 0x20a
jae 0x14000dbef
mov word [rbp + rcx + 0x130], r12w
lea r8, [rbp + 0x130]
mov edx, 0x105
lea rcx, [rbp + 0x340]
call fcn.1400036e0
mov ebx, eax
test eax, eax
js 0x14000dbb2
lea rcx, [rbp + 0x340]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14000db04
test al, 0x10
jne 0x14000db35
xor edx, edx
lea rcx, [rbp + 0x340]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14000db6a
lea rcx, [rbp + 0x340]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14000db6a
test r14, r14
je 0x14000db5c
lea r8, [0x140036f78]
mov edx, 0x105
lea rcx, [rbp + 0x340]
lea rdi, [r14 + 2]
call fcn.1400036e0
mov ebx, eax
test eax, eax
js 0x14000dbb2
test r15d, r15d
jne 0x14000dbb9
lea ecx, [r15 + 0x5c]
jmp 0x14000d9a1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x14000db84
mov ebx, 0x80004005
jmp 0x14000d932
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14000d932
mov ebx, 0x80070216
jmp 0x14000d932
mov ebx, 0x80070057
jmp 0x14000d932
mov eax, 0x80070057
mov ebx, eax
mov ecx, eax
call fcn.14000b6d0
mov ecx, ebx
call fcn.14000b5f4
mov eax, ebx
mov rcx, qword [rbp + 0x550]
xor rcx, rsp
call fcn.140031070
lea r11, [rsp + 0x660]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov r12, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.1400311b8
int3