Function at 0x14010c8a0
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 [0x14025d030]
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 0x14010c911
test r14w, r14w
jne 0x14010c911
xor eax, eax
jmp 0x14010cd9e
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 0x14010cd19
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rbx + rax], r13b
jne 0x14010c950
cmp rax, 0xff
jae 0x14010cd19
xor edx, edx
lea rcx, [rbp - 0x1f]
mov r8d, 0xff
call sub.VCRUNTIME140.dll_memset
mov r8d, 3
lea rcx, [0x140237d0c]
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x14010c9ad
lea r8, [rbx + 3]
mov rcx, rsi
lea rdx, str.Couldnt_bind_to_interface__s
call fcn.1400f1540
mov eax, Ordinal_46
jmp 0x14010cd96
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 0x14010c9ed
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.1400feb10
cmp eax, 1
jne 0x14010cab7
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 0x14010ca43
mov rcx, rsi
call fcn.1400f22f0
mov rdi, qword [rsi + 0xdf8]
lea rbx, [rsi + 0xdf0]
mov byte [rsi + 0xe18], 1
test rdi, rdi
jne 0x14010ca8c
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.1400f1540
mov rcx, rbx
call fcn.1400f2510
mov ebx, dword [rsp + 0x58]
cmp qword [rsi + 0xdf8], r13
jne 0x14010cabc
mov rax, qword [rsi + 0x18]
cmp byte [rax + 0x30e], 1
je 0x14010cabc
mov byte [rax + 0x30e], 1
jmp 0x14010cabc
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
movzx eax, byte [rsp + 0x30]
mov byte [rcx + 0x73e], al
test rdi, rdi
je 0x14010ccf9
mov rdx, qword [rdi]
mov r12d, 2
mov byte [rbp - 0x20], r13b
cmp dword [rdx + 4], r12d
jne 0x14010cb02
mov rdx, qword [rdx + 0x20]
lea r8, [rbp - 0x20]
add rdx, 4
mov r9d, 0x100
mov ecx, r12d
call fcn.14010acf0
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.1400f1670
mov r9, qword [rsi + 0xe0]
test r9, r9
je 0x14010cb59
test byte [r9 + 4], 8
je 0x14010cb59
mov rax, qword [r9 + 0x10]
test rax, rax
je 0x14010cb59
mov r9, qword [r9 + 0x20]
mov r8d, r12d
mov edx, 3
mov rcx, rsi
call rax
sub dword [rdi + 0x10], 1
jne 0x14010cb8f
mov rcx, qword [rdi]
test rcx, rcx
je 0x14010cb86
nop word [rax + rax]
mov rbx, qword [rcx + 0x28]
call qword [0x14025d0c8]
mov rcx, rbx
test rbx, rbx
jne 0x14010cb70
mov ebx, dword [rsp + 0x58]
mov rcx, rdi
call qword [0x14025d0c8]
mov r8, qword [rsi + 0xe0]
test r8, r8
je 0x14010cbb9
test byte [r8 + 4], 8
je 0x14010cbb9
mov rax, qword [r8 + 0x18]
test rax, rax
je 0x14010cbb9
mov r8, qword [r8 + 0x20]
mov edx, 3
mov rcx, rsi
call rax
mov rax, qword [rdi]
cmp ebx, dword [rax + 4]
je 0x14010cbcb
mov eax, 1
jmp 0x14010cd96
cmp ebx, r12d
jne 0x14010cbfd
lea r8, [rsp + 0x64]
lea rdx, [rbp - 0x20]
call fcn.14012ff60
test eax, eax
jle 0x14010cbfd
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 0x14010cc79
nop dword [rax]
dec r15d
test r15d, r15d
jle 0x14010cd45
add r14w, 1
je 0x14010cd45
movzx r8d, r14w
lea rdx, str.Bind_to_local_port__hu_failed__trying_next
dec r8d
mov rcx, rsi
call fcn.1400f1670
cmp word [rsp + 0x60], 2
jne 0x14010cc64
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 0x14010cc20
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 0x14010cd7a
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.140109ce0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400f1540
mov eax, Ordinal_46
jmp 0x14010cd96
mov r8, r12
mov byte [rsi + 0x12d3], r13b
lea rdx, str.Couldnt_bind_to__s
mov rcx, rsi
call fcn.1400f1540
mov eax, Ordinal_46
jmp 0x14010cd96
cmp r9d, 2
jne 0x14010cc02
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 0x14010cc02
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.140109ce0
mov r9, rax
lea rdx, str.bind_failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400f1540
mov eax, Ordinal_46
jmp 0x14010cd96
movzx r8d, r14w
lea rdx, str.Local_port:__hu
mov rcx, rsi
call fcn.1400f1670
xor eax, eax
mov byte [rdi + 0x31e], 1
mov r12, qword [rsp + 0x2f8]
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.14013ea20
add rsp, 0x300
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret