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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1803bc678]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r13, rcx
mov qword [rbp - 0x39], rcx
xor r14d, r14d
mov r15d, r14d
mov dword [rbp - 0x49], r14d
xor eax, eax
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
mov eax, 0x5c
mov r8d, eax
mov rdx, rcx
lea rcx, [rbp - 0x11]
call fcn.1801826b0
nop
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], r14w
mov qword [rbp - 0x21], r14
xor r8d, r8d
lea rdx, [0x18022a648]
lea rcx, [rbp - 0x31]
call sub.VCRUNTIME140.dll_memmove
mov word [rbp - 0x31], r14w
mov rsi, qword [rbp - 0x11]
mov r12, qword [rbp - 9]
cmp rsi, r12
je 0x18018491b
mov r8, 0xffffffffffffffff
movabs rcx, 0x7fffffffffffffff
movabs rax, 0x7ffffffffffffffe
mov qword [rbp + 0x17], r14
mov qword [rbp + 0x1f], r14
mov rdi, qword [rsi + 0x10]
mov r14, rsi
cmp qword [rsi + 0x18], 8
jb 0x18018447b
mov r14, qword [rsi]
cmp rdi, 8
jae 0x180184493
movups xmm0, xmmword [r14]
movups xmmword [rbp + 7], xmm0
mov ebx, 7
jmp 0x180184515
mov rbx, rdi
or rbx, 7
cmp rbx, rax
cmova rbx, rax
mov rax, rbx
add rax, 1
cmovb rax, r8
lea rdx, [rax + rax]
cmp rax, rcx
jbe 0x1801844ba
mov rdx, r8
jmp 0x1801844c3
cmp rdx, 0x1000
jb 0x1801844ed
lea rcx, [rdx + 0x27]
cmp rcx, rdx
cmovbe rcx, r8
call fcn.1801e5c94
mov rcx, rax
test rax, rax
je 0x180184965
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1801844fe
test rdx, rdx
je 0x1801844fc
mov rcx, rdx
call fcn.1801e5c94
jmp 0x1801844fe
xor eax, eax
mov qword [rbp + 7], rax
lea r8, [rdi*2 + 2]
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rdx, rdi
mov qword [rbp + 0x1f], rbx
mov qword [rbp + 0x17], rdx
xor r14d, r14d
mov qword [rbp - 0x59], r14
mov eax, 7
mov qword [rbp - 0x51], rax
mov word [rbp - 0x69], r14w
or r15d, 1
mov dword [rbp - 0x49], r15d
inc rdi
cmp rdi, 8
jb 0x180184568
xor eax, eax
movzx r8d, al
mov rdx, rdi
lea rcx, [rbp - 0x69]
call fcn.180183130
mov qword [rbp - 0x59], r14
mov rbx, qword [rbp + 0x1f]
mov rdx, qword [rbp + 0x17]
mov rax, qword [rbp - 0x51]
lea r9, [rbp + 7]
cmp rbx, 8
cmovae r9, qword [rbp + 7]
cmp rdx, rax
ja 0x1801845a4
mov qword [rbp - 0x59], rdx
lea rdi, [rbp - 0x69]
cmp rax, 8
cmovae rdi, qword [rbp - 0x69]
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi], r14w
jmp 0x1801845b8
xor eax, eax
mov qword [rsp + 0x20], rdx
movzx r8d, al
lea rcx, [rbp - 0x69]
call fcn.1801832a0
mov rcx, qword [rbp - 0x59]
mov rdx, qword [rbp - 0x51]
cmp rcx, rdx
jae 0x1801845e3
lea rax, [rcx + 1]
mov qword [rbp - 0x59], rax
lea rax, [rbp - 0x69]
cmp rdx, 8
cmovae rax, qword [rbp - 0x69]
mov dword [rax + rcx*2], 0x5c
jmp 0x1801845f9
xor eax, eax
lea r9d, [rax + 0x5c]
movzx r8d, al
lea edx, [rax + 1]
lea rcx, [rbp - 0x69]
call fcn.180183450
lea r9, [rbp - 0x69]
cmp qword [rbp - 0x51], 8
cmovae r9, qword [rbp - 0x69]
mov rdi, qword [rbp - 0x59]
mov r14, qword [rbp - 0x21]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
sub rax, r14
cmp rdi, rax
ja 0x180184651
lea rax, [rdi + r14]
mov qword [rbp - 0x21], rax
lea rbx, [rbp - 0x31]
cmp rcx, 8
cmovae rbx, qword [rbp - 0x31]
lea r8, [rdi + rdi]
lea rcx, [rbx + r14*2]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
lea rax, [r14 + rdi]
xor r14d, r14d
mov word [rbx + rax*2], r14w
jmp 0x18018466b
xor eax, eax
mov qword [rsp + 0x20], rdi
movzx r8d, al
mov rdx, rdi
lea rcx, [rbp - 0x31]
call fcn.1801832a0
xor r14d, r14d
and r15d, 0xfffffffe
mov rdx, qword [rbp - 0x51]
cmp rdx, 8
jb 0x1801846af
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801846aa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18018496c
call fcn.1801e5cd0
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x51], r14
mov rbx, qword [rbp - 0x21]
lea rdi, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rdi, qword [rbp - 0x31]
cmp rbx, 8
jae 0x1801846e7
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x51], 7
lea rcx, [rbp - 0x69]
jmp 0x180184798
mov r14, rbx
or r14, 7
movabs rax, 0x7ffffffffffffffe
cmp r14, rax
cmova r14, rax
mov rax, r14
add rax, 1
mov r8, 0xffffffffffffffff
cmovb rax, r8
lea rdx, [rax + rax]
movabs rcx, 0x7fffffffffffffff
cmp rax, rcx
jbe 0x180184729
mov rdx, r8
jmp 0x180184732
cmp rdx, 0x1000
jb 0x18018475c
lea rcx, [rdx + 0x27]
cmp rcx, rdx
cmovbe rcx, r8
call fcn.1801e5c94
mov rcx, rax
test rax, rax
je 0x180184973
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x18018476d
test rdx, rdx
je 0x18018476b
mov rcx, rdx
call fcn.1801e5c94
jmp 0x18018476d
xor eax, eax
mov qword [rbp - 0x69], rax
lea r8, [rbx*2 + 2]
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp - 0x51], r14
lea rcx, [rbp - 0x69]
cmp r14, 8
cmovae rcx, qword [rbp - 0x69]
xor r14d, r14d
mov qword [rbp - 0x59], rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1801847af
test al, 0x10
je 0x1801847af
mov bl, 1
jmp 0x1801847b1
xor bl, bl
lea rcx, [rbp - 0x69]
call fcn.18000aef0
test bl, bl
jne 0x1801848ca
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x51], r14
mov rbx, qword [rbp - 0x21]
lea rdi, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rdi, qword [rbp - 0x31]
cmp rbx, 8
jae 0x1801847fa
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x51], 7
lea rcx, [rbp - 0x69]
jmp 0x1801848ab
mov r14, rbx
or r14, 7
movabs rax, 0x7ffffffffffffffe
cmp r14, rax
cmova r14, rax
mov rax, r14
add rax, 1
mov r8, 0xffffffffffffffff
cmovb rax, r8
lea rdx, [rax + rax]
movabs rcx, 0x7fffffffffffffff
cmp rax, rcx
jbe 0x18018483c
mov rdx, r8
jmp 0x180184845
cmp rdx, 0x1000
jb 0x18018486f
lea rcx, [rdx + 0x27]
cmp rcx, rdx
cmovbe rcx, r8
call fcn.1801e5c94
mov rcx, rax
test rax, rax
je 0x18018497a
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x180184880
test rdx, rdx
je 0x18018487e
mov rcx, rdx
call fcn.1801e5c94
jmp 0x180184880
xor eax, eax
mov qword [rbp - 0x69], rax
lea r8, [rbx*2 + 2]
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp - 0x51], r14
lea rcx, [rbp - 0x69]
cmp r14, 8
cmovae rcx, qword [rbp - 0x69]
xor r14d, r14d
mov qword [rbp - 0x59], rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
lea rcx, [rbp - 0x69]
call fcn.18000aef0
test ebx, ebx
je 0x180184981
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x18018490a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180184905
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180184aed
call fcn.1801e5cd0
add rsi, 0x20
cmp rsi, r12
jne 0x180184447
mov rsi, qword [rbp - 0x11]
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x180184afd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180184af4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180184af4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rdi, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rdi, qword [rbp + 7]
lea rbx, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rbx, qword [rbp - 0x31]
call fcn.180177ad0
mov rcx, rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
lea r9, str.RecPath:___ls___Cannot_create_directory:___ls_
lea r8, [0x18022a680]
mov edx, 0x52
call fcn.1801778f0
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x180184a0b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180184a06
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180184a06
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1801e5cd0
mov qword [rbp + 0x17], r14
mov qword [rbp + 0x1f], 7
mov word [rbp + 7], r14w
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x180184a5f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180184a5a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180184a5a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1801e5cd0
mov qword [rbp - 0x21], r14
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], r14w
mov rbx, qword [rbp - 0x11]
test rbx, rbx
je 0x180184ade
mov rdi, qword [rbp - 9]
cmp rbx, rdi
je 0x180184a97
mov rcx, rbx
call fcn.18000aef0
add rbx, 0x20
cmp rbx, rdi
jne 0x180184a82
mov rbx, qword [rbp - 0x11]
mov rdx, qword [rbp - 1]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x180184aca
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180184aca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1801e5cd0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], r14
mov rcx, r13
call fcn.18000aef0
xor al, al
jmp 0x180184b86
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1801e5cd0
mov rsi, qword [rbp - 0x11]
mov qword [rbp - 0x21], r14
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], r14w
test rsi, rsi
je 0x180184b7c
mov rbx, qword [rbp - 9]
cmp rsi, rbx
je 0x180184b35
nop dword [rax]
mov rcx, rsi
call fcn.18000aef0
add rsi, 0x20
cmp rsi, rbx
jne 0x180184b20
mov rsi, qword [rbp - 0x11]
mov rdx, qword [rbp - 1]
sub rdx, rsi
and rdx, 0xffffffffffffffe0
mov rax, rsi
cmp rdx, 0x1000
jb 0x180184b68
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180184b68
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.1801e5cd0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], r14
mov rcx, r13
call fcn.18000aef0
mov al, 1
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1801e5c70
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret