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

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
movzx edx, byte [rcx + 0x94]
xor esi, esi
mov rbx, rcx
mov byte [rcx + 0x94], 3
mov byte [rcx + 0x5c], sil
xor r9d, r9d
mov dword [rcx + 0x60], esi
lea rcx, str._AsusSync_ObexClient__StatusUpdate___State___d_____d___ret:__d_n
lea r8d, [rsi + 3]
call fcn.140095ab0
movzx ecx, byte [rbx + 0x94]
sub ecx, 1
je 0x14008a6f5
sub ecx, 1
je 0x14008a6f5
sub ecx, 3
je 0x14008a6e2
cmp ecx, 1
jne 0x14008a702
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 0x14008a702
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 0x14008a702
mov rcx, qword [rbx + 0x98]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
cmp qword [rbx + 0x30], rsi
je 0x14008a722
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 + 0x50]
add rsp, 0x30
pop rsi
ret
mov qword [rsp + 0x48], rdi
mov rdi, qword [rbx + 0x40]
test rdi, rdi
je 0x14008a785
mov rcx, qword [rdi]
test rcx, rcx
je 0x14008a774
mov rdx, qword [rdi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14008a764
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14008a9b3
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 + 0x28], rax
mov dl, 0x80
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], 0x80
call fcn.140089420
mov rdi, qword [rbx + 0x40]
mov byte [rsp + 0x20], reloc.WS2_32.dll_recv
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x14008a7d3
mov byte [rdx], reloc.WS2_32.dll_recv
inc qword [rdi + 8]
jmp 0x14008a7e0
lea r8, [rsp + 0x20]
mov rcx, rdi
call fcn.140028ac0
mov rdx, qword [rdi + 8]
mov byte [rsp + 0x20], sil
cmp rdx, qword [rdi + 0x10]
je 0x14008a7f8
mov byte [rdx], sil
inc qword [rdi + 8]
jmp 0x14008a805
lea r8, [rsp + 0x20]
mov rcx, rdi
call fcn.140028ac0
mov rdi, qword [rbx + 0x40]
mov byte [rsp + 0x20], 0x20
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x14008a821
mov byte [rdx], 0x20
inc qword [rdi + 8]
jmp 0x14008a82e
lea r8, [rsp + 0x20]
mov rcx, rdi
call fcn.140028ac0
mov rdx, qword [rdi + 8]
mov byte [rsp + 0x20], sil
cmp rdx, qword [rdi + 0x10]
je 0x14008a846
mov byte [rdx], sil
inc qword [rdi + 8]
jmp 0x14008a853
lea r8, [rsp + 0x20]
mov rcx, rdi
call fcn.140028ac0
mov rcx, qword [rbx + 0x40]
lea r9, [0x14010ed10]
mov r8d, reloc.WS2_32.dll_recv
mov dl, 0x46
call fcn.1400892b0
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 0x14008a8ae
mov rdi, qword [rsp + 0x48]
mov eax, 0x2736
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x14008a995
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str._AsusSync_ObexClient__Connect___send_failed:__d_n
mov esi, eax
call fcn.140095ab0
test esi, esi
je 0x14008a9a1
movzx edx, byte [rbx + 0x94]
lea rcx, str._AsusSync_ObexClient__StatusUpdate___State___d_____d___ret:__d_n
mov r9d, esi
mov byte [rbx + 0x94], 6
mov r8d, 6
mov byte [rbx + 0x5c], 0
mov dword [rbx + 0x60], esi
call fcn.140095ab0
movzx ecx, byte [rbx + 0x94]
sub ecx, 1
je 0x14008a976
sub ecx, 1
je 0x14008a976
sub ecx, 3
je 0x14008a953
cmp ecx, 1
jne 0x14008a9a1
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 rdi, qword [rsp + 0x48]
mov eax, esi
mov byte [rbx + 0x64], 2
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rdi, qword [rsp + 0x48]
mov eax, esi
mov byte [rbx + 0x64], 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov rcx, qword [rbx + 0x98]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rdi, qword [rsp + 0x48]
mov eax, esi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
lea rcx, str._AsusSync_ObexClient__Connect___Connected_n
call fcn.140095ab0
mov rdi, qword [rsp + 0x48]
mov eax, esi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
call fcn.1400c8b64
int3