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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rax, qword [0x1402ba030]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rbx, qword [rcx + 0x760]
xor r13d, r13d
movzx r14d, word [rcx + 0x228]
mov rdi, rdx
movzx r15d, word [rcx + 0x22a]
mov rsi, rcx
mov dword [rsp + 0x58], r9d
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], r13
test rbx, rbx
jne 0x14011fe51
test r14w, r14w
jne 0x14011fe51
xor eax, eax
jmp 0x1401202de
mov qword [rsp + 0x2f8], r12
xorps xmm0, 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
movups xmmword [rbp - 0x30], xmm0
test rbx, rbx
je 0x140120259
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rbx + rax], r13b
jne 0x14011fe90
cmp rax, 0xff
jae 0x140120259
xor edx, edx
lea rcx, [rbp - 0x1f]
mov r8d, 0xff
call sub.VCRUNTIME140.dll_memset
mov r8d, 3
lea rcx, [0x140291fe0]
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x14011feed
lea r8, [rbx + 3]
mov rcx, rsi
lea rdx, str.Couldnt_bind_to_interface__s
call fcn.140105f20
mov eax, Ordinal_46
jmp 0x1401202d6
mov r8d, 5
lea rcx, str.host_
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
lea r12, [rbx + 5]
movzx eax, byte [rdi + 0x73e]
cmovne r12, rbx
mov byte [rsp + 0x30], al
mov ebx, dword [rsp + 0x58]
mov qword [rsp + 0x48], r12
cmp ebx, 2
jne 0x14011ff2d
mov byte [rdi + 0x73e], 1
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r12
mov rcx, rsi
call fcn.1401134c0
cmp eax, 1
jne 0x14011fff7
mov rdi, qword [rsi + 0xe00]
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, qword [rdi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], r13
test ebx, ebx
jne 0x14011ff83
mov rcx, rsi
call fcn.140106cd0
mov rdi, qword [rsi + 0xdf8]
lea rbx, [rsi + 0xdf0]
mov byte [rsi + 0xe18], 1
test rdi, rdi
jne 0x14011ffcc
mov rax, qword [rsi + 0x18]
lea rcx, str.host
mov r9, qword [rbx]
lea r8, str.proxy
lea rdx, str.Could_not_resolve__s:__s
cmp byte [rax + 0x308], r13b
cmove r8, rcx
mov rcx, rsi
call fcn.140105f20
mov rcx, rbx
call fcn.140106ef0
mov ebx, dword [rsp + 0x58]
cmp qword [rsi + 0xdf8], r13
jne 0x14011fffc
mov rax, qword [rsi + 0x18]
cmp byte [rax + 0x30e], 1
je 0x14011fffc
mov byte [rax + 0x30e], 1
jmp 0x14011fffc
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
movzx eax, byte [rsp + 0x30]
mov byte [rcx + 0x73e], al
test rdi, rdi
je 0x140120239
mov rdx, qword [rdi]
mov r12d, 2
mov byte [rbp - 0x20], r13b
cmp dword [rdx + 4], r12d
jne 0x140120042
mov rdx, qword [rdx + 0x20]
lea r8, [rbp - 0x20]
add rdx, 4
mov r9d, 0x100
mov ecx, r12d
call fcn.14011e230
mov rax, qword [rdi]
lea rdx, str.Name__s_family__i_resolved_to__s_family__i
mov r8, qword [rsp + 0x48]
mov r9d, ebx
mov ecx, dword [rax + 4]
lea rax, [rbp - 0x20]
mov dword [rsp + 0x28], ecx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.140106050
mov r9, qword [rsi + 0xe0]
test r9, r9
je 0x140120099
test byte [r9 + 4], 8
je 0x140120099
mov rax, qword [r9 + 0x10]
test rax, rax
je 0x140120099
mov r9, qword [r9 + 0x20]
mov r8d, r12d
mov edx, 3
mov rcx, rsi
call rax
sub dword [rdi + 0x10], 1
jne 0x1401200cf
mov rcx, qword [rdi]
test rcx, rcx
je 0x1401200c6
nop word [rax + rax]
mov rbx, qword [rcx + 0x28]
call qword [0x1402ba0c8]
mov rcx, rbx
test rbx, rbx
jne 0x1401200b0
mov ebx, dword [rsp + 0x58]
mov rcx, rdi
call qword [0x1402ba0c8]
mov r8, qword [rsi + 0xe0]
test r8, r8
je 0x1401200f9
test byte [r8 + 4], 8
je 0x1401200f9
mov rax, qword [r8 + 0x18]
test rax, rax
je 0x1401200f9
mov r8, qword [r8 + 0x20]
mov edx, 3
mov rcx, rsi
call rax
mov rax, qword [rdi]
cmp ebx, dword [rax + 4]
je 0x14012010b
mov eax, 1
jmp 0x1401202d6
cmp ebx, r12d
jne 0x14012013d
lea r8, [rsp + 0x64]
lea rdx, [rbp - 0x20]
call fcn.1401434a0
test eax, eax
jle 0x14012013d
movzx ecx, r14w
mov word [rsp + 0x60], r12w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x62], ax
mov r13d, reloc.WS2_32.dll_recv
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov rcx, rbx
mov r8d, r13d
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x1401201b9
nop dword [rax]
dec r15d
test r15d, r15d
jle 0x140120285
add r14w, 1
je 0x140120285
movzx r8d, r14w
lea rdx, str.Bind_to_local_port__hu_failed__trying_next
dec r8d
mov rcx, rsi
call fcn.140106050
cmp word [rsp + 0x60], 2
jne 0x1401201a4
movzx ecx, r14w
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rsp + 0x62], ax
mov r8d, r13d
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x140120160
xorps xmm0, xmm0
mov dword [rsp + 0x58], Ordinal_133
lea r8, [rsp + 0x58]
mov rcx, rbx
lea rdx, [rbp - 0x20]
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
movups xmmword [rbp + 0x50], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x1401202ba
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [rsi + 0xd64], eax
lea rdx, [rbp + 0xe0]
mov ebx, eax
call fcn.1400e7750
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140105f20
mov eax, Ordinal_46
jmp 0x1401202d6
mov r8, r12
mov byte [rsi + 0x12d3], r13b
lea rdx, str.Couldnt_bind_to__s
mov rcx, rsi
call fcn.140105f20
mov eax, Ordinal_46
jmp 0x1401202d6
cmp r9d, 2
jne 0x140120142
mov r12d, r9d
movzx ecx, r14w
mov word [rsp + 0x60], r12w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x62], ax
lea r13d, [r12 + 0xe]
jmp 0x140120142
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [rsi + 0xd64], eax
lea rdx, [rbp - 0x20]
mov ebx, eax
call fcn.1400e7750
mov r9, rax
lea rdx, str.bind_failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140105f20
mov eax, Ordinal_46
jmp 0x1401202d6
movzx r8d, r14w
lea rdx, str.Local_port:__hu
mov rcx, rsi
call fcn.140106050
xor eax, eax
mov byte [rdi + 0x31e], 1
mov r12, qword [rsp + 0x2f8]
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1401526c0
add rsp, 0x300
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret