Function at 0x1400275d0
Capabilities:
Connect socket
Convert ip address from string
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xb0
mov rax, qword [0x14008f060]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r13, r8
mov r9, rdx
movzx eax, word [rdx + 0x20]
test al, 0x20
je 0x14002760f
xor al, al
jmp 0x140027946
or ax, 0x20
mov word [rdx + 0x20], ax
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x51], xmm1
mov rdx, qword [rdx + 0x30]
test rdx, rdx
je 0x140027642
mov eax, dword [rdx + 8]
test eax, eax
je 0x140027642
nop
lea ecx, [rax + 1]
lock cmpxchg dword [rdx + 8], ecx
je 0x1400276d2
test eax, eax
jne 0x140027630
mov r14, qword [rbp - 0x51]
mov rdi, qword [rbp - 0x49]
mov esi, 0xffffffff
test r14, r14
je 0x1400278e1
test byte [r9 + 0x20], 0x80
jne 0x14002790e
mov dword [rbp - 0x41], 1
lea r8, [rbp - 0x41]
mov edx, 0x8004667e
mov rcx, qword [r14 + 8]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r15, qword [r14 + 8]
lea rbx, [r13 + 8]
movzx ecx, word [r13 + 0x28]
xor r12d, r12d
cmp dword [r13], 1
jne 0x1400276e7
mov eax, 2
mov word [rbp - 0x19], ax
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x17], ax
cmp qword [rbx + 0x18], 0x10
jb 0x1400276b1
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp - 0x15], eax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x19]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_connect]
jmp 0x140027734
mov r14, qword [r9 + 0x28]
mov qword [rbp - 0x51], r14
mov rdi, qword [r9 + 0x30]
mov qword [rbp - 0x49], rdi
jmp 0x14002764a
mov dword [rbp - 5], r12d
mov dword [rbp + 0xf], r12d
mov r12d, reloc.WS2_32.dll_socket
mov word [rbp - 9], r12w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 7], ax
cmp qword [rbx + 0x18], 0x10
jb 0x14002770e
mov rbx, qword [rbx]
lea r8, [rbp - 1]
mov rdx, rbx
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r8d, 0x1c
lea rdx, [rbp - 9]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_connect]
xor r12d, r12d
test eax, eax
jns 0x14002774a
mov dword [rbp - 0x59], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x55], eax
mov rbx, qword [rbp - 0x59]
jmp 0x14002774c
mov ebx, eax
mov qword [rbp - 0x59], rbx
mov r15, rbx
shr r15, 0x20
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
mov dword [rsp + 0x20], r12d
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
mov rcx, r14
call fcn.1400673dc
mov rcx, rax
test rax, rax
je 0x14002779e
test rdi, rdi
je 0x140027794
lock inc dword [rdi + 8]
mov rdi, qword [rbp - 0x49]
mov r14, qword [rbp - 0x51]
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rdi
jmp 0x1400277aa
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov rcx, qword [rbp - 0x29]
test ebx, ebx
jne 0x1400277be
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x40]
mov r14b, 1
jmp 0x1400278a4
cmp r15d, 0x70
je 0x140027804
mov ebx, dword [rbp - 0x55]
cmp ebx, 0x2733
je 0x140027804
mov rax, qword [rcx]
mov edx, 3
call qword [rax + 0x40]
call fcn.14001f020
mov rcx, rax
mov dword [rsp + 0x20], ebx
lea r9, str.connect_event_failed___d
mov r8d, 0xe6
lea rdx, str.D:GitADESv2_acerdeviceenablingservicev2AcerDeviceEnablingServiceCppNetcppneteventepollepoll_action.cpp
call fcn.1400218e0
jmp 0x1400278a1
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
mov dword [rsp + 0x20], r12d
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
mov rcx, r14
call fcn.1400673dc
test rax, rax
je 0x140027847
test rdi, rdi
je 0x14002783a
lock inc dword [rdi + 8]
mov rdi, qword [rbp - 0x49]
mov qword [rbp - 0x39], rax
mov rbx, rdi
mov qword [rbp - 0x31], rbx
jmp 0x140027857
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
mov rbx, qword [rbp - 0x31]
mov rax, qword [rbp - 0x39]
lea rcx, [rax + 0x70]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, 0x7d0
call qword [rax + 0x30]
nop
test rbx, rbx
je 0x1400278a1
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14002789d
mov rbx, qword [rbp - 0x31]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14002789d
mov rcx, qword [rbp - 0x31]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rbp - 0x49]
xor r14b, r14b
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x140027911
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400278db
mov rbx, qword [rbp - 0x21]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400278db
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rbp - 0x49]
jmp 0x140027911
call fcn.14001f020
mov rcx, rax
lea rax, str.AddConnection
mov qword [rsp + 0x20], rax
lea r9, str.connection_event_is_already_destroyed___s
mov r8d, 0xe9
lea rdx, str.D:GitADESv2_acerdeviceenablingservicev2AcerDeviceEnablingServiceCppNetcppneteventepollepoll_action.cpp
call fcn.1400218e0
xor r14b, r14b
test rdi, rdi
je 0x140027942
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140027942
mov rbx, qword [rbp - 0x49]
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x140027942
mov rcx, qword [rbp - 0x49]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_htonl]
movzx eax, r14b
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140036cc0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret