Function at 0x140005fd0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x140112040]
xor rax, rsp
mov qword [rbp + 0xd8], rax
mov rsi, rdx
mov r14, rcx
mov qword [rbp + 0x90], rdx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
xor edx, edx
lea rcx, str.C:cs2_internal
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [rsi + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 0x10
jb 0x14000672d
mov rax, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x14000604e
mov rax, qword [rsi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x10
lea r9, str.C:cs2_internal_
lea rcx, [rsp + 0x48]
call fcn.140007c20
mov ebx, 1
lea r8d, [rbx + 3]
lea rdx, str..cfg
lea rcx, [rsp + 0x48]
call fcn.140007630
xorps xmm0, xmm0
movups xmmword [rbp + 0xb8], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xc8], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xb8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xc8], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
or ebx, 2
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140006108
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006103
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006103
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cff2c
movdqa xmm0, xmmword [0x1400ff510]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x1400f44d8]
mov qword [rsp + 0x70], rax
lea rax, [0x1400f4428]
mov qword [rbp - 0x80], rax
lea rcx, [rbp + 0x28]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
or ebx, 4
mov dword [rsp + 0x40], ebx
xor r8d, r8d
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], r12
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rbp - 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x78], rax
mov byte [rbp + 4], 0
mov byte [rbp - 7], 0
lea rcx, [rbp - 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 8], r15
mov rax, qword [0x14020db10]
mov qword [rbp - 4], rax
mov qword [rbp - 0x10], r15
lea rdx, [rbp + 0xb8]
cmp qword [rbp + 0xd0], 0xf
cmova rdx, qword [rbp + 0xb8]
mov r8d, 3
lea rcx, [rbp - 0x78]
call fcn.1400076b0
xor r8d, r8d
test rax, rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
je 0x140006214
add rcx, rax
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x140006222
add rcx, rax
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
cmp qword [rbp + 8], 0
jne 0x140006332
lea rcx, [rbp - 0x78]
call fcn.140007570
test rax, rax
jne 0x14000625a
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], r12
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rbp - 0x78]
call fcn.140007330
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp + 0xd0]
cmp rdx, 0xf
jbe 0x1400062da
inc rdx
mov rcx, qword [rbp + 0xb8]
cmp rdx, 0x1000
mov rax, rcx
jb 0x1400062d5
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006691
call fcn.1400cff2c
movdqa xmm0, xmmword [0x1400ff510]
mov byte [rbp + 0xb8], 0
movdqu xmmword [rbp + 0xc8], xmm0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x14000632b
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rsi]
jb 0x140006326
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140006726
mov rcx, r8
call fcn.1400cff2c
xor al, al
jmp 0x1400066ec
xorps xmm0, xmm0
movups xmmword [rbp + 0x98], xmm0
mov qword [rbp + 0xa8], r15
mov edi, 0xf
mov qword [rbp + 0xb0], rdi
mov byte [rbp + 0x98], 0
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
je 0x1400065ab
nop word [rax + rax]
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp + 0x98]
lea rcx, [rsp + 0x70]
call fcn.140007d40
cmp qword [rbp + 0xa8], 0x7940
ja 0x140006538
mov r11d, r15d
mov rdi, qword [rbp + 0xb0]
cmp rdi, 0xf
seta r9b
mov r10, r14
mov rax, r15
mov rbx, qword [rbp + 0x98]
nop
lea rcx, [rbp + 0x98]
cmp rdi, 0xf
cmova rcx, rbx
movzx edx, byte [r10]
cmp byte [rax + rcx], 0x31
jne 0x1400063ff
bts edx, 0
jmp 0x140006403
btr edx, 0
movzx r8d, dl
lea rcx, [rbp + 0x98]
test r9b, r9b
cmovne rcx, rbx
cmp byte [rax + rcx + 1], 0x31
jne 0x140006423
bts r8d, 1
jmp 0x140006428
btr r8d, 1
movzx edx, r8b
lea rcx, [rbp + 0x98]
test r9b, r9b
cmovne rcx, rbx
cmp byte [rax + rcx + 2], 0x31
jne 0x140006447
bts edx, 2
jmp 0x14000644b
btr edx, 2
movzx r8d, dl
lea rcx, [rbp + 0x98]
test r9b, r9b
cmovne rcx, rbx
cmp byte [rax + rcx + 3], 0x31
jne 0x14000646b
bts r8d, 3
jmp 0x140006470
btr r8d, 3
movzx edx, r8b
lea rcx, [rbp + 0x98]
test r9b, r9b
cmovne rcx, rbx
cmp byte [rax + rcx + 4], 0x31
jne 0x14000648f
bts edx, 4
jmp 0x140006493
btr edx, 4
movzx r8d, dl
lea rcx, [rbp + 0x98]
test r9b, r9b
cmovne rcx, rbx
cmp byte [rax + rcx + 5], 0x31
jne 0x1400064b3
bts r8d, 5
jmp 0x1400064b8
btr r8d, 5
movzx edx, r8b
lea rcx, [rbp + 0x98]
test r9b, r9b
cmovne rcx, rbx
cmp byte [rax + rcx + 6], 0x31
jne 0x1400064d7
bts edx, 6
jmp 0x1400064db
btr edx, 6
movzx edx, dl
lea rcx, [rbp + 0x98]
test r9b, r9b
cmovne rcx, rbx
cmp byte [rax + rcx + 7], 0x31
jne 0x1400064f9
bts edx, 7
jmp 0x1400064fd
btr edx, 7
mov byte [r10], dl
inc r11d
add rax, 8
inc r10
cmp r11d, 0xf28
jb 0x1400063e0
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
jne 0x140006380
jmp 0x1400065b2
lea rcx, [rbp - 0x78]
call fcn.140007570
test rax, rax
jne 0x140006565
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rdx, qword [rbp + 0xb0]
cmp rdx, 0xf
jbe 0x14000625a
inc rdx
mov rcx, qword [rbp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400065a1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000660a
call fcn.1400cff2c
jmp 0x14000625a
mov rbx, qword [rbp + 0x98]
lea rcx, [rbp - 0x78]
call fcn.140007570
test rax, rax
jne 0x1400065df
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
cmp rdi, 0xf
jbe 0x14000661a
lea rdx, [rdi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140006611
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006611
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1400cff2c
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], r12
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rbp - 0x78]
call fcn.140007330
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp + 0xd0]
cmp rdx, 0xf
jbe 0x14000669d
inc rdx
mov rcx, qword [rbp + 0xb8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006698
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006698
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cff2c
movdqa xmm0, xmmword [0x1400ff510]
movdqu xmmword [rbp + 0xc8], xmm0
mov byte [rbp + 0xb8], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x1400066ea
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x1400066e5
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140006726
mov rcx, r8
call fcn.1400cff2c
mov al, 1
mov byte [rsi], 0
mov qword [rsi + 0x18], 0xf
mov qword [rsi + 0x10], r15
mov rcx, qword [rbp + 0xd8]
xor rcx, rsp
call fcn.1400cfbc0
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140003910
nop
int3