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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x1401970d0]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r12, rcx
xor r13d, r13d
mov qword [rbp - 9], r13
call fcn.14010c950
mov qword [rbp - 1], rax
lea r9, [rbp - 9]
lea edx, [r13 + 1]
lea r8d, [r13 + 6]
mov r14d, 2
mov ecx, r14d
call fcn.140077e90
mov rbx, rax
mov qword [rbp - 0x19], rax
cmp rax, 0xffffffffffffffff
jne 0x1400787f3
cmp dword [rbp - 9], r13d
jne 0x140078c70
mov dword [rbp + 7], 1
call fcn.14010c950
mov qword [rbp + 0x17], r13
mov word [rbp + 0xf], r14w
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp + 0x13], eax
mov word [rbp + 0x11], r13w
jmp 0x140078c56
mov dword [rbp + 7], 1
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x20], 4
lea r9, [rbp + 7]
mov edx, 0xffff
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.14010c950
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
jne 0x14007889a
call fcn.14010c950
mov qword [rbp + 0x17], r13
mov word [rbp + 0xf], r14w
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp + 0x13], eax
mov word [rbp + 0x11], r13w
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r8d, select
lea rdx, [rbp + 0xf]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_bind]
mov esi, eax
call fcn.14010c950
mov rdi, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 9], eax
mov qword [rbp - 1], rdi
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 9], xmm0
test esi, esi
jne 0x1400788c2
call fcn.14010c950
jmp 0x1400788cf
mov qword [rbp + 0x17], r13
mov word [rbp + 0xf], r14w
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp + 0x13], eax
mov word [rbp + 0x11], r13w
cmp rbx, 0xffffffffffffffff
je 0x140078c56
jmp 0x140078854
cmp esi, 0xffffffff
jne 0x1400788cf
test eax, eax
jne 0x140078c70
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rbp + 0x27], shutdown
lea r8, [rbp + 0x27]
lea rdx, [rbp + 0xf]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockname]
mov esi, eax
movsxd r15, dword [rbp + 0x27]
call fcn.14010c950
mov rdi, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 9], eax
mov qword [rbp - 1], rdi
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 9], xmm0
test esi, esi
jne 0x14007891e
call fcn.14010c950
jmp 0x14007892b
cmp esi, 0xffffffff
jne 0x14007892b
test eax, eax
jne 0x140078c70
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htonl]
cmp dword [rbp + 0x13], eax
jne 0x140078946
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp + 0x13], eax
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, 0x7fffffff
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_listen]
mov esi, eax
call fcn.14010c950
mov rdi, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 9], eax
mov qword [rbp - 1], rdi
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 9], xmm0
test esi, esi
jne 0x1400789be
mov dword [rbp - 9], r13d
call fcn.14010c950
mov qword [rbp - 1], rax
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 9], xmm0
lea r9, [rbp - 9]
mov edx, 1
lea r8d, [rdx + 5]
mov ecx, r14d
call fcn.140077e90
mov r14, rax
mov qword [rbp + 0x27], rax
cmp rax, 0xffffffffffffffff
je 0x140078c81
jmp 0x1400789cd
cmp esi, 0xffffffff
jne 0x140078996
test eax, eax
jne 0x140078c70
jmp 0x140078996
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r8d, r15d
lea rdx, [rbp + 0xf]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_connect]
mov esi, eax
call fcn.14010c950
mov rdi, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 9], eax
mov qword [rbp - 1], rdi
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 9], xmm0
test esi, esi
jne 0x140078b3d
call fcn.14010c950
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov rsi, rax
call fcn.14010c950
mov rdi, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 9], eax
mov qword [rbp - 1], rdi
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 9], xmm0
cmp rsi, 0xffffffffffffffff
je 0x140078a68
mov dword [rbp - 9], r13d
call fcn.14010c950
mov qword [rbp - 1], rax
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 9], xmm0
mov eax, r13d
mov qword [rbp - 0x21], rsi
cmp rsi, 0xffffffffffffffff
jne 0x140078a7a
test eax, eax
jne 0x140078cca
mov dword [rbp + 0x1f], 1
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r8, [rbp + 0x1f]
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r15d, eax
call fcn.14010c950
mov rdi, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 9], eax
mov qword [rbp - 1], rdi
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 9], xmm0
test r15d, r15d
js 0x140078add
mov dword [rbp - 9], r13d
call fcn.14010c950
mov qword [rbp - 1], rax
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 9], xmm0
mov eax, r13d
test r15d, r15d
je 0x140078ae7
test eax, eax
jne 0x140078cca
mov dword [rbp + 7], 1
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x20], 4
lea r9, [rbp + 7]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.14010c950
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
jne 0x140078b2a
call fcn.14010c950
mov dword [rbp + 0x1f], 1
cmp rsi, 0xffffffffffffffff
je 0x140078cb1
jmp 0x140078b53
cmp esi, 0xffffffff
jne 0x140078a12
test eax, eax
jne 0x140078ca0
jmp 0x140078a12
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r8, [rbp + 0x1f]
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r15d, eax
call fcn.14010c950
mov rdi, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 9], eax
mov qword [rbp - 1], rdi
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 9], xmm0
test r15d, r15d
js 0x140078baf
mov dword [rbp - 9], r13d
call fcn.14010c950
mov qword [rbp - 1], rax
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 9], xmm0
mov eax, r13d
test r15d, r15d
je 0x140078bb9
test eax, eax
jne 0x140078cca
mov dword [rbp + 7], 1
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x20], 4
lea r9, [rbp + 7]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.14010c950
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
jne 0x140078bfc
call fcn.14010c950
mov qword [r12], rsi
mov qword [r12 + 8], r14
mov qword [rbp - 9], r13
call fcn.14010c950
mov qword [rbp - 1], rax
mov byte [rbp - 0x29], 0
lea r9, [rbp - 9]
mov r8b, 1
lea rdx, [rbp - 0x29]
mov rcx, rbx
call fcn.140077ab0
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14010a950
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
call fcn.14010c950
nop
mov dword [rbp - 9], 0x2719
mov qword [rbp - 1], rax
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 9], xmm0
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 9]
call fcn.1400152f0
nop
cmp dword [rbp - 9], 0
jne 0x140078ca0
call fcn.14010c950
mov dword [rbp - 9], 0x2719
mov qword [rbp - 1], rax
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 9], xmm0
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 9]
call fcn.1400152f0
nop
call fcn.14010c950
mov dword [rbp - 9], 0x2719
mov qword [rbp - 1], rax
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 9], xmm0
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 9]
call fcn.1400152f0
int3