Function at 0x1400058e0
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 rsi
push r12
push r13
push r15
sub rsp, 0x40
mov r12, qword [rsp + 0x98]
lea r8, [rsp + 0x30]
mov r13, r9
mov r15, rdx
or rsi, 0xffffffffffffffff
mov r9, r12
xor ebp, ebp
xor ebx, ebx
lea edx, [rsi + 2]
call qword [sym.imp.php7.dll_php_network_getaddresses]
test eax, eax
je 0x140005b29
mov qword [rsp + 0x70], rdi
mov rdi, qword [rsp + 0x30]
cmp qword [rdi], rbx
je 0x140005af2
mov qword [rsp + 0x78], r14
mov r14, qword [rsp + 0x90]
test rbx, rbx
je 0x140005953
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rdi]
xor ebx, ebx
xor r8d, r8d
movzx ecx, word [rax]
lea edx, [rbx + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140005a6a
mov rcx, qword [rdi]
movzx eax, word [rcx]
cmp ax, 2
je 0x1400059d3
cmp ax, 0x17
je 0x140005997
mov rcx, rsi
mov dword [r14], ebx
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140005a6a
mov ecx, 0x1c
call qword [sym.imp.php7.dll___zend_malloc]
movzx ecx, word [r15]
mov rbx, rax
mov rax, qword [rdi]
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 0x1400059fd
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.php7.dll___zend_malloc]
movzx ecx, word [r15]
mov rbx, rax
mov rax, qword [rdi]
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, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8d, dword [r14]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140005a7a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp eax, 0x2726
je 0x140005ada
cmp eax, 0x2740
je 0x140005ada
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
or rsi, 0xffffffffffffffff
add rdi, 8
cmp qword [rdi], 0
jne 0x140005945
jmp 0x140005aba
movzx eax, word [rbx]
xor ebp, ebp
mov dword [r13], eax
cmp dword [r15], ebp
jne 0x140005aba
mov r8, r14
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140005ad2
movzx eax, word [rbx]
cmp ax, 2
je 0x140005aaa
cmp ax, 0x17
jne 0x140005aba
movzx ecx, word [rbx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [r15], eax
cmp rsi, 0xffffffffffffffff
je 0x140005ada
mov edx, 0x7fffffff
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x140005ada
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
mov r14, qword [rsp + 0x78]
test rbx, rbx
je 0x140005aed
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x140005b00
mov rcx, rdi
call qword [sym.imp.php7.dll_php_network_freeaddresses]
mov rdi, qword [rsp + 0x70]
test ebp, ebp
je 0x140005b2f
cmp rsi, 0xffffffffffffffff
je 0x140005b18
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
test r12, r12
je 0x140005b29
mov ecx, ebp
call qword [sym.imp.php7.dll_php_socket_error_str]
mov qword [r12], rax
or rax, 0xffffffffffffffff
jmp 0x140005b32
mov rax, rsi
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r13
pop r12
pop rsi
pop rbp
ret