Function at 0x140003160
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push rbp
push rdi
lea rbp, [rsp - 0x7f8]
sub rsp, 0x8f8
mov rax, qword [0x140036040]
xor rax, rsp
mov qword [rbp + 0x7e0], rax
mov r9d, 0x64
lea r8, [0x140036ae0]
mov rdi, rcx
lea edx, [r9 + 3]
call qword [sym.imp.USER32.dll_LoadStringW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x1400031b5
mov eax, 0xffffffff
jmp 0x1400037ab
xor edx, edx
mov qword [rsp + 0x918], rbx
mov r9b, 1
mov qword [rsp + 0x920], rsi
xor r8d, r8d
lea ecx, [rdx + 0xe]
call qword [sym.imp.dui70.dll_InitProcessPriv]
mov ecx, 2
call qword [sym.imp.dui70.dll_InitThread]
call qword [sym.imp.dui70.dll_RegisterAllControls]
mov edx, 0x6b
mov rcx, rdi
call qword [sym.imp.USER32.dll_LoadIconW]
xor esi, esi
lea rcx, str.Rectify11
mov r8, rax
xor edx, edx
lea rax, [0x140036ad8]
mov r9d, 0x80000000
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], 0x10080080
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], 0x2d0
mov dword [rsp + 0x28], 0x370
mov dword [rsp + 0x20], 0x80000000
call qword [sym.imp.dui70.dll_public:_static_long_int___cdecl_DirectUI::NativeHWNDHost::Create_unsigned_short_int_const____ptr64__struct_HWND______ptr64__struct_HICON______ptr64__int__int__int__int__int__int__unsigned_int__class_DirectUI::NativeHWNDHost____ptr64____ptr64_]
mov rcx, qword [0x140036ad8]
call qword [sym.imp.dui70.dll_public:_struct_HWND______ptr64___cdecl_DirectUI::NativeHWNDHost::GetHWND_void____ptr64]
lea r8, [rbp - 0x60]
mov rcx, 0xffffffff80000001
lea rdx, str.SOFTWARERectify11
mov qword [0x140036bb8], rax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x140003286
lea r8, str.RectifyStart_application
lea rdx, str.Failed_to_create_rectify11_key
jmp 0x14000334c
mov rcx, qword [rbp - 0x60]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.ApplyThemeOnNextRun
lea rax, [rbp - 0x20]
mov dword [rbp - 0x40], 0x800
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400032d3
cmp eax, 2
je 0x14000335f
lea r8, str.RectifyStart_application
lea rdx, str.Failed_to_query_ApplyThemeOnNextRun_registry_value._The_rectify11_theme_may_not_be_applied_correctly.
jmp 0x14000334c
xor edx, edx
lea rax, [rbp - 0x48]
lea r9, [0x14002f430]
mov qword [rsp + 0x20], rax
lea rcx, [0x14002f2b8]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14000333e
test eax, eax
jne 0x14000333e
mov rax, qword [rcx]
lea rdx, [rbp - 0x20]
call qword [rax + 0x38]
test eax, eax
jns 0x140003321
lea r8, str.RectifyStart_application
lea rdx, str.Failed_to_apply_the_rectify11_theme.
jmp 0x14000334c
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x60]
lea rdx, str.ApplyThemeOnNextRun
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x14000335f
lea r8, str.RectifyStart_application:_Critical_error
lea rdx, str.Failed_to_create_CRectifyUtil_COM_Object_when_trying_to_apply_theme._Please_rerun_the_Rectify11_installer._If_that_doesnt_work__report_an_issue_on_github.
mov rcx, qword [0x140036bb8]
mov r9d, 0x10
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [0x140036bb8]
lea rdx, [rbp - 0x38]
call qword [sym.imp.USER32.dll_GetWindowRect]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [rbp - 0x38]
sub ecx, dword [rbp - 0x30]
add eax, ecx
mov ecx, 1
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [rbp - 0x34]
mov r8d, ebx
sub ecx, dword [rbp - 0x2c]
add eax, ecx
mov dword [rsp + 0x30], 5
mov rcx, qword [0x140036bb8]
cdq
sub eax, edx
mov dword [rsp + 0x28], esi
sar eax, 1
xor edx, edx
mov r9d, eax
mov dword [rsp + 0x20], esi
call qword [sym.imp.USER32.dll_SetWindowPos]
xor r9d, r9d
mov qword [rbp - 0x50], rsi
xor r8d, r8d
mov qword [rsp + 0x20], rsi
xor edx, edx
lea rcx, [rbp - 0x50]
call qword [sym.imp.dui70.dll_public:_static_long_int___cdecl_DirectUI::DUIXmlParser::Create_class_DirectUI::DUIXmlParser____ptr64____ptr64__class_DirectUI::Value____ptr64____cdecl___unsigned_short_int_const____ptr64__void____ptr64___void____ptr64__void____cdecl___unsigned_short_int_const____ptr64__unsigned_short_int_const____ptr64__int__void____ptr64___void____ptr64_]
mov rcx, qword [rbp - 0x50]
lea rdx, [0x1400037d0]
xor r8d, r8d
call qword [sym.imp.dui70.dll_public:_void___cdecl_DirectUI::DUIXmlParser::SetParseErrorCallback_void____cdecl___unsigned_short_int_const____ptr64__unsigned_short_int_const____ptr64__int__void____ptr64___void____ptr64____ptr64]
mov rcx, qword [rbp - 0x50]
mov r9, rdi
mov r8, rdi
mov edx, 0x82
call qword [sym.imp.dui70.dll_public:_long_int___cdecl_DirectUI::DUIXmlParser::SetXMLFromResource_unsigned_int__struct_HINSTANCE______ptr64__struct_HINSTANCE______ptr64____ptr64]
mov rcx, qword [0x140036ad8]
mov dword [rbp - 0x3c], esi
call qword [sym.imp.dui70.dll_public:_struct_HWND______ptr64___cdecl_DirectUI::NativeHWNDHost::GetHWND_void____ptr64]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov dl, 1
lea rax, [0x140036bb0]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x3c]
mov qword [rsp + 0x20], rax
call qword [sym.imp.dui70.dll_public:_static_long_int___cdecl_DirectUI::HWNDElement::Create_struct_HWND______ptr64__bool__unsigned_int__class_DirectUI::Element____ptr64__unsigned_long_int____ptr64__class_DirectUI::Element____ptr64____ptr64_]
mov r8, qword [0x140036bb0]
lea rax, [rbp - 0x58]
mov rcx, qword [rbp - 0x50]
lea rdx, str.WizardMain
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov qword [rsp + 0x20], rsi
mov qword [rbp - 0x58], rsi
call qword [sym.imp.dui70.dll_public:_long_int___cdecl_DirectUI::DUIXmlParser::CreateElement_unsigned_short_int_const____ptr64__class_DirectUI::Element____ptr64__class_DirectUI::Element____ptr64__unsigned_long_int____ptr64__class_DirectUI::Element____ptr64____ptr64____ptr64]
mov rcx, qword [rbp - 0x58]
test rcx, rcx
jne 0x14000349d
lea r9d, [rcx + 0x10]
mov rcx, qword [0x140036bb8]
lea r8, str.Error_while_creating_main_window
lea rdx, str.A_error_has_occured_while_creating_the_main_element._The_application_will_now_close.
call qword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0xffffffff
jmp 0x14000379b
mov qword [rsp + 0x928], r14
mov dl, 1
mov qword [rsp + 0x8f0], r15
call qword [sym.imp.dui70.dll_public:_long_int___cdecl_DirectUI::Element::SetVisible_bool____ptr64]
mov edx, dword [rbp - 0x3c]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.dui70.dll_public:_void___cdecl_DirectUI::Element::EndDefer_unsigned_long_int____ptr64]
mov rdx, qword [rbp - 0x58]
mov rcx, qword [0x140036ad8]
call qword [sym.imp.dui70.dll_public:_void___cdecl_DirectUI::NativeHWNDHost::Host_class_DirectUI::Element____ptr64____ptr64]
mov rcx, qword [0x140036ad8]
mov edx, 5
call qword [sym.imp.dui70.dll_public:_void___cdecl_DirectUI::NativeHWNDHost::ShowWindow_int____ptr64]
lea rcx, str.SXWizardCheckbox
call qword [sym.imp.dui70.dll_StrToID]
mov rcx, qword [rbp - 0x58]
movzx edx, ax
call qword [sym.imp.dui70.dll_public:_class_DirectUI::Element____ptr64___cdecl_DirectUI::Element::FindDescendent_unsigned_short_int____ptr64]
lea rcx, str.SXWizardDefaultButton
mov r14, rax
call qword [sym.imp.dui70.dll_StrToID]
mov rcx, qword [rbp - 0x58]
movzx edx, ax
call qword [sym.imp.dui70.dll_public:_class_DirectUI::Element____ptr64___cdecl_DirectUI::Element::FindDescendent_unsigned_short_int____ptr64]
lea rcx, str.BtnOpenCpl
mov rbx, rax
call qword [sym.imp.dui70.dll_StrToID]
mov rcx, qword [rbp - 0x58]
movzx edx, ax
call qword [sym.imp.dui70.dll_public:_class_DirectUI::Element____ptr64___cdecl_DirectUI::Element::FindDescendent_unsigned_short_int____ptr64]
lea rcx, str.BtnToggleTray
mov rdi, rax
call qword [sym.imp.dui70.dll_StrToID]
mov rcx, qword [0x140036bb0]
movzx edx, ax
call qword [sym.imp.dui70.dll_public:_class_DirectUI::Element____ptr64___cdecl_DirectUI::Element::FindDescendent_unsigned_short_int____ptr64]
mov dl, 1
mov rcx, r14
mov rsi, rax
call qword [sym.imp.dui70.dll_public:_long_int___cdecl_DirectUI::TouchCheckBox::SetToggleOnClick_bool____ptr64]
mov ecx, 0x48
call fcn.14000ef30
lea rcx, [0x140002d50]
mov qword [rsp + 0x68], rcx
lea r15, vtable.std::_Func_impl_no_alloc_void____cdecl___class_DirectUI::Element____ptr64__struct_DirectUI::Event____ptr64___void__class_DirectUI::Element____ptr64__struct_DirectUI::Event____ptr64_.0
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], r15
mov qword [rbp - 0x68], rcx
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.140002c30
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.dui70.dll_public:_long_int___cdecl_DirectUI::Element::AddListener_struct_DirectUI::IElementListener____ptr64____ptr64]
mov ecx, 0x48
call fcn.14000ef30
lea rcx, [0x140002db0]
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], rcx
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x60]
mov qword [rbp - 0x68], rcx
mov rcx, rax
call fcn.140002c30
mov rdx, rax
mov rcx, r14
call qword [sym.imp.dui70.dll_public:_long_int___cdecl_DirectUI::Element::AddListener_struct_DirectUI::IElementListener____ptr64____ptr64]
mov ecx, 0x48
call fcn.14000ef30
lea rcx, [0x140002ee0]
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], rcx
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x60]
mov qword [rbp - 0x68], rcx
mov rcx, rax
call fcn.140002c30
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.dui70.dll_public:_long_int___cdecl_DirectUI::Element::AddListener_struct_DirectUI::IElementListener____ptr64____ptr64]
mov ecx, 0x48
call fcn.14000ef30
lea rcx, [0x140003000]
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], rcx
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x60]
mov qword [rbp - 0x68], rcx
mov rcx, rax
call fcn.140002c30
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.dui70.dll_public:_long_int___cdecl_DirectUI::Element::AddListener_struct_DirectUI::IElementListener____ptr64____ptr64]
lea rax, [rbp - 0x60]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r15, qword [rsp + 0x8f0]
mov dword [rbp - 0x40], 0x1fe
test eax, eax
jne 0x1400036dc
xor edx, edx
lea rcx, [rbp - 0x20]
mov r8d, 0x1fe
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rbp - 0x60]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.Rectify11TrayTool
lea rax, [rbp - 0x20]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
jmp 0x1400036e8
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov byte [0x140036ba8], al
call fcn.140002f70
lea rax, [rbp - 0x60]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rbp - 0x40], 0x1fe
test eax, eax
jne 0x140003765
xor edx, edx
lea rcx, [rbp - 0x20]
mov r8d, 0x1fe
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rbp - 0x60]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.RectifyStart
lea rax, [rbp - 0x20]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
jmp 0x140003771
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
movzx edx, al
mov rcx, r14
call qword [sym.imp.dui70.dll_public:_long_int___cdecl_DirectUI::TouchCheckBox::SetCheckedState_enum_DirectUI::CheckedStateFlags____ptr64]
call qword [sym.imp.dui70.dll_StartMessagePump]
xor ecx, ecx
call qword [sym.imp.dui70.dll_UnInitProcessPriv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov r14, qword [rsp + 0x928]
xor eax, eax
mov rbx, qword [rsp + 0x918]
mov rsi, qword [rsp + 0x920]
mov rcx, qword [rbp + 0x7e0]
xor rcx, rsp
call fcn.14000ef10
add rsp, 0x8f8
pop rdi
pop rbp
ret