Function at 0x1400df5b8
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, 0x3a0
mov rax, qword [0x1401af0e8]
xor rax, rsp
mov qword [rsp + 0x390], rax
mov rax, qword [rsp + 0x3b0]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x60], 0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x6f0]
mov word [rsp + 0x34], ax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x6f4]
mov dword [rsp + 0x64], eax
mov eax, 8
imul rax, rax, 8
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx + rax + 0xbc8]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1400df677
movzx eax, word [rsp + 0x34]
test eax, eax
jne 0x1400df677
xor eax, eax
jmp 0x1400dfbb9
mov r8d, 0x80
xor edx, edx
lea rcx, [rsp + 0x90]
call fcn.14006df60
cmp qword [rsp + 0x50], 0
je 0x1400df9dc
mov rcx, qword [rsp + 0x50]
call fcn.14008d570
cmp rax, 0xff
jae 0x1400df9dc
mov al, byte [0x1401bfe8b]
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 + 0x58], 0
mov byte [rsp + 0x30], 0
mov byte [rsp + 0x38], 0
mov rcx, qword [0x1401b0de8]
call fcn.14008d570
mov r8, rax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [0x1401b0de8]
call fcn.140090560
test eax, eax
jne 0x1400df728
mov rcx, qword [0x1401b0de8]
call fcn.14008d570
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x30], 1
jmp 0x1400df76d
mov rcx, qword [str.host_]
call fcn.14008d570
mov r8, rax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [str.host_]
call fcn.140090560
test eax, eax
jne 0x1400df76d
mov rcx, qword [str.host_]
call fcn.14008d570
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x38], 1
movzx eax, byte [rsp + 0x38]
test eax, eax
jne 0x1400df83c
mov dword [rsp + 0x28], 0x100
lea rax, [rsp + 0x190]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov rax, qword [rsp + 0x3b0]
mov r8d, dword [rax + 0xb8]
mov edx, dword [rsp + 0x3c8]
mov ecx, dword [rsp + 0x3c0]
call fcn.14010cd24
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0
je 0x1400df7d1
cmp dword [rsp + 0x5c], 1
je 0x1400df7fc
cmp dword [rsp + 0x5c], 2
je 0x1400df806
jmp 0x1400df83c
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x1400df7fa
mov r8, qword [rsp + 0x50]
lea rdx, str.Couldnt_bind_to_interface__s
mov rcx, qword [rsp + 0x40]
call fcn.1400ddbc8
mov eax, reloc.WLDAP32.dll_Ordinal_45
jmp 0x1400dfbb9
jmp 0x1400df83c
mov eax, 1
jmp 0x1400dfbb9
mov byte [rsp + 0x30], 1
mov eax, dword [rsp + 0x3c0]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x190]
mov r8, qword [rsp + 0x50]
lea rdx, str.Local_Interface__s_is_ip__s_using_address_family__i_n
mov rcx, qword [rsp + 0x40]
call fcn.1400dd610
mov dword [rsp + 0x58], 1
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x1400df93e
mov rax, qword [rsp + 0x3b0]
mov eax, dword [rax + 0x3f8]
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x3c0], 2
jne 0x1400df877
mov rax, qword [rsp + 0x3b0]
mov dword [rax + 0x3f8], 1
lea r9, [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x3b0]
call fcn.1400e2878
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 1
jne 0x1400df8ae
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x3b0]
call fcn.1400f3fd8
mov rax, qword [rsp + 0x3b0]
mov ecx, dword [rsp + 0x7c]
mov dword [rax + 0x3f8], ecx
cmp qword [rsp + 0x68], 0
je 0x1400df936
mov r8d, 0x100
lea rdx, [rsp + 0x190]
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.1400e2808
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 + 0x3c0]
mov r8, qword [rsp + 0x50]
lea rdx, str.Name__s_family__i_resolved_to__s_family__i_n
mov rcx, qword [rsp + 0x40]
call fcn.1400dd610
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
call fcn.1400e2c4c
mov dword [rsp + 0x58], 1
jmp 0x1400df93e
mov dword [rsp + 0x58], 0xffffffff
cmp dword [rsp + 0x58], 0
jle 0x1400df99a
cmp dword [rsp + 0x3c0], 2
jne 0x1400df99a
mov rax, qword [rsp + 0x70]
add rax, 4
mov r8, rax
lea rdx, [rsp + 0x190]
mov ecx, 2
call fcn.14010ccd8
test eax, eax
jle 0x1400df99a
mov eax, 2
mov rcx, qword [rsp + 0x70]
mov word [rcx], ax
movzx ecx, word [rsp + 0x34]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0x70]
mov word [rcx + 2], ax
mov dword [rsp + 0x60], reloc.WS2_32.dll_recv
cmp dword [rsp + 0x58], 1
jge 0x1400df9da
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x146c]
and eax, 0xfffffff7
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x146c], eax
mov r8, qword [rsp + 0x50]
lea rdx, str.Couldnt_bind_to__s
mov rcx, qword [rsp + 0x40]
call fcn.1400ddbc8
mov eax, reloc.WLDAP32.dll_Ordinal_45
jmp 0x1400dfbb9
jmp 0x1400dfa0f
cmp dword [rsp + 0x3c0], 2
jne 0x1400dfa0f
mov eax, 2
mov rcx, qword [rsp + 0x70]
mov word [rcx], ax
movzx ecx, word [rsp + 0x34]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0x70]
mov word [rcx + 2], ax
mov dword [rsp + 0x60], reloc.WS2_32.dll_recv
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x3b8]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jl 0x1400dfb07
mov dword [rsp + 0x80], 0x80
mov r8d, 0x80
xor edx, edx
lea rcx, [rsp + 0x110]
call fcn.14006df60
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x110]
mov rcx, qword [rsp + 0x3b8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x1400dfac7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x48]
mov dword [rax + 0x10e8], ecx
mov r8d, 0x80
lea rdx, [rsp + 0x290]
mov ecx, dword [rsp + 0x48]
call fcn.14010c9c8
mov r9, rax
mov r8d, dword [rsp + 0x48]
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x40]
call fcn.1400ddbc8
mov eax, reloc.WLDAP32.dll_Ordinal_45
jmp 0x1400dfbb9
movzx eax, word [rsp + 0x34]
mov r8d, eax
lea rdx, str.Local_port:__hu_n
mov rcx, qword [rsp + 0x40]
call fcn.1400dd610
mov rax, qword [rsp + 0x3b0]
mov eax, dword [rax + 0x3c4]
bts eax, 0x18
mov rcx, qword [rsp + 0x3b0]
mov dword [rcx + 0x3c4], eax
xor eax, eax
jmp 0x1400dfbb9
mov eax, dword [rsp + 0x64]
dec eax
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
jle 0x1400dfb64
movzx eax, word [rsp + 0x34]
mov r8d, eax
lea rdx, str.Bind_to_local_port__hu_failed__trying_next_n
mov rcx, qword [rsp + 0x40]
call fcn.1400dd610
movzx eax, word [rsp + 0x34]
inc ax
mov word [rsp + 0x34], ax
mov rax, qword [rsp + 0x88]
movzx eax, word [rax]
cmp eax, 2
jne 0x1400dfb62
movzx ecx, word [rsp + 0x34]
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, qword [rsp + 0x70]
mov word [rcx + 2], ax
jmp 0x1400dfb66
jmp 0x1400dfb6b
jmp 0x1400dfa0f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x48]
mov dword [rax + 0x10e8], ecx
mov r8d, 0x80
lea rdx, [rsp + 0x310]
mov ecx, dword [rsp + 0x48]
call fcn.14010c9c8
mov r9, rax
mov r8d, dword [rsp + 0x48]
lea rdx, str.bind_failed_with_errno__d:__s
mov rcx, qword [rsp + 0x40]
call fcn.1400ddbc8
mov eax, reloc.WLDAP32.dll_Ordinal_45
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.14006ba30
add rsp, 0x3a0
pop rdi
ret