Function at 0x140006040
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 [0x14008d040]
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 0x14000679d
mov rax, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x1400060be
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.140007c90
mov ebx, 1
lea r8d, [rbx + 3]
lea rdx, str..cfg
lea rcx, [rsp + 0x48]
call fcn.1400076a0
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 0x140006178
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006173
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006173
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006e27c
movdqa xmm0, xmmword [0x140081680]
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, [0x1400765c0]
mov qword [rsp + 0x70], rax
lea rax, [0x140076510]
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 [0x140188b80]
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.140007720
xor r8d, r8d
test rax, rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
je 0x140006284
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 0x140006292
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 0x1400063a2
lea rcx, [rbp - 0x78]
call fcn.1400075e0
test rax, rax
jne 0x1400062ca
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.1400073a0
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 0x14000634a
inc rdx
mov rcx, qword [rbp + 0xb8]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140006345
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006701
call fcn.14006e27c
movdqa xmm0, xmmword [0x140081680]
mov byte [rbp + 0xb8], 0
movdqu xmmword [rbp + 0xc8], xmm0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x14000639b
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rsi]
jb 0x140006396
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140006796
mov rcx, r8
call fcn.14006e27c
xor al, al
jmp 0x14000675c
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 0x14000661b
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.140007db0
cmp qword [rbp + 0xa8], 0x7940
ja 0x1400065a8
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 0x14000646f
bts edx, 0
jmp 0x140006473
btr edx, 0
movzx r8d, dl
lea rcx, [rbp + 0x98]
test r9b, r9b
cmovne rcx, rbx
cmp byte [rax + rcx + 1], 0x31
jne 0x140006493
bts r8d, 1
jmp 0x140006498
btr r8d, 1
movzx edx, r8b
lea rcx, [rbp + 0x98]
test r9b, r9b
cmovne rcx, rbx
cmp byte [rax + rcx + 2], 0x31
jne 0x1400064b7
bts edx, 2
jmp 0x1400064bb
btr edx, 2
movzx r8d, dl
lea rcx, [rbp + 0x98]
test r9b, r9b
cmovne rcx, rbx
cmp byte [rax + rcx + 3], 0x31
jne 0x1400064db
bts r8d, 3
jmp 0x1400064e0
btr r8d, 3
movzx edx, r8b
lea rcx, [rbp + 0x98]
test r9b, r9b
cmovne rcx, rbx
cmp byte [rax + rcx + 4], 0x31
jne 0x1400064ff
bts edx, 4
jmp 0x140006503
btr edx, 4
movzx r8d, dl
lea rcx, [rbp + 0x98]
test r9b, r9b
cmovne rcx, rbx
cmp byte [rax + rcx + 5], 0x31
jne 0x140006523
bts r8d, 5
jmp 0x140006528
btr r8d, 5
movzx edx, r8b
lea rcx, [rbp + 0x98]
test r9b, r9b
cmovne rcx, rbx
cmp byte [rax + rcx + 6], 0x31
jne 0x140006547
bts edx, 6
jmp 0x14000654b
btr edx, 6
movzx edx, dl
lea rcx, [rbp + 0x98]
test r9b, r9b
cmovne rcx, rbx
cmp byte [rax + rcx + 7], 0x31
jne 0x140006569
bts edx, 7
jmp 0x14000656d
btr edx, 7
mov byte [r10], dl
inc r11d
add rax, 8
inc r10
cmp r11d, 0xf28
jb 0x140006450
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 0x1400063f0
jmp 0x140006622
lea rcx, [rbp - 0x78]
call fcn.1400075e0
test rax, rax
jne 0x1400065d5
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 0x1400062ca
inc rdx
mov rcx, qword [rbp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006611
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000667a
call fcn.14006e27c
jmp 0x1400062ca
mov rbx, qword [rbp + 0x98]
lea rcx, [rbp - 0x78]
call fcn.1400075e0
test rax, rax
jne 0x14000664f
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 0x14000668a
lea rdx, [rdi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140006681
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006681
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.14006e27c
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.1400073a0
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 0x14000670d
inc rdx
mov rcx, qword [rbp + 0xb8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006708
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006708
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006e27c
movdqa xmm0, xmmword [0x140081680]
movdqu xmmword [rbp + 0xc8], xmm0
mov byte [rbp + 0xb8], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x14000675a
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140006755
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140006796
mov rcx, r8
call fcn.14006e27c
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.14006df10
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