Function at 0x140026e60
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x68
mov rax, qword [0x14008f060]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
call fcn.14002c470
mov qword [rbx + 8], rax
test rax, rax
jne 0x140026ebf
call fcn.1400490cc
mov rbx, rax
call fcn.14001f020
mov rcx, rax
lea r9, str.EPOLL_init_failed__error_:__d
mov eax, dword [rbx]
lea rdx, str.D:GitADESv2_acerdeviceenablingservicev2AcerDeviceEnablingServiceCppNetcppneteventepollepoll_action.cpp
mov r8d, 0x46
mov dword [rsp + 0x20], eax
call fcn.140021ac0
xor al, al
jmp 0x1400270d2
mov qword [rsp + 0x88], rsi
xor r8d, r8d
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x60], r14
mov r14d, 2
mov ecx, r14d
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
xor esi, esi
mov word [rbp - 0x30], r14w
mov ecx, 0x7f000001
mov qword [rbp - 0x28], rsi
mov rdi, rax
call qword [sym.imp.WS2_32.dll_htonl]
lea r8d, [r14 + 0xe]
mov word [rbp - 0x2e], si
lea rdx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14002708c
lea edx, [rsi + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x14002708c
xor r8d, r8d
lea edx, [rsi + 1]
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
lea r8, [rbp - 0x38]
mov dword [rbp - 0x38], reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x20]
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14002708c
cmp dword [rbp - 0x38], 0x10
jne 0x14002708c
lea r8d, [r14 + 0xe]
mov rcx, rsi
lea rdx, [rbp - 0x20]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14002708c
lea r8, [rbp - 0x38]
mov dword [rbp - 0x38], reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
cmp dword [rbp - 0x38], 0x10
mov r14, rax
jne 0x14002708c
lea r8, [rbp - 0x38]
mov rcx, rsi
lea rdx, [rbp - 0x20]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14002708c
cmp dword [rbp - 0x38], 0x10
jne 0x14002708c
movzx eax, word [rbp - 0x20]
cmp word [rbp - 0x30], ax
jne 0x14002708c
mov eax, dword [rbp - 0x1c]
cmp dword [rbp - 0x2c], eax
jne 0x14002708c
movzx eax, word [rbp - 0x1e]
cmp word [rbp - 0x2e], ax
jne 0x14002708c
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
lea r8, [rbp - 0x38]
mov qword [rbx + 0x10], rsi
mov edx, 0x8004667e
mov qword [rbx + 0x18], r14
mov rcx, r14
mov dword [rbp - 0x38], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rbx + 0x10]
lea r8, [rbp - 0x38]
mov edx, 0x8004667e
mov dword [rbp - 0x38], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [rbx + 0x10]
lea r9, [rbx + 0x20]
mov r8, qword [rbx + 0x10]
mov edx, 1
mov rcx, qword [rbx + 8]
mov dword [r9], 1
mov dword [rbx + 0x28], eax
call fcn.14002c820
test eax, eax
jns 0x140027088
call fcn.1400490cc
mov rbx, rax
call fcn.14001f020
lea r9, str.add_pipe_handle_to_EPOLL_failed__error_:_d
mov r8d, 0x59
jmp 0x1400270a6
mov al, 1
jmp 0x1400270bd
call fcn.1400490cc
mov rbx, rax
call fcn.14001f020
lea r9, str.pipe_init_failed__error_:__d
mov r8d, 0x4e
mov rcx, rax
lea rdx, str.D:GitADESv2_acerdeviceenablingservicev2AcerDeviceEnablingServiceCppNetcppneteventepollepoll_action.cpp
mov eax, dword [rbx]
mov dword [rsp + 0x20], eax
call fcn.140021ac0
xor al, al
mov rdi, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x88]
mov r14, qword [rsp + 0x60]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140036cc0
add rsp, 0x68
pop rbx
pop rbp
ret