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

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x140158280]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rax, qword [rsp + 0x2b0]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x58], 0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x278]
mov word [rsp + 0x34], ax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x27c]
mov dword [rsp + 0x5c], eax
mov eax, 8
imul rax, rax, 8
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx + rax + 0x5c8]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1400bda5f
movzx eax, word [rsp + 0x34]
test eax, eax
jne 0x1400bda5f
xor eax, eax
jmp 0x1400bdf66
mov r8d, 0x80
xor edx, edx
lea rcx, [rsp + 0x90]
call fcn.140071640
cmp qword [rsp + 0x40], 0
je 0x1400bddac
mov rcx, qword [rsp + 0x40]
call fcn.1400767a0
cmp rax, 0xff
jae 0x1400bddac
movzx eax, byte [0x140168c8f]
mov byte [rsp + 0x190], al
lea rax, [rsp + 0x191]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
mov dword [rsp + 0x50], 0
mov byte [rsp + 0x30], 0
mov byte [rsp + 0x38], 0
mov rcx, qword [0x14015afd0]
call fcn.1400767a0
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [0x14015afd0]
call fcn.140076710
test eax, eax
jne 0x1400bdb11
mov rcx, qword [0x14015afd0]
call fcn.1400767a0
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x30], 1
jmp 0x1400bdb56
mov rcx, qword [str.host_]
call fcn.1400767a0
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [str.host_]
call fcn.140076710
test eax, eax
jne 0x1400bdb56
mov rcx, qword [str.host_]
call fcn.1400767a0
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x38], 1
movzx eax, byte [rsp + 0x38]
test eax, eax
jne 0x1400bdc25
mov dword [rsp + 0x28], 0x100
lea rax, [rsp + 0x190]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x40]
mov rax, qword [rsp + 0x2b0]
mov r8d, dword [rax + 0xb8]
mov edx, dword [rsp + 0x2c8]
mov ecx, dword [rsp + 0x2c0]
call fcn.1401001c0
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
je 0x1400bdbba
cmp dword [rsp + 0x54], 1
je 0x1400bdbe5
cmp dword [rsp + 0x54], 2
je 0x1400bdbef
jmp 0x1400bdc25
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x1400bdbe3
mov r8, qword [rsp + 0x40]
lea rdx, str.Couldnt_bind_to_interface__s
mov rcx, qword [rsp + 0x48]
call fcn.1400c3080
mov eax, reloc.WLDAP32.dll_Ordinal_45
jmp 0x1400bdf66
jmp 0x1400bdc25
mov eax, 1
jmp 0x1400bdf66
mov byte [rsp + 0x30], 1
mov eax, dword [rsp + 0x2c0]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x190]
mov r8, qword [rsp + 0x40]
lea rdx, str.Local_Interface__s_is_ip__s_using_address_family__i_n
mov rcx, qword [rsp + 0x48]
call fcn.1400c2b50
mov dword [rsp + 0x50], 1
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x1400bdd27
mov rax, qword [rsp + 0x2b0]
mov eax, dword [rax + 0x5a8]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x2c0], 2
jne 0x1400bdc60
mov rax, qword [rsp + 0x2b0]
mov dword [rax + 0x5a8], 1
lea r9, [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x2b0]
call fcn.1400bfc20
mov dword [rsp + 0x74], eax
cmp dword [rsp + 0x74], 1
jne 0x1400bdc97
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x2b0]
call fcn.1400c0c90
mov rax, qword [rsp + 0x2b0]
mov ecx, dword [rsp + 0x70]
mov dword [rax + 0x5a8], ecx
cmp qword [rsp + 0x68], 0
je 0x1400bdd1f
mov r8d, 0x100
lea rdx, [rsp + 0x190]
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.1400bfb70
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov eax, dword [rax + 4]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x190]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x2c0]
mov r8, qword [rsp + 0x40]
lea rdx, str.Name__s_family__i_resolved_to__s_family__i_n
mov rcx, qword [rsp + 0x48]
call fcn.1400c2b50
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
call fcn.1400c0130
mov dword [rsp + 0x50], 1
jmp 0x1400bdd27
mov dword [rsp + 0x50], 0xffffffff
cmp dword [rsp + 0x50], 0
jle 0x1400bdd83
cmp dword [rsp + 0x2c0], 2
jne 0x1400bdd83
mov rax, qword [rsp + 0x60]
add rax, 4
mov r8, rax
lea rdx, [rsp + 0x190]
mov ecx, 2
call fcn.140101c20
test eax, eax
jle 0x1400bdd83
mov eax, 2
mov rcx, qword [rsp + 0x60]
mov word [rcx], ax
movzx ecx, word [rsp + 0x34]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0x60]
mov word [rcx + 2], ax
mov dword [rsp + 0x58], reloc.WS2_32.dll_recv
cmp dword [rsp + 0x50], 1
jge 0x1400bddaa
mov r8, qword [rsp + 0x40]
lea rdx, str.Couldnt_bind_to__s
mov rcx, qword [rsp + 0x48]
call fcn.1400c3080
mov eax, reloc.WLDAP32.dll_Ordinal_45
jmp 0x1400bdf66
jmp 0x1400bdddf
cmp dword [rsp + 0x2c0], 2
jne 0x1400bdddf
mov eax, 2
mov rcx, qword [rsp + 0x60]
mov word [rcx], ax
movzx ecx, word [rsp + 0x34]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0x60]
mov word [rcx + 2], ax
mov dword [rsp + 0x58], reloc.WS2_32.dll_recv
mov r8d, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x2b8]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jl 0x1400bdeba
mov dword [rsp + 0x78], 0x80
mov r8d, 0x80
xor edx, edx
lea rcx, [rsp + 0x110]
call fcn.140071640
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x110]
mov rcx, qword [rsp + 0x2b8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x1400bde8b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x3c]
mov dword [rax + 0x4ac4], ecx
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x2b0]
call fcn.140101900
mov r9, rax
mov r8d, dword [rsp + 0x3c]
lea rdx, [0x14015ad08]
mov rcx, qword [rsp + 0x48]
call fcn.1400c3080
mov eax, reloc.WLDAP32.dll_Ordinal_45
jmp 0x1400bdf66
movzx eax, word [rsp + 0x34]
mov r8d, eax
lea rdx, str.Local_port:__hu_n
mov rcx, qword [rsp + 0x48]
call fcn.1400c2b50
mov rax, qword [rsp + 0x2b0]
mov byte [rax + 0x56b], 1
xor eax, eax
jmp 0x1400bdf66
mov eax, dword [rsp + 0x5c]
dec eax
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0
jle 0x1400bdf17
movzx eax, word [rsp + 0x34]
mov r8d, eax
lea rdx, str.Bind_to_local_port__hu_failed__trying_next_n
mov rcx, qword [rsp + 0x48]
call fcn.1400c2b50
movzx eax, word [rsp + 0x34]
inc ax
mov word [rsp + 0x34], ax
mov rax, qword [rsp + 0x80]
movzx eax, word [rax]
cmp eax, 2
jne 0x1400bdf15
movzx ecx, word [rsp + 0x34]
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, qword [rsp + 0x60]
mov word [rcx + 2], ax
jmp 0x1400bdf19
jmp 0x1400bdf1e
jmp 0x1400bdddf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x3c]
mov dword [rax + 0x4ac4], ecx
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x2b0]
call fcn.140101900
mov r9, rax
mov r8d, dword [rsp + 0x3c]
lea rdx, str.bind_failed_with_errno__d:__s
mov rcx, qword [rsp + 0x48]
call fcn.1400c3080
mov eax, reloc.WLDAP32.dll_Ordinal_45
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14006ed70
add rsp, 0x2a0
pop rdi
ret