Function at 0x140094970
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0xd8
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rbp - 9], rax
mov r13, r9
movzx ebx, r8w
mov r14d, edx
mov rsi, rcx
mov rax, qword [rbp + 0x7f]
mov qword [rbp - 0x69], rax
xor edi, edi
mov qword [rbp - 0x51], rdi
test edx, edx
je 0x140094c47
test bx, bx
je 0x140094c47
mov r15d, 2
mov word [rbp - 0x59], r15w
mov dword [rbp - 0x55], edx
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x57], ax
lea edx, [rdi + 1]
lea r8d, [rdi + 6]
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi + 0x10], rax
mov r8d, ebx
mov edx, r14d
lea rcx, str._AsusSync_TCPClient__Connect___IP:0x_I64X___PORT:_d_n
call fcn.140095ab0
lea r8d, [rdi + 0x10]
lea rdx, [rbp - 0x59]
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140094a55
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov edx, eax
lea rcx, str._AsusSync_TCPClient__Connect___TCP_Client_is_to_be_closed:_d_n
call fcn.140095ab0
mov rcx, qword [rsi + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x140094c4c
call qword [sym.imp.WS2_32.dll_closesocket]
mov r15, 0xffffffffffffffff
mov qword [rsi + 0x10], r15
jmp 0x140094c4c
mov ecx, dword [rbp - 0x55]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x29], dil
mov r15, 0xffffffffffffffff
mov r8, r15
nop dword [rax]
inc r8
cmp byte [rax + r8], dil
jne 0x140094a80
mov rdx, rax
lea rcx, [rbp - 0x29]
call fcn.140028190
nop
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0x10
cmovae rdx, qword [rbp - 0x29]
mov r14, qword [rbp - 0x19]
add r14, rdx
lea rbx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0x10
cmovae rbx, qword [rbp - 0x29]
mov qword [rbp - 0x49], rdi
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x31], 7
mov word [rbp - 0x49], di
mov rdx, r14
sub rdx, rbx
lea rcx, [rbp - 0x49]
call fcn.14004dc60
lea rax, [rbp - 0x49]
mov qword [rbp - 0x61], rax
cmp rbx, r14
je 0x140094b04
nop dword [rax]
movsx edx, byte [rbx]
lea rcx, [rbp - 0x49]
call fcn.14004e0d0
inc rbx
cmp rbx, r14
jne 0x140094af0
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x140094bc2
mov qword [rsp + 0x40], rdi
mov qword [rbp - 0x79], rdi
mov qword [rbp - 0x71], rdi
mov r12, qword [rbp - 0x39]
lea r14, [rbp - 0x49]
cmp qword [rbp - 0x31], 8
cmovae r14, qword [rbp - 0x49]
cmp r12, 8
jae 0x140094b46
movups xmm0, xmmword [r14]
movups xmmword [rsp + 0x40], xmm0
mov ebx, 7
jmp 0x140094b8f
mov rbx, r12
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
mov rdx, rbx
add rdx, 1
cmovb rdx, r15
lea rcx, [rsp + 0x40]
call fcn.140017d80
mov qword [rsp + 0x40], rax
lea r8, [r12*2 + 2]
mov rdx, r14
mov rcx, rax
call fcn.1400c4a50
mov rax, qword [rsi + 0x18]
mov qword [rbp - 0x79], r12
mov qword [rbp - 0x71], rbx
mov rcx, qword [rbp - 0x69]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsi + 0x10]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x40]
mov r8d, dword [rbp + 0x77]
mov rdx, r13
mov rcx, qword [rsi]
call qword [0x1400fac68]
mov byte [rsi + 8], 1
mov rdx, qword [rbp - 0x31]
cmp rdx, 8
jb 0x140094bfe
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140094bf9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140094c74
call fcn.1400c2470
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x31], 7
mov word [rbp - 0x49], di
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x140094c4c
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140094c40
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140094c6e
call fcn.1400c2470
jmp 0x140094c4c
mov edi, 0x57
mov eax, edi
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1400c2450
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400c8b64
nop
call fcn.1400c8b64
nop
int3