Function at 0x1400403b0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x1400f1180]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rbx, rdx
mov r14, rcx
xor r15d, r15d
xor sil, sil
lea rdi, [rdx + 0x10]
cmp qword [rdi], r15
je 0x140040679
mov r8b, 0x5c
lea edx, [r15 + 1]
lea rcx, [rbp - 0x31]
call fcn.14004aae0
nop
mov r8, rax
mov rdx, r14
lea rcx, [rbp - 0x51]
call fcn.14004c4a0
nop
cmp qword [rbx + 0x18], 0x10
jb 0x14004041a
mov rbx, qword [rbx]
mov r8, qword [rdi]
mov rdx, rbx
mov rcx, rax
call fcn.140007420
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x11], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 1], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x140040493
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004048e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004048e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bed30
movdqa xmm0, xmmword [0x1400dc530]
movdqu xmmword [rbp - 0x41], xmm0
mov byte [rbp - 0x51], 0
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x1400404e2
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400404dd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400404dd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bed30
movdqa xmm0, xmmword [0x1400dc530]
movdqu xmmword [rbp - 0x21], xmm0
mov byte [rbp - 0x31], 0
xor sil, sil
mov rax, qword [rbp - 1]
test rax, rax
sete cl
test rax, rax
je 0x14004063b
test cl, cl
jne 0x14004058c
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 0x10
cmovae rcx, qword [rbp - 0x11]
call fcn.140037130
mov rdi, rax
test rax, rax
je 0x14004057d
mov rbx, qword [rax + 0x128]
test rbx, rbx
jne 0x14004053f
lea ecx, [rbx + 9]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_errno]
jmp 0x140040568
mov rcx, qword [rbx + 0x480]
cmp rcx, 0xffffffffffffffff
je 0x140040552
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbx + 0x488]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x128], r15
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14004063b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 2
jne 0x14004063b
lea rdx, [rbp - 0x11]
lea rcx, [rbp + 0xf]
call fcn.140037740
nop
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rcx, qword [rbp + 0xf]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400405b9
mov sil, 1
jmp 0x1400405f7
lea rdx, str.Error_creating_directory
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001dc0
lea rdx, [rbp - 0x11]
cmp qword [rbp + 7], 0x10
cmovae rdx, qword [rbp - 0x11]
mov r8, qword [rbp - 1]
mov rcx, rax
call fcn.14004ed80
mov rcx, rax
lea rdx, [0x14004c460]
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]
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x14004063b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040635
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040635
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bed30
nop
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x140040679
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040674
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040674
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bed30
movzx eax, sil
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400bed10
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret