Function at 0x14007b4d0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2f0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14013f130]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
movzx r15d, dl
mov rdi, rcx
mov qword [rsp + 0x30], rcx
mov byte [rsp + 0x20], dl
xor esi, esi
mov dword [rsp + 0x2c], esi
call fcn.140084bd0
cmp eax, 3
jl 0x14007b6f3
xor edx, edx
mov r8d, 0xe8
lea rcx, [rsp + 0x100]
call fcn.1400b93c0
lea r14, [0x1400fdef8]
mov qword [rsp + 0x100], r14
mov dword [rsp + 0x2c], 1
lea r13, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x188], r13
mov dword [rsp + 0x184], 0x78
xor r8d, r8d
lea rdx, [rsp + 0x108]
lea rcx, [rsp + 0x188]
call fcn.1400075d0
nop
mov rax, qword [rsp + 0x100]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x100], r12
mov rax, qword [rsp + 0x100]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0xfc], edx
lea edx, [rsi + 2]
lea rcx, [rsp + 0x108]
call fcn.140009f10
nop
lea rdx, str._screen_
lea rcx, [rsp + 0x100]
call fcn.14000ae60
mov rcx, rax
lea rdx, str.IpcHostAgent::stop__mid
call fcn.14000ae60
mov rcx, rax
mov edx, dword [rdi + 0x8c]
call fcn.14000e310
mov rcx, rax
lea rdx, str.__wait
call fcn.14000ae60
mov rcx, rax
movzx edx, r15b
call fcn.14001ca80
mov rcx, rax
lea rdx, str.__this
call fcn.14000ae60
mov rcx, rax
mov rdx, rdi
call fcn.14000e1b0
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x108]
call fcn.140009e60
mov dword [rsp + 0x2c], 5
lea rdx, [rsp + 0x80]
lea ecx, [rsi + 3]
call fcn.140084ea0
nop
lea rcx, [rsp + 0x80]
call fcn.140007080
nop
mov rax, qword [rsp + 0x100]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x100], r12
mov rax, qword [rsp + 0x100]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0xfc], edx
lea rcx, [rsp + 0x108]
call fcn.140008ea0
mov rax, qword [rsp + 0x100]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x100], r13
mov rax, qword [rsp + 0x100]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0xfc], edx
lea r14, vtable.std::ios_base.0
mov qword [rsp + 0x188], r14
lea rcx, [rsp + 0x188]
call fcn.140097eb0
nop
jmp 0x14007b701
lea r13, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
lea r12, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, 1
xchg byte [rdi + 0x8a], al
cmp dword [rdi + 0x1a8], 0
je 0x14007b75f
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [rdi + 0x1a8], eax
jne 0x14007b72c
mov ecx, 5
call fcn.1400993ac
movups xmm0, xmmword [rdi + 0x1a0]
movaps xmmword [rsp + 0x70], xmm0
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.140099c48
test eax, eax
je 0x14007b752
mov ecx, 2
call fcn.1400993ac
mov qword [rdi + 0x1a0], rsi
mov dword [rdi + 0x1a8], esi
jmp 0x14007b77c
lea rbx, [rdi + 0x150]
mov qword [rsp + 0x68], rbx
mov rcx, rbx
call fcn.14009977c
test eax, eax
je 0x14007b79c
mov ecx, eax
call fcn.140099370
nop
mov r14, qword [rdi + 0xa0]
test r14, r14
je 0x14007b7c5
mov rcx, qword [r14 + 0x50]
test rcx, rcx
je 0x14007b7c5
call qword [sym.imp.KERNEL32.dll_UnregisterWait]
test eax, eax
jne 0x14007b7c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [r14 + 0x50], rsi
mov byte [rsp + 0x28], 0
movdqa xmm0, xmmword [0x14010a4e0]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
xor r8d, r8d
lea rdx, [0x1400fde50]
lea rcx, [rsp + 0x40]
call fcn.140007260
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x14007b848
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x38], rax
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_8d61f513046e68a1f42806255c153a04___void__struct_kas::ipc::packet_struct_kas::ipc::Command_____ptr64_.0
mov qword [rsp + 0xc0], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsp + 0xc8], xmm0
lea rax, [rsp + 0xc0]
mov qword [rsp + 0xf8], rax
lea rdx, [rsp + 0xc0]
call fcn.1400208d0
nop
lea rcx, [rsp + 0x40]
call fcn.140007080
mov rcx, qword [rdi + 0x98]
test rcx, rcx
je 0x14007b882
test r15b, r15b
je 0x14007b872
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14007b882
xor edx, edx
mov rcx, qword [rdi + 0x98]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
mov rcx, rbx
call fcn.1400997a0
test eax, eax
je 0x14007b896
mov ecx, eax
call fcn.140099370
nop
mov word [rdi + 0x88], 0
mov rcx, rdi
call fcn.14007b3c0
mov rcx, rdi
call fcn.14007b1e0
call fcn.140084bd0
cmp eax, 3
jl 0x14007ba57
xor edx, edx
mov r8d, 0xe8
lea rcx, [rsp + 0x1f0]
call fcn.1400b93c0
lea rax, [0x1400fdef8]
mov qword [rsp + 0x1f0], rax
or dword [rsp + 0x2c], 8
mov qword [rsp + 0x278], r13
mov dword [rsp + 0x274], 0x78
xor r8d, r8d
lea rdx, [rsp + 0x1f8]
lea rcx, [rsp + 0x278]
call fcn.1400075d0
nop
mov rax, qword [rsp + 0x1f0]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x1f0], r12
mov rax, qword [rsp + 0x1f0]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0x88]
mov dword [rsp + rcx + 0x1ec], r8d
mov edx, 2
lea rcx, [rsp + 0x1f8]
call fcn.140009f10
nop
lea rdx, str._screen_
lea rcx, [rsp + 0x1f0]
call fcn.14000ae60
mov rcx, rax
lea rdx, str.IpcHostAgent::stop_done__mid
call fcn.14000ae60
mov rcx, rax
mov edx, dword [rdi + 0x8c]
call fcn.14000e310
mov rcx, rax
lea rdx, str.__this
call fcn.14000ae60
mov rcx, rax
mov rdx, rdi
call fcn.14000e1b0
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x1f8]
call fcn.140009e60
nop
lea rdx, [rsp + 0xa0]
mov ecx, 3
call fcn.140084ea0
nop
lea rcx, [rsp + 0xa0]
call fcn.140007080
nop
mov rax, qword [rsp + 0x1f0]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x1f0], r12
mov rax, qword [rsp + 0x1f0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x1ec], edx
lea rcx, [rsp + 0x1f8]
call fcn.140008ea0
mov rax, qword [rsp + 0x1f0]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x1f0], r13
mov rax, qword [rsp + 0x1f0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x1ec], edx
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0x278], rax
lea rcx, [rsp + 0x278]
call fcn.140097eb0
nop
lea rbx, [rdi + 0x100]
mov rcx, rbx
call fcn.14009977c
test eax, eax
je 0x14007ba71
mov ecx, eax
call fcn.140099370
add rdi, 0xa8
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14007ba91
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
call qword [rax + 0x20]
mov qword [rdi + 0x38], rsi
mov rcx, rbx
call fcn.1400997a0
test eax, eax
je 0x14007baa5
mov ecx, eax
call fcn.140099370
nop
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.14009ab00
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret