Function at 0x1400068d0
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 [0x14007c040]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov r14, qword [rcx + 0x740]
xor r13d, r13d
movzx esi, word [rcx + 0x220]
mov r12d, r9d
movzx r15d, word [rcx + 0x222]
mov rbx, rdx
mov dword [rsp + 0x50], r9d
mov rdi, rcx
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], r13
test r14, r14
jne 0x140006941
test si, si
je 0x140006dd1
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 r14, r14
je 0x140006d57
mov rax, 0xffffffffffffffff
inc rax
cmp byte [r14 + rax], r13b
jne 0x140006976
cmp rax, 0xff
jae 0x140006d57
xor edx, edx
lea rcx, [rbp - 0x1f]
mov r8d, 0xff
call sub.VCRUNTIME140.dll_memset
mov r8d, 3
lea rcx, [0x140069ff0]
mov rdx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x1400069d3
lea r8, [r14 + 3]
mov rcx, rdi
lea rdx, str.Couldnt_bind_to_interface__s
call fcn.140013150
mov eax, Ordinal_46
jmp 0x140006dd3
mov r8d, 5
lea rcx, str.host_
mov rdx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x1400069f1
add r14, 5
movzx ebx, byte [rbx + 0x4ab]
mov byte [rsp + 0x30], bl
cmp r12d, 2
jne 0x140006a0e
mov rax, qword [rsp + 0x38]
mov byte [rax + 0x4ab], 1
xor r9d, r9d
lea rax, [rsp + 0x40]
mov rdx, r14
mov qword [rsp + 0x20], rax
mov rcx, rdi
lea r8d, [r9 + 0x50]
call fcn.140022ca0
cmp eax, 1
jne 0x140006b04
mov r12, qword [rdi + 0xe18]
mov edx, 0xffffffff
mov rcx, qword [r12]
test rcx, rcx
je 0x140006a62
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [r12]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.140002660
jmp 0x140006a93
mov rcx, qword [r12 + 8]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, qword [r12 + 8]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r12 + 8], r13
test ebx, ebx
jne 0x140006a8e
mov rcx, rdi
call fcn.140002660
movzx ebx, byte [rsp + 0x30]
mov r12, qword [rdi + 0xe10]
mov byte [rdi + 0xe30], 1
test r12, r12
jne 0x140006ad9
mov rax, qword [rdi + 0x20]
lea rcx, str.host
mov r9, qword [rdi + 0xe08]
lea r8, str.proxy
lea rdx, str.Could_not_resolve__s:__s
cmp byte [rax + 0x2a8], r13b
cmove r8, rcx
mov rcx, rdi
call fcn.140013150
lea rcx, [rdi + 0xe08]
call fcn.140002b50
cmp qword [rdi + 0xe10], r13
jne 0x140006b09
mov rax, qword [rdi + 0x20]
cmp byte [rax + 0x2ae], 1
je 0x140006b09
mov byte [rax + 0x2ae], 1
jmp 0x140006b09
mov r12, qword [rsp + 0x40]
mov rax, qword [rsp + 0x38]
mov byte [rax + 0x4ab], bl
test r12, r12
je 0x140006d37
mov rcx, qword [r12]
mov byte [rbp - 0x20], r13b
cmp dword [rcx + 4], 2
jne 0x140006b42
mov rcx, qword [rcx + 0x20]
lea rdx, [rbp - 0x20]
add rcx, 4
mov r8d, 0x100
call fcn.140034250
mov rax, qword [r12]
lea rdx, str.Name__s_family__i_resolved_to__s_family__i
mov ebx, dword [rsp + 0x50]
mov r8, r14
mov r9d, ebx
mov ecx, dword [rax + 4]
lea rax, [rbp - 0x20]
mov dword [rsp + 0x28], ecx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140013280
mov r9, qword [rdi + 0xe8]
mov r14d, 2
test r9, r9
je 0x140006ba1
test byte [r9 + 4], 8
je 0x140006ba1
mov rax, qword [r9 + 0x10]
test rax, rax
je 0x140006ba1
mov r9, qword [r9 + 0x20]
lea edx, [r14 + 1]
mov r8d, r14d
mov rcx, rdi
call rax
sub dword [r12 + 0x10], 1
jne 0x140006bd1
mov rcx, qword [r12]
test rcx, rcx
je 0x140006bc8
mov rbx, qword [rcx + 0x28]
call qword [0x14007c4b8]
mov rcx, rbx
test rbx, rbx
jne 0x140006bb2
mov ebx, dword [rsp + 0x50]
mov rcx, r12
call qword [0x14007c4b8]
mov r8, qword [rdi + 0xe8]
test r8, r8
je 0x140006bfb
test byte [r8 + 4], 8
je 0x140006bfb
mov rax, qword [r8 + 0x18]
test rax, rax
je 0x140006bfb
mov r8, qword [r8 + 0x20]
mov edx, 3
mov rcx, rdi
call rax
mov rax, qword [r12]
cmp ebx, dword [rax + 4]
je 0x140006c0e
mov eax, 1
jmp 0x140006dd3
cmp ebx, r14d
jne 0x140006c3f
lea rdx, [rsp + 0x64]
lea rcx, [rbp - 0x20]
call fcn.140034770
test eax, eax
jle 0x140006c3f
movzx ecx, si
mov word [rsp + 0x60], r14w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x62], ax
mov r13d, reloc.WS2_32.dll_recv
mov rbx, qword [rsp + 0x38]
mov r14, qword [rsp + 0x48]
lea rdx, [rsp + 0x60]
mov rcx, r14
mov r8d, r13d
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x140006cb7
nop
dec r15d
test r15d, r15d
jle 0x140006d82
add si, 1
je 0x140006d82
movzx r8d, si
lea rdx, str.Bind_to_local_port__d_failed__trying_next
dec r8d
mov rcx, rdi
call fcn.140013280
cmp word [rsp + 0x60], 2
jne 0x140006ca2
movzx ecx, si
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rsp + 0x62], ax
mov r8d, r13d
lea rdx, [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x140006c60
xorps xmm0, xmm0
mov dword [rsp + 0x50], Ordinal_133
lea r8, [rsp + 0x50]
mov rcx, r14
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 0x140006db7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [rdi + 0xd5c], eax
lea rdx, [rbp + 0xe0]
mov ebx, eax
call fcn.140053f40
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rdi
call fcn.140013150
mov eax, Ordinal_46
jmp 0x140006dd3
mov r8, r14
mov byte [rdi + 0x1377], r13b
lea rdx, str.Couldnt_bind_to__s
mov rcx, rdi
call fcn.140013150
mov eax, Ordinal_46
jmp 0x140006dd3
cmp r12d, 2
jne 0x140006c44
mov r14d, r12d
movzx ecx, si
mov word [rsp + 0x60], r14w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x62], ax
lea r13d, [r12 + 0xe]
jmp 0x140006c44
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [rdi + 0xd5c], eax
lea rdx, [rbp - 0x20]
mov ebx, eax
call fcn.140053f40
mov r9, rax
lea rdx, str.bind_failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rdi
call fcn.140013150
mov eax, Ordinal_46
jmp 0x140006dd3
movzx r8d, si
lea rdx, str.Local_port:__hu
mov rcx, rdi
call fcn.140013280
mov byte [rbx + 0x2be], 1
xor eax, eax
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140065250
add rsp, 0x2f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret