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

Disassembly:
mov r11, rsp
sub rsp, 0x228
mov rax, qword [0x100b4478]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov qword [r11 - 8], rbx
mov qword [r11 - 0x10], rbp
mov qword [r11 - 0x18], rsi
mov rsi, qword [rcx]
mov qword [r11 - 0x28], r12
mov qword [r11 - 0x30], r13
xor r13d, r13d
mov qword [r11 - 0x38], r14
mov qword [r11 - 0x40], r15
mov qword [rsp + 0x38], r13
mov r12, qword [rsi + 0x868]
movzx ebx, word [rsi + 0x288]
test r12, r12
mov ebp, dword [rsi + 0x28c]
mov dword [rsp + 0x30], r9d
mov r15d, r8d
mov qword [rsp + 0x48], rdx
mov r14, rcx
jne 0x10051bd8
test bx, bx
jne 0x10051bd8
xor eax, eax
jmp 0x10051fc6
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x80
mov qword [rsp + 0x208], rdi
call fcn.10025bb0
test r12, r12
je 0x10051e78
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, r12
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
cmp rcx, 0xff
jae 0x10051e78
lea rcx, [rsp + 0xd1]
xor edx, edx
mov r8d, 0xff
mov byte [rsp + 0xd0], al
call fcn.10025bb0
mov r9, qword [0x100b5bb0]
mov rdi, r9
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov rdx, r12
not rcx
lea r8, [rcx - 1]
mov rcx, r9
call fcn.10032590
test eax, eax
jne 0x10051c88
mov rdi, qword [0x100b5bb0]
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea edi, [rax + 1]
not rcx
sub rcx, 1
add r12, rcx
jmp 0x10051dc0
mov r9, qword [str.host_]
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, r9
mov rdx, r12
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r9
call fcn.10032590
test eax, eax
jne 0x10051dbd
mov rdi, qword [str.host_]
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
add r12, rcx
cmp r15d, 2
mov edi, dword [r14 + 0x450]
jne 0x10051ceb
mov dword [r14 + 0x450], 1
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, r12
mov rcx, r14
call fcn.1004ce40
cmp eax, 1
jne 0x10051d10
lea rdx, [rsp + 0x38]
mov rcx, r14
call fcn.10046000
mov rcx, qword [rsp + 0x38]
mov dword [r14 + 0x450], edi
test rcx, rcx
je 0x10051e27
mov rcx, qword [rcx]
lea rdx, [rsp + 0xd0]
mov r8d, 0x100
call fcn.1004c880
mov rdx, qword [rsp + 0x38]
mov r9d, r15d
mov rax, qword [rdx]
lea rdx, str.Name__s_family__i_resolved_to__s_family__i_n
mov r8, r12
mov ecx, dword [rax + 4]
lea rax, [rsp + 0xd0]
mov dword [rsp + 0x28], ecx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.1004b790
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.1004d610
cmp r15d, 2
jne 0x10051e98
lea r8, [rsp + 0x54]
lea rdx, [rsp + 0xd0]
mov ecx, r15d
call fcn.10074d60
test eax, eax
jle 0x10051e98
movzx ecx, bx
mov word [rsp + 0x50], r15w
call qword [sym.imp.WS2_32.dll_htons]
lea r13d, [r15 + 0xe]
mov word [rsp + 0x52], ax
jmp 0x10051e98
mov edi, r13d
mov r8d, dword [r14 + 0xb8]
mov edx, dword [rsp + 0x30]
lea rax, [rsp + 0xd0]
mov r9, r12
mov ecx, r15d
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], rax
call fcn.1000d3c0
test eax, eax
mov edx, eax
je 0x10051e54
sub edx, 1
je 0x10051e4a
cmp edx, 1
jne 0x10051e1f
lea r9, [rsp + 0xd0]
lea rdx, str.Local_Interface__s_is_ip__s_using_address_family__i_n
mov r8, r12
mov rcx, rsi
mov dword [rsp + 0x20], r15d
call fcn.1004b790
jmp 0x10051d79
test edi, edi
je 0x10051cd3
lea rdx, str.Couldnt_bind_to__s
mov r8, r12
mov rcx, rsi
mov dword [rsi + 0xd70], r13d
call fcn.1004b840
mov eax, Ordinal_46
jmp 0x10051fbe
mov eax, 1
jmp 0x10051fbe
test edi, edi
je 0x10051cd3
lea rdx, str.Couldnt_bind_to_interface__s
mov r8, r12
mov rcx, rsi
call fcn.1004b840
mov eax, Ordinal_46
jmp 0x10051fbe
cmp r15d, 2
jne 0x10051e98
movzx ecx, bx
mov word [rsp + 0x50], r15w
call qword [sym.imp.WS2_32.dll_htons]
mov r13d, reloc.WS2_32.dll_recv
mov word [rsp + 0x52], ax
mov rdi, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov r8d, r13d
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x10051eff
sub ebp, 1
test ebp, ebp
jle 0x10051f6a
lea rdx, str.Bind_to_local_port__hu_failed__trying_next_n
movzx r8d, bx
mov rcx, rsi
call fcn.1004b790
add bx, 1
cmp word [rsp + 0x50], 2
jne 0x10051eea
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rsp + 0x52], ax
lea rdx, [rsp + 0x50]
mov r8d, r13d
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x10051eb2
lea rcx, [rsp + 0xd0]
xor edx, edx
mov r8d, 0x80
mov dword [rsp + 0x30], 0x80
call fcn.10025bb0
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xd0]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x10051f9e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, r14
mov edx, eax
mov edi, eax
mov dword [rsi + 0xd74], eax
call fcn.10076e10
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, edi
mov r9, rax
mov rcx, rsi
call fcn.1004b840
mov eax, Ordinal_46
jmp 0x10051fbe
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, r14
mov edx, eax
mov edi, eax
mov dword [rsi + 0xd74], eax
call fcn.10076e10
lea rdx, str.bind_failed_with_errno__d:__s
mov r8d, edi
mov r9, rax
mov rcx, rsi
call fcn.1004b840
mov eax, Ordinal_46
jmp 0x10051fbe
lea rdx, str.Local_port:__hu_n
movzx r8d, bx
mov rcx, rsi
call fcn.1004b790
mov dword [r14 + 0x3fc], 1
xor eax, eax
mov rdi, qword [rsp + 0x208]
mov r15, qword [rsp + 0x1e8]
mov r14, qword [rsp + 0x1f0]
mov r13, qword [rsp + 0x1f8]
mov r12, qword [rsp + 0x200]
mov rsi, qword [rsp + 0x210]
mov rbp, qword [rsp + 0x218]
mov rbx, qword [rsp + 0x220]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.10021bf0
add rsp, 0x228
ret