Function at 0x14008e3b0
Capabilities:
Connect pipe
Terminate thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x30
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
lea rcx, str._AsusSync_Phone__ConnectionHandler_Start_n
call fcn.1400959a0
xor ebp, ebp
cmp byte [rbx + 0x30], bpl
je 0x14008e679
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
nop
mov rcx, qword [rbx + 0x18]
mov edx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14008e64a
cmp qword [rbx + 0x70], 0xffffffffffffffff
jne 0x14008e53f
cmp qword [rbx + 0x78], 0xffffffffffffffff
jne 0x14008e53f
mov rcx, qword [rbx + 0x20]
xor dil, dil
cmp rcx, 0xffffffffffffffff
je 0x14008e438
mov edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp qword [rbx + 0x68], 0xffffffffffffffff
jne 0x14008e469
lea rcx, str._AsusSync_Phone__CreateConnection___start_n
call fcn.140095ab0
mov r8b, 1
lea rdx, [rbx + 0x68]
mov rcx, rbx
call fcn.14008e060
lea rcx, str._AsusSync_Phone__CreateConnection___end_n
movzx edi, al
call fcn.140095ab0
mov rcx, qword [rbx + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x14008e479
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
cmp dil, 1
jne 0x14008e665
cmp qword [rbx + 0x68], 0xffffffffffffffff
je 0x14008e665
movzx edx, dil
mov rcx, rbx
call fcn.14008de70
lea rcx, str._AsusSync_Phone__ConnectionHandler_ConnectNamedPipe_Start_n
call fcn.1400959a0
mov rcx, qword [rbx + 0x68]
xor edx, edx
mov byte [rbx + 0x32], dil
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_ConnectNamedPipe]
test eax, eax
je 0x14008e4e0
mov edx, 1
mov byte [rbx + 0x32], bpl
lea rcx, str._AsusSync_Phone__ConnectionHandler_ConnectNamedPipe_end:_d_n
call fcn.1400959a0
movzx edx, dil
mov rcx, rbx
call fcn.14008e1b0
jmp 0x14008e665
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea rcx, str._AsusSync_Phone__ConnectionHandler_ConnectNamedPipe_end:_d_n
mov byte [rbx + 0x32], bpl
cmp eax, 0x217
sete dil
movzx edx, dil
call fcn.1400959a0
cmp dil, 1
jne 0x14008e51a
movzx edx, dil
mov rcx, rbx
call fcn.14008e1b0
jmp 0x14008e665
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str._AsusSync_Phone__ConnectionHandler_ConnectNamedPipe_fail_:0x_I64X_n
call fcn.1400959a0
lea rdx, [rbx + 0x68]
mov rcx, rbx
call fcn.14008df80
jmp 0x14008e665
mov rcx, qword [rbx + 0x78]
xor dil, dil
cmp rcx, 0xffffffffffffffff
je 0x14008e58b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], ebp
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetExitCodeProcess]
test eax, eax
jne 0x14008e570
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str._AsusSync_Phone__ConnectionHandler_GetExitCodeProcess_fail_:0x_I64X_n
jmp 0x14008e583
mov edx, dword [rsp + 0x20]
cmp edx, 0x103
je 0x14008e58b
lea rcx, str._AsusSync_Phone__ConnectionHandler_ExitCode_:0x_I64X_n
call fcn.1400959a0
mov dil, 1
cmp qword [rbx + 0x70], 0xffffffffffffffff
je 0x14008e5b6
cmp byte [rbx + 0x65], 1
jne 0x14008e5ab
mov edx, 1
lea rcx, str._AsusSync_Phone__ConnectionHandler_m_blClientDisconnected_:_d_n
call fcn.1400959a0
jmp 0x14008e5c2
test dil, dil
je 0x14008e665
jmp 0x14008e5c2
lea rcx, str._AsusSync_Phone__ConnectionHandler_there_is_no_Communication_task_n
call fcn.1400959a0
cmp byte [rbx + 0x64], 1
jne 0x14008e63c
mov rcx, qword [rbx + 0x70]
mov byte [rbx + 0x64], bpl
cmp rcx, 0xffffffffffffffff
je 0x14008e612
mov edx, 0x1f4
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14008e600
lea rcx, str._AsusSync_Phone__CommunicationTaskContol___Communication_thread_seems_be_blocked__terminate_it._n
call fcn.140095ab0
mov rcx, qword [rbx + 0x70]
xor edx, edx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateThread]
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
mov rcx, qword [rbx + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x14008e62a
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx + 0x78], 0xffffffffffffffff
mov rcx, rbx
mov byte [rbx + 0x65], bpl
mov dword [rbx + 0x80], ebp
call fcn.14008dd80
lea rdx, [rbx + 0x68]
mov rcx, rbx
call fcn.14008df80
jmp 0x14008e665
test eax, eax
jne 0x14008e665
cmp qword [rbx + 0x70], 0xffffffffffffffff
je 0x14008e665
mov rcx, qword [rbx + 0x18]
cmp rcx, 0xffffffffffffffff
je 0x14008e665
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
cmp byte [rbx + 0x30], bpl
jne 0x14008e3f0
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
cmp byte [rbx + 0x64], 1
jne 0x14008e6f3
mov rcx, qword [rbx + 0x70]
mov byte [rbx + 0x64], bpl
cmp rcx, 0xffffffffffffffff
je 0x14008e6c9
mov edx, 0x1f4
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14008e6b7
lea rcx, str._AsusSync_Phone__CommunicationTaskContol___Communication_thread_seems_be_blocked__terminate_it._n
call fcn.140095ab0
mov rcx, qword [rbx + 0x70]
xor edx, edx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateThread]
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
mov rcx, qword [rbx + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x14008e6e1
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx + 0x78], 0xffffffffffffffff
mov rcx, rbx
mov byte [rbx + 0x65], bpl
mov dword [rbx + 0x80], ebp
call fcn.14008dd80
lea rdx, [rbx + 0x68]
mov rcx, rbx
call fcn.14008df80
lea rcx, str._AsusSync_Phone__ConnectionHandler_End_n
call fcn.1400959a0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400c2450
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret