Function at 0x140024090
Capabilities:
Create thread

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x140050028]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, r9
movzx r15d, r8b
mov r14d, edx
mov rbp, rcx
mov qword [rsp + 0x68], r9
mov edx, 0x208
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
lea r8, str..pipe_
mov ebx, 0x104
mov edx, ebx
mov rcx, rax
call fcn.140001c80
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400240f9
mov r8, qword [rdi]
mov rdx, rbx
mov rcx, rsi
call fcn.140001bc0
mov rcx, rbx
mov rax, rsi
nop word [rax + rax]
cmp word [rax], 0
je 0x140024120
add rax, 2
sub rcx, 1
jne 0x140024110
mov rax, rbx
sub rax, rcx
xor r12d, r12d
test rcx, rcx
cmove rax, r12
je 0x14002417e
sub rbx, rax
lea rcx, [rsi + rax*2]
je 0x14002416f
mov eax, 0x7ffffffe
lea r8, str.pipe_srvsvc
sub r8, rcx
nop word [rax + rax]
test rax, rax
je 0x14002416f
movzx edx, word [r8 + rcx]
test dx, dx
je 0x14002416f
mov word [rcx], dx
add rcx, 2
dec rax
sub rbx, 1
jne 0x140024150
lea rax, [rcx - 2]
test rbx, rbx
cmovne rax, rcx
mov word [rax], r12w
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
lea r9, [rsp + 0x50]
lea r8, [0x1400232a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, qword [rsp + 0x58]
lea rcx, str._PIPESERVER__Creating_a_thread_launching_a_server_pipe_listening_on_Named_Pipe__s._r_n
call fcn.140001550
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x50], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ncalrpc
xor ecx, ecx
call qword [sym.imp.RPCRT4.dll_RpcStringBindingComposeW]
mov ebx, eax
test eax, eax
je 0x140024223
lea rdx, str.____An_error_has_occurred_during_the_binding_:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140029240
mov rcx, rax
mov edx, ebx
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___long_int____ptr64]
mov rcx, rax
lea rdx, [0x14002ab20]
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]
jmp 0x140024276
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.RPCRT4.dll_RpcBindingFromStringBindingW]
mov ebx, eax
test eax, eax
je 0x1400242c9
lea rdx, str.____An_error_has_occurred_during_the_binding_:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140029240
mov rcx, rax
mov edx, ebx
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___long_int____ptr64]
mov rcx, rax
lea rdx, [0x14002ab20]
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]
lea rcx, [rsp + 0x50]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
lea rcx, str._RPCBIND__An_error_has_occurred_during_the_RPC_binding__r_n
call fcn.140001550
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x1400242c2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400242bd
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400243b4
mov rcx, r8
call fcn.1400321b0
xor eax, eax
jmp 0x140024385
lea rcx, [rsp + 0x50]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov ebx, eax
test eax, eax
je 0x140024308
lea rdx, str.____An_error_has_occurred_during_the_binding_:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140029240
mov rcx, rax
mov edx, ebx
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___long_int____ptr64]
mov rcx, rax
lea rdx, [0x14002ab20]
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]
lea rcx, str.___RPC_binding_with_localhost_done__r_n
call fcn.140001550
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140027310
mov r9, rax
movzx r8d, r15b
mov edx, r14d
mov rcx, qword [rsp + 0x60]
call fcn.140023420
mov ebx, r12d
test eax, eax
sete bl
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140024383
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14002437e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400243b4
mov rcx, r8
call fcn.1400321b0
mov eax, ebx
mov word [rdi], r12w
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140031900
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3