Function at 0x14008d1c0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xa50
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rsp + 0xa40], rax
mov rbx, rcx
lea rcx, str._AsusSync_Phone__Unpair__Start._n
call fcn.140095ab0
xor esi, esi
cmp byte [rbx + 0x31], sil
je 0x14008d291
cmp byte [rbx + 0x30], 1
jne 0x14008d33d
mov byte [rbx + 0x30], sil
xor edx, edx
mov rcx, rbx
call fcn.14008de70
mov rcx, qword [rbx + 0x18]
cmp rcx, 0xffffffffffffffff
je 0x14008d227
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
lea rdx, [rbx + 0x68]
mov rcx, rbx
call fcn.14008df80
mov rcx, qword [rbx + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x14008d33d
mov edx, 0x2710
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14008d27a
lea rax, str._AsusSync_Phone__Unpair___AsPhoneManager_thread_seems_be_blocked__terminate_it._n
lea rcx, str._AsusSync_Phone__Unpair___fail_to_reset_connection__terminate_it._n
cmp byte [rbx + 0x32], 1
cmovne rcx, rax
call fcn.140095ab0
xor edx, edx
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateThread]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx + 0x10], 0xffffffffffffffff
jmp 0x14008d33d
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x30]
call fcn.1400c5120
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
mov edx, 0x5c
lea rcx, [rsp + 0x30]
call fcn.1400c46bc
test rax, rax
je 0x14008d2ce
mov word [rax + 2], si
lea r8, str.AsusLinkWP2P.exe
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.1400d6ec0
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x240]
call fcn.1400c5120
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
lea rax, str.B9ECED6F.ASUSPCAssistant.asToastNotifier.exe
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
lea r8, str.__s___toast___s___StartAsPhone__unpair__012llX
mov edx, 0x400
lea rcx, [rsp + 0x240]
call fcn.140017d20
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x240]
call fcn.140097090
lea rcx, str._AsusSync_Phone__Unpair__End._n
call fcn.140095ab0
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14008d35c
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_UnmapViewOfFile]
mov qword [rbx + 0x28], rsi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14008d36f
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx + 8], rsi
mov rcx, qword [rbx + 0x18]
cmp rcx, 0xffffffffffffffff
je 0x14008d387
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx + 0x18], 0xffffffffffffffff
mov rcx, qword [rbx + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x14008d39f
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx + 0x20], 0xffffffffffffffff
mov rcx, rbx
call fcn.14008dd80
mov rdi, qword [rbx + 0x88]
test rdi, rdi
je 0x14008d40b
mov rcx, qword [rdi]
test rcx, rcx
je 0x14008d3f7
mov rdx, qword [rdi + 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x14008d3e7
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14008d43b
mov rcx, r8
call fcn.1400c2470
mov qword [rdi], rsi
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], rsi
mov edx, 0x18
mov rcx, rdi
call fcn.1400c2470
mov qword [rbx + 0x88], rsi
lea rcx, [rbx + 0x38]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_DeleteCriticalSection]
nop
mov rcx, qword [rsp + 0xa40]
xor rcx, rsp
call fcn.1400c2450
lea r11, [rsp + 0xa50]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.1400c8b64
int3