Function at 0x140007220
Capabilities:
Query or enumerate registry key

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x3a8
mov rbp, qword [sym.imp.advapi32.dll_RegEnumKeyW]
xor ebx, ebx
lea r14, str.0123456789abcdefvalidate_service_config
lea rsi, [rsp + 0x190]
mov rdi, rcx
mov rax, rsi
shr rax, 0x10
mov qword [rsp + 0x40], rax
movzx eax, si
mov dword [rsp + 0x4c], eax
jmp 0x140007278
test byte [0x14001a070], 2
jne 0x140007308
add ebx, 1
mov rcx, qword [rdi]
mov r9d, 0x104
mov r8, rsi
mov edx, ebx
call rbp
cmp eax, 0x103
je 0x140007570
test eax, eax
jne 0x140007268
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.140006720
test eax, eax
jne 0x140007570
test byte [0x14001a070], 8
lea r12, [0x14001a070]
lea r13, [rsp + 0x60]
jne 0x140007380
mov qword [rsp + 0x20], r13
xor r8d, r8d
mov rcx, qword [rdi]
mov rdx, rsi
mov r9d, 0x20019
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
mov r13, qword [rsp + 0x58]
test eax, eax
mov r15d, eax
je 0x140007338
test byte [0x14001a070], 2
jne 0x1400077e7
mov rcx, r13
call fcn.1400070c0
jmp 0x140007275
mov dword [rsp + 0x28], ebx
lea r9, str.Error__ld_reading_key__d_name___skipping_n
mov ecx, 1
mov dword [rsp + 0x20], eax
lea r8, str.scmdatabase_load_services
lea rdx, [0x14001a070]
call fcn.140005ec0
jmp 0x140007275
mov rax, qword [rsp + 0x60]
lea r9, [r13 + 0x60]
mov r8d, 1
mov dword [rsp + 0x54], 0
lea rdx, str.ImagePath
mov rcx, rax
mov qword [rsp + 0x38], rax
call fcn.1400093a0
test eax, eax
mov r15d, eax
je 0x140007590
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x1400072eb
cmp qword [rsp + 0x40], 0
je 0x1400077d2
mov rdx, 0xffffffffffffffff
mov rcx, rsi
call qword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov r8d, eax
lea rax, [0x14001bd6d]
test r8d, r8d
jne 0x14000749a
movzx eax, word [rsp + 0x190]
test ax, ax
je 0x140007824
xor edx, edx
nop word [rax + rax]
mov ecx, edx
add rdx, 1
cmp word [rsi + rdx*2], 0
jne 0x1400073c8
lea r10, [rsp + 0x182]
mov edx, 0x224c
mov r8, rsi
mov word [rsp + 0x60], dx
lea rdx, [rsp + 0x62]
jmp 0x14000742d
cmp ax, 9
je 0x1400074d8
cmp ax, 0xa
jne 0x1400074fb
mov eax, 0x6e5c
add rdx, 2
mov word [rdx - 2], ax
lea r9d, [rcx - 1]
test ecx, ecx
jle 0x140007470
cmp rdx, r10
ja 0x140007470
movzx eax, word [r8]
mov ecx, r9d
add r8, 2
cmp ax, 0xd
je 0x1400074c0
jbe 0x1400073f8
cmp ax, 0x22
je 0x140007558
cmp ax, 0x5c
jne 0x1400074ec
mov r9d, 0x5c5c
add rdx, 2
mov word [rdx - 2], r9w
lea r9d, [rcx - 1]
test ecx, ecx
jg 0x140007421
nop dword [rax + rax]
test r9d, r9d
mov byte [rdx], 0x22
jle 0x140007835
lea rax, [rdx + 4]
mov word [rdx + 1], 0x2e2e
mov byte [rdx + 3], 0x2e
lea r13, [rsp + 0x60]
mov byte [rax], 0
mov rcx, r13
call fcn.1400185e0
mov qword [rsp + 0x20], rax
lea r9, str.Loading_service__s_n
mov rdx, r12
mov ecx, 3
lea r8, str.scmdatabase_load_services
call fcn.140005ec0
jmp 0x1400072c5
mov r15d, 0x725c
add rdx, 2
mov word [rdx - 2], r15w
jmp 0x140007419
mov r13d, 0x745c
add rdx, 2
mov word [rdx - 2], r13w
jmp 0x140007419
lea r9d, [rax - 0x20]
cmp r9w, 0x5e
jbe 0x140007819
mov r9d, eax
mov byte [rdx], 0x5c
add rdx, 5
shr r9w, 0xc
and r9d, 0xf
movzx r9d, byte [r14 + r9]
mov byte [rdx - 4], r9b
mov r9d, eax
shr r9w, 8
and r9d, 0xf
movzx r9d, byte [r14 + r9]
mov byte [rdx - 3], r9b
mov r9d, eax
and eax, 0xf
shr r9w, 4
movzx eax, byte [r14 + rax]
and r9d, 0xf
movzx r9d, byte [r14 + r9]
mov byte [rdx - 1], al
mov byte [rdx - 2], r9b
jmp 0x140007419
mov r11d, 0x225c
add rdx, 2
mov word [rdx - 2], r11w
jmp 0x140007419
xor eax, eax
add rsp, 0x3a8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x38]
lea r9, [r13 + 0x68]
xor r8d, r8d
lea rdx, str.Group
call fcn.1400093a0
test eax, eax
mov r15d, eax
jne 0x14000736e
mov rcx, qword [rsp + 0x38]
lea r9, [r13 + 0x80]
mov r8d, 1
lea rdx, str.ObjectName
call fcn.1400093a0
test eax, eax
mov r15d, eax
jne 0x14000736e
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
lea r9, [r13 + 0x88]
lea rdx, str.DisplayName
call fcn.1400093a0
test eax, eax
mov r15d, eax
jne 0x14000736e
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
lea r9, [r13 + 0x98]
lea rdx, str.Description
call fcn.1400093a0
test eax, eax
mov r15d, eax
jne 0x14000736e
mov rcx, qword [rsp + 0x38]
lea r9, [r13 + 0xa0]
mov r8d, 1
lea rdx, str.DependOnService
call fcn.140009550
test eax, eax
mov r15d, eax
jne 0x14000736e
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
lea r9, [r13 + 0xa8]
lea rdx, str.DependOnGroup
call fcn.140009550
test eax, eax
mov r15d, eax
jne 0x14000736e
mov rcx, qword [rsp + 0x38]
lea r8, [r13 + 0x50]
lea rdx, str.Type
call fcn.1400096c0
test eax, eax
mov r15d, eax
jne 0x14000736e
mov rcx, qword [rsp + 0x38]
lea r8, [r13 + 0x54]
lea rdx, str.Start
call fcn.1400096c0
test eax, eax
mov r15d, eax
jne 0x14000736e
mov rcx, qword [rsp + 0x38]
lea r8, [r13 + 0x58]
lea rdx, str.ErrorControl
call fcn.1400096c0
test eax, eax
mov r15d, eax
jne 0x14000736e
mov rcx, qword [rsp + 0x38]
lea r8, [r13 + 0x70]
lea rdx, [0x14001c728]
call fcn.1400096c0
test eax, eax
mov r15d, eax
jne 0x14000736e
mov rcx, qword [rsp + 0x38]
lea r8, [r13 + 0x90]
lea rdx, str.PreshutdownTimeout
call fcn.1400096c0
test eax, eax
mov r15d, eax
jne 0x14000736e
mov rcx, qword [rsp + 0x38]
lea r15, [rsp + 0x54]
lea rdx, str.WOW64
mov r8, r15
call fcn.1400096c0
test eax, eax
jne 0x140007749
cmp dword [rsp + 0x54], 1
jne 0x140007749
mov dword [r13 + 0xc4], 1
mov rcx, qword [rsp + 0x38]
lea rdx, str.DelayedAutoStart
mov r8, r15
call fcn.1400096c0
test eax, eax
jne 0x140007773
cmp dword [rsp + 0x54], 1
jne 0x140007773
mov dword [r13 + 0xc8], 1
test byte [0x14001a070], 8
jne 0x1400079f8
mov r11, qword [r13 + 0xa0]
mov r10, rsi
mov esi, ebx
lea r15, str.______s_n
mov rbx, r11
movzx eax, byte [r12]
and eax, 8
cmp word [rbx], 0
je 0x140007871
test al, al
jne 0x14000783e
mov rax, rbx
jmp 0x1400077b9
add rax, 2
cmp word [rax], 0
jne 0x1400077b5
sub rax, rbx
sar rax, 1
add eax, 1
cdqe
add rax, rax
add rbx, rax
jmp 0x140007796
mov edx, dword [rsp + 0x4c]
lea rcx, [0x14001bd60]
call fcn.140005f20
jmp 0x14000749a
mov rcx, rsi
call fcn.140005f90
mov dword [rsp + 0x20], r15d
mov rdx, r12
mov ecx, 1
mov qword [rsp + 0x28], rax
lea r9, str.Error__ld_reading_registry_key_for_service__s___skipping_n
lea r8, str.scmdatabase_load_services
call fcn.140005ec0
jmp 0x1400072f8
mov byte [rdx], al
add rdx, 1
jmp 0x140007419
mov word [rsp + 0x60], 0x224c
lea rdx, [rsp + 0x62]
mov byte [rsp + 0x62], 0x22
lea rax, [rdx + 1]
jmp 0x14000748a
mov rcx, rbx
mov qword [rsp + 0x38], r10
call fcn.140005f90
mov r9, r15
mov rdx, r12
mov ecx, 3
mov qword [rsp + 0x20], rax
lea r8, str.load_service_config
call fcn.140005ec0
mov r10, qword [rsp + 0x38]
jmp 0x1400077b0
test al, al
mov ebx, esi
mov rsi, r10
je 0x1400078b7
mov rax, qword [r13 + 0xa8]
lea rdx, str._none_
mov ecx, 3
lea r9, str.Group_dependencies___:__s_n
lea r8, str.load_service_config
cmp word [rax], 0
lea rax, [0x14001bf44]
cmove rax, rdx
mov rdx, r12
mov qword [rsp + 0x20], rax
call fcn.140005ec0
mov r11, qword [r13 + 0xa8]
mov r10, rsi
mov esi, ebx
lea r15, str.______s_n
mov rbx, r11
cmp word [rbx], 0
je 0x14000792c
test byte [r12], 8
jne 0x1400078fc
mov rax, rbx
jmp 0x1400078e3
add rax, 2
cmp word [rax], 0
jne 0x1400078df
sub rax, rbx
sar rax, 1
add eax, 1
cdqe
add rax, rax
add rbx, rax
jmp 0x1400078cd
mov rcx, rbx
mov qword [rsp + 0x38], r10
call fcn.140005f90
mov r9, r15
mov rdx, r12
mov ecx, 3
mov qword [rsp + 0x20], rax
lea r8, str.load_service_config
call fcn.140005ec0
mov r10, qword [rsp + 0x38]
jmp 0x1400078da
mov rcx, qword [rsp + 0x60]
mov ebx, esi
mov rsi, r10
call qword [sym.imp.advapi32.dll_RegCloseKey]
cmp dword [r13 + 0x50], 0
jne 0x14000797d
test byte [0x14001a070], 8
je 0x1400072f8
mov rcx, rsi
call fcn.140005f90
lea r9, str.Even_the_service_type_not_set_for_service__s___skipping_n
mov rdx, r12
mov ecx, 3
mov qword [rsp + 0x20], rax
lea r8, str.scmdatabase_load_services
call fcn.140005ec0
jmp 0x1400072f8
mov rcx, r13
call fcn.140006bd0
test eax, eax
jne 0x1400079c8
test byte [0x14001a070], 2
je 0x1400072f8
mov rcx, rsi
call fcn.140005f90
lea r9, str.Invalid_configuration_of_service__s___skipping_n
mov rdx, r12
mov ecx, 1
mov qword [rsp + 0x20], rax
lea r8, str.scmdatabase_load_services
call fcn.140005ec0
jmp 0x1400072f8
mov eax, dword [r13 + 0x50]
mov qword [r13 + 0x10], rdi
mov rcx, r13
mov dword [r13 + 0x28], eax
lea rax, [rdi + 0x20]
mov qword [r13], rax
mov rax, qword [rdi + 0x28]
mov qword [r13 + 8], rax
mov qword [rax], r13
mov qword [rdi + 0x28], r13
call fcn.140007190
jmp 0x140007275
mov rcx, qword [r13 + 0x60]
call fcn.140005f90
lea r9, str.Image_path_____________s_n
mov rdx, r12
mov ecx, 3
mov qword [rsp + 0x20], rax
lea r8, str.load_service_config
call fcn.140005ec0
test byte [0x14001a070], 8
je 0x140007780
mov rcx, qword [r13 + 0x68]
call fcn.140005f90
lea r9, str.Group__________________s_n
mov rdx, r12
mov ecx, 3
mov qword [rsp + 0x20], rax
lea r8, str.load_service_config
call fcn.140005ec0
test byte [0x14001a070], 8
je 0x140007780
mov rcx, qword [r13 + 0x80]
call fcn.140005f90
lea r9, str.Service_account_name___s_n
mov rdx, r12
mov ecx, 3
mov qword [rsp + 0x20], rax
lea r8, str.load_service_config
call fcn.140005ec0
test byte [0x14001a070], 8
je 0x140007780
mov rcx, qword [r13 + 0x88]
call fcn.140005f90
lea r9, str.Display_name___________s_n
mov rdx, r12
mov ecx, 3
mov qword [rsp + 0x20], rax
lea r8, str.load_service_config
call fcn.140005ec0
test byte [0x14001a070], 8
je 0x140007780
mov rax, qword [r13 + 0xa0]
lea rdx, str._none_
mov ecx, 3
lea r9, str.Service_dependencies_:__s_n
lea r8, str.load_service_config
cmp word [rax], 0
lea rax, [0x14001bf44]
cmove rax, rdx
mov rdx, r12
mov qword [rsp + 0x20], rax
call fcn.140005ec0
jmp 0x140007780