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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14057c500]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
xor edi, edi
mov word [rcx + 0x80], di
add rcx, 0x78
call fcn.140303150
lea rcx, [rbx + 0x88]
mov word [rbx + 0x90], di
call fcn.140303150
mov rcx, qword [rbx + 0xa8]
mov qword [rbx + 0x94], rdi
cmp rcx, 0xffffffffffffffff
jne 0x140326d1a
xor al, al
jmp 0x140326f09
xor eax, eax
mov qword [rsp + 0xa8], r13
lea r8, [rbp - 0x38]
mov qword [rbp - 0x28], rax
lea rdx, [rbp - 0x28]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x10], eax
mov dword [rbp - 0x38], 0x1c
call qword [sym.imp.WS2_32.dll_getsockname]
or r13d, 0xffffffff
test eax, eax
jne 0x140326e80
mov rcx, qword [rbx + 0xa8]
lea r9, [rbx + 0x78]
lea r8, [rbx + 0x80]
lea rdx, [rbp - 0x28]
call fcn.140328ef0
movzx ecx, word [rbp - 0x28]
cmp ecx, 2
je 0x140326e78
cmp ecx, 0x17
mov eax, 1
cmovne eax, r13d
mov dword [rbx + 0x70], eax
mov edx, 5
mov dword [rbp - 0x3c], edi
lea rcx, [rbx + 0x78]
mov dword [rbp - 0x30], 4
call fcn.140302d30
test al, al
je 0x140326de6
mov rcx, qword [rbx + 0xa8]
lea rax, [rbp - 0x30]
mov edx, 0x29
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x3c]
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140326de6
cmp dword [rbp - 0x3c], edi
jne 0x140326de6
lea edx, [rax + 4]
mov dword [rbx + 0x70], 2
lea rcx, [rbx + 0x78]
call fcn.140302ce0
cmp dword [rbx + 0x70], 1
jne 0x140326e1a
lea rdx, [rbp - 0x40]
mov byte [rbp - 0x40], dil
lea rcx, [rbx + 0x78]
call fcn.140304380
cmp byte [rbp - 0x40], dil
je 0x140326e1a
test eax, eax
jne 0x140326e1a
lea edx, [rax + 4]
mov dword [rbx + 0x70], 2
lea rcx, [rbx + 0x78]
call fcn.140302ce0
mov rcx, qword [rbx + 0xa8]
lea r8, [rbp - 0x38]
xor eax, eax
lea rdx, [rbp - 0x28]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x10], eax
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x140326ea6
mov rcx, qword [rbx + 0xa8]
lea r9, [rbx + 0x88]
lea r8, [rbx + 0x90]
lea rdx, [rbp - 0x28]
call fcn.140328ef0
mov dword [rbx + 0x98], 1
mov dword [rbx + 0x94], 1
jmp 0x140326eac
mov dword [rbx + 0x70], edi
jmp 0x140326d8b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2736
jne 0x140326d8b
mov edx, 0xa
mov rcx, rbx
lea r8d, [rdx - 2]
call fcn.1403147c0
xor al, al
jmp 0x140326f01
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rbx + 0xa8]
lea rax, [rbp - 0x2c]
lea r9, [rbp - 0x34]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov dword [rbp - 0x34], edi
mov r8d, 0x1008
mov dword [rbp - 0x2c], 4
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
je 0x140326ee7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x140326ef9
mov eax, dword [rbp - 0x34]
cmp eax, 1
je 0x140326efc
mov edi, 1
cmp eax, 2
je 0x140326efc
mov edi, r13d
mov dword [rbx + 0x6c], edi
mov al, 1
mov r13, qword [rsp + 0xa8]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1404e17d0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret