Function at 0x140008040
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 [0x14018f080]
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 0x14000879d
mov rax, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x1400080be
mov rax, qword [rsi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r9, str.C:cs2_internal_
lea rcx, [rsp + 0x48]
call fcn.140009c00
mov ebx, 1
lea r8d, [rbx + 3]
lea rdx, str..cfg
lea rcx, [rsp + 0x48]
call fcn.1400096b0
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], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
or ebx, 2
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140008178
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008173
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140008173
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14013556c
movdqa xmm0, xmmword [0x140175370]
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, [0x140170360]
mov qword [rsp + 0x70], rax
lea rax, [0x1401702c8]
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, [0x140170358]
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, [0x1401702d8]
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 [0x14028b330]
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.140009740
xor r8d, r8d
test rax, rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
je 0x140008284
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 0x140008292
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 0x1400083a2
lea rcx, [rbp - 0x78]
call fcn.1400095f0
test rax, rax
jne 0x1400082ca
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.1400093b0
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 0x14000834a
inc rdx
mov rcx, qword [rbp + 0xb8]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140008345
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008701
call fcn.14013556c
movdqa xmm0, xmmword [0x140175370]
mov byte [rbp + 0xb8], 0
movdqu xmmword [rbp + 0xc8], xmm0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x14000839b
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rsi]
jb 0x140008396
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140008796
mov rcx, r8
call fcn.14013556c
xor al, al
jmp 0x14000875c
xorps xmm0, xmm0
movups xmmword [rbp + 0x98], xmm0
mov qword [rbp + 0xa8], r15
mov edi, reloc.WS2_32.dll_ntohs
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 0x14000861b
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.140009d20
cmp qword [rbp + 0xa8], 0x7940
ja 0x1400085a8
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 0x14000846f
bts edx, 0
jmp 0x140008473
btr edx, 0
movzx r8d, dl
lea rcx, [rbp + 0x98]
test r9b, r9b
cmovne rcx, rbx
cmp byte [rax + rcx + 1], 0x31
jne 0x140008493
bts r8d, 1
jmp 0x140008498
btr r8d, 1
movzx edx, r8b
lea rcx, [rbp + 0x98]
test r9b, r9b
cmovne rcx, rbx
cmp byte [rax + rcx + 2], 0x31
jne 0x1400084b7
bts edx, 2
jmp 0x1400084bb
btr edx, 2
movzx r8d, dl
lea rcx, [rbp + 0x98]
test r9b, r9b
cmovne rcx, rbx
cmp byte [rax + rcx + 3], 0x31
jne 0x1400084db
bts r8d, 3
jmp 0x1400084e0
btr r8d, 3
movzx edx, r8b
lea rcx, [rbp + 0x98]
test r9b, r9b
cmovne rcx, rbx
cmp byte [rax + rcx + 4], 0x31
jne 0x1400084ff
bts edx, 4
jmp 0x140008503
btr edx, 4
movzx r8d, dl
lea rcx, [rbp + 0x98]
test r9b, r9b
cmovne rcx, rbx
cmp byte [rax + rcx + 5], 0x31
jne 0x140008523
bts r8d, 5
jmp 0x140008528
btr r8d, 5
movzx edx, r8b
lea rcx, [rbp + 0x98]
test r9b, r9b
cmovne rcx, rbx
cmp byte [rax + rcx + 6], 0x31
jne 0x140008547
bts edx, 6
jmp 0x14000854b
btr edx, 6
movzx edx, dl
lea rcx, [rbp + 0x98]
test r9b, r9b
cmovne rcx, rbx
cmp byte [rax + rcx + 7], 0x31
jne 0x140008569
bts edx, 7
jmp 0x14000856d
btr edx, 7
mov byte [r10], dl
inc r11d
add rax, 8
inc r10
cmp r11d, 0xf28
jb 0x140008450
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 0x1400083f0
jmp 0x140008622
lea rcx, [rbp - 0x78]
call fcn.1400095f0
test rax, rax
jne 0x1400085d5
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 0x1400082ca
inc rdx
mov rcx, qword [rbp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008611
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000867a
call fcn.14013556c
jmp 0x1400082ca
mov rbx, qword [rbp + 0x98]
lea rcx, [rbp - 0x78]
call fcn.1400095f0
test rax, rax
jne 0x14000864f
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 0x14000868a
lea rdx, [rdi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140008681
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140008681
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.14013556c
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.1400093b0
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 0x14000870d
inc rdx
mov rcx, qword [rbp + 0xb8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008708
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140008708
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14013556c
movdqa xmm0, xmmword [0x140175370]
movdqu xmmword [rbp + 0xc8], xmm0
mov byte [rbp + 0xb8], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x14000875a
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140008755
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140008796
mov rcx, r8
call fcn.14013556c
mov al, 1
mov byte [rsi], 0
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rsi + 0x10], r15
mov rcx, qword [rbp + 0xd8]
xor rcx, rsp
call fcn.140135200
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.140003b40
nop
int3