Function at 0x140003790
Capabilities:
Check if file exists
Create directory
Get file attributes
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x14001a040]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rdi, rcx
xor ebx, ebx
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], rbx
xor r8d, r8d
lea rdx, [0x140013919]
lea rcx, [rbp - 0x80]
call fcn.14000fa80
nop
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
mov qword [rsp + 0x78], rbx
mov esi, ebx
lea r12, [0x14001398a]
mov r15, 0xffffffffffffffff
mov r13d, 0xf
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [rdi + 0x10]
mov r14, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140003831
mov r14, qword [rdi]
cmp rsi, rbx
jae 0x140003886
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x140013988]
nop
movzx eax, byte [rcx]
mov byte [rbp + rax - 0x60], 1
inc rcx
cmp rcx, r12
jne 0x140003850
lea rcx, [rbx + r14]
lea rbx, [r14 + rsi]
cmp rbx, rcx
jae 0x140003886
nop dword [rax]
movzx eax, byte [rbx]
cmp byte [rbp + rax - 0x60], 0
jne 0x14000390d
inc rbx
cmp rbx, rcx
jb 0x140003870
mov rbx, r15
mov rax, qword [rdi + 0x10]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
cmp rbx, 0xffffffffffffffff
je 0x14000396a
xor ecx, ecx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rcx
cmp rax, rsi
jb 0x140003c6d
mov r8, rbx
sub r8, rsi
sub rax, rsi
cmp rax, r8
cmovb r8, rax
mov rax, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x1400038d1
mov rax, qword [rdi]
lea rdx, [rax + rsi]
lea rcx, [rsp + 0x40]
call fcn.14000fa80
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, qword [rsp + 0x78]
je 0x140003915
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rdx + 0x10], xmm1
mov rdx, r13
mov byte [rsp + 0x40], 0
add qword [rsp + 0x70], 0x20
jmp 0x140003929
sub rbx, r14
jmp 0x140003889
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140010870
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140003961
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000395c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003b7d
call fcn.14001188c
lea rsi, [rbx + 1]
jmp 0x140003820
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
cmp rax, rsi
jb 0x140003c6d
sub rax, rsi
cmp rax, 0xffffffffffffffff
cmovb r15, rax
cmp qword [rdi + 0x18], 0xf
jbe 0x140003991
mov rdi, qword [rdi]
lea rdx, [rdi + rsi]
mov r8, r15
lea rcx, [rsp + 0x40]
call fcn.14000fa80
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, qword [rsp + 0x78]
je 0x1400039cd
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rdx + 0x10], xmm1
mov byte [rsp + 0x40], 0
add qword [rsp + 0x70], 0x20
jmp 0x1400039e1
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140010870
mov r13, qword [rsp + 0x58]
cmp r13, 0xf
jbe 0x140003a1a
lea rdx, [r13 + 1]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003a15
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003b7d
call fcn.14001188c
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
cmp rbx, rdi
je 0x140003b2a
movabs rsi, 0x7fffffffffffffff
lea r14, [0x14001398c]
nop
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140003b18
mov rax, rsi
sub rax, rcx
cmp rax, 1
jb 0x140003c67
mov r9, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140003a6a
mov r9, qword [rbx]
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x40]
call fcn.1400102d0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.14000df80
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140003ad4
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003acf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003b7d
call fcn.14001188c
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140003af1
test al, 0x10
jne 0x140003b18
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova rcx, qword [rbp - 0x80]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x140003b18
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140003b84
add rbx, 0x20
cmp rbx, rdi
jne 0x140003a40
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x140003bf9
mov rdx, qword [rsp + 0x70]
mov rcx, rbx
call fcn.14000fb80
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003be2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003be2
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
lea rdx, str.Failed_to_create_directory:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000ed70
mov rcx, rax
lea rdx, [rbp - 0x80]
call fcn.14000f100
mov rcx, rax
lea rdx, str._Error_code:
call fcn.14000ed70
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x14000f140]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
call fcn.14001188c
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x140003c37
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003c32
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003c32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001188c
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140011520
lea r11, [rsp + 0x1b0]
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
call fcn.140001570
nop
call fcn.14000e8a0
int3