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

Disassembly:
push rbp
push rsi
push rdi
push r13
lea rbp, [rsp - 0xb8]
sub rsp, 0x1b8
mov rax, qword [0x140198190]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov r13, qword [rcx]
mov rdi, rcx
movsxd rax, edx
xor ecx, ecx
xor esi, esi
mov byte [r8], cl
mov qword [rsp + 0x50], r8
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], ecx
mov qword [rsp + 0x48], rax
cmp byte [rax + rdi + 0x3c4], cl
je 0x1400bba4c
mov byte [r8], 1
xor eax, eax
jmp 0x1400bc0fa
mov qword [rsp + 0x1f8], rbx
mov qword [rsp + 0x1b0], r12
call fcn.1400afd10
mov r8d, dword [r13 + 0x2c8]
xor ecx, ecx
mov edx, dword [r13 + 0x2cc]
test r8d, r8d
mov rbx, rax
mov r12d, 0x493e0
setg cl
test edx, edx
jle 0x1400bba87
or ecx, 2
sub ecx, 1
je 0x1400bbaa7
sub ecx, 1
je 0x1400bbaa2
cmp ecx, 1
jne 0x1400bbaaa
cmp r8d, edx
mov r12d, edx
cmovl r12d, r8d
jmp 0x1400bbaaa
mov r12d, edx
jmp 0x1400bbaaa
mov r12d, r8d
mov rdx, qword [r13 + 0x738]
mov rcx, rbx
call fcn.1400afc80
sub r12d, eax
test r12d, r12d
jg 0x1400bbada
lea rdx, str.Connection_time_out
mov rcx, r13
call fcn.1400bac60
mov eax, Ordinal_32
jmp 0x1400bc0ea
mov qword [rsp + 0x1a8], r14
xor r14d, r14d
mov qword [rsp + 0x1a0], r15
lea r15, [rdi + 0x1e0]
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [r15]
mov eax, r14d
xor eax, 1
mov dword [rsp + 0x40], eax
cmp r8, 0xffffffffffffffff
je 0x1400bbd20
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov rcx, rdx
call fcn.1400ba530
test eax, eax
jne 0x1400bbba1
mov rdx, qword [rdi + 0x3d8]
mov rcx, rbx
xor esi, esi
call fcn.1400afc80
mov r8d, dword [rdi + 0x3e4]
cmp eax, r8d
jl 0x1400bbb5e
lea rdx, str.After__ldms_connect_time__move_on__n
mov rcx, r13
call fcn.1400bad30
mov esi, 0x274c
test r14d, r14d
jne 0x1400bbc80
cmp qword [rdi + 0x68], 0
jne 0x1400bbc80
mov rdx, qword [rdi + 0x3d8]
mov rcx, rbx
call fcn.1400afc80
cmp eax, 0xc8
jl 0x1400bbc80
mov edx, dword [rsp + 0x30]
lea r8d, [r14 + 1]
mov rcx, rdi
call fcn.1400bd390
jmp 0x1400bbc80
cmp eax, 2
je 0x1400bbc0b
cmp byte [rdi + 0x3d4], 0
jne 0x1400bbc0b
test al, 4
je 0x1400bbc80
mov rsi, qword [r15]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 4
call qword [sym.imp.KERNEL32.dll_SleepEx]
lea rax, [rsp + 0x3c]
mov edx, 0xffff
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r8d, 0x1007
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
je 0x1400bbc05
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
jmp 0x1400bbc80
mov esi, dword [rsp + 0x38]
jmp 0x1400bbc80
mov rsi, qword [r15]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 4
call qword [sym.imp.KERNEL32.dll_SleepEx]
lea rax, [rsp + 0x3c]
mov edx, 0xffff
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r8d, 0x1007
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
je 0x1400bbc59
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
jmp 0x1400bbc5d
mov esi, dword [rsp + 0x38]
test esi, esi
je 0x1400bbd7b
cmp esi, 0x2748
je 0x1400bbd7b
lea rdx, str.Connection_failed_n
mov rcx, r13
call fcn.1400bad30
test esi, esi
je 0x1400bbd20
mov ecx, esi
mov dword [r13 + 0x8864], esi
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, qword [r15 - 0x180]
test rcx, rcx
je 0x1400bbd20
mov r8d, reloc.WLDAP32.dll_Ordinal_46
lea rdx, [rbp + 0x60]
call fcn.1400b0b70
mov edx, esi
mov rcx, rdi
call fcn.1400aa5a0
mov r9d, dword [rdi + 0x108]
lea r8, [rbp + 0x60]
lea rdx, str.connect_to__s_port__ld_failed:__s_n
mov qword [rsp + 0x20], rax
mov rcx, r13
call fcn.1400bad30
mov rax, qword [r15 - 0x180]
cmp qword [rax + 0x28], 0
mov eax, r12d
je 0x1400bbcf1
cdq
sub eax, edx
sar eax, 1
mov edx, dword [rsp + 0x30]
mov r8d, r14d
mov rcx, rdi
mov dword [rdi + 0x3e4], eax
call fcn.1400bd390
cmp eax, 7
jne 0x1400bbd1a
mov ecx, dword [rsp + 0x40]
cmp qword [rdi + rcx*8 + 0x1e0], 0xffffffffffffffff
jne 0x1400bbd20
mov dword [rsp + 0x34], eax
jmp 0x1400bbd24
mov eax, dword [rsp + 0x34]
inc r14d
add r15, 8
cmp r14d, 2
jl 0x1400bbb00
test eax, eax
je 0x1400bc0da
cmp qword [rdi + 0x68], 0
jne 0x1400bbd62
mov edx, dword [rsp + 0x30]
mov r8d, 1
mov rcx, rdi
call fcn.1400bd390
mov dword [rsp + 0x34], eax
test eax, eax
je 0x1400bc091
cmp byte [rdi + 0x3bd], 0
je 0x1400bc095
mov rbx, qword [rdi + 0xf8]
jmp 0x1400bc0ae
mov rax, qword [rdi + r14*8 + 0x1e0]
mov rsi, qword [rsp + 0x48]
mov qword [rdi + rsi*8 + 0x1d0], rax
mov rax, qword [rdi + r14*8 + 0x60]
mov qword [rdi + 0x58], rax
mov eax, dword [rsp + 0x40]
mov qword [rdi + r14*8 + 0x1e0], 0xffffffffffffffff
lea rbx, [rdi + rax*8]
mov rdx, qword [rbx + 0x1e0]
cmp rdx, 0xffffffffffffffff
je 0x1400bbdcd
mov rcx, rdi
call fcn.1400bb6d0
mov qword [rbx + 0x1e0], 0xffffffffffffffff
mov ebx, esi
mov rcx, rdi
mov edx, ebx
call fcn.1400b3380
test eax, eax
jne 0x1400bc0da
mov rax, qword [rsp + 0x50]
mov byte [rsi + rdi + 0x3c4], 1
mov byte [rax], 1
test ebx, ebx
jne 0x1400bbe00
lea edx, [rsi + 4]
mov rcx, r13
call fcn.1400c6de0
cmp dword [rdi + 0xa4], 2
mov rbx, qword [rdi + rsi*8 + 0x1d0]
mov rsi, qword [rdi]
je 0x1400bc089
cmp byte [rdi + 0x3ba], 0
jne 0x1400bbfd9
cmp byte [rdi + 0x3d4], 0
jne 0x1400bbfd9
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], 0x80
lea rdx, [rbp - 0x20]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x1400bbe86
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.1400aa5a0
mov r9, rax
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400bac60
mov rcx, rdi
call fcn.1400b63a0
xor eax, eax
jmp 0x1400bc0da
xorps xmm0, xmm0
mov dword [rsp + 0x30], 0x80
lea r8, [rsp + 0x30]
mov rcx, rbx
lea rdx, [rsp + 0x60]
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
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400bbf00
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.1400aa5a0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400bac60
mov rcx, rdi
call fcn.1400b63a0
xor eax, eax
jmp 0x1400bc0da
lea rbx, [rdi + 0x114]
mov rdx, rbx
lea r8, [rdi + 0x144]
lea rcx, [rbp - 0x20]
call fcn.1400bcc80
test al, al
jne 0x1400bbf54
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.1400aa5a0
mov r9, rax
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400bac60
mov rcx, rdi
call fcn.1400b63a0
xor eax, eax
jmp 0x1400bc0da
movups xmm0, xmmword [rbx]
mov eax, dword [rbx + 0x28]
lea r8, [rdi + 0x178]
movups xmm1, xmmword [rbx + 0x10]
lea rdx, [rdi + 0x148]
movups xmmword [rdi + 0x70], xmm0
lea rcx, [rsp + 0x60]
movsd xmm0, qword [rbx + 0x20]
movups xmmword [rdi + 0x80], xmm1
movsd qword [rdi + 0x90], xmm0
mov dword [rdi + 0x98], eax
movzx eax, word [rbx + 0x2c]
mov word [rdi + 0x9c], ax
call fcn.1400bcc80
test al, al
jne 0x1400bbfd9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.1400aa5a0
mov r9, rax
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400bac60
mov rcx, rdi
call fcn.1400b63a0
xor eax, eax
jmp 0x1400bc0da
movups xmm0, xmmword [rdi + 0x114]
mov rcx, qword [rdi]
movups xmmword [rcx + 0x8ad0], xmm0
movups xmm1, xmmword [rdi + 0x124]
movups xmmword [rcx + 0x8ae0], xmm1
movsd xmm0, qword [rdi + 0x134]
movsd qword [rcx + 0x8af0], xmm0
mov eax, dword [rdi + 0x13c]
mov dword [rcx + 0x8af8], eax
movzx eax, word [rdi + 0x140]
mov word [rcx + 0x8afc], ax
mov rdx, qword [rdi]
movups xmm0, xmmword [rdi + 0x148]
movups xmmword [rdx + 0x8b04], xmm0
movups xmm1, xmmword [rdi + 0x158]
movups xmmword [rdx + 0x8b14], xmm1
movsd xmm0, qword [rdi + 0x168]
movsd qword [rdx + 0x8b24], xmm0
mov eax, dword [rdi + 0x170]
mov dword [rdx + 0x8b2c], eax
movzx eax, word [rdi + 0x174]
mov word [rdx + 0x8b30], ax
mov rdx, qword [rdi]
mov eax, dword [rdi + 0x144]
mov dword [rdx + 0x8b00], eax
mov rdx, qword [rdi]
mov eax, dword [rdi + 0x178]
mov dword [rdx + 0x8b34], eax
mov rcx, rdi
call fcn.1400b63a0
xor eax, eax
jmp 0x1400bc0da
cmp byte [rdi + 0x3bb], 0
je 0x1400bc0a7
mov rbx, qword [rdi + 0xd8]
jmp 0x1400bc0ae
mov rbx, qword [rdi + 0xb8]
mov edx, esi
mov rcx, rdi
call fcn.1400aa5a0
mov r9d, dword [rdi + 0x108]
lea rdx, str.Failed_to_connect_to__s_port__ld:__s
mov r8, rbx
mov qword [rsp + 0x20], rax
mov rcx, r13
call fcn.1400bac60
mov eax, dword [rsp + 0x34]
mov r14, qword [rsp + 0x1a8]
mov r15, qword [rsp + 0x1a0]
mov rbx, qword [rsp + 0x1f8]
mov r12, qword [rsp + 0x1b0]
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.14010f620
add rsp, 0x1b8
pop r13
pop rdi
pop rsi
pop rbp
ret