Function at 0x1400b9560
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x220
mov rax, qword [0x140138010]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov r13, rdx
mov dword [rsp + 0x60], ecx
call qword [sym.imp.pia_commonlib.dll_void___cdecl_setUtf8LocaleCodec_void_]
mov cl, 1
call qword [sym.imp.pia_commonlib.dll_public:_static_void___cdecl_Logger::initialize_bool_]
call qword [sym.imp.pia_commonlib.dll_void___cdecl_initKApps_void_]
mov r12d, 4
mov rax, qword gs:[0x58]
add r12, qword [rax]
mov eax, dword [r12]
cmp dword [0x140147324], eax
jg 0x1400b9a82
lea r14, str.D:_a_pia_desktop_pia_desktop_daemon_src_win_win_main.cpp
lea r15, [0x140101ab8]
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
test eax, eax
je 0x1400b96da
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r15
mov r8d, 0x1f
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::SourceLocation::constructor_class_kapps::core::BasicStringSlice_char__struct_std::char_traits_char___const____ptr64__int____ptr64]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x90], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rsp + 0xa0], xmm1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0xd8]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::constructor_class_kapps::core::SourceLocation__enum_kapps::core::LogMessage::Level__class_kapps::core::LogCategory_const____ptr64____ptr64]
mov rbx, rax
cmp byte [rax + 0x128], 0
je 0x1400b9669
mov rcx, rax
call qword [sym.imp.kapps_core.dll_private:_void___cdecl_kapps::core::LogWriter::prepareForInsert_void____ptr64]
lea rdx, str.CoInitializeEx_failed_with_error_0x
lea rcx, [rbx + 0x40]
call fcn.140008d80
mov r8d, 0x10
mov edx, esi
lea rcx, [rsp + 0x68]
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::number_long_int__int_]
mov rsi, rax
cmp byte [rbx + 0x128], 0
je 0x1400b96c0
mov rcx, rbx
call qword [sym.imp.kapps_core.dll_private:_void___cdecl_kapps::core::LogWriter::prepareForInsert_void____ptr64]
mov rdx, rsi
lea rcx, [rbx + 0x40]
call fcn.14000ccf0
cmp byte [rbx + 0x128], 0
je 0x1400b96c0
mov rcx, rbx
call qword [sym.imp.kapps_core.dll_private:_void___cdecl_kapps::core::LogWriter::prepareForInsert_void____ptr64]
lea rcx, [rbx + 0x40]
lea rdx, [0x1400eb5b4]
call fcn.140008d80
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0xd8]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::destructor_void____ptr64]
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx - 1]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov esi, eax
test eax, eax
je 0x1400b9801
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r15
lea r8d, [rbx + 0x26]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::SourceLocation::constructor_class_kapps::core::BasicStringSlice_char__struct_std::char_traits_char___const____ptr64__int____ptr64]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x90], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rsp + 0xa0], xmm1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0xd8]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::constructor_class_kapps::core::SourceLocation__enum_kapps::core::LogMessage::Level__class_kapps::core::LogCategory_const____ptr64____ptr64]
mov rbx, rax
cmp byte [rax + 0x128], 0
je 0x1400b978e
mov rcx, rax
call qword [sym.imp.kapps_core.dll_private:_void___cdecl_kapps::core::LogWriter::prepareForInsert_void____ptr64]
lea rdx, str.CoInitializeSecurity_failed_with_error_0x
lea rcx, [rbx + 0x40]
call fcn.140008d80
mov r8d, 0x10
mov edx, esi
lea rcx, [rsp + 0x68]
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::number_long_int__int_]
mov rsi, rax
cmp byte [rbx + 0x128], 0
je 0x1400b97e5
mov rcx, rbx
call qword [sym.imp.kapps_core.dll_private:_void___cdecl_kapps::core::LogWriter::prepareForInsert_void____ptr64]
mov rdx, rsi
lea rcx, [rbx + 0x40]
call fcn.14000ccf0
cmp byte [rbx + 0x128], 0
je 0x1400b97e5
mov rcx, rbx
call qword [sym.imp.kapps_core.dll_private:_void___cdecl_kapps::core::LogWriter::prepareForInsert_void____ptr64]
lea rcx, [rbx + 0x40]
lea rdx, [0x1400eb5b4]
call fcn.140008d80
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0xd8]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::destructor_void____ptr64]
xor ebx, ebx
mov eax, dword [r12]
cmp dword [0x1401473bc], eax
jg 0x1400b9af4
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
inc rax
test rax, 0xfffffffffffffffe
jne 0x1400b9933
lea rcx, str.PrivateInternetAccessService
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x1400b9a7b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, eax
sub ecx, 0x420
je 0x1400b99ff
cmp ecx, 7
je 0x1400b9933
lea rax, str.D:_a_pia_desktop_pia_desktop_daemon_src_win_win_service.cpp
mov qword [rsp + 0x50], rax
lea rax, [0x14010284b]
mov qword [rsp + 0x58], rax
mov r8d, 0x96
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::SourceLocation::constructor_class_kapps::core::BasicStringSlice_char__struct_std::char_traits_char___const____ptr64__int____ptr64]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x90], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rsp + 0xa0], xmm1
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0xd8]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::constructor_class_kapps::core::SourceLocation__enum_kapps::core::LogMessage::Level__class_kapps::core::LogCategory_const____ptr64____ptr64]
mov rdi, rax
cmp byte [rax + 0x128], 0
je 0x1400b98e9
mov rcx, rax
call qword [sym.imp.kapps_core.dll_private:_void___cdecl_kapps::core::LogWriter::prepareForInsert_void____ptr64]
lea rdx, str.Unknown_service_start_error:
lea rcx, [rdi + 0x40]
call fcn.140008d80
mov edx, esi
lea rcx, [rsp + 0x68]
call qword [sym.imp.Qt5Core.dll_class_QString___cdecl_qt_error_string_int_]
mov rsi, rax
cmp byte [rdi + 0x128], 0
je 0x1400b9918
mov rcx, rdi
call qword [sym.imp.kapps_core.dll_private:_void___cdecl_kapps::core::LogWriter::prepareForInsert_void____ptr64]
mov rdx, rsi
lea rcx, [rdi + 0x40]
call fcn.14000ccf0
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0xd8]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::destructor_void____ptr64]
nop
call qword [sym.imp.pia_commonlib.dll_public:_static_void___cdecl_Path::initializePreApp_void_]
mov r9d, 0x50f02
mov r8, r13
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QCoreApplication::constructor_int____ptr64__char____ptr64____ptr64__int____ptr64]
nop
call qword [sym.imp.pia_commonlib.dll_public:_static_void___cdecl_Path::initializePostApp_void_]
xor edx, edx
lea rcx, [rsp + 0x68]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QObject::constructor_class_QObject____ptr64____ptr64]
nop
lea rax, [rsp + 0x78]
mov qword [0x140147030], rax
lea rax, vtable.WinConsole.0
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x80]
call qword [sym.imp.Qt5Core.dll_public:_static_class_QStringList___cdecl_QCoreApplication::arguments_void_]
nop
lea rcx, [rsp + 0x68]
call fcn.1400aa950
mov ebx, eax
lea rcx, [rsp + 0x80]
call fcn.140008f50
mov qword [0x140147030], 0
lea rcx, [rsp + 0x68]
call qword [sym.imp.Qt5Core.dll_public_virtual:_void___cdecl_QObject::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.Qt5Core.dll_public_virtual:_void___cdecl_QCoreApplication::destructor_void____ptr64]
mov eax, ebx
jmp 0x1400b99d2
mov eax, 1
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.1400cdb50
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r15
mov r8d, 0x2f
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::SourceLocation::constructor_class_kapps::core::BasicStringSlice_char__struct_std::char_traits_char___const____ptr64__int____ptr64]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x90], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rsp + 0xa0], xmm1
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0xd8]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::constructor_class_kapps::core::SourceLocation__enum_kapps::core::LogMessage::Level__class_kapps::core::LogCategory_const____ptr64____ptr64]
nop
lea rdx, str.Service_is_already_running
mov rcx, rax
call qword [sym.imp.kapps_core.dll_public:_class_kapps::core::LogWriter____ptr64___cdecl_kapps::core::LogWriter::macroParams_char_const____ptr64____ptr64]
nop
lea rcx, [rsp + 0xd8]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::destructor_void____ptr64]
jmp 0x1400b99cd
xor eax, eax
jmp 0x1400b99d2
lea rcx, [0x140147324]
call fcn.1400cdd3c
cmp dword [0x140147324], 0xffffffff
jne 0x1400b95c9
lea r14, str.D:_a_pia_desktop_pia_desktop_daemon_src_win_win_main.cpp
mov qword [rsp + 0x50], r14
lea r15, [0x140101ab8]
mov qword [rsp + 0x58], r15
lea rax, str.win.main
mov qword [rsp + 0x68], rax
lea rax, [0x140101a78]
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x50]
lea rcx, [0x140147328]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogCategory::constructor_class_kapps::core::BasicStringSlice_char__struct_std::char_traits_char___const____ptr64__class_kapps::core::BasicStringSlice_char__struct_std::char_traits_char___const____ptr64____ptr64]
nop
lea rcx, [0x140147324]
call fcn.1400cdcdc
jmp 0x1400b95d7
lea rcx, [0x1401473bc]
call fcn.1400cdd3c
cmp dword [0x1401473bc], 0xffffffff
jne 0x1400b9811
lea rax, [0x1400c1b90]
mov qword [0x140141df8], rax
mov qword [0x140141e00], rbx
mov qword [0x140141e08], rbx
lea rcx, [0x1401473bc]
call fcn.1400cdcdc
nop
jmp 0x1400b9811