Function at 0x140164c8c
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 - 0x1e8]
sub rsp, 0x2e8
mov rax, qword [0x1401a95d8]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rbx, qword [rcx + 0x730]
xor r13d, r13d
movzx eax, word [rcx + 0x22a]
mov r12d, r9d
movzx r14d, word [rcx + 0x228]
mov rdi, rcx
mov qword [rsp + 0x48], r8
mov r15d, r13d
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x34], eax
test rbx, rbx
jne 0x140164cfd
test r14w, r14w
je 0x140165136
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x80
call fcn.140172be0
test rbx, rbx
je 0x140164fc9
or rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp byte [rbx + rax], r13b
jne 0x140164d1f
cmp rax, 0xff
jae 0x140164fc9
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x100
call fcn.140172be0
mov rcx, qword [0x1401a93f0]
mov r8, rsi
inc r8
cmp byte [rcx + r8], r13b
jne 0x140164d4f
mov rdx, rbx
call fcn.14017f660
mov r13d, reloc.WS2_32.dll_socket
test eax, eax
jne 0x140164d82
mov rax, qword [0x1401a93f0]
inc rsi
cmp byte [rax + rsi], r15b
jne 0x140164d71
add rbx, rsi
mov sil, 1
jmp 0x140164dd9
mov rcx, qword [0x1401a93f8]
mov r8, rsi
inc r8
cmp byte [rcx + r8], r15b
jne 0x140164d8c
mov rdx, rbx
call fcn.14017f660
test eax, eax
jne 0x140164dd6
mov rax, qword [0x1401a93f8]
inc rsi
cmp byte [rax + rsi], r15b
jne 0x140164da8
add rbx, rsi
mov rax, qword [rsp + 0x40]
mov sil, byte [rax + 0x616]
cmp r12d, 2
jne 0x140164eec
mov byte [rax + 0x616], 1
jmp 0x140164ef8
mov sil, r15b
mov edx, dword [rbp + 0x250]
lea rax, [rbp - 0x30]
mov dword [rsp + 0x28], 0x100
mov r9, rbx
mov qword [rsp + 0x20], rax
mov ecx, r12d
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 0x60c]
call fcn.1401410d4
mov ecx, eax
test eax, eax
je 0x140164ec7
sub ecx, 1
je 0x140164f9d
cmp ecx, 1
je 0x140164e37
test sil, sil
je 0x140164db4
mov byte [rdi + 0x127b], r15b
lea rdx, [0x1400111c0]
jmp 0x140164ed7
lea r9, [rbp - 0x30]
mov dword [rsp + 0x20], r12d
mov r8, rbx
lea rdx, [0x140011158]
mov rcx, rdi
call fcn.14014bb34
cmp r12d, r13d
jne 0x140164fa7
mov edx, 0x25
lea rcx, [rbp - 0x30]
call fcn.140173be0
mov rbx, rax
test rax, rax
je 0x140164e77
mov byte [rax], r15b
inc rbx
lea r8, [rsp + 0x58]
mov ecx, r13d
lea rdx, [rbp - 0x30]
call fcn.140169ffc
test eax, eax
jle 0x140164eb8
movzx ecx, r14w
mov word [rsp + 0x50], r13w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
test rbx, rbx
je 0x140164eb8
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0xa]
call fcn.140186a70
mov dword [rsp + 0x68], eax
mov r15d, 0x1c
lea r13d, [r15 - 0x1a]
jmp 0x140165014
test sil, sil
je 0x140164db4
lea rdx, [0x140011138]
mov r8, rbx
mov rcx, rdi
call fcn.14014ba60
mov eax, 0x2d
jmp 0x140165138
cmp r12d, r13d
jne 0x140164ef8
mov byte [rax + 0x616], 2
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rdi
call fcn.1401526f8
cmp eax, 1
jne 0x140164f25
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140141278
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
mov byte [rax + 0x616], sil
test rcx, rcx
je 0x140164e24
mov rcx, qword [rcx]
lea rdx, [rbp - 0x30]
mov r8d, 0x100
call fcn.1401526bc
mov rax, qword [rsp + 0x38]
lea rdx, [0x140011190]
mov r9d, r12d
mov r8, rbx
mov rcx, qword [rax]
mov eax, dword [rcx + 4]
mov rcx, rdi
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call fcn.14014bb34
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call fcn.140152a28
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx]
cmp r12d, dword [rdx + 4]
je 0x140164e52
mov eax, 1
jmp 0x140165138
mov r13d, 2
cmp r12d, r13d
jne 0x140165014
lea r8, [rsp + 0x54]
mov ecx, r13d
lea rdx, [rbp - 0x30]
call fcn.140169ffc
test eax, eax
jle 0x140165014
jmp 0x140164ff9
mov r13d, reloc.WS2_32.dll_socket
cmp r12d, r13d
jne 0x140164fee
movzx ecx, r14w
mov word [rsp + 0x50], r13w
call qword [sym.imp.WS2_32.dll_htons]
lea r15d, [r13 + 5]
lea r13d, [r15 - 0x1a]
jmp 0x14016500f
mov r13d, 2
cmp r12d, r13d
jne 0x140165014
movzx ecx, r14w
mov word [rsp + 0x50], r13w
call qword [sym.imp.WS2_32.dll_htons]
mov r15d, reloc.WS2_32.dll_recv
mov word [rsp + 0x52], ax
mov rbx, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov r8d, r15d
call qword [sym.imp.WS2_32.dll_bind]
mov esi, 1
jmp 0x140165083
mov eax, dword [rsp + 0x34]
sub eax, esi
mov dword [rsp + 0x34], eax
test eax, eax
jle 0x1401650ef
add r14w, si
je 0x1401650ef
movzx r8d, r14w
lea rdx, [0x140011210]
sub r8d, esi
mov rcx, rdi
call fcn.14014bb34
movzx ecx, r14w
call qword [sym.imp.WS2_32.dll_ntohs]
mov r8d, r15d
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov word [rsp + 0x52], ax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x140165031
mov r8d, 0x80
lea rcx, [rbp - 0x30]
xor edx, edx
mov dword [rsp + 0x34], r8d
call fcn.140172be0
lea r8, [rsp + 0x34]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x140165117
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp + 0xd0]
mov ecx, eax
mov dword [rdi + 0xcec], eax
mov ebx, eax
call fcn.14015aba4
lea rdx, [0x1400111d8]
mov r8d, ebx
mov r9, rax
mov rcx, rdi
call fcn.14014ba60
jmp 0x140164ee2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp - 0x30]
mov ecx, eax
mov dword [rdi + 0xcec], eax
mov ebx, eax
call fcn.14015aba4
lea rdx, [0x140011240]
jmp 0x1401650dc
movzx r8d, r14w
lea rdx, [0x140011200]
mov rcx, rdi
call fcn.14014bb34
mov rax, qword [rsp + 0x40]
mov byte [rax + 0x2da], sil
xor eax, eax
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140171490
add rsp, 0x2e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret