Function at 0x140022840
Capabilities:
Create process on windows
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x480]
sub rsp, 0x580
mov rax, qword [0x14026eff8]
xor rax, rsp
mov qword [rbp + 0x470], rax
mov r14, rdx
mov rdi, rcx
mov rsi, rcx
cmp qword [rcx + 0x18], 8
jb 0x140022885
mov rsi, qword [rcx]
mov edx, 0x5c
lea rbx, str.C:.image_jenkinsworkspaceCC_Windows_Release_2AppMonitorVEDetectordetectorsprocess_helper.h
mov rcx, rbx
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x1400228b0
mov edx, 0x5c
mov rcx, rbx
call sub.VCRUNTIME140.dll_strrchr
inc rax
jmp 0x1400228b3
mov rax, rbx
mov qword [rsp + 0x30], rsi
lea r12, str.process_helper::check_ve_helper
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], SafeArrayPutElement
mov r9, rax
lea r8, str.__s:_d__s__check__S
mov rdx, qword [str.COMMON]
mov ecx, 0x1000
call fcn.1400a0de0
mov esi, 0xffffffff
mov dword [r14], esi
lea rcx, [rbp + 0x18]
call qword [sym.imp.VEConfig.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_VEConfig::path::getAppDirPath_void_]
nop
mov rdx, rax
lea rcx, [rbp]
call qword [sym.imp.Qt6Core.dll_public:_static_class_QString___cdecl_QString::fromStdString_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64_]
nop
lea r8, str._ttdaemon.exe
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14001ce20
nop
lea rcx, [rbp]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
mov rdx, qword [rbp + 0x30]
cmp rdx, 0x10
jb 0x140022966
inc rdx
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022961
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022961
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140101b3c
xor r15d, r15d
mov qword [rbp + 0x28], r15
mov qword [rbp + 0x30], SafeArrayGetLBound
mov byte [rbp + 0x18], r15b
xor edx, edx
mov r8d, 0x402
lea rcx, [rbp + 0x60]
call sub.VCRUNTIME140.dll_memset
cmp qword [rdi + 0x18], 8
jb 0x140022994
mov rdi, qword [rdi]
lea rdx, [rbp + 0x38]
lea rcx, [rsp + 0x70]
call qword [sym.imp.Qt6Core.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_QString::toStdWString_void____ptr64]
cmp qword [rax + 0x18], 8
jb 0x1400229ad
mov rax, qword [rax]
mov qword [rsp + 0x20], rdi
mov r9, rax
lea r8, str.__s___s
mov edx, 0x200
lea rcx, [rbp + 0x60]
call fcn.14002c400
mov rdx, qword [rbp + 0x50]
cmp rdx, 8
jb 0x140022a0d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022a08
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022a08
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140101b3c
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rax
xorps xmm1, xmm1
movups xmmword [rbp - 0x70], xmm1
movups xmmword [rbp - 0x60], xmm1
movups xmmword [rbp - 0x50], xmm1
movups xmmword [rbp - 0x40], xmm1
movups xmmword [rbp - 0x30], xmm1
movups xmmword [rbp - 0x20], xmm1
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x70], 0x68
mov word [rbp - 0x30], r15w
mov dword [rbp - 0x34], 1
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140022ae7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, 0x5c
mov rcx, rbx
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x140022ab6
mov edx, 0x5c
mov rcx, rbx
call sub.VCRUNTIME140.dll_strrchr
lea rbx, [rax + 1]
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x25
mov r9, rbx
lea r8, str.__s:_d__s__create_process_fail__err:_d
mov rdx, qword [str.COMMON]
mov ecx, 4
call fcn.1400a0de0
jmp 0x140022bab
mov edx, 0x2710
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140022b76
mov edx, 0x5c
mov rcx, rbx
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x140022b21
mov edx, 0x5c
mov rcx, rbx
call sub.VCRUNTIME140.dll_strrchr
lea rbx, [rax + 1]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x32
mov r9, rbx
lea r8, str.__s:_d__s__detect_time_out
mov rdx, qword [str.COMMON]
mov ecx, 4
call fcn.1400a0de0
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xfffffffe
jmp 0x140022bab
mov dword [rsp + 0x50], r15d
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x50]
mov dword [r14], eax
mov esi, r15d
lea rcx, [rsp + 0x70]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov eax, esi
mov rcx, qword [rbp + 0x470]
xor rcx, rsp
call fcn.140102140
lea r11, [rsp + 0x580]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret