Function at 0x140023fa0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x290
mov rax, qword [0x1400700d0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r14d, edx
lea rax, [rsp + 0x38]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor edi, edi
lea rdx, str.AppID
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x38], rdi
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002419f
mov qword [rsp + 0x2c0], rbp
lea rax, [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
lea rdx, str.11AC3232_E7D7_49CD_ABFE_501700100B3A
mov rcx, rbp
mov qword [rsp + 0x2c8], rsi
mov r9d, 0x20019
mov qword [rsp + 0x40], rdi
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov esi, edi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140024102
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x30], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.LocalService
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x1400240b4
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
jbe 0x140024090
lea ecx, [rdi + 0xd]
jmp 0x1400240b4
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400240ad
test al, 1
jne 0x1400240a6
shr rax, 1
cmp word [rsp + rax*2 + 0x6e], di
je 0x1400240b2
mov ecx, SafeArrayGetDim
jmp 0x1400240b4
mov word [rsp + 0x70], di
mov ecx, edi
test ecx, ecx
mov eax, edi
mov edx, 1
cmove eax, edx
mov dword [rbx + 0x28c], eax
test eax, eax
je 0x140024158
lea rax, [rbx + 0x68]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x48]
lea rax, [0x140024eb0]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x50], rax
call qword [sym.imp.api_ms_win_service_core_l1_1_0.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x140024108
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbx + 0x27c], eax
mov edi, dword [rbx + 0x27c]
test rsi, rsi
je 0x14002411c
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rsi, qword [rsp + 0x2c8]
test rbp, rbp
je 0x140024132
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rbp, qword [rsp + 0x2c0]
mov eax, edi
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140027c60
add rsp, 0x290
pop r14
pop rdi
pop rbx
ret
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoInitializeEx]
mov edi, eax
test eax, eax
jns 0x140024183
cmp eax, 0x80010106
jne 0x14002410e
lea rcx, str.Mscoree.dll
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
jne 0x140024187
jmp 0x14002410e
mov byte [rbx + 0x62], 1
mov edx, r14d
mov rcx, rbx
call fcn.140023860
mov edi, eax
mov dword [rbx + 0x27c], eax
jmp 0x14002410e
mov dword [rbx + 0x27c], eax
jmp 0x14002413c
mov r11, rsp
push rdi
sub rsp, 0x130
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov edi, edx
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x150], ebx
lea rax, [0x14004c818]
mov qword [rsp + 0x28], rax
lea rax, [0x14004c820]
mov qword [rsp + 0x38], rax
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [r11 - 0x70], rax
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.140001fe0
mov rax, qword [rsp + 0x28]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x28], rax
mov rax, qword [rsp + 0x28]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x24], edx
lea rcx, [rsp + 0x40]
call fcn.140002110
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0xa8], rbx
mov dword [rsp + 0xb0], ebx
mov rax, qword [rsp + 0x28]
movsxd rcx, dword [rax + 4]
lea rax, vtable.Logger.0
mov qword [rsp + rcx + 0x28], rax
mov rax, qword [rsp + 0x28]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa0]
mov dword [rsp + rcx + 0x24], edx
mov dword [rsp + 0xb8], 0xa
lea rdx, str.Start__
lea rcx, [rsp + 0x38]
call fcn.140001350
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140008a80
movzx edx, ax
mov rcx, rbx
call fcn.1400084b0
mov rcx, rbx
call fcn.140007eb0
lea rcx, [rsp + 0xc8]
call fcn.14000eb20
nop
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0xc8], rax
lea rcx, [rsp + 0xc8]
call fcn.14002675c
nop
mov rcx, rsi
call fcn.140024b60
mov edx, edi
mov rcx, rsi
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
jmp 0x140023fa0