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

Disassembly:
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rdi
push r12
push r13
push r15
sub rsp, 0x40
mov r12, qword [rsp + 0x98]
lea r8, [rsp + 0x30]
mov r13, r9
mov r15, rdx
mov rdi, 0xffffffffffffffff
mov r9, r12
xor ebp, ebp
xor ebx, ebx
lea edx, [rdi + 2]
call qword [sym.imp.php8.dll_php_network_getaddresses]
test eax, eax
je 0x140006326
mov qword [rsp + 0x70], rsi
mov rsi, qword [rsp + 0x30]
cmp qword [rsi], rbx
je 0x1400062eb
mov qword [rsp + 0x78], r14
mov r14, qword [rsp + 0x90]
test rbx, rbx
je 0x140006188
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ebx, ebx
mov rax, qword [rsi]
xor r8d, r8d
movzx ecx, word [rax]
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400062a5
mov rax, qword [rsi]
movzx ecx, word [rax]
cmp cx, 2
je 0x14000620b
cmp cx, 0x17
je 0x1400061cf
mov rcx, rdi
mov dword [r14], 0
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1400062a5
mov ecx, 0x1c
call qword [sym.imp.php8.dll___zend_malloc]
movzx ecx, word [r15]
mov rbx, rax
mov rax, qword [rsi]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rbx + 0x10], xmm1
mov eax, dword [rax + 0x18]
mov dword [rbx + 0x18], eax
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbx + 2], ax
mov eax, 0x1c
jmp 0x140006235
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.php8.dll___zend_malloc]
movzx ecx, word [r15]
mov rbx, rax
mov rax, qword [rsi]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbx + 2], ax
mov eax, reloc.WS2_32.dll_recv
mov dword [r14], eax
lea r9, [rsp + 0x80]
mov edx, 0xffff
mov dword [rsp + 0x80], 1
mov r8d, 4
mov dword [rsp + 0x20], 4
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8d, dword [r14]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140006342
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp eax, 0x2726
je 0x1400062d3
cmp eax, 0x2740
je 0x1400062d3
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdi, 0xffffffffffffffff
add rsi, 8
cmp qword [rsi], 0
jne 0x140006178
cmp rdi, 0xffffffffffffffff
je 0x1400062d3
mov edx, 0x7fffffff
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x1400062d3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
mov r14, qword [rsp + 0x78]
test rbx, rbx
je 0x1400062e6
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x1400062f9
mov rcx, rsi
call qword [sym.imp.php8.dll_php_network_freeaddresses]
mov rsi, qword [rsp + 0x70]
test ebp, ebp
je 0x140006393
cmp rdi, 0xffffffffffffffff
je 0x140006315
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test r12, r12
je 0x140006326
mov ecx, ebp
call qword [sym.imp.php8.dll_php_socket_error_str]
mov qword [r12], rax
mov rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret
movzx eax, word [rbx]
xor ebp, ebp
mov dword [r13], eax
cmp dword [r15], ebp
jne 0x1400062b9
mov r8, r14
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400062cb
movzx eax, word [rbx]
cmp ax, 2
je 0x14000637e
cmp ax, 0x17
jne 0x1400062b9
movzx ecx, word [rbx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [r15], eax
jmp 0x1400062b9
mov rax, rdi
jmp 0x14000632d