Function at 0x406910
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
lea esi, [ebp - 0x220]
push ebx
mov ebx, eax
mov eax, esi
shr eax, 0x10
sub esp, 0x37c
mov dword [ebp - 0x364], eax
jmp 0x406948
test byte [0x418070], 2
jne 0x4069f0
add edi, 1
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov eax, dword [ebx]
mov dword [esp], eax
call sub.advapi32.dll_RegEnumKeyW
sub esp, 0x10
cmp eax, 0x103
je 0x406c98
test eax, eax
jne 0x406938
lea eax, [ebp - 0x354]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00405e50
test eax, eax
jne 0x406c98
test byte [0x418070], 8
jne 0x406a98
lea eax, [ebp - 0x350]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov eax, dword [ebx]
mov dword [esp], eax
call sub.advapi32.dll_RegOpenKeyExW
sub esp, 0x14
mov edx, eax
test eax, eax
je 0x406a28
test byte [0x418070], 2
jne 0x406f9d
mov eax, dword [ebp - 0x354]
mov dword [esp], eax
call fcn.004066e0
jmp 0x406945
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Error__d_reading_key__d_name___skipping_n
mov dword [esp + 8], str.scmdatabase_load_services
mov dword [esp + 4], 0x418070
mov dword [esp], 1
call fcn.00405aa0
jmp 0x406945
mov eax, dword [ebp - 0x354]
mov ecx, dword [ebp - 0x350]
mov dword [esp + 8], 1
mov dword [esp + 4], str.ImagePath
mov dword [ebp - 0x35c], eax
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp], ecx
mov dword [ebp - 0x34c], 0
mov dword [ebp - 0x360], ecx
call fcn.004093d0
mov edx, eax
test eax, eax
je 0x406ca8
mov eax, dword [ebp - 0x350]
mov dword [ebp - 0x35c], edx
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
push edx
mov edx, dword [ebp - 0x35c]
jmp 0x4069cc
mov eax, dword [ebp - 0x364]
test eax, eax
je 0x406f83
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x419c2d
sub esp, 8
test eax, eax
jne 0x406bc7
cmp word [ebp - 0x220], 0
je 0x406feb
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x406ad8
mov eax, 0x224c
mov dword [ebp - 0x360], edi
lea ecx, [ebp - 0x34a]
mov word [ebp - 0x34c], ax
mov dword [ebp - 0x368], ebx
mov dword [ebp - 0x35c], esi
jmp 0x406b43
cmp ax, 9
je 0x406c10
cmp ax, 0xa
jne 0x406c2e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
test edx, edx
jle 0x406b90
lea ebx, [ebp - 0x22a]
cmp ecx, ebx
ja 0x406b90
mov edx, eax
add dword [ebp - 0x35c], 2
mov eax, dword [ebp - 0x35c]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x406bf8
jbe 0x406b10
cmp ax, 0x22
je 0x406c80
cmp ax, 0x5c
jne 0x406c21
mov ebx, 0x5c5c
add ecx, 2
lea eax, [edx - 1]
mov word [ecx - 2], bx
test edx, edx
jg 0x406b37
mov esi, esi
lea edi, [edi]
mov edi, dword [ebp - 0x360]
mov ebx, dword [ebp - 0x368]
mov byte [ecx], 0x22
test eax, eax
jle 0x407001
mov word [ecx + 1], 0x2e2e
lea eax, [ecx + 4]
mov byte [ecx + 3], 0x2e
mov byte [eax], 0
lea eax, [ebp - 0x34c]
mov dword [esp], eax
call fcn.00416940
mov edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Loading_service__s_n
mov dword [esp + 8], str.scmdatabase_load_services
mov dword [esp + 4], 0x418070
mov dword [esp], 3
call fcn.00405aa0
jmp 0x40699b
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x406b30
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x406b30
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x406fe1
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefvalidate_service_config]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefvalidate_service_config]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefvalidate_service_config]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefvalidate_service_config]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x406b30
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x406b30
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x35c]
mov ecx, dword [ebp - 0x360]
mov dword [esp + 8], 0
mov dword [esp + 4], str.Group
add eax, 0x44
mov dword [esp], ecx
mov dword [esp + 0xc], eax
call fcn.004093d0
mov edx, eax
test eax, eax
jne 0x406a73
mov eax, dword [ebp - 0x35c]
mov ecx, dword [ebp - 0x360]
mov dword [esp + 8], 1
mov dword [esp + 4], str.ObjectName
add eax, 0x50
mov dword [esp], ecx
mov dword [esp + 0xc], eax
call fcn.004093d0
mov edx, eax
test eax, eax
jne 0x406a73
mov eax, dword [ebp - 0x35c]
mov ecx, dword [ebp - 0x360]
mov dword [esp + 8], 0
mov dword [esp + 4], str.DisplayName
add eax, 0x54
mov dword [esp], ecx
mov dword [esp + 0xc], eax
call fcn.004093d0
mov edx, eax
test eax, eax
jne 0x406a73
mov eax, dword [ebp - 0x35c]
mov ecx, dword [ebp - 0x360]
mov dword [esp + 8], 0
mov dword [esp + 4], str.Description
add eax, 0x5c
mov dword [esp], ecx
mov dword [esp + 0xc], eax
call fcn.004093d0
mov edx, eax
test eax, eax
jne 0x406a73
mov eax, dword [ebp - 0x35c]
mov ecx, dword [ebp - 0x360]
mov dword [esp + 8], 1
mov dword [esp + 4], str.DependOnService
add eax, 0x60
mov dword [esp], ecx
mov dword [esp + 0xc], eax
call fcn.00409610
mov edx, eax
test eax, eax
jne 0x406a73
mov eax, dword [ebp - 0x35c]
mov ecx, dword [ebp - 0x360]
mov dword [esp + 8], 0
mov dword [esp + 4], str.DependOnGroup
add eax, 0x64
mov dword [esp], ecx
mov dword [esp + 0xc], eax
call fcn.00409610
mov edx, eax
test eax, eax
jne 0x406a73
mov eax, dword [ebp - 0x35c]
mov ecx, dword [ebp - 0x360]
mov dword [esp + 4], str.Type
add eax, 0x34
mov dword [esp], ecx
mov dword [esp + 8], eax
call fcn.004097e0
mov edx, eax
test eax, eax
jne 0x406a73
mov eax, dword [ebp - 0x35c]
mov ecx, dword [ebp - 0x360]
mov dword [esp + 4], str.Start
add eax, 0x38
mov dword [esp], ecx
mov dword [esp + 8], eax
call fcn.004097e0
mov edx, eax
test eax, eax
jne 0x406a73
mov eax, dword [ebp - 0x35c]
mov ecx, dword [ebp - 0x360]
mov dword [esp + 4], str.ErrorControl
add eax, 0x3c
mov dword [esp], ecx
mov dword [esp + 8], eax
call fcn.004097e0
mov edx, eax
test eax, eax
jne 0x406a73
mov eax, dword [ebp - 0x35c]
mov ecx, dword [ebp - 0x360]
mov dword [esp + 4], 0x41a580
add eax, 0x48
mov dword [esp], ecx
mov dword [esp + 8], eax
call fcn.004097e0
mov edx, eax
test eax, eax
jne 0x406a73
mov eax, dword [ebp - 0x35c]
mov ecx, dword [ebp - 0x360]
mov dword [esp + 4], str.PreshutdownTimeout
add eax, 0x58
mov dword [esp], ecx
mov dword [esp + 8], eax
call fcn.004097e0
mov edx, eax
test eax, eax
jne 0x406a73
mov ecx, dword [ebp - 0x360]
lea edx, [ebp - 0x34c]
mov dword [esp + 4], str.WOW64
mov dword [esp + 8], edx
mov dword [esp], ecx
call fcn.004097e0
lea edx, [ebp - 0x34c]
test eax, eax
jne 0x406f07
cmp dword [ebp - 0x34c], 1
jne 0x406f07
mov eax, dword [ebp - 0x35c]
mov dword [eax + 0x78], 1
mov eax, dword [ebp - 0x360]
mov dword [esp + 8], edx
mov dword [esp + 4], str.DelayedAutoStart
mov dword [esp], eax
call fcn.004097e0
test eax, eax
jne 0x406f3b
cmp dword [ebp - 0x34c], 1
jne 0x406f3b
mov eax, dword [ebp - 0x35c]
mov dword [eax + 0x7c], 1
movzx edx, byte [0x418070]
test dl, 8
jne 0x4071e2
mov eax, dword [ebp - 0x35c]
mov ecx, dword [eax + 0x60]
mov eax, ebx
mov ebx, ecx
mov ecx, eax
mov eax, edx
and eax, 8
cmp word [ebx], 0
je 0x407050
test al, al
jne 0x407009
mov eax, ebx
jmp 0x406f78
add eax, 2
cmp word [eax], 0
jne 0x406f75
lea ebx, [eax + 2]
jmp 0x406f5a
movzx eax, si
mov dword [esp], 0x419c20
mov dword [esp + 4], eax
call fcn.00405b30
mov edx, eax
jmp 0x406bc7
mov eax, esi
mov dword [ebp - 0x35c], edx
call fcn.00405b90
mov edx, dword [ebp - 0x35c]
mov dword [esp + 0xc], str.Error__d_reading_registry_key_for_service__s___skipping_n
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 8], str.scmdatabase_load_services
mov dword [esp + 4], 0x418070
mov dword [esp], 1
call fcn.00405aa0
jmp 0x4069d9
mov byte [ecx], al
add ecx, 1
jmp 0x406b30
mov word [ebp - 0x34c], 0x224c
lea ecx, [ebp - 0x34a]
mov byte [ebp - 0x34a], 0x22
lea eax, [ecx + 1]
jmp 0x406bb4
mov eax, ebx
mov dword [ebp - 0x360], ecx
call fcn.00405b90
mov dword [esp + 0xc], str.______s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x418070
mov dword [esp], 3
call fcn.00405aa0
movzx edx, byte [0x418070]
mov ecx, dword [ebp - 0x360]
jmp 0x406f71
mov ebx, ecx
test al, al
je 0x407098
mov eax, dword [ebp - 0x35c]
mov edx, str._none_
mov eax, dword [eax + 0x64]
cmp word [eax], 0
mov eax, 0x419dc1
mov dword [esp + 0xc], str.Group_dependencies___:__s_n
cmove eax, edx
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x418070
mov dword [esp + 0x10], eax
mov dword [esp], 3
call fcn.00405aa0
mov eax, dword [ebp - 0x35c]
mov edx, dword [eax + 0x64]
mov eax, ebx
mov ebx, edx
mov edx, eax
cmp word [ebx], 0
je 0x407105
test byte [0x418070], 8
jne 0x4070c8
mov eax, ebx
jmp 0x4070bd
add eax, 2
cmp word [eax], 0
jne 0x4070ba
lea ebx, [eax + 2]
jmp 0x4070a7
mov eax, ebx
mov dword [ebp - 0x35c], edx
call fcn.00405b90
mov dword [esp + 0xc], str.______s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x418070
mov dword [esp], 3
call fcn.00405aa0
mov edx, dword [ebp - 0x35c]
jmp 0x4070b6
mov eax, dword [ebp - 0x350]
mov ebx, edx
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
mov eax, dword [ebp - 0x354]
push ecx
cmp dword [eax + 0x34], 0
jne 0x407163
test byte [0x418070], 8
je 0x4069df
mov eax, esi
call fcn.00405b90
mov dword [esp + 0xc], str.Even_the_service_type_not_set_for_service__s___skipping_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.scmdatabase_load_services
mov dword [esp + 4], 0x418070
mov dword [esp], 3
call fcn.00405aa0
jmp 0x4069d9
mov dword [esp], eax
call fcn.00406360
test eax, eax
jne 0x4071b0
test byte [0x418070], 2
je 0x4069d9
mov eax, esi
call fcn.00405b90
mov dword [esp + 0xc], str.Invalid_configuration_of_service__s___skipping_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.scmdatabase_load_services
mov dword [esp + 4], 0x418070
mov dword [esp], 1
call fcn.00405aa0
jmp 0x4069d9
mov eax, dword [ebp - 0x354]
mov edx, dword [eax + 0x34]
mov dword [eax + 8], ebx
mov dword [eax + 0x14], edx
lea edx, [ebx + 0x10]
mov dword [eax], edx
mov edx, dword [ebx + 0x14]
mov dword [eax + 4], edx
mov dword [edx], eax
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x354]
mov dword [esp], eax
call fcn.00406890
jmp 0x406945
mov eax, dword [ebp - 0x35c]
mov eax, dword [eax + 0x40]
call fcn.00405b90
mov dword [esp + 0xc], str.Image_path_____________s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x418070
mov dword [esp], 3
call fcn.00405aa0
movzx edx, byte [0x418070]
test dl, 8
je 0x406f4b
mov eax, dword [ebp - 0x35c]
mov eax, dword [eax + 0x44]
call fcn.00405b90
mov dword [esp + 0xc], str.Group__________________s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x418070
mov dword [esp], 3
call fcn.00405aa0
movzx edx, byte [0x418070]
test dl, 8
je 0x406f4b
mov eax, dword [ebp - 0x35c]
mov eax, dword [eax + 0x50]
call fcn.00405b90
mov dword [esp + 0xc], str.Service_account_name___s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x418070
mov dword [esp], 3
call fcn.00405aa0
movzx edx, byte [0x418070]
test dl, 8
je 0x406f4b
mov eax, dword [ebp - 0x35c]
mov eax, dword [eax + 0x54]
call fcn.00405b90
mov dword [esp + 0xc], str.Display_name___________s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x418070
mov dword [esp], 3
call fcn.00405aa0
movzx edx, byte [0x418070]
test dl, 8
je 0x406f4b
mov eax, dword [ebp - 0x35c]
mov edx, str._none_
mov eax, dword [eax + 0x60]
cmp word [eax], 0
mov eax, 0x419dc1
mov dword [esp + 0xc], str.Service_dependencies_:__s_n
cmove eax, edx
mov dword [esp + 8], str.load_service_config
mov dword [esp + 4], 0x418070
mov dword [esp + 0x10], eax
mov dword [esp], 3
call fcn.00405aa0
movzx edx, byte [0x418070]
jmp 0x406f4b