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

Disassembly:
mov r11, rsp
sub rsp, 0x218
mov rax, qword [0x0072f1d0]
mov qword [rsp + 0x1d0], rax
mov qword [r11 + 0x20], rbx
mov qword [r11 - 8], rbp
mov qword [r11 - 0x10], rsi
mov rsi, qword [rcx]
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
mov qword [r11 - 0x30], r14
xor r14d, r14d
mov qword [r11 - 0x38], r15
mov qword [rsp + 0x38], r14
mov r12, qword [rsi + 0x518]
movzx ebx, word [rsi + 0x228]
test r12, r12
mov ebp, dword [rsi + 0x22c]
mov r15d, r8d
mov qword [rsp + 0x40], rdx
mov r13, rcx
jne 0x53e830
test bx, bx
jne 0x53e830
xor eax, eax
jmp 0x53ebdf
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x80
mov qword [rsp + 0x200], rdi
call sub.msvcrt.dll_memset
test r12, r12
je 0x53ea9e
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, r12
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 0xff
jae 0x53ea9e
lea rcx, [rsp + 0xd1]
xor edx, edx
mov r8d, 0xff
mov byte [rsp + 0xd0], al
call sub.msvcrt.dll_memset
mov r9, qword [0x0072f208]
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 qword [sym.imp.msvcrt.dll_strncmp]
test eax, eax
jne 0x53e8da
mov rdi, qword [0x0072f208]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea edi, [rax + 1]
not rcx
dec rcx
add r12, rcx
jmp 0x53e927
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 qword [sym.imp.msvcrt.dll_strncmp]
test eax, eax
jne 0x53e924
mov rdi, qword [str.host_]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
dec rcx
add r12, rcx
jmp 0x53e9a8
mov edi, r14d
mov edx, dword [r13 + 0xa0]
lea r9, [rsp + 0xd0]
mov r8, r12
mov ecx, r15d
mov dword [rsp + 0x20], 0x100
call fcn.0056bb40
test eax, eax
mov edx, eax
je 0x53e985
dec edx
je 0x53e97b
dec edx
jne 0x53e9a0
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.0052ede0
jmp 0x53ea4e
mov eax, 1
jmp 0x53ebd7
test edi, edi
je 0x53e9a8
lea rdx, str.Couldnt_bind_to_interface__s
mov r8, r12
mov rcx, rsi
call fcn.0052eee0
jmp 0x53ebd2
test edi, edi
jne 0x53ea87
cmp r15d, 2
mov edi, dword [r13 + 0x330]
jne 0x53e9c0
mov dword [r13 + 0x330], 1
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, r12
mov rcx, r13
call fcn.00530ef0
cmp eax, 1
jne 0x53e9e5
lea rdx, [rsp + 0x38]
mov rcx, r13
call fcn.00530480
mov rcx, qword [rsp + 0x38]
mov dword [r13 + 0x330], edi
test rcx, rcx
je 0x53ea87
mov rcx, qword [rcx]
lea rdx, [rsp + 0xd0]
mov r8d, 0x100
call fcn.00530a90
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.0052ede0
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.005311f0
cmp r15d, 2
jne 0x53eabe
lea r8, [rsp + 0x54]
lea rdx, [rsp + 0xd0]
mov ecx, r15d
call fcn.00547580
test eax, eax
jle 0x53eabe
movzx ecx, bx
mov word [rsp + 0x50], r15w
call qword [sym.imp.WS2_32.dll_htons]
lea r14d, [r15 + 0xe]
mov word [rsp + 0x52], ax
jmp 0x53eabe
lea rdx, str.Couldnt_bind_to__s
mov r8, r12
mov rcx, rsi
call fcn.0052eee0
jmp 0x53ebd2
cmp r15d, 2
jne 0x53eabe
movzx ecx, bx
mov word [rsp + 0x50], r15w
call qword [sym.imp.WS2_32.dll_htons]
mov r14d, reloc.WS2_32.dll_recv
mov word [rsp + 0x52], ax
mov rdi, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, r14d
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x53eb2b
nop
nop
dec ebp
test ebp, ebp
jle 0x53eba5
lea rdx, str.Bind_to_local_port__hu_failed__trying_next_n
movzx r8d, bx
mov rcx, rsi
call fcn.0052ede0
inc bx
cmp word [rsp + 0x50], 2
jne 0x53eb16
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rsp + 0x52], ax
lea rdx, [rsp + 0x50]
mov r8d, r14d
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x53eae0
lea rcx, [rsp + 0xd0]
xor edx, edx
mov r8d, 0x80
mov dword [rsp + 0x30], 0x80
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xd0]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x53eb83
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, r13
mov edx, eax
mov edi, eax
mov dword [rsi + 0x887c], eax
call fcn.0052bc00
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x53ebc4
lea rdx, str.Local_port:__hu_n
movzx r8d, bx
mov rcx, rsi
call fcn.0052ede0
mov dword [r13 + 0x304], 1
xor eax, eax
jmp 0x53ebd7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, r13
mov edx, eax
mov edi, eax
mov dword [rsi + 0x887c], eax
call fcn.0052bc00
lea rdx, str.bind_failed_with_errno__d:__s
mov r9, rax
mov r8d, edi
mov rcx, rsi
call fcn.0052eee0
mov eax, Ordinal_46
mov rdi, qword [rsp + 0x200]
mov r15, qword [rsp + 0x1e0]
mov r14, qword [rsp + 0x1e8]
mov r13, qword [rsp + 0x1f0]
mov r12, qword [rsp + 0x1f8]
mov rsi, qword [rsp + 0x208]
mov rbp, qword [rsp + 0x210]
mov rbx, qword [rsp + 0x238]
mov rcx, qword [rsp + 0x1d0]
call fcn.00693b90
add rsp, 0x218
ret