Function at 0x14002acb0
Capabilities:
Check for time delay via gettickcount
Connect socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rax, qword [rcx + 0x30]
mov rbx, rcx
mov edi, 0x20
cmp rax, 0xffffffffffffffff
jne 0x14002ad13
lea edx, [rax + 2]
mov ecx, edi
lea r8d, [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
lea rcx, str._AsusSync_BTRFCOMMClient__SetupCommunication___socket_is_created_n
mov qword [rbx + 0x30], rax
call fcn.140095ab0
mov rax, qword [rbx + 0x30]
cmp rax, 0xffffffffffffffff
je 0x14002b139
movups xmm0, xmmword [rbx + 8]
mov qword [rsp + 0x2f0], r12
lea rcx, [rbp - 0x80]
xor eax, eax
mov word [rsp + 0x38], di
mov rdi, qword [rbx + 0x20]
xor r12d, r12d
xor edx, edx
mov qword [rsp + 0x2b0], r15
mov r8d, 0x210
mov qword [rsp + 0x3a], rdi
movups xmmword [rsp + 0x42], xmm0
mov dword [rsp + 0x52], r12d
mov dword [rsp + 0x64], eax
call fcn.1400c5120
cmp qword [rbx + 0x48], r12
jne 0x14002adaa
mov rax, qword [rbx + 0x50]
mov dword [rsp + 0x60], 0x230
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
test rax, rax
je 0x14002adaa
mov r9, rbx
lea r8, [0x14002b1d0]
lea rdx, [rbx + 0x48]
lea rcx, [rsp + 0x60]
call qword [0x1400fac68]
test eax, eax
je 0x14002adaa
mov edx, eax
lea rcx, str._AsusSync_BTRFCOMMClient__RegistBluetoothAuthentication___fail:_d_n
call fcn.140095ab0
mov rcx, qword [rbx + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x1e
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14002addd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str._AsusSync_BTRFCOMMClient__SetupCommunication___unable_to_connect_to_BT_rfcomm_server__WSAGetLastError__d__n
call fcn.140095ab0
jmp 0x14002b0f3
cmp byte [rbx + 0x3b], 1
jne 0x14002b0db
mov rax, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x28]
mov dword [rbp + 0x190], eax
rol byte [rbp + 0x190], 4
rol byte [rbp + 0x191], 4
rol byte [rbp + 0x192], 4
rol byte [rbp + 0x193], 4
mov dword [rbp + 0x196], ecx
rol byte [rbp + 0x197], 4
rol byte [rbp + 0x198], 4
rol byte [rbp + 0x199], 4
mov qword [rsp + 0x30], rax
movzx eax, word [rsp + 0x34]
mov word [rbp + 0x194], ax
rol byte [rbp + 0x194], 4
rol byte [rbp + 0x195], 4
mov qword [rsp + 0x30], rcx
movzx eax, word [rsp + 0x34]
mov word [rbp + 0x19a], ax
rol byte [rbp + 0x19a], 4
rol byte [rbp + 0x19b], 4
rol cl, 4
mov qword [rsp + 0x2e8], rsi
mov qword [rsp + 0x2b8], r14
mov byte [rbp + 0x19c], r12b
mov byte [rbp + 0x196], cl
cmp byte [rbx + 0x38], r12b
je 0x14002aea2
cmp byte [rbx + 0x39], r12b
sete al
inc al
rol al, 4
mov byte [rbp + 0x19c], al
lea rcx, str._AsusSync_BTRFCOMMClient__SetupCommunication___send_request_to_BT_rfcomm_server_n
call fcn.140095ab0
mov rax, qword [rbx + 0x30]
mov r14d, r12d
cmp rax, 0xffffffffffffffff
je 0x14002af36
mov edi, r12d
cmp byte [rbx + 0x38], r12b
lea rdx, [rbp + 0x190]
mov r8d, r12d
mov rcx, rax
setne r8b
xor r9d, r9d
add r8d, 0xc
call qword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp eax, 0xffffffff
jne 0x14002af10
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
je 0x14002af19
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str._AsusSync_BTRFCOMMClient__SetupCommunication___send_fail__WSAGetLastError__d__r_n
call fcn.140095ab0
jmp 0x14002af19
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov r14d, eax
mov rax, qword [rbx + 0x30]
cmp rax, 0xffffffffffffffff
je 0x14002af36
cmp esi, 0xffffffff
jne 0x14002af36
cmp edi, 0x2733
jne 0x14002af36
cmp byte [rbx + 0x18], 1
jne 0x14002aec2
lea rcx, str._AsusSync_BTRFCOMMClient__SetupCommunication___wait_BT_rfcomm_server_to_reply_n
call fcn.140095ab0
cmp qword [rbx + 0x30], 0xffffffffffffffff
lea rsi, [rbp + 0x190]
mov edi, 7
je 0x14002b0cb
nop dword [rax]
cmp byte [rbx + 0x18], 1
je 0x14002b0cb
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
sub eax, r14d
cmp eax, 0x2710
jae 0x14002b0bf
mov rcx, qword [rbx + 0x30]
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jne 0x14002afbe
lea rcx, str._AsusSync_BTRFCOMMClient__SetupCommunication___BT_socket_connection_has_been_closed_gracefully_n
call fcn.140095ab0
mov rcx, qword [rbx + 0x30]
cmp rcx, 0xffffffffffffffff
je 0x14002afca
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx + 0x30], 0xffffffffffffffff
jmp 0x14002afca
cmp ecx, 0xffffffff
je 0x14002afca
add rsi, rcx
sub edi, ecx
je 0x14002afd6
cmp qword [rbx + 0x30], 0xffffffffffffffff
jne 0x14002af60
jmp 0x14002b0cb
movzx eax, byte [rbp + 0x190]
rol al, 4
movzx r11d, al
movzx eax, byte [rbp + 0x191]
rol al, 4
movzx ecx, al
movzx eax, byte [rbp + 0x192]
mov byte [rbp + 0x190], r11b
shl r11, 8
add r11, rcx
rol al, 4
movzx edx, al
movzx eax, byte [rbp + 0x193]
shl r11, 8
add r11, rdx
rol al, 4
movzx r8d, al
movzx eax, byte [rbp + 0x194]
shl r11, 8
add r11, r8
rol al, 4
movzx r9d, al
movzx eax, byte [rbp + 0x195]
shl r11, 8
add r11, r9
rol al, 4
movzx r10d, al
shl r11, 8
add r11, r10
mov byte [rbp + 0x191], cl
mov byte [rbp + 0x192], dl
mov byte [rbp + 0x193], r8b
mov byte [rbp + 0x194], r9b
mov byte [rbp + 0x195], r10b
cmp r11, qword [rbx + 0x20]
jne 0x14002b0b6
movzx ecx, byte [rbp + 0x196]
sub ecx, 1
je 0x14002b0a4
sub ecx, 1
je 0x14002b09b
cmp ecx, 1
jne 0x14002b0cb
mov byte [rbx + 0x3a], cl
lea rcx, str._AsusSync_BTRFCOMMClient__SetupCommunication___Server_reject_the_request_because_it_is_offline_disconnect_case_n
jmp 0x14002b0c6
lea rcx, str._AsusSync_BTRFCOMMClient__SetupCommunication___Server_reject_the_request_n
jmp 0x14002b0c6
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov dword [rbx + 0x1c], eax
lea rcx, str._AsusSync_BTRFCOMMClient__SetupCommunication___Server_accept_the_request_n
jmp 0x14002b0c6
lea rcx, str._AsusSync_BTRFCOMMClient__SetupCommunication___Receive_invalid_response_n
jmp 0x14002b0c6
lea rcx, str._AsusSync_BTRFCOMMClient__SetupCommunication___wait_too_long__break_the_loop._n
call fcn.140095ab0
mov r14, qword [rsp + 0x2b8]
mov rsi, qword [rsp + 0x2e8]
mov rcx, qword [rbx + 0x30]
cmp rcx, 0xffffffffffffffff
je 0x14002b0f3
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx + 0x30], 0xffffffffffffffff
mov rax, qword [rbx + 0x60]
test rax, rax
je 0x14002b10f
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x14002b10f
call qword [0x1400fac68]
mov qword [rbx + 0x48], r12
mov r12, qword [rsp + 0x2f0]
mov r15, qword [rsp + 0x2b0]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400c2450
add rsp, 0x2c0
pop rdi
pop rbx
pop rbp
ret
lea rcx, str._AsusSync_BTRFCOMMClient__SetupCommunication___socket_cannot_be_created_n
call fcn.140095ab0
jmp 0x14002b11f