Function at 0x140091450
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rsi, rcx
mov byte [rcx + 0x10], 1
mov rcx, qword [0x1401696c8]
test rcx, rcx
je 0x140091487
mov edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [0x1401696c8]
mov rbx, qword [0x1401698c0]
sub rbx, qword [0x1401698b8]
sar rbx, 3
test rcx, rcx
je 0x1400914a4
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
xor r14d, r14d
test ebx, ebx
jle 0x14009155a
lfence
mov edx, ebx
lea rcx, str._AsusSync_RPCServer__RPCServer_____Some_incompleted_tasks_is_still_in_queue___d_._Forcedly_complete_them._n
call fcn.140095ab0
mov rbx, r14
mov rdi, qword [0x1401696c8]
test rdi, rdi
je 0x1400914e4
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rdi, qword [0x1401696c8]
mov r8, qword [0x1401698c0]
mov rax, r8
mov rcx, qword [0x1401698b8]
sub rax, rcx
sar rax, 3
test eax, eax
jle 0x140091520
test rax, rax
je 0x1400919f3
mov rbx, qword [rcx]
lea rdx, [rcx + 8]
sub r8, rdx
call fcn.1400c4a50
sub qword [0x1401698c0], 8
test rdi, rdi
je 0x14009152e
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
test rbx, rbx
je 0x14009155a
mov edx, dword [rbx + 4]
lea rcx, str._AsusSync_RPC__ForceCompleteTask___func_code:_0x_08X._n
call fcn.140095ab0
mov dword [rbx + 0x24], r14d
mov dword [rbx + 0x28], 0x424
mov rcx, rbx
call fcn.1400907d0
jmp 0x1400914c0
mov rcx, qword [0x1401696b8]
test rcx, rcx
je 0x140091578
mov edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [0x1401696b8]
mov rbx, qword [0x1401698d8]
sub rbx, qword [0x1401698d0]
sar rbx, 3
test rcx, rcx
je 0x140091595
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
test ebx, ebx
jle 0x14009175d
lfence
mov edx, ebx
lea rcx, str._AsusSync_RPCServer__RPCServer_____Some_completed_tasks_is_still_in_queue___d_._Wait_RPC_clients_to_get_completed_tasks_normally._n
call fcn.140095ab0
mov edi, r14d
mov ecx, 0x64
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
inc edi
mov rcx, qword [0x1401696b8]
cmp edi, 0x32
jg 0x140091609
test rcx, rcx
je 0x1400915e1
mov edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [0x1401696b8]
mov rbx, qword [0x1401698d8]
sub rbx, qword [0x1401698d0]
sar rbx, 3
test rcx, rcx
je 0x140091605
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
mov rcx, qword [0x1401696b8]
test ebx, ebx
jg 0x1400915b1
test rcx, rcx
je 0x140091620
mov edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [0x1401696b8]
mov rbx, qword [0x1401698d8]
sub rbx, qword [0x1401698d0]
sar rbx, 3
test rcx, rcx
je 0x14009163d
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
test ebx, ebx
jle 0x14009175d
lfence
mov edx, ebx
lea rcx, str._AsusSync_RPCServer__RPCServer_____Some_completed_tasks_is_still_in_queue___d_._Forcedly_clear_them._n
call fcn.140095ab0
mov rcx, qword [0x1401696b8]
test rcx, rcx
je 0x140091674
mov edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [0x1401696b8]
mov rdx, qword [0x1401698d8]
mov rax, rdx
mov r8, qword [0x1401698d0]
sub rax, r8
sar rax, 3
test rax, rax
je 0x140091752
mov ebp, r14d
mov rdi, r14
nop dword [rax + rax]
sub rdx, r8
sar rdx, 3
cmp rdx, rdi
jbe 0x1400919f3
lfence
mov rax, qword [0x1401698d0]
mov rbx, qword [rax + rdi*8]
mov edx, dword [rbx + 4]
lea rcx, str._AsusSync_RPC__ClearCompletedTask___func_code:_0x_08X._n
call fcn.140095ab0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400916e4
mov edx, 1
call fcn.1400c2470
mov qword [rbx + 8], r14
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400916fb
mov edx, 1
call fcn.1400c2470
mov qword [rbx + 0x18], r14
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14009170e
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx + 0x30], r14
mov edx, 0x38
mov rcx, rbx
call fcn.1400c2470
inc ebp
inc rdi
mov rdx, qword [0x1401698d8]
mov rcx, rdx
mov r8, qword [0x1401698d0]
sub rcx, r8
sar rcx, 3
movsxd rax, ebp
cmp rax, rcx
jb 0x1400916a0
mov qword [0x1401698d8], r8
mov rcx, qword [0x1401696b8]
test rcx, rcx
je 0x14009175d
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
lea rcx, str._AsusSync_RPCServer__RPCServer_____Call_RpcServerDisconnect_n
call fcn.140095ab0
xor ecx, ecx
call qword [sym.imp.RPCRT4.dll_RpcMgmtStopServerListening]
test eax, eax
je 0x140091785
mov edx, eax
lea rcx, str._AsusSync_RPCServer__RpcServerDisconnect_____RpcMgmtStopServerListening_fail:0x_I64X_n
call fcn.140095ab0
jmp 0x140091791
lea rcx, str._AsusSync_RPCServer__RpcServerDisconnect_____RpcMgmtStopServerListening_n
call fcn.140095ab0
xor r8d, r8d
xor edx, edx
lea rcx, [0x14010f150]
call qword [sym.imp.RPCRT4.dll_RpcServerUnregisterIf]
lea rcx, str._AsusSync_RPCServer__RpcServerDisconnect___RpcServerUnregisterIf_n
call fcn.140095ab0
xor r8d, r8d
mov rdx, qword [rsi + 0x58]
lea rcx, [0x14010f150]
call qword [sym.imp.RPCRT4.dll_RpcEpUnregister]
lea rcx, str._AsusSync_RPCServer__RpcServerDisconnect___RpcEpUnregisterf_n
call fcn.140095ab0
cmp qword [rsi + 0x58], r14
je 0x1400917e3
lea rcx, [rsi + 0x58]
call qword [sym.imp.RPCRT4.dll_RpcBindingVectorFree]
mov qword [rsi + 0x58], r14
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400917f1
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140091832
mov edx, 0x1f4
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140091824
xor edx, edx
mov rcx, qword [rsi + 8]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateThread]
lea rcx, str._AsusSync_RPCServer__RPCServer___thread_seems_be_blocked__terminate_it._n
call fcn.140095ab0
mov rcx, qword [rsi + 8]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rsi + 8], r14
mov rcx, qword [rsi]
test rcx, rcx
je 0x140091843
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rsi], r14
mov rcx, qword [0x1401696c8]
test rcx, rcx
je 0x14009185c
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [0x1401696c8], r14
mov rcx, qword [0x1401696c0]
test rcx, rcx
je 0x140091875
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [0x1401696c0], r14
mov rcx, qword [0x1401696b0]
test rcx, rcx
je 0x14009188e
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [0x1401696b0], r14
mov rcx, qword [0x1401696b8]
test rcx, rcx
je 0x1400918a7
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [0x1401696b8], r14
mov rcx, qword [0x1401696a8]
test rcx, rcx
je 0x1400918c0
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [0x1401696a8], r14
mov rcx, qword [0x1401698f0]
mov rdx, qword [0x1401698e8]
mov rax, rcx
sub rax, rdx
sar rax, 3
test rax, rax
je 0x14009193a
mov edi, r14d
mov rbx, r14
sub rcx, rdx
sar rcx, 3
nop word [rax + rax]
cmp rcx, rbx
jbe 0x1400919e7
lfence
mov edx, 0x173
mov rcx, qword [0x1401698e8]
mov rcx, qword [rcx + rbx*8]
call fcn.1400c2470
inc edi
inc rbx
mov rcx, qword [0x1401698f0]
mov rdx, qword [0x1401698e8]
sub rcx, rdx
sar rcx, 3
movsxd rax, edi
cmp rax, rcx
jb 0x1400918f0
mov qword [0x1401698f0], rdx
mov rdx, qword [rsi + 0x50]
cmp rdx, 8
jb 0x140091976
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsi + 0x38]
cmp rdx, 0x1000
jb 0x140091971
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400919ed
mov rcx, r8
call fcn.1400c2470
mov qword [rsi + 0x48], r14
mov qword [rsi + 0x50], 7
mov word [rsi + 0x38], r14w
mov rdx, qword [rsi + 0x30]
cmp rdx, 8
jb 0x1400919c3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsi + 0x18]
cmp rdx, 0x1000
jb 0x1400919be
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400919ed
mov rcx, r8
call fcn.1400c2470
mov qword [rsi + 0x28], r14
mov qword [rsi + 0x30], 7
mov word [rsi + 0x18], r14w
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
call fcn.14000a150
int3
call fcn.1400c8b64
int3
call fcn.14000a150
int3