Function at 0x14009a500
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov r14, rdx
mov rsi, rcx
xor edx, edx
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QObject::constructor_class_QObject____ptr64____ptr64]
nop
lea rax, vtable.WireguardIpc.0
mov qword [rsi], rax
xor r15d, r15d
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r15
mov rax, qword [r14]
mov qword [rsi + 0x10], rax
mov rax, qword [r14 + 8]
mov qword [rsi + 0x18], rax
mov qword [r14], r15
mov qword [r14 + 8], r15
lea rcx, [rsi + 0x20]
call qword [sym.imp.pia_commonlib.dll_public:_void___cdecl_LineBuffer::constructor_void____ptr64]
nop
mov byte [rsi + 0x38], r15b
mov rdi, qword [rsi + 0x10]
mov rax, qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QIODevice::readyRead_void____ptr64]
mov qword [rsp + 0xe8], rax
mov rbx, qword [sym.imp.Qt5Core.dll_struct_QMetaObject_const_QIODevice::staticMetaObject]
lea ecx, [r15 + 0x18]
call fcn.1400cdb70
mov qword [rsp + 0xe0], rax
mov dword [rax], 1
lea rcx, [0x14009c860]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rsi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
mov r9, rsi
lea r8, [rsp + 0xe8]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call qword [sym.imp.Qt5Core.dll_private:_static_class_QMetaObject::Connection___cdecl_QObject::connectImpl_class_QObject_const____ptr64__void____ptr64____ptr64__class_QObject_const____ptr64__void____ptr64____ptr64__class_QtPrivate::QSlotObjectBase____ptr64__enum_Qt::ConnectionType__int_const____ptr64__struct_QMetaObject_const____ptr64_]
lea rcx, [rsp + 0x50]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QMetaObject::Connection::destructor_void____ptr64]
mov rdi, qword [rsi + 0x10]
mov rax, qword [sym.imp.Qt5Network.dll_public:_void___cdecl_QLocalSocket::disconnected_void____ptr64]
mov qword [rsp + 0x58], rax
mov rbx, qword [sym.imp.Qt5Network.dll_struct_QMetaObject_const_QLocalSocket::staticMetaObject]
lea ecx, [r15 + 0x18]
call fcn.1400cdb70
mov qword [rsp + 0xe0], rax
mov dword [rax], 1
lea rcx, [0x14009c740]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rsi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], 2
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
mov r9, rsi
lea r8, [rsp + 0x58]
mov rdx, rdi
lea rcx, [rsp + 0x60]
call qword [sym.imp.Qt5Core.dll_private:_static_class_QMetaObject::Connection___cdecl_QObject::connectImpl_class_QObject_const____ptr64__void____ptr64____ptr64__class_QObject_const____ptr64__void____ptr64____ptr64__class_QtPrivate::QSlotObjectBase____ptr64__enum_Qt::ConnectionType__int_const____ptr64__struct_QMetaObject_const____ptr64_]
lea rcx, [rsp + 0x60]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QMetaObject::Connection::destructor_void____ptr64]
mov rax, qword [sym.imp.Qt5Network.dll_public:_void___cdecl_QLocalSocket::error_enum_QLocalSocket::LocalSocketError____ptr64]
mov qword [rsp + 0x68], rax
mov rdi, qword [rsi + 0x10]
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1401471a0], eax
jg 0x14009a7de
mov rbx, qword [sym.imp.Qt5Network.dll_struct_QMetaObject_const_QLocalSocket::staticMetaObject]
mov ecx, 0x18
call fcn.1400cdb70
mov qword [rsp + 0xe0], rax
mov dword [rax], 1
lea rcx, [0x14009c5d0]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rsi
mov qword [rsp + 0x40], rbx
lea rcx, [0x140147028]
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 2
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
mov r9, rsi
lea r8, [rsp + 0x68]
mov rdx, rdi
lea rcx, [rsp + 0x70]
call qword [sym.imp.Qt5Core.dll_private:_static_class_QMetaObject::Connection___cdecl_QObject::connectImpl_class_QObject_const____ptr64__void____ptr64____ptr64__class_QObject_const____ptr64__void____ptr64____ptr64__class_QtPrivate::QSlotObjectBase____ptr64__enum_Qt::ConnectionType__int_const____ptr64__struct_QMetaObject_const____ptr64_]
lea rcx, [rsp + 0x70]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QMetaObject::Connection::destructor_void____ptr64]
lea rax, [0x14009a8f0]
mov qword [rsp + 0xe0], rax
mov rax, qword [sym.imp.pia_commonlib.dll_public:_void___cdecl_LineBuffer::lineComplete_class_QByteArray_const____ptr64____ptr64]
mov qword [rsp + 0x78], rax
mov rbx, qword [sym.imp.pia_commonlib.dll_struct_QMetaObject_const_LineBuffer::staticMetaObject]
mov ecx, 0x18
call fcn.1400cdb70
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0xe0]
mov dword [rax], 1
lea rdx, [0x1400417e0]
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x20], rax
mov r9, rsi
lea r8, [rsp + 0x78]
lea rdx, [rsi + 0x20]
lea rcx, [rsp + 0x80]
call qword [sym.imp.Qt5Core.dll_private:_static_class_QMetaObject::Connection___cdecl_QObject::connectImpl_class_QObject_const____ptr64__void____ptr64____ptr64__class_QObject_const____ptr64__void____ptr64____ptr64__class_QtPrivate::QSlotObjectBase____ptr64__enum_Qt::ConnectionType__int_const____ptr64__struct_QMetaObject_const____ptr64_]
lea rcx, [rsp + 0x80]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QMetaObject::Connection::destructor_void____ptr64]
nop
mov rbx, qword [r14 + 8]
test rbx, rbx
je 0x14009a7cb
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14009a7cb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14009a7cb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, rsi
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rcx, [0x1401471a0]
call fcn.1400cdd3c
cmp dword [0x1401471a0], 0xffffffff
jne 0x14009a689
call fcn.14009c480
mov dword [0x140147028], eax
mov dword [0x14014702c], r15d
lea rcx, [0x1401471a0]
call fcn.1400cdcdc
jmp 0x14009a689