Function at 0x14002436c
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 r12
push r14
push r15
lea rbp, [rsp - 0x570]
sub rsp, 0x670
mov rax, qword [0x1400c5a08]
xor rax, rsp
mov qword [rbp + 0x560], rax
xor r12d, r12d
mov r8, rcx
test rcx, rcx
je 0x1400243e2
mov edi, 0x104
mov rax, r8
mov ecx, edi
cmp word [rax], r12w
je 0x1400243c3
add rax, 2
sub rcx, 1
jne 0x1400243b3
mov rax, rcx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rcx, rcx
je 0x1400243dd
sub rdi, rcx
jmp 0x1400243ec
mov rdi, r12
jmp 0x1400243ec
mov rdi, qword [rsp + 0x20]
mov ebx, 0x80070057
test ebx, ebx
cmovs rdi, r12
jns 0x1400243fb
mov ecx, ebx
jmp 0x1400245dc
mov r14d, 0x105
lea rcx, [rsp + 0x30]
mov edx, r14d
call fcn.1400026c0
mov ebx, eax
test eax, eax
js 0x1400245da
lea rax, [rdi - 1]
cmp rax, rdi
ja 0x140024429
mov rdi, rax
mov ebx, r12d
jmp 0x140024435
mov ebx, 0x80070216
mov ecx, ebx
call fcn.140025d30
mov ecx, ebx
call fcn.140025d50
test ebx, ebx
js 0x1400243f4
add rdi, rdi
mov ecx, 0x5c
cmp word [rsp + rdi + 0x30], cx
jne 0x140024462
cmp rdi, 0x20a
jae 0x140024616
mov word [rsp + rdi + 0x30], r12w
cmp word [rsp + 0x30], cx
lea rax, [rsp + 0x30]
lea rdi, [rsp + 0x32]
mov word [rbp + 0x140], r12w
cmovne rdi, rax
mov r15d, r12d
mov edx, ecx
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
mov r8, rdi
lea rcx, [rbp + 0x350]
mov rsi, rax
test rax, rax
jne 0x1400244bb
mov rdx, r14
call fcn.1400026c0
mov ebx, eax
test eax, eax
js 0x1400245da
lea r15d, [rsi + 1]
jmp 0x140024503
mov r14, rsi
mov edx, 0x105
sub r14, rdi
sar r14, 1
mov r9, r14
call fcn.14000274c
mov ebx, eax
test eax, eax
js 0x1400245da
cmp rsi, rdi
jb 0x1400245d0
add r14, r14
cmp r14, 0x20a
jae 0x140024616
mov word [rbp + r14 + 0x350], r12w
mov r14d, 0x105
lea r8, [rbp + 0x350]
mov rdx, r14
lea rcx, [rbp + 0x140]
call fcn.1400027e4
mov ebx, eax
test eax, eax
js 0x1400245da
lea rcx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14002453f
test al, 0x10
jne 0x140024570
xor edx, edx
lea rcx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x1400245a3
lea rcx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1400245a3
test rsi, rsi
je 0x140024595
lea r8, [0x14009ce88]
mov rdx, r14
lea rcx, [rbp + 0x140]
lea rdi, [rsi + 2]
call fcn.1400027e4
mov ebx, eax
test eax, eax
js 0x1400245da
test r15d, r15d
jne 0x1400245e1
lea ecx, [r15 + 0x5c]
jmp 0x140024480
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x1400245bd
mov ebx, 0x80004005
jmp 0x1400243f4
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400243f4
mov ebx, 0x80070216
jmp 0x1400243f4
mov ecx, eax
call fcn.140025d30
mov ecx, ebx
call fcn.140025d50
mov eax, ebx
mov rcx, qword [rbp + 0x560]
xor rcx, rsp
call fcn.140094220
lea r11, [rsp + 0x670]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1400944e8
int3