Function at 0x14008a9c0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x40
cmp qword [rcx + 0x30], 0
mov rbx, rcx
jne 0x14008aaa4
mov rdx, qword [rcx]
cmp rdx, 0xffffffffffffffff
je 0x14008a9fd
lea rcx, str._AsusSync_ObexClient__Disconnect___close_the_socket:_d_n
call fcn.140095ab0
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx], 0xffffffffffffffff
movzx edx, byte [rbx + 0x94]
lea rcx, str._AsusSync_ObexClient__StatusUpdate___State___d_____d___ret:__d_n
xor esi, esi
mov byte [rbx + 0x94], 0
xor r9d, r9d
mov dword [rbx + 0x60], esi
xor r8d, r8d
mov byte [rbx + 0x5c], 0
call fcn.140095ab0
movzx ecx, byte [rbx + 0x94]
sub ecx, 1
je 0x14008aa8a
sub ecx, 1
je 0x14008aa8a
sub ecx, 3
je 0x14008aa6c
cmp ecx, 1
jne 0x14008aa97
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]
xor eax, eax
mov byte [rbx + 0x64], 2
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
xor eax, eax
mov byte [rbx + 0x64], 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret
mov rcx, qword [rbx + 0x98]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret
mov qword [rsp + 0x58], rdi
xor esi, esi
mov rdi, qword [rcx + 0x40]
test rdi, rdi
je 0x14008ab09
mov rcx, qword [rdi]
test rcx, rcx
je 0x14008aaf8
mov rdx, qword [rdi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14008aae8
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14008ac12
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 + 0x40], rsi
mov ecx, 0x18
call fcn.1400c2704
xorps xmm0, xmm0
mov qword [rsp + 0x38], rax
mov dl, 0x81
mov rcx, rax
movups xmmword [rax], xmm0
mov qword [rax], rsi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rsi
mov qword [rbx + 0x40], rax
mov byte [rbx + 0x50], 0x81
call fcn.140089420
mov rdi, qword [rbx + 0x40]
mov rsi, qword [rbx + 0x30]
mov byte [rsp + 0x30], 0xcb
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x14008ab5b
mov byte [rdx], 0xcb
inc qword [rdi + 8]
jmp 0x14008ab68
lea r8, [rsp + 0x30]
mov rcx, rdi
call fcn.140028ac0
mov rdx, qword [rdi + 8]
lea r9, [rsi + 4]
mov r8, rsi
mov rcx, rdi
call fcn.14008ca60
mov rdx, qword [rbx + 0x40]
mov rax, qword [rdx]
mov r8d, dword [rdx + 8]
sub r8d, dword [rdx]
mov ecx, r8d
mov byte [rax + 2], r8b
mov rax, qword [rdx]
sar ecx, 8
mov byte [rax + 1], cl
mov rax, qword [rbx + 0x40]
mov rcx, qword [rbx]
mov rdx, qword [rax]
cmp rcx, 0xffffffffffffffff
jne 0x14008abbe
mov rdi, qword [rsp + 0x58]
mov eax, 0x2736
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x14008abf4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str._AsusSync_ObexClient__DisConnect___send_failed__WSAGetLastError____d__n
mov ebx, eax
call fcn.140095ab0
mov rdi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret
lea rcx, str._AsusSync_ObexClient__DisConnect___send_completed._n
call fcn.140095ab0
mov rdi, qword [rsp + 0x58]
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret
call fcn.1400c8b64
int3