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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x168]
sub rsp, 0x268
mov rax, qword [0x14016a100]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rdi, qword [rcx]
xor r14d, r14d
mov qword [rsp + 0x40], r14
mov r12d, r8d
mov dword [rsp + 0x34], r9d
mov r15, rcx
mov qword [rsp + 0x48], rdx
mov r13d, r14d
mov rbx, qword [rdi + 0xc08]
mov eax, dword [rdi + 0x6f4]
movzx esi, word [rdi + 0x6f0]
mov dword [rsp + 0x38], eax
test rbx, rbx
jne 0x14002b2e9
test si, si
je 0x14002b66c
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x80
call fcn.140087ba0
test rbx, rbx
je 0x14002b520
mov rcx, rbx
call fcn.1400b39f0
cmp rax, 0xff
jae 0x14002b520
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x100
call fcn.140087ba0
mov rcx, qword [0x14016a040]
mov byte [rsp + 0x30], r14b
call fcn.1400b39f0
mov rcx, qword [0x14016a040]
mov r8, rax
mov rdx, rbx
call fcn.1400c5ff0
mov r14d, 2
test eax, eax
jne 0x14002b488
mov rcx, qword [0x14016a040]
call fcn.1400b39f0
add rbx, rax
mov byte [rsp + 0x30], 1
mov r8d, dword [r15 + 0xb8]
lea rax, [rbp - 0x30]
mov edx, dword [rsp + 0x34]
mov r9, rbx
mov dword [rsp + 0x28], 0x100
mov ecx, r12d
mov qword [rsp + 0x20], rax
call fcn.1400527c8
mov ecx, eax
test eax, eax
je 0x14002b4e9
sub ecx, 1
je 0x14002b4df
cmp ecx, 1
je 0x14002b4c2
cmp byte [rsp + 0x30], r13b
jne 0x14002b510
mov eax, dword [r15 + 0x3f8]
mov dword [rsp + 0x34], eax
cmp r12d, r14d
jne 0x14002b3d7
mov dword [r15 + 0x3f8], 1
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, rbx
mov rcx, r15
call fcn.140020230
cmp eax, 1
jne 0x14002b3fc
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.14001f590
mov rcx, qword [rsp + 0x40]
mov eax, dword [rsp + 0x34]
mov dword [r15 + 0x3f8], eax
test rcx, rcx
je 0x14002b510
mov rcx, qword [rcx]
lea rdx, [rbp - 0x30]
mov r8d, 0x100
call fcn.14002020c
mov rax, qword [rsp + 0x40]
lea rdx, str.Name__s_family__i_resolved_to__s_family__i_n
mov r9d, r12d
mov r8, rbx
mov rcx, qword [rax]
mov eax, dword [rcx + 4]
mov rcx, rdi
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call fcn.140029c14
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call fcn.140020430
cmp r12d, r14d
jne 0x14002b545
lea r8, [rsp + 0x54]
mov ecx, r14d
lea rdx, [rbp - 0x30]
call fcn.1400385e8
test eax, eax
jle 0x14002b545
jmp 0x14002b52b
mov rcx, qword [str.host_]
call fcn.1400b39f0
mov rcx, qword [str.host_]
mov r8, rax
mov rdx, rbx
call fcn.1400c5ff0
test eax, eax
jne 0x14002b36e
mov rcx, qword [str.host_]
call fcn.1400b39f0
add rbx, rax
jmp 0x14002b3bc
lea r9, [rbp - 0x30]
mov dword [rsp + 0x20], r12d
mov r8, rbx
lea rdx, str.Local_Interface__s_is_ip__s_using_address_family__i_n
mov rcx, rdi
call fcn.140029c14
jmp 0x14002b461
mov eax, 1
jmp 0x14002b66e
cmp byte [rsp + 0x30], r13b
je 0x14002b3bc
lea rdx, str.Couldnt_bind_to_interface__s
mov r8, rbx
mov rcx, rdi
call fcn.140029b2c
mov eax, reloc.WLDAP32.dll_Ordinal_45
jmp 0x14002b66e
and dword [rdi + 0x146c], 0xfffffff7
lea rdx, str.Couldnt_bind_to__s
jmp 0x14002b4fb
mov r14d, 2
cmp r12d, r14d
jne 0x14002b545
movzx ecx, si
mov word [rsp + 0x50], r14w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
mov r13d, reloc.WS2_32.dll_recv
mov rbx, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov r8d, r13d
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x14002b5ba
mov r12d, 1
mov eax, dword [rsp + 0x38]
sub eax, r12d
mov dword [rsp + 0x38], eax
test eax, eax
jle 0x14002b625
movzx r8d, si
lea rdx, str.Bind_to_local_port__hu_failed__trying_next_n
mov rcx, rdi
call fcn.140029c14
add si, r12w
cmp word [rsp + 0x50], r14w
jne 0x14002b5a5
movzx ecx, si
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rsp + 0x52], ax
mov r8d, r13d
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x14002b565
mov r14d, 0x80
lea rcx, [rbp + 0xd0]
mov r8d, r14d
mov dword [rsp + 0x34], r14d
xor edx, edx
call fcn.140087ba0
lea r8, [rsp + 0x34]
mov rcx, rbx
lea rdx, [rbp + 0xd0]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x14002b650
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, r14d
lea rdx, [rbp - 0x30]
mov ecx, eax
mov dword [rdi + 0x10e8], eax
mov ebx, eax
call fcn.140051cb0
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rdi
call fcn.140029b2c
jmp 0x14002b506
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x80
lea rdx, [rbp + 0xd0]
mov ecx, eax
mov dword [rdi + 0x10e8], eax
mov ebx, eax
call fcn.140051cb0
lea rdx, str.bind_failed_with_errno__d:__s
jmp 0x14002b612
movzx r8d, si
lea rdx, str.Local_port:__hu_n
mov rcx, rdi
call fcn.140029c14
bts dword [r15 + 0x3c4], 0x18
xor eax, eax
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140085010
add rsp, 0x268
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret