Function at 0x1401a0820
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 - 0x1f8]
sub rsp, 0x2f8
mov rax, qword [0x14042b840]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rbx, qword [rcx + 0x7b8]
xor r12d, r12d
mov r13, qword [rcx + 0x18]
mov r15d, r8d
mov eax, dword [rcx + 0x244]
mov rdi, rcx
movzx esi, word [rcx + 0x240]
mov r14d, r12d
mov dword [rsp + 0x34], r9d
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x40], eax
test rbx, rbx
jne 0x1401a0897
test si, si
je 0x1401a0cc9
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x80
call sub.VCRUNTIME140.dll_memset
test rbx, rbx
je 0x1401a0b6a
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r8d, 0xff
cmp rax, r8
jae 0x1401a0b6a
xor edx, edx
mov byte [rbp - 0x20], r12b
lea rcx, [rbp - 0x1f]
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [0x1404255f8]
mov r13b, r12b
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rcx, qword [0x1404255f8]
mov r8, rax
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
mov r12d, 0x17
test eax, eax
jne 0x1401a098e
mov rcx, qword [0x1404255f8]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add rbx, rax
mov r13b, 1
mov r8, qword [rsp + 0x48]
lea rax, [rbp - 0x20]
mov edx, dword [rsp + 0x34]
mov r9, rbx
mov dword [rsp + 0x28], 0x100
mov ecx, r15d
mov qword [rsp + 0x20], rax
mov r8d, dword [r8 + 0x88]
call fcn.14018ca8c
mov ecx, eax
test eax, eax
je 0x1401a0a55
sub ecx, 1
je 0x1401a0b2b
cmp ecx, 1
je 0x1401a09c6
test r13b, r13b
jne 0x1401a0b57
mov r13, qword [rsp + 0x48]
mov al, byte [r13 + 0x18c]
mov byte [rsp + 0x30], al
cmp r15d, 2
jne 0x1401a0a7a
mov byte [r13 + 0x18c], 1
jmp 0x1401a0a87
mov rcx, qword [str.host_]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rcx, qword [str.host_]
mov r8, rax
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x1401a091a
mov rcx, qword [str.host_]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add rbx, rax
jmp 0x1401a0967
lea r9, [rbp - 0x20]
mov dword [rsp + 0x20], r15d
mov r8, rbx
lea rdx, str.Local_Interface__s_is_ip__s_using_address_family__i
mov rcx, rdi
call fcn.1401a2328
mov r13, qword [rsp + 0x48]
cmp r15d, r12d
jne 0x1401a0b35
mov edx, 0x25
lea rcx, [rbp - 0x20]
call sub.VCRUNTIME140.dll_strchr
mov rbx, rax
test rax, rax
je 0x1401a0a0b
mov byte [rax], r14b
inc rbx
lea r8, [rsp + 0x68]
mov ecx, r12d
lea rdx, [rbp - 0x20]
call fcn.1401b27fc
test eax, eax
jle 0x1401a0a46
movzx ecx, si
mov word [rsp + 0x60], r12w
call qword [sym.imp.ws2_32.dll_htons]
mov word [rsp + 0x62], ax
test rbx, rbx
je 0x1401a0a46
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [rsp + 0x78], eax
mov r14d, 0x1c
lea r12d, [r14 - 0x1a]
jmp 0x1401a0bb4
test r13b, r13b
je 0x1401a0967
lea rdx, str.Couldnt_bind_to_interface__s
mov r8, rbx
mov rcx, rdi
call fcn.1401a225c
mov eax, 0x2d
jmp 0x1401a0ccb
cmp r15d, r12d
jne 0x1401a0a87
mov byte [r13 + 0x18c], 2
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rdi
call fcn.140194c80
cmp eax, 1
jne 0x1401a0ab4
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140194070
mov al, byte [rsp + 0x30]
mov byte [r13 + 0x18c], al
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1401a0b57
mov rcx, qword [rcx]
lea rdx, [rbp - 0x20]
mov r8d, 0x100
call fcn.140194c44
mov rax, qword [rsp + 0x38]
lea rdx, str.Name__s_family__i_resolved_to__s_family__i
mov r9d, r15d
mov r8, rbx
mov rcx, qword [rax]
mov eax, dword [rcx + 4]
mov rcx, rdi
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
call fcn.1401a2328
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call fcn.140194f90
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx]
cmp r15d, dword [rdx + 4]
je 0x1401a09e6
mov eax, 1
jmp 0x1401a0ccb
mov r12d, 2
cmp r15d, r12d
jne 0x1401a0bb4
lea r8, [rsp + 0x64]
mov ecx, r12d
lea rdx, [rbp - 0x20]
call fcn.1401b27fc
test eax, eax
jle 0x1401a0bb4
jmp 0x1401a0b9a
mov byte [rdi + 0x1323], r14b
lea rdx, str.Couldnt_bind_to__s
jmp 0x1401a0a65
mov r12d, 0x17
cmp r15d, r12d
jne 0x1401a0b8f
movzx ecx, si
mov word [rsp + 0x60], r12w
call qword [sym.imp.ws2_32.dll_htons]
lea r14d, [r12 + 5]
lea r12d, [r14 - 0x1a]
jmp 0x1401a0baf
mov r12d, 2
cmp r15d, r12d
jne 0x1401a0bb4
movzx ecx, si
mov word [rsp + 0x60], r12w
call qword [sym.imp.ws2_32.dll_htons]
mov r14d, 0x10
mov word [rsp + 0x62], ax
mov rbx, qword [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov rcx, rbx
mov r8d, r14d
call qword [sym.imp.ws2_32.dll_bind]
mov r15d, 1
jmp 0x1401a0c1b
mov eax, dword [rsp + 0x40]
sub eax, r15d
mov dword [rsp + 0x40], eax
test eax, eax
jle 0x1401a0c87
movzx r8d, si
lea rdx, str.Bind_to_local_port__hu_failed__trying_next
mov rcx, rdi
call fcn.1401a2328
add si, r15w
movzx ecx, si
call qword [sym.imp.ws2_32.dll_ntohs]
mov r8d, r14d
lea rdx, [rsp + 0x60]
mov rcx, rbx
mov word [rsp + 0x62], ax
call qword [sym.imp.ws2_32.dll_bind]
test eax, eax
js 0x1401a0bd2
mov r8d, 0x80
lea rcx, [rbp - 0x20]
xor edx, edx
mov dword [rsp + 0x34], r8d
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x34]
mov rcx, rbx
lea rdx, [rbp - 0x20]
call qword [sym.imp.ws2_32.dll_getsockname]
test eax, eax
jns 0x1401a0caf
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp + 0xe0]
mov ecx, eax
mov dword [rdi + 0xdd4], eax
mov ebx, eax
call fcn.1401840d8
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rdi
call fcn.1401a225c
jmp 0x1401a0a70
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp - 0x20]
mov ecx, eax
mov dword [rdi + 0xdd4], eax
mov ebx, eax
call fcn.1401840d8
lea rdx, str.bind_failed_with_errno__d:__s
jmp 0x1401a0c74
movzx r8d, si
lea rdx, str.Local_port:__hu
mov rcx, rdi
call fcn.1401a2328
mov byte [r13 + 0x3f7], r15b
xor eax, eax
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1402e63c0
add rsp, 0x2f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret