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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x140212c80]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov r14, qword [rbp + 0x230]
xor r13d, r13d
mov rax, qword [rbp + 0x238]
mov rcx, qword [rbp + 0x240]
mov r12d, dword [rbp + 0x248]
mov rsi, qword [r14 + 0x730]
movzx edi, word [r14 + 0x230]
movzx r15d, word [r14 + 0x232]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x30], r13
test rsi, rsi
jne 0x1400f7bc5
test di, di
jne 0x1400f7bc5
xor eax, eax
jmp 0x1400f8047
mov qword [rsp + 0x2e8], rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
test rsi, rsi
je 0x1400f7eb9
mov rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp byte [rsi + rax], r13b
jne 0x1400f7c06
cmp rax, 0xff
jae 0x1400f7eb9
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x100
call fcn.140176680
mov rcx, qword [0x140212320]
mov r8, rbx
inc r8
cmp byte [rcx + r8], r13b
jne 0x1400f7c36
mov rdx, rsi
call fcn.140155f10
test eax, eax
jne 0x1400f7c62
mov rax, qword [0x140212320]
inc rbx
cmp byte [rax + rbx], r13b
jne 0x1400f7c52
add rsi, rbx
mov bl, 1
jmp 0x1400f7cc0
mov rcx, qword [str.host_]
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rcx + r8], r13b
jne 0x1400f7c70
mov rdx, rsi
call fcn.140155f10
test eax, eax
jne 0x1400f7cbe
mov rax, qword [str.host_]
nop dword [rax]
inc rbx
cmp byte [rax + rbx], r13b
jne 0x1400f7c90
add rsi, rbx
mov rax, qword [rsp + 0x38]
movzx ebx, byte [rax + 0x61c]
cmp r12d, 2
jne 0x1400f7dde
mov byte [rax + 0x61c], 1
jmp 0x1400f7deb
xor bl, bl
mov edx, dword [rbp + 0x250]
lea rax, [rbp - 0x30]
mov dword [rsp + 0x28], 0x100
mov r9, rsi
mov qword [rsp + 0x20], rax
mov ecx, r12d
mov rax, qword [rsp + 0x38]
mov r8d, dword [rax + 0x610]
call fcn.14010b1a0
test eax, eax
je 0x1400f7dba
sub eax, 1
je 0x1400f7e90
cmp eax, 1
je 0x1400f7d2b
test bl, bl
je 0x1400f7c9c
mov r8, rsi
mov byte [r14 + 0x12ef], r13b
lea rdx, str.Couldnt_bind_to__s
mov rcx, r14
call fcn.1400d4150
mov eax, 0x2d
jmp 0x1400f803f
lea r9, [rbp - 0x30]
mov dword [rsp + 0x20], r12d
mov r8, rsi
lea rdx, str.Local_Interface__s_is_ip__s_using_address_family__i
mov rcx, r14
call fcn.1400d4240
cmp r12d, 0x17
jne 0x1400f7e9a
lea edx, [r12 + 0xe]
lea rcx, [rbp - 0x30]
call fcn.140135f08
mov rbx, rax
test rax, rax
je 0x1400f7d6c
mov byte [rax], r13b
inc rbx
mov esi, reloc.WS2_32.dll_socket
lea r8, [rsp + 0x58]
mov ecx, esi
lea rdx, [rbp - 0x30]
call fcn.1400ed820
test eax, eax
jle 0x1400f7daf
movzx ecx, di
mov word [rsp + 0x50], si
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
test rbx, rbx
je 0x1400f7daf
xor edx, edx
lea r8d, [rsi - 0xd]
mov rcx, rbx
call fcn.140144e98
mov dword [rsp + 0x68], eax
mov r13d, 0x1c
jmp 0x1400f7ef9
test bl, bl
je 0x1400f7c9c
mov r8, rsi
lea rdx, str.Couldnt_bind_to_interface__s
mov rcx, r14
call fcn.1400d4150
mov eax, 0x2d
jmp 0x1400f803f
cmp r12d, 0x17
jne 0x1400f7deb
mov byte [rax + 0x61c], 2
xor r9d, r9d
lea rax, [rsp + 0x30]
mov rdx, rsi
mov qword [rsp + 0x20], rax
mov rcx, r14
lea r8d, [r9 + 0x50]
call fcn.1400dbc30
cmp eax, 1
jne 0x1400f7e19
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.1400c61e0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov byte [rax + 0x61c], bl
test rcx, rcx
je 0x1400f7d08
mov rcx, qword [rcx]
lea rdx, [rbp - 0x30]
mov r8d, 0x100
call fcn.1400dbbd0
mov rax, qword [rsp + 0x30]
lea rdx, str.Name__s_family__i_resolved_to__s_family__i
mov r9d, r12d
mov r8, rsi
mov rcx, qword [rax]
mov eax, dword [rcx + 4]
mov rcx, r14
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call fcn.1400d4240
mov rdx, qword [rsp + 0x30]
mov rcx, r14
call fcn.1400dc0a0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
cmp r12d, dword [rcx + 4]
je 0x1400f7d46
mov eax, 1
jmp 0x1400f803f
cmp r12d, 2
jne 0x1400f7ef9
mov ebx, r12d
lea r8, [rsp + 0x54]
mov ecx, ebx
lea rdx, [rbp - 0x30]
call fcn.1400ed820
test eax, eax
jle 0x1400f7ef9
jmp 0x1400f7ee0
cmp r12d, 0x17
jne 0x1400f7ed7
mov esi, r12d
movzx ecx, di
mov word [rsp + 0x50], si
call qword [sym.imp.WS2_32.dll_htons]
lea r13d, [r12 + 5]
jmp 0x1400f7ef4
cmp r12d, 2
jne 0x1400f7ef9
mov ebx, r12d
movzx ecx, di
mov word [rsp + 0x50], bx
call qword [sym.imp.WS2_32.dll_htons]
mov r13d, reloc.WS2_32.dll_recv
mov word [rsp + 0x52], ax
mov rbx, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov r8d, r13d
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x1400f7f62
dec r15d
test r15d, r15d
jle 0x1400f7fe2
add di, 1
je 0x1400f7fe2
movzx r8d, di
lea rdx, str.Bind_to_local_port__d_failed__trying_next
dec r8d
mov rcx, r14
call fcn.1400d4240
movzx ecx, di
call qword [sym.imp.WS2_32.dll_ntohs]
mov r8d, r13d
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov word [rsp + 0x52], ax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x1400f7f13
xorps xmm0, xmm0
mov dword [rsp + 0x40], 0x80
lea r8, [rsp + 0x40]
mov rcx, rbx
lea rdx, [rbp - 0x30]
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x1400f801e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp + 0xd0]
mov ecx, eax
mov dword [r14 + 0xd14], eax
mov ebx, eax
call fcn.1400baaf0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, r14
call fcn.1400d4150
mov eax, 0x2d
jmp 0x1400f803f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp - 0x30]
mov ecx, eax
mov dword [r14 + 0xd14], eax
mov ebx, eax
call fcn.1400baaf0
mov r9, rax
lea rdx, str.bind_failed_with_errno__d:__s
mov r8d, ebx
mov rcx, r14
call fcn.1400d4150
mov eax, 0x2d
jmp 0x1400f803f
movzx r8d, di
lea rdx, str.Local_port:__hu
mov rcx, r14
call fcn.1400d4240
mov rax, qword [rsp + 0x38]
mov byte [rax + 0x2da], 1
xor eax, eax
mov rbx, qword [rsp + 0x2e8]
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140133600
add rsp, 0x2f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret