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

Disassembly:
push rbx
sub rsp, 0x60
mov eax, dword [rcx + 0x3c]
mov rbx, rcx
test al, 8
jne 0x140008f20
and eax, 0xffffc00f
mov qword [rsp + 0x58], rbp
or eax, 8
mov qword [rsp + 0x50], rsi
mov dword [rcx + 0x3c], eax
xor ebp, ebp
mov eax, dword [0x140068158]
inc eax
mov qword [rsp + 0x48], rdi
mov dword [0x140068158], eax
mov eax, dword [0x140068158]
mov rdi, qword [rcx]
mov dword [rcx + 0x44], eax
mov dword [rcx + 0x40], ebp
mov qword [rcx + 0x4c], rbp
mov dword [rcx + 0x54], ebp
mov rax, qword [rdi + 0x20]
and dword [rcx + 0x3c], 0xffffbfff
mov qword [rcx + 0x70], rax
mov qword [rcx + 0x68], rax
cmp qword [rdi + 0x140], rbp
jne 0x140008c7f
mov qword [rdi + 0x140], 0x2000
lock inc dword [0x140068160]
mov ecx, 0x2000
call fcn.14003cd4c
mov rsi, rax
test rax, rax
je 0x140008f26
xor edx, edx
mov r8d, 0x2000
mov rcx, rax
call fcn.1400366d0
mov qword [rdi + 0x138], rsi
mov rax, qword [rdi + 0x138]
lea r9, [rsp + 0x78]
movsxd rcx, dword [rbx + 0x48]
mov edx, 0xffff
mov qword [rbx + 0x78], rax
mov r8d, 0x1008
mov rax, qword [rdi + 0x140]
mov edi, 4
and dword [rbx + 0x3c], 0xffff7fff
mov qword [rbx + 0x80], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov qword [rbx + 0x90], rbp
mov qword [rbx + 0x88], rbp
mov qword [rbx + 0x98], rbp
mov qword [rbx + 0xa0], 0x2000000
mov dword [rbx + 0xf0], ebp
mov dword [rbx + 0xf4], 0x2000000
mov qword [rbx + 0xf8], rbp
mov qword [rbx + 0x100], rbp
mov qword [rbx + 0x108], rbp
mov qword [rbx + 0x110], rbp
mov qword [rbx + 0x118], rbp
mov qword [rbx + 0x120], rbp
mov qword [rbx + 0x140], rbp
mov qword [rbx + 0x148], rbp
mov qword [rbx + 0x128], rbp
mov qword [rbx + 0x150], rbp
mov qword [rbx + 0x158], rbp
mov qword [rbx + 0x130], rbp
mov qword [rbx + 0x160], rbp
mov qword [rbx + 0x138], rbp
mov qword [rbx + 0x168], rbp
mov qword [rbx + 0x170], rbp
mov qword [rbx + 0x178], rbp
mov qword [rbx + 0x180], rbp
mov qword [rbx + 0x188], rbp
mov qword [rbx + 0x190], rbp
mov qword [rbx + 0x198], rbp
mov dword [rsp + 0x78], ebp
mov dword [rsp + 0x80], edi
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140008ddc
mov ecx, dword [rsp + 0x78]
sub ecx, 1
je 0x140008dd2
sub ecx, 1
je 0x140008dc8
cmp ecx, 1
je 0x140008dbe
mov dword [rbx + 0x40], 0xfffff00
mov edi, 0xfffff00
jmp 0x140008e1f
mov edi, 0x100
mov dword [rbx + 0x40], edi
jmp 0x140008e1f
mov edi, 0x1000
mov dword [rbx + 0x40], edi
jmp 0x140008e1f
mov edi, 0x100000
mov dword [rbx + 0x40], edi
jmp 0x140008e1f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movsxd rcx, dword [rbx + 0x48]
cmp eax, 0x2736
jne 0x140008e48
test ecx, ecx
je 0x140008e13
sub ecx, 1
je 0x140008e05
cmp ecx, 1
je 0x140008e00
mov edi, reloc.WS2_32.dll_recv
mov dword [rbx + 0x40], edi
jmp 0x140008e1f
mov dword [rbx + 0x40], 2
mov edi, 2
jmp 0x140008e1f
mov dword [rbx + 0x40], 1
mov edi, 1
test edi, 0xfffff00
je 0x140008f11
movsxd rcx, dword [rbx + 0x48]
test edi, 0xfff00
je 0x140008e50
mov dword [rsp + 0x88], ebp
lea r8, [rsp + 0x88]
jmp 0x140008e5d
mov edi, 0x100000
mov dword [rbx + 0x40], edi
mov dword [rsp + 0x30], 1
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, qword [rbx + 0x58]
test rax, rax
jne 0x140008e9c
lock inc dword [0x140068160]
lea ecx, [rax + 0x1c]
call fcn.14003cd4c
test rax, rax
je 0x140008f4a
xor ecx, ecx
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rcx
mov dword [rax + 0x18], ecx
mov qword [rbx + 0x58], rax
cmp qword [rbx + 0x60], rbp
jne 0x140008ed3
lock inc dword [0x140068160]
mov ecx, 0x1c
call fcn.14003cd4c
test rax, rax
je 0x140008f6e
xor ecx, ecx
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rcx
mov dword [rax + 0x18], ecx
mov qword [rbx + 0x60], rax
mov rax, qword [rbx + 0x58]
movsxd rcx, dword [rbx + 0x48]
lea r8, [rsp + 0x70]
mov rdx, rax
mov dword [rsp + 0x70], 0x1c
call qword [sym.imp.WS2_32.dll_getsockname]
test dword [rbx + 0x40], 0xff00000
je 0x140008f11
movsxd rcx, dword [rbx + 0x48]
lea r8, [rsp + 0x70]
mov rdx, qword [rbx + 0x60]
mov dword [rsp + 0x70], 0x1c
call qword [sym.imp.WS2_32.dll_getpeername]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x48]
add rsp, 0x60
pop rbx
ret
mov ecx, 2
call fcn.1400393ec
mov rcx, rax
lea rdx, str.malloc_failed__n
call fcn.1400095a0
mov ecx, 0xffffffff
call fcn.14003e96c
int3
mov ecx, 2
call fcn.1400393ec
mov rcx, rax
lea rdx, str.malloc_failed__n
call fcn.1400095a0
mov ecx, 0xffffffff
call fcn.14003e96c
int3
mov ecx, 2
call fcn.1400393ec
mov rcx, rax
lea rdx, str.malloc_failed__n
call fcn.1400095a0
mov ecx, 0xffffffff
call fcn.14003e96c
int3