Function at 0x140026160
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 9], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400c1ed0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r12, rcx
xor ecx, ecx
mov dword [rbp - 0x29], ecx
mov byte [rbp - 0x25], cl
mov eax, dword [0x1400d35a0]
movabs r13, 0x8fafd21e25c5e09b
lea rbx, vtable.V_.ts_taesrA__etcot_y_tsm_dyoysgrsrliabor_eeeom.0
test al, 1
jne 0x1400261d6
or eax, 1
mov dword [0x1400d35a0], eax
mov qword [0x1400d3598], r13
mov qword [0x1400d3590], rbx
lea rsi, [0x1400d3590]
mov qword [rbp - 0x21], rsi
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], ecx
xor r9d, r9d
lea edx, [r9 + 1]
lea ecx, [rdx + 1]
lea r8d, [r9 + 6]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
sete dl
lea rcx, [rbp - 0x29]
call fcn.14001ac70
or r14, 0xffffffffffffffff
cmp rdi, r14
cmove rdi, r14
mov qword [rbp + 7], rdi
cmp rdi, r14
jne 0x14002623f
cmp byte [rbp - 0x25], 0
je 0x14002623f
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.1400057e4
int3
mov dword [rbp - 0x15], 1
movabs rcx, 0xb2ab117a257edf0d
cmp rdi, 0xffffffffffffffff
jne 0x1400262c0
mov eax, dword [0x1400d35a0]
test al, 1
jne 0x14002627f
or eax, 1
mov dword [0x1400d35a0], eax
mov rax, r13
mov qword [0x1400d3598], rax
mov r8, rbx
mov qword [0x1400d3590], rbx
jmp 0x14002628d
mov rax, qword [0x1400d3598]
mov r8, qword [0x1400d3590]
mov dword [rbp - 0x29], 0x2719
cmp rax, r13
je 0x1400262ac
cmp rax, rcx
je 0x1400262ac
mov edx, 0x2719
mov rcx, rsi
call qword [r8 + 0x30]
jmp 0x1400262ae
mov al, 1
mov byte [rbp - 0x25], al
mov qword [rbp - 0x21], rsi
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
jmp 0x1400262ee
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x15]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
setne dl
lea rcx, [rbp - 0x29]
call fcn.14001ac70
xor eax, eax
lea r15d, [rax + 0x10]
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
mov eax, 2
mov word [rbp + 0x17], ax
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp + 0x1b], eax
xor eax, eax
mov word [rbp + 0x19], ax
cmp rdi, 0xffffffffffffffff
jne 0x1400263a4
mov ecx, dword [0x1400d35a0]
test cl, 1
jne 0x14002634a
or ecx, 1
mov dword [0x1400d35a0], ecx
mov rax, r13
mov qword [0x1400d3598], rax
mov qword [0x1400d3590], rbx
jmp 0x140026351
mov rax, qword [0x1400d3598]
mov dword [rbp - 0x29], 0x2719
cmp rax, r13
je 0x140026390
movabs rdx, 0xb2ab117a257edf0d
cmp rax, rdx
je 0x140026390
mov edx, 0x2719
mov rcx, rsi
mov rax, qword [0x1400d3590]
call qword [rax + 0x30]
movzx edx, al
mov ecx, dword [0x1400d35a0]
mov rax, qword [0x1400d3598]
jmp 0x140026392
mov dl, 1
mov byte [rbp - 0x25], dl
mov qword [rbp - 0x21], rsi
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
jmp 0x1400263d6
mov r8d, r15d
lea rdx, [rbp + 0x17]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
mov ebx, eax
test eax, eax
setne dl
lea rcx, [rbp - 0x29]
call fcn.14001ac70
mov ecx, dword [0x1400d35a0]
mov rax, qword [0x1400d3598]
cmp ebx, 0xffffffff
jne 0x1400263ed
cmp byte [rbp - 0x25], 0
je 0x1400263ed
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.1400057e4
int3
cmp rdi, 0xffffffffffffffff
jne 0x14002645c
lea rbx, vtable.V_.ts_taesrA__etcot_y_tsm_dyoysgrsrliabor_eeeom.0
test cl, 1
jne 0x140026419
or ecx, 1
mov dword [0x1400d35a0], ecx
mov rax, r13
mov qword [0x1400d3598], rax
mov qword [0x1400d3590], rbx
mov dword [rbp - 0x29], 0x2719
cmp rax, r13
je 0x140026448
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x140026448
mov edx, 0x2719
mov rcx, rsi
mov rax, qword [0x1400d3590]
call qword [rax + 0x30]
jmp 0x14002644a
mov al, 1
mov byte [rbp - 0x25], al
mov qword [rbp - 0x21], rsi
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
jmp 0x140026491
mov dword [rbp - 0xd], r15d
lea r8, [rbp - 0xd]
lea rdx, [rbp + 0x17]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
mov ebx, eax
movsxd r15, dword [rbp - 0xd]
test eax, eax
setne dl
lea rcx, [rbp - 0x29]
call fcn.14001ac70
cmp ebx, 0xffffffff
lea rbx, vtable.V_.ts_taesrA__etcot_y_tsm_dyoysgrsrliabor_eeeom.0
jne 0x1400264a8
cmp byte [rbp - 0x25], 0
je 0x1400264a8
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.1400057e4
int3
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htonl]
cmp dword [rbp + 0x1b], eax
jne 0x1400264c3
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp + 0x1b], eax
lea r8, [rbp - 0x29]
mov edx, 0x7fffffff
mov rcx, rdi
call fcn.140025d20
cmp eax, 0xffffffff
jne 0x1400264f0
cmp byte [rbp - 0x25], 0
je 0x1400264f0
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.1400057e4
int3
mov dword [rsp + 0x28], 1
xor eax, eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
lea edx, [rax + 1]
lea ecx, [rax + 2]
lea r8d, [rax + 6]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
sete dl
lea rcx, [rbp - 0x29]
call fcn.14001ac70
cmp rsi, 0xffffffffffffffff
cmove rsi, r14
mov qword [rbp + 0xf], rsi
cmp rsi, 0xffffffffffffffff
jne 0x1400265c8
cmp byte [rbp - 0x25], 0
je 0x140026551
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.1400057e4
int3
mov eax, dword [0x1400d35a0]
test al, 1
jne 0x140026570
or dword [0x1400d35a0], 1
mov qword [0x1400d3598], r13
mov qword [0x1400d3590], rbx
mov dword [rbp - 0x29], 0x2719
mov rax, qword [0x1400d3598]
cmp rax, r13
je 0x1400265ad
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x1400265ad
mov edx, 0x2719
lea r15, [0x1400d3590]
mov rcx, r15
mov rax, qword [0x1400d3590]
call qword [rax + 0x30]
jmp 0x1400265b6
mov al, 1
lea r15, [0x1400d3590]
mov byte [rbp - 0x25], al
mov qword [rbp - 0x21], r15
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
jmp 0x1400265f4
mov r8d, r15d
lea rdx, [rbp + 0x17]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
test eax, eax
setne dl
lea rcx, [rbp - 0x29]
call fcn.14001ac70
lea r15, [0x1400d3590]
cmp ebx, 0xffffffff
jne 0x14002660b
cmp byte [rbp - 0x25], 0
je 0x14002660b
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.1400057e4
int3
cmp rdi, 0xffffffffffffffff
jne 0x140026681
mov eax, dword [0x1400d35a0]
test al, 1
jne 0x140026637
or dword [0x1400d35a0], 1
mov qword [0x1400d3598], r13
lea rax, vtable.V_.ts_taesrA__etcot_y_tsm_dyoysgrsrliabor_eeeom.0
mov qword [0x1400d3590], rax
mov dword [rbp - 0x29], 0x2719
mov rax, qword [0x1400d3598]
cmp rax, r13
je 0x14002666d
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x14002666d
mov edx, 0x2719
mov rcx, r15
mov rax, qword [0x1400d3590]
call qword [rax + 0x30]
jmp 0x14002666f
mov al, 1
mov byte [rbp - 0x25], al
mov qword [rbp - 0x21], r15
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
jmp 0x1400266e0
xor eax, eax
mov dword [rbp - 0xd], eax
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
cmp rax, 0xffffffffffffffff
sete dl
lea rcx, [rbp - 0x29]
call fcn.14001ac70
cmp rbx, 0xffffffffffffffff
je 0x1400266e0
xor eax, eax
mov dword [rbp - 0x29], eax
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx + 8]
cmp rax, r13
je 0x1400266d8
movabs rdx, 0xb2ab117a257edf0d
cmp rax, rdx
je 0x1400266d8
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x30]
jmp 0x1400266da
xor al, al
mov byte [rbp - 0x25], al
mov r14, rbx
mov qword [rbp - 1], r14
cmp r14, 0xffffffffffffffff
jne 0x140026701
cmp byte [rbp - 0x25], 0
je 0x140026701
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.1400057e4
int3
mov dword [rbp - 0x11], 1
cmp rsi, 0xffffffffffffffff
jne 0x14002677e
mov eax, dword [0x1400d35a0]
test al, 1
jne 0x140026734
or dword [0x1400d35a0], 1
mov qword [0x1400d3598], r13
lea rax, vtable.V_.ts_taesrA__etcot_y_tsm_dyoysgrsrliabor_eeeom.0
mov qword [0x1400d3590], rax
mov dword [rbp - 0x29], 0x2719
mov rax, qword [0x1400d3598]
cmp rax, r13
je 0x14002676a
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x14002676a
mov edx, 0x2719
mov rcx, r15
mov rax, qword [0x1400d3590]
call qword [rax + 0x30]
jmp 0x14002676c
mov al, 1
mov byte [rbp - 0x25], al
mov qword [rbp - 0x21], r15
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
jmp 0x1400267a4
lea r8, [rbp - 0x11]
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
test eax, eax
sets dl
lea rcx, [rbp - 0x29]
call fcn.14001ac70
test ebx, ebx
je 0x1400267bb
cmp byte [rbp - 0x25], 0
je 0x1400267bb
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.1400057e4
int3
mov dword [rbp - 0x15], 1
cmp rsi, 0xffffffffffffffff
jne 0x140026838
mov eax, dword [0x1400d35a0]
test al, 1
jne 0x1400267ee
or dword [0x1400d35a0], 1
mov qword [0x1400d3598], r13
lea rax, vtable.V_.ts_taesrA__etcot_y_tsm_dyoysgrsrliabor_eeeom.0
mov qword [0x1400d3590], rax
mov dword [rbp - 0x29], 0x2719
mov rax, qword [0x1400d3598]
cmp rax, r13
je 0x140026824
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x140026824
mov edx, 0x2719
mov rcx, r15
mov rax, qword [0x1400d3590]
call qword [rax + 0x30]
jmp 0x140026826
mov al, 1
mov byte [rbp - 0x25], al
mov qword [rbp - 0x21], r15
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
jmp 0x140026864
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x15]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
setne dl
lea rcx, [rbp - 0x29]
call fcn.14001ac70
mov dword [rbp - 0x11], 1
cmp r14, 0xffffffffffffffff
jne 0x1400268e1
mov eax, dword [0x1400d35a0]
test al, 1
jne 0x140026897
or dword [0x1400d35a0], 1
mov qword [0x1400d3598], r13
lea rax, vtable.V_.ts_taesrA__etcot_y_tsm_dyoysgrsrliabor_eeeom.0
mov qword [0x1400d3590], rax
mov dword [rbp - 0x29], 0x2719
mov rax, qword [0x1400d3598]
cmp rax, r13
je 0x1400268cd
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x1400268cd
mov edx, 0x2719
mov rcx, r15
mov rax, qword [0x1400d3590]
call qword [rax + 0x30]
jmp 0x1400268cf
mov al, 1
mov byte [rbp - 0x25], al
mov qword [rbp - 0x21], r15
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
jmp 0x140026907
lea r8, [rbp - 0x11]
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
test eax, eax
sets dl
lea rcx, [rbp - 0x29]
call fcn.14001ac70
test ebx, ebx
je 0x14002691e
cmp byte [rbp - 0x25], 0
je 0x14002691e
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.1400057e4
int3
mov dword [rbp - 0x15], 1
cmp r14, 0xffffffffffffffff
jne 0x140026982
mov eax, dword [0x1400d35a0]
test al, 1
jne 0x140026953
or dword [0x1400d35a0], 1
mov qword [0x1400d3598], r13
lea rcx, vtable.V_.ts_taesrA__etcot_y_tsm_dyoysgrsrliabor_eeeom.0
mov qword [0x1400d3590], rcx
jmp 0x1400269b5
mov rax, qword [0x1400d3598]
cmp rax, r13
je 0x1400269ae
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x1400269ae
mov edx, 0x2719
mov rcx, r15
mov rax, qword [0x1400d3590]
call qword [rax + 0x30]
jmp 0x1400269ae
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x15]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
setne dl
lea rcx, [rbp - 0x29]
call fcn.14001ac70
lea rcx, vtable.V_.ts_taesrA__etcot_y_tsm_dyoysgrsrliabor_eeeom.0
mov qword [r12], r14
mov qword [r12 + 8], rsi
cmp rdi, 0xffffffffffffffff
je 0x140026a08
xor eax, eax
mov dword [rbp - 0x29], eax
mov byte [rbp - 0x25], al
mov eax, dword [0x1400d35a0]
test al, 1
jne 0x1400269ed
or eax, 1
mov dword [0x1400d35a0], eax
mov qword [0x1400d3598], r13
mov qword [0x1400d3590], rcx
mov qword [rbp - 0x21], r15
mov byte [rbp - 0x19], 0
lea r9, [rbp - 0x29]
mov r8b, 1
lea rdx, [rbp - 0x19]
mov rcx, rdi
call fcn.140019690
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140046830
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret