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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x1400970d8]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rax, qword [rcx + 0x18]
xor r14d, r14d
mov rbx, qword [rcx + 0x688]
mov r13d, r8d
movzx r12d, word [rcx + 0x228]
mov rdi, rcx
mov qword [rsp + 0x40], rax
mov r15d, r14d
mov eax, dword [rcx + 0x22c]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x48], rdx
mov dword [rsp + 0x34], r14d
mov qword [rsp + 0x38], r14
test rbx, rbx
jne 0x140020278
test r12w, r12w
je 0x140020585
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x80
call fcn.14003a7e0
test rbx, rbx
je 0x140020472
or rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp byte [rbx + rax], r14b
jne 0x14002029a
cmp rax, 0xff
jae 0x140020472
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x100
call fcn.14003a7e0
mov rcx, qword [0x140097040]
mov r8, rsi
inc r8
cmp byte [rcx + r8], r14b
jne 0x1400202ca
mov rdx, rbx
call fcn.140041f30
mov r14d, 2
test eax, eax
jne 0x1400203cb
mov rax, qword [0x140097040]
inc rsi
cmp byte [rax + rsi], r15b
jne 0x1400202f0
add rbx, rsi
mov r15b, 1
mov r9d, 0x100
lea r8, [rbp - 0x30]
mov rdx, rbx
mov ecx, r13d
call fcn.140012e50
mov ecx, eax
test eax, eax
je 0x140020406
sub ecx, 1
je 0x1400203c1
cmp ecx, 1
je 0x14002042b
test r15b, r15b
jne 0x140020462
mov r15, qword [rsp + 0x40]
mov sil, byte [r15 + 0x5fe]
cmp r13d, r14d
jne 0x140020352
mov byte [r15 + 0x5fe], 1
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rdi
call fcn.1400242d8
cmp eax, 1
jne 0x14002037f
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.1400188f8
mov byte [r15 + 0x5fe], sil
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140020462
mov rcx, qword [rcx]
lea rdx, [rbp - 0x30]
mov r8d, 0x100
call fcn.1400242ac
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call fcn.140024540
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx]
cmp r13d, dword [rdx + 4]
je 0x14002042b
mov eax, 1
jmp 0x140020587
mov rcx, qword [str.host_]
mov r8, rsi
inc r8
cmp byte [rcx + r8], r15b
jne 0x1400203d5
mov rdx, rbx
call fcn.140041f30
test eax, eax
jne 0x1400202ff
mov rax, qword [str.host_]
inc rsi
cmp byte [rax + rsi], r15b
jne 0x1400203f5
add rbx, rsi
jmp 0x140020339
test r15b, r15b
je 0x140020339
lea rdx, str.Couldnt_bind_to_interface__s
mov r8, rbx
mov rcx, rdi
call fcn.14001ea9c
mov eax, 0x2d
jmp 0x140020587
cmp r13d, r14d
jne 0x14002047f
lea r8, [rsp + 0x54]
mov ecx, r14d
lea rdx, [rbp - 0x30]
call fcn.140031c94
test eax, eax
jle 0x14002047f
movzx ecx, r12w
mov word [rsp + 0x50], r14w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
mov r15d, reloc.WS2_32.dll_recv
jmp 0x140020484
mov byte [rdi + 0x1173], 0
lea rdx, str.Couldnt_bind_to__s
jmp 0x140020416
mov r14d, 2
cmp r13d, r14d
jne 0x140020484
jmp 0x140020445
mov r15d, dword [rsp + 0x34]
mov rbx, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov r8d, r15d
call qword [sym.imp.WS2_32.dll_bind]
mov esi, 1
jmp 0x1400204e5
mov eax, dword [rsp + 0x30]
sub eax, esi
mov dword [rsp + 0x30], eax
test eax, eax
jle 0x140020551
add r12w, si
je 0x140020551
cmp word [rsp + 0x50], r14w
jne 0x1400204d4
movzx ecx, r12w
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rsp + 0x52], ax
mov r8d, r15d
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x1400204a1
mov r8d, 0x80
lea rcx, [rbp - 0x30]
xor edx, edx
mov dword [rsp + 0x30], r8d
call fcn.14003a7e0
lea r8, [rsp + 0x30]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x140020579
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp + 0xd0]
mov ecx, eax
mov dword [rdi + 0xc14], eax
mov ebx, eax
call fcn.140030b58
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rdi
call fcn.14001ea9c
jmp 0x140020421
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp - 0x30]
mov ecx, eax
mov dword [rdi + 0xc14], eax
mov ebx, eax
call fcn.140030b58
lea rdx, str.bind_failed_with_errno__d:__s
jmp 0x14002053e
mov rax, qword [rsp + 0x40]
mov byte [rax + 0x29e], sil
xor eax, eax
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140039270
mov rbx, qword [rsp + 0x338]
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret