Function at 0x1400d43f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x298
movapd xmmword [rsp + 0x280], xmm7
movapd xmmword [rsp + 0x270], xmm6
mov r13, r8
mov rbp, rdx
mov rdi, rcx
mov rax, qword [0x1401aa130]
cmp rax, 2
jne 0x1400d4d70
movzx eax, byte [0x1401aa139]
test al, al
je 0x1400d4d84
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], rdi
lea rdx, str.127.0.0.1:0testserver:_pre_connect_with_error__n
lea rcx, [rsp + 0x70]
mov r8d, 0xb
call fcn.1400832d0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400d4ebe
mov rdi, qword [rsp + 0x78]
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rbp, qword [rsp + 0x88]
cmp rdi, rbp
je 0x1400d4eb6
xor r15d, r15d
xorpd xmm6, xmm6
jmp 0x1400d44dd
mov rcx, qword [0x14024d108]
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapFree
dec r12
mov rcx, qword [0x14024d108]
xor edx, edx
mov r8, r12
call sub.kernel32.dll_HeapFree
nop dword [rax + rax]
add rdi, 0x20
cmp rdi, rbp
je 0x1400d4eb6
movzx ebx, word [rdi]
cmp bx, 2
je 0x1400d4eb6
mov r12, r15
mov r13d, dword [rdi + 0x14]
mov esi, dword [rdi + 0x18]
movzx r14d, word [rdi + 0x1c]
movzx eax, word [rdi + 0x12]
mov word [rsp + 0x180], ax
movups xmm0, xmmword [rdi + 2]
movaps xmmword [rsp + 0x170], xmm0
mov rax, qword [0x14024d0e0]
cmp rax, 3
jne 0x1400d463a
mov ecx, ebx
call fcn.14008fdb0
mov r15, rdx
test rax, rax
je 0x1400d4540
test r12, r12
jne 0x1400d45ef
jmp 0x1400d44d0
test bx, bx
je 0x1400d455f
rol r14w, 8
movupd xmm7, xmmword [rsp + 0x172]
mov r8d, 0x1c
mov ax, 0x17
jmp 0x1400d4587
movzx r14d, word [rsp + 0x174]
rol r14w, 8
mov r13d, dword [rsp + 0x170]
movsd xmm7, xmm6
mov r8d, 0x10
mov ax, 2
mov esi, dword [rsp + 0x28]
mov word [rsp + 0x70], ax
mov word [rsp + 0x72], r14w
mov dword [rsp + 0x74], r13d
movupd xmmword [rsp + 0x78], xmm7
mov dword [rsp + 0x88], esi
mov rcx, r15
lea rdx, [rsp + 0x70]
call sub.ws2_32.dll_bind
cmp eax, 0xffffffff
je 0x1400d45c8
mov rcx, r15
mov edx, pe_nt_image_headers64
call sub.ws2_32.dll_listen
cmp eax, 0xffffffff
jne 0x1400d4644
mov dword [rsp + 0x28], esi
call sub.ws2_32.dll_WSAGetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov rcx, r15
call sub.ws2_32.dll_closesocket
mov r15, rbx
test r12, r12
je 0x1400d44d0
mov eax, r12d
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1400d44d0
test rax, rax
je 0x1400d44d0
mov rbx, qword [r12 - 1]
mov rsi, qword [r12 + 7]
mov rcx, rbx
call qword [rsi]
cmp qword [rsi + 8], 0
je 0x1400d44b4
cmp qword [rsi + 0x10], 0x11
jb 0x1400d44a3
mov rbx, qword [rbx - 8]
jmp 0x1400d44a3
call fcn.14008fc90
jmp 0x1400d4522
cmp qword [rsp + 0x40], 0
je 0x1400d465f
mov rcx, qword [0x14024d108]
xor edx, edx
mov r8, qword [rsp + 0x38]
call sub.kernel32.dll_HeapFree
test r12, r12
je 0x1400d46c1
mov eax, r12d
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1400d46c1
test rax, rax
je 0x1400d46c1
lea rbx, [r12 - 1]
mov r14, qword [r12 - 1]
mov rsi, qword [r12 + 7]
mov rcx, r14
call qword [rsi]
cmp qword [rsi + 8], 0
je 0x1400d46b0
cmp qword [rsi + 0x10], 0x11
jb 0x1400d469f
mov r14, qword [r14 - 8]
mov rcx, qword [0x14024d108]
xor edx, edx
mov r8, r14
call sub.kernel32.dll_HeapFree
mov rcx, qword [0x14024d108]
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapFree
xorps xmm0, xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x170], pe_nt_image_headers64
lea rdx, [rsp + 0x70]
lea r8, [rsp + 0x170]
mov rcx, r15
call sub.ws2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x1400d4ed5
mov eax, dword [rsp + 0x170]
movzx ecx, word [rsp + 0x70]
cmp ecx, 0x17
je 0x1400d474e
cmp ecx, 2
jne 0x1400d4ebe
cmp eax, 0xf
ja 0x1400d4757
jmp 0x1400d4ebe
cmp eax, 0x1b
jbe 0x1400d4ebe
movzx eax, word [rsp + 0x72]
rol ax, 8
mov word [rsp + 0x26], ax
movzx eax, byte [0x14024d119]
mov edx, 0x18
xor ecx, ecx
call fcn.140082900
test rax, rax
je 0x1400d4ebe
mov rdi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov byte [rax + 0x10], 0
lock inc qword [rax]
jle 0x1400d4ebe
call fcn.14008f5f0
mov r13, rax
movzx eax, byte [0x14024d119]
mov edx, 0x30
xor ecx, ecx
call fcn.140082900
test rax, rax
je 0x1400d4ebe
mov r12, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x18], 0
mov rax, qword [0x14024d100]
nop word cs:[rax + rax]
mov rcx, rax
inc rcx
je 0x1400d4ebe
lock cmpxchg qword [0x14024d100], rcx
jne 0x1400d47f0
mov qword [r12 + 0x10], rcx
mov byte [r12 + 0x28], 0
lock inc qword [r12]
jle 0x1400d4ebe
movzx eax, byte [0x14024d119]
mov edx, 0x30
xor ecx, ecx
call fcn.140082900
test rax, rax
je 0x1400d4ebe
mov rbp, rax
mov qword [rax], 1
mov qword [rax + 8], 1
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rsp + 0x70], rax
lock inc qword [rax]
jle 0x1400d4ebe
movzx eax, byte [0x14024d070]
test al, al
je 0x1400d48c0
mov byte [0x14024d070], 1
xor ecx, ecx
call fcn.140083f70
test rax, rax
je 0x1400d4ebe
mov rbx, qword [rax]
mov qword [rax], 0
test rbx, rbx
je 0x1400d48c0
lock inc qword [rbx]
jle 0x1400d4ebe
mov byte [0x14024d070], 1
xor ecx, ecx
call fcn.140083f70
test rax, rax
je 0x1400d4f0a
mov rcx, qword [rax]
mov qword [rax], rbx
test rcx, rcx
jne 0x1400d48f7
jmp 0x1400d4902
movzx eax, byte [0x14024d070]
test al, al
je 0x1400d4d57
mov byte [0x14024d070], 1
xor ecx, ecx
call fcn.140083f70
test rax, rax
je 0x1400d4ebe
mov rcx, qword [rax]
mov qword [rax], 0
xor ebx, ebx
test rcx, rcx
je 0x1400d4902
lock dec qword [rcx]
jne 0x1400d4902
call fcn.1400c47b0
mov rsi, qword [rsp + 0x70]
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x1400d491b
lock inc qword [rcx + 0x18]
jle 0x1400d4efd
movzx eax, byte [0x14024d119]
mov edx, 0x30
xor ecx, ecx
call fcn.140082900
test rax, rax
je 0x1400d4ebe
mov qword [rax], r12
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], r15
mov qword [rax + 0x20], rdi
lea rcx, [0x1400cd4a0]
mov qword [rax + 0x28], rcx
lea r8, [0x140208438]
mov rcx, r13
mov rdx, rax
call fcn.140083980
test rax, rax
jne 0x1400d4edc
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x80], rdx
mov rcx, rdx
call sub.kernel32.dll_CloseHandle
lock dec qword [r12]
jne 0x1400d499b
mov rcx, qword [rsp + 0x70]
call fcn.1400c40d0
mov qword [rsp + 0x28], rdi
mov rax, qword [rsp + 0x78]
lock dec qword [rax]
jne 0x1400d49b5
lea rcx, [rsp + 0x78]
call fcn.14002acc0
lea rdi, [rsp + 0x26]
lea r13, [0x14001a360]
lea r14, [0x140208478]
lea rsi, [rsp + 0x48]
lea r15, [rsp + 0x170]
lea r12, [rsp + 0x70]
lea rbp, [0x1401b0af0]
jmp 0x1400d4a14
xor ebx, ebx
mov rsi, qword [rsp + 0x70]
mov rcx, qword [rsi + 0x10]
test rcx, rcx
jne 0x1400d4910
jmp 0x1400d491b
call fcn.1400c49f0
movzx eax, byte [0x1401aa139]
test al, al
jne 0x1400d443e
lea rbx, [rsp + 0x70]
mov rcx, rbx
call fcn.1400cfdd0
cmp qword [rsp + 0x40], 0
jne 0x1400d4ec0
mov rcx, qword [0x14024d108]
xor edx, edx
mov r8, qword [rsp + 0x38]
call sub.kernel32.dll_HeapFree
ud2
call sub.ws2_32.dll_WSAGetLastError
ud2
lock dec qword [rsi]
jne 0x1400d4eec
lea rcx, [rsp + 0x70]
call fcn.14002acc0
lock dec qword [r12]
jne 0x1400d4ebe
mov rcx, r12
call fcn.1400c40d0
ud2
add rcx, 0x10
xor edx, edx
call fcn.14008e850
ud2
lock dec qword [rbx]
jne 0x1400d4ebe
mov rcx, rbx
call fcn.14008e440
ud2