Function at 0x14000f160
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 [0x14005a8e0]
xor rax, rsp
mov qword [rbp + 0x550], rax
xor r12d, r12d
mov rdx, rcx
test rcx, rcx
je 0x14000f4b2
mov r8d, 0x104
mov rax, rdx
mov ecx, r8d
cmp word [rax], r12w
je 0x14000f1be
add rax, 2
sub rcx, 1
jne 0x14000f1ae
mov rax, rcx
neg rax
mov rax, rcx
sbb ebx, ebx
sub r8, rcx
not ebx
and ebx, 0x80070057
neg rax
mov eax, ebx
sbb rdi, rdi
and rdi, r8
test rcx, rcx
je 0x14000f4b9
lea rax, [rsp + 0x20]
mov r8d, 0x105
sub rdx, rax
lea rcx, [rsp + 0x20]
lea rax, [r8 + 0x7ffffef9]
test rax, rax
je 0x14000f21d
movzx eax, word [rdx + rcx]
test ax, ax
je 0x14000f21d
mov word [rcx], ax
add rcx, 2
sub r8, 1
jne 0x14000f1fb
test r8, r8
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r12w
mov rax, r8
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x8007007a
test r8, r8
jne 0x14000f248
mov ecx, ebx
jmp 0x14000f4bb
lea rax, [rdi - 1]
cmp rax, rdi
ja 0x14000f259
mov rdi, rax
mov ebx, r12d
jmp 0x14000f265
mov ebx, 0x80070216
mov ecx, ebx
call fcn.14000d0b0
mov ecx, ebx
call fcn.14000cfd4
test ebx, ebx
js 0x14000f241
add rdi, rdi
mov ecx, 0x5c
cmp word [rsp + rdi + 0x20], cx
jne 0x14000f292
cmp rdi, 0x20a
jae 0x14000f4f6
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 0x14000f338
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 0x14000f305
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14000f305
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14000f2e2
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 0x14000f241
mov r15d, 1
jmp 0x14000f3d7
mov rcx, r14
sub rcx, rdi
sar rcx, 1
cmp rcx, 0x7ffffffe
ja 0x14000f4b2
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 0x14000f38b
movzx eax, word [r9 + rdx]
test ax, ax
je 0x14000f38b
mov word [rdx], ax
add rdx, 2
sub r8, 1
jne 0x14000f368
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
mov eax, ebx
test r8, r8
je 0x14000f4b9
cmp r14, rdi
jb 0x14000f4a8
add rcx, rcx
cmp rcx, 0x20a
jae 0x14000f4f6
mov word [rbp + rcx + 0x130], r12w
lea r8, [rbp + 0x130]
mov edx, 0x105
lea rcx, [rbp + 0x340]
call fcn.1400046a0
mov ebx, eax
test eax, eax
js 0x14000f4b9
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 0x14000f415
test al, 0x10
jne 0x14000f446
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 0x14000f47b
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 0x14000f47b
test r14, r14
je 0x14000f46d
lea r8, [0x140039f98]
mov edx, 0x105
lea rcx, [rbp + 0x340]
lea rdi, [r14 + 2]
call fcn.1400046a0
mov ebx, eax
test eax, eax
js 0x14000f4b9
test r15d, r15d
jne 0x14000f4c0
lea ecx, [r15 + 0x5c]
jmp 0x14000f2b0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x14000f495
mov ebx, 0x80004005
jmp 0x14000f241
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14000f241
mov ebx, 0x80070216
jmp 0x14000f241
mov eax, 0x80070057
mov ebx, eax
mov ecx, eax
call fcn.14000d0b0
mov ecx, ebx
call fcn.14000cfd4
mov eax, ebx
mov rcx, qword [rbp + 0x550]
xor rcx, rsp
call fcn.1400339f0
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.140033b38
int3