Function at 0x14008e1b0
Capabilities:
Create thread
Terminate thread

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
test dl, dl
je 0x14008e30c
cmp byte [rcx + 0x64], 0
jne 0x14008e394
mov byte [rcx + 0x64], 1
lea rdx, [rcx + 0x80]
mov rcx, qword [rcx + 0x68]
mov qword [rsp + 0x268], rdi
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_GetNamedPipeClientProcessId]
test eax, eax
jne 0x14008e21a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str._AsusSync_Phone__CommunicationTaskContol_GetNamedPipeClientProcessId_fail_:0x_I64X_n
call fcn.1400959a0
jmp 0x14008e2a7
mov r8d, dword [rbx + 0x80]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14008e293
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.1400c5120
mov r9d, 0x104
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_psapi_l1_1_0.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x14008e279
lea rdx, [rsp + 0x30]
lea rcx, str._AsusSync_Phone__GetProcessHandleByID_Find_:_s_n
call fcn.140095ab0
mov qword [rbx + 0x78], rdi
jmp 0x14008e2a7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str._AsusSync_Phone__GetProcessHandleByID_GetModuleFileNameExW_fail_:0x_I64X_n
call fcn.140095ab0
mov qword [rbx + 0x78], rdi
jmp 0x14008e2a7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str._AsusSync_Phone__GetProcessHandleByID_OpenProcess_fail_:0x_I64X_n
call fcn.140095ab0
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400c2704
xor ecx, ecx
lea r8, [0x14008ec00]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor edx, edx
mov dword [rsp + 0x20], ecx
mov qword [rax + 8], rcx
mov qword [rax], rbx
mov rax, qword [rbx + 0x68]
mov qword [r9 + 8], rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov rdi, qword [rsp + 0x268]
mov qword [rbx + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x14008e394
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str._AsusSync_Phone__CommunicationTaskContol_CreateThread_fail_:0x_I64X_n
call fcn.1400959a0
jmp 0x14008e394
cmp byte [rcx + 0x64], 1
jne 0x14008e388
mov byte [rcx + 0x64], 0
mov rcx, qword [rcx + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x14008e35c
mov edx, 0x1f4
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14008e34a
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 0x14008e374
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx + 0x78], 0xffffffffffffffff
xor ecx, ecx
mov byte [rbx + 0x65], 0
mov dword [rbx + 0x80], ecx
mov rcx, rbx
call fcn.14008dd80
lea rdx, [rbx + 0x68]
mov rcx, rbx
call fcn.14008df80
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400c2450
add rsp, 0x250
pop rbx
ret