Function at 0x1400899a0
Capabilities:
Connect socket
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rbp, r8
mov rsi, rdx
mov rbx, rcx
call fcn.140089930
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1400899de
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx], 0xffffffffffffffff
mov byte [rbx + 0x64], 0
lea rcx, str._AsusSync_ObexClient__StatusUpdate___State___d_____d___ret:__d_n
mov rax, qword [rbx + 0x68]
xor edi, edi
mov qword [rbx + 0x70], rax
xor r9d, r9d
movzx edx, byte [rbx + 0x94]
xor r8d, r8d
mov byte [rbx + 0x94], 0
mov byte [rbx + 0x5c], 0
mov dword [rbx + 0x60], edi
call fcn.140095ab0
movzx ecx, byte [rbx + 0x94]
sub ecx, 1
je 0x140089a61
sub ecx, 1
je 0x140089a61
sub ecx, 3
je 0x140089a4e
cmp ecx, 1
jne 0x140089a6e
mov rcx, qword [rbx + 0x98]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov byte [rbx + 0x64], 2
jmp 0x140089a6e
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov byte [rbx + 0x64], 1
jmp 0x140089a6e
mov rcx, qword [rbx + 0x98]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov qword [rbx + 0x28], rsi
mov ecx, 0x20
test rsi, rsi
je 0x140089a8f
movaps xmm0, xmmword [rbp]
movups xmmword [rbx + 0x12], xmm0
mov qword [rbx + 0xa], rsi
mov word [rbx + 8], cx
mov dword [rbx + 0x22], edi
mov edx, 1
lea r8d, [rdx + 2]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x140089ac4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str._AsusSync_ObexClient__Init___init_socket_failed__WSAGetLastError__d__n
mov ebx, eax
call fcn.140095ab0
mov eax, ebx
jmp 0x140089c89
mov rdx, rax
lea rcx, str._AsusSync_ObexClient__Init___mSock:___d__n
call fcn.140095ab0
mov rcx, qword [rbx]
lea rdx, [rbx + 8]
mov r8d, 0x1e
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140089b99
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str._AsusSync_ObexClient__RecvThread___connect_failed__WSAGetLastError__d__n
mov edi, eax
call fcn.140095ab0
movzx edx, byte [rbx + 0x94]
lea rcx, str._AsusSync_ObexClient__StatusUpdate___State___d_____d___ret:__d_n
mov r9d, edi
mov byte [rbx + 0x94], 6
mov r8d, 6
mov byte [rbx + 0x5c], 0
mov dword [rbx + 0x60], edi
call fcn.140095ab0
movzx edx, byte [rbx + 0x94]
sub edx, 1
je 0x140089b87
sub edx, 1
je 0x140089b87
sub edx, 3
je 0x140089b71
cmp edx, 1
jne 0x140089c87
mov rcx, qword [rbx + 0x98]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov byte [rbx + 0x64], 2
jmp 0x140089c87
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov byte [rbx + 0x64], 1
jmp 0x140089c87
mov rcx, qword [rbx + 0x98]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
jmp 0x140089c87
movzx edx, byte [rbx + 0x94]
lea rcx, str._AsusSync_ObexClient__StatusUpdate___State___d_____d___ret:__d_n
xor r9d, r9d
mov byte [rbx + 0x94], 1
mov byte [rbx + 0x5c], dil
mov dword [rbx + 0x60], edi
lea r8d, [r9 + 1]
call fcn.140095ab0
movzx ecx, byte [rbx + 0x94]
sub ecx, 1
je 0x140089c0f
sub ecx, 1
je 0x140089c0f
sub ecx, 3
je 0x140089bfc
cmp ecx, 1
jne 0x140089c1c
mov rcx, qword [rbx + 0x98]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov byte [rbx + 0x64], 2
jmp 0x140089c1c
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov byte [rbx + 0x64], 1
jmp 0x140089c1c
mov rcx, qword [rbx + 0x98]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
lea rsi, [rbx + 0x90]
mov byte [rbx + 0x80], 1
mov qword [rsp + 0x28], rsi
lea r8, [0x140089cb0]
mov r9, rbx
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rbx + 0x88], rax
test rax, rax
jne 0x140089c76
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str._AsusSync_ObexClient__Init___CreateThread_failed:__d_n
mov edi, eax
call fcn.140095ab0
mov qword [rbx + 0x88], 0xffffffffffffffff
jmp 0x140089c87
mov edx, dword [rsi]
lea rcx, str._AsusSync_ObexClient__StartReceiver___thread_Id:__X__handle:__X_n
mov r8, rax
call fcn.140095ab0
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret