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

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x14008e168]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rsi, qword [rcx]
xor r14d, r14d
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x40], r14
mov r12, qword [rsi + 0xc58]
movzx ebx, word [rsi + 0x6f8]
mov r13d, dword [rsi + 0x6fc]
mov r15d, r8d
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x38], rcx
test r12, r12
jne 0x14002e77f
test bx, bx
jne 0x14002e77f
xor eax, eax
jmp 0x14002ec14
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x80
mov qword [rsp + 0x2e8], rdi
call fcn.14004f6e0
test r12, r12
je 0x14002ea9b
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r12
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 0xff
jae 0x14002ea9b
lea rcx, [rbp - 0x2f]
xor edx, edx
mov r8d, 0xff
mov byte [rbp - 0x30], al
call fcn.14004f6e0
mov r9, qword [0x14008df68]
or rcx, 0xffffffffffffffff
mov rdi, r9
xor eax, eax
repne scasb al, byte [rdi]
mov rdx, r12
mov dword [rsp + 0x34], r14d
not rcx
lea r8, [rcx - 1]
mov rcx, r9
call fcn.140051fc0
or rcx, 0xffffffffffffffff
test eax, eax
jne 0x14002e8f6
mov rdi, qword [0x14008df68]
xor eax, eax
mov dword [rsp + 0x34], 1
repne scasb al, byte [rdi]
not rcx
dec rcx
add r12, rcx
mov rdi, qword [rsp + 0x38]
mov edx, dword [rsp + 0x30]
lea rax, [rbp - 0x30]
mov r8d, dword [rdi + 0x328]
mov r9, r12
mov ecx, r15d
mov dword [rsp + 0x28], pe_nt_image_headers64
mov qword [rsp + 0x20], rax
call fcn.14001fac0
mov edx, eax
test eax, eax
je 0x14002e981
dec edx
je 0x14002ea59
dec edx
jne 0x14002e957
lea r9, [rbp - 0x30]
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.140028130
cmp r15d, 0x17
jne 0x14002ea63
lea edx, [r15 + 0xe]
lea rcx, [rbp - 0x30]
call fcn.140052290
mov rdi, rax
test rax, rax
je 0x14002e8ab
mov byte [rax], r14b
inc rdi
mov r12d, reloc.WS2_32.dll_socket
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x30]
mov ecx, r12d
call fcn.140046e90
test eax, eax
jle 0x14002e8eb
movzx ecx, bx
mov word [rsp + 0x50], r12w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
test rdi, rdi
je 0x14002e8eb
mov rcx, rdi
call fcn.14005301c
mov dword [rsp + 0x68], eax
mov r14d, 0x1c
jmp 0x14002eadb
mov r9, qword [str.host_]
xor eax, eax
mov rdx, r12
mov rdi, r9
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r9
call fcn.140051fc0
test eax, eax
jne 0x14002e825
mov rdi, qword [str.host_]
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
mov rdi, qword [rsp + 0x38]
not rcx
dec rcx
add r12, rcx
mov eax, dword [rdi + 0x708]
mov dword [rsp + 0x30], eax
cmp r15d, 2
jne 0x14002e9a4
mov dword [rdi + 0x708], 1
jmp 0x14002e9b6
cmp dword [rsp + 0x34], r14d
je 0x14002e93b
lea rdx, str.Couldnt_bind_to__s
mov r8, r12
mov rcx, rsi
mov dword [rsi + 0x16a0], r14d
call fcn.140028290
mov eax, 0x2d
jmp 0x14002ec0c
cmp dword [rsp + 0x34], r14d
je 0x14002e93b
lea rdx, str.Couldnt_bind_to_interface__s
mov r8, r12
mov rcx, rsi
call fcn.140028290
mov eax, 0x2d
jmp 0x14002ec0c
cmp r15d, 0x17
mov ecx, 2
cmove eax, ecx
mov dword [rdi + 0x708], eax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov rdx, r12
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.1400413d0
cmp eax, 1
jne 0x14002e9e3
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14001de60
mov rcx, qword [rsp + 0x40]
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x708], eax
test rcx, rcx
je 0x14002e95e
mov rcx, qword [rcx]
lea rdx, [rbp - 0x30]
mov r8d, pe_nt_image_headers64
call fcn.140040710
mov rdx, qword [rsp + 0x40]
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, [rbp - 0x30]
mov dword [rsp + 0x28], ecx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.140028130
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.1400416a0
mov rdx, qword [rsp + 0x40]
mov rax, qword [rdx]
cmp r15d, dword [rax + 4]
je 0x14002e886
mov eax, 1
jmp 0x14002ec0c
cmp r15d, 2
jne 0x14002eae0
lea r8, [rsp + 0x54]
lea rdx, [rbp - 0x30]
mov ecx, r15d
mov r12d, r15d
call fcn.140046e90
test eax, eax
jle 0x14002eae0
movzx ecx, bx
mov word [rsp + 0x50], r12w
call qword [sym.imp.WS2_32.dll_htons]
lea r14d, [r15 + 0xe]
mov word [rsp + 0x52], ax
jmp 0x14002eae0
cmp r15d, 0x17
jne 0x14002eab9
mov r12d, r15d
movzx ecx, bx
mov word [rsp + 0x50], r12w
call qword [sym.imp.WS2_32.dll_htons]
lea r14d, [r15 + 5]
jmp 0x14002ead6
cmp r15d, 2
jne 0x14002eadb
mov eax, r15d
movzx ecx, bx
mov word [rsp + 0x50], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r14d, reloc.WS2_32.dll_recv
mov word [rsp + 0x52], ax
mov rdi, qword [rsp + 0x38]
mov r12, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov r8d, r14d
mov rcx, r12
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x14002eb45
nop word [rax + rax]
dec r13d
test r13d, r13d
jle 0x14002ebb2
lea rdx, str.Bind_to_local_port__hu_failed__trying_next_n
movzx r8d, bx
mov rcx, rsi
call fcn.140028130
inc bx
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_ntohs]
lea rdx, [rsp + 0x50]
mov r8d, r14d
mov rcx, r12
mov word [rsp + 0x52], ax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x14002eb00
lea rcx, [rbp - 0x30]
xor edx, edx
mov r8d, 0x80
mov dword [rsp + 0x30], 0x80
call fcn.14004f6e0
lea r8, [rsp + 0x30]
lea rdx, [rbp - 0x30]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x14002ebed
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rbp + 0xd0]
mov r8d, pe_nt_image_headers64
mov ecx, eax
mov edi, eax
mov dword [rsi + 0x12a0], eax
call fcn.14003f6a0
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, edi
mov r9, rax
mov rcx, rsi
call fcn.140028290
mov eax, 0x2d
jmp 0x14002ec0c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rbp - 0x30]
mov r8d, pe_nt_image_headers64
mov ecx, eax
mov edi, eax
mov dword [rsi + 0x12a0], eax
call fcn.14003f6a0
lea rdx, str.bind_failed_with_errno__d:__s
mov r8d, edi
mov r9, rax
mov rcx, rsi
call fcn.140028290
mov eax, 0x2d
jmp 0x14002ec0c
lea rdx, str.Local_port:__hu_n
movzx r8d, bx
mov rcx, rsi
call fcn.140028130
mov dword [rdi + 0x6bc], 1
xor eax, eax
mov rdi, qword [rsp + 0x2e8]
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1400512b0
add rsp, 0x2f0
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret