Function at 0x10005370
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005132a
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x100682b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x274], ebx
push ebx
push 0x1005e2e3
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x27c], edi
mov dword [ebp - 0x23c], 0xf
mov dword [ebp - 0x240], ebx
mov byte [ebp - 0x250], bl
call fcn.10007150
lea eax, [ebp - 0x270]
push eax
push str.SYSTEMCurrentControlSetServices
mov dword [ebp - 4], ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x270], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, dword [ebp - 0x270]
cmp esi, ebx
jne 0x10005425
lea ecx, [ebp - 0x250]
push ecx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov ecx, edi
mov byte [edi], bl
call fcn.10002330
cmp dword [ebp - 0x23c], 0x10
jmp 0x100056cf
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
xor edi, edi
mov byte [ebp - 0x114], bl
call fcn.1001ba60
push 0x103
lea ecx, [ebp - 0x217]
push ebx
push ecx
mov byte [ebp - 0x218], bl
call fcn.1001ba60
add esp, 0x18
push 0x104
lea edx, [ebp - 0x114]
push edx
push ebx
push esi
mov dword [ebp - 0x280], 1
mov dword [ebp - 0x278], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, ebx
jne 0x100055b9
jmp 0x10005490
lea eax, [ebp - 0x114]
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0x234], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100054b0
sub eax, edx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x234]
call fcn.10007150
push 1
push 0x1005e45c
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
call fcn.10007030
push 0xa
push str.Parameters
lea ecx, [ebp - 0x234]
call fcn.10007030
mov eax, dword [ebp - 0x234]
mov esi, 0x10
mov dword [ebp - 0x278], 0x104
cmp dword [ebp - 0x220], esi
jae 0x10005517
lea eax, [ebp - 0x234]
lea ecx, [ebp - 0x278]
push ecx
lea edx, [ebp - 0x218]
push edx
mov edx, dword [ebp - 0x270]
lea ecx, [ebp - 0x280]
push ecx
push str.ServiceDll
push eax
push edx
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
cmp eax, ebx
jne 0x1000557c
push 1
push 0x1005e470
lea ecx, [ebp - 0x250]
call fcn.10007030
lea eax, [ebp - 0x218]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10005560
sub eax, edx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x250]
call fcn.10007030
inc edi
mov byte [ebp - 4], bl
cmp dword [ebp - 0x220], esi
jb 0x10005597
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.10019165
add esp, 4
mov eax, dword [ebp - 0x270]
push 0x104
lea edx, [ebp - 0x114]
push edx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, ebx
je 0x10005490
mov ecx, dword [ebp - 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
lea edx, [ebp - 0x250]
cmp dword [ebp - 0x240], ebx
je 0x100055f6
mov ecx, 1
lea esi, [ebp - 0x26c]
call fcn.10002200
mov byte [ebp - 4], 2
mov dword [ebp - 0x274], 2
jmp 0x10005630
push ebx
push edx
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0x234], bl
call fcn.10001400
mov dword [ebp - 4], 3
lea eax, [ebp - 0x234]
mov dword [ebp - 0x274], 4
mov edi, dword [ebp - 0x27c]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
push eax
mov ecx, edi
mov byte [edi], bl
call fcn.10002330
mov eax, dword [ebp - 0x274]
or eax, 1
mov esi, 0x10
test al, 4
je 0x10005698
and eax, 0xfffffffb
mov dword [ebp - 0x274], eax
cmp dword [ebp - 0x220], esi
jb 0x10005682
mov eax, dword [ebp - 0x234]
push eax
call fcn.10019165
mov eax, dword [ebp - 0x274]
add esp, 4
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0x234], bl
test al, 2
je 0x100056c9
cmp dword [ebp - 0x258], esi
jb 0x100056b3
mov ecx, dword [ebp - 0x26c]
push ecx
call fcn.10019165
add esp, 4
mov dword [ebp - 0x258], 0xf
mov dword [ebp - 0x25c], ebx
mov byte [ebp - 0x26c], bl
cmp dword [ebp - 0x23c], esi
jb 0x100056e0
mov edx, dword [ebp - 0x250]
push edx
call fcn.10019165
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10019170
mov esp, ebp
pop ebp
ret