Function at 0x1400230e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x290
mov rax, qword [0x14006d0e0]
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.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400230cf
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.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140023032
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.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x140022fe4
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
jbe 0x140022fc0
lea ecx, [rdi + 0xd]
jmp 0x140022fe4
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140022fdd
test al, 1
jne 0x140022fd6
shr rax, 1
cmp word [rsp + rax*2 + 0x6e], di
je 0x140022fe2
mov ecx, SafeArrayDestroy
jmp 0x140022fe4
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 0x140023088
lea rax, [rbx + 0x68]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x48]
lea rax, [0x1400243b0]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x50], rax
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x140023038
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x27c], eax
mov edi, dword [rbx + 0x27c]
test rsi, rsi
je 0x14002304c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x2c8]
test rbp, rbp
je 0x140023062
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x2c0]
mov eax, edi
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400271a0
add rsp, 0x290
pop r14
pop rdi
pop rbx
ret
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, eax
test eax, eax
jns 0x1400230b3
cmp eax, 0x80010106
jne 0x14002303e
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x1400230b7
jmp 0x14002303e
mov byte [rbx + 0x62], 1
mov edx, r14d
mov rcx, rbx
call fcn.140022000
mov edi, eax
mov dword [rbx + 0x27c], eax
jmp 0x14002303e
mov dword [rbx + 0x27c], eax
jmp 0x14002306c
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, [0x14004a808]
mov qword [rsp + 0x28], rax
lea rax, [0x14004a810]
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.140002020
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.140002150
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.140001390
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140008ac0
movzx edx, ax
mov rcx, rbx
call fcn.1400084a0
mov rcx, rbx
call fcn.140007ec0
lea rcx, [rsp + 0xc8]
call fcn.14000e9d0
nop
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0xc8], rax
lea rcx, [rsp + 0xc8]
call fcn.140025c9c
nop
mov rcx, rsi
call fcn.140023c10
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 0x140022ed0