Function at 0x10015873
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x448
lea ebp, [esp - 4]
mov eax, dword [0x101f1dd0]
xor eax, ebp
mov dword [ebp + 0x448], eax
push 0x3c
mov eax, 0x1016b53c
call fcn.10075e22
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x18]
push eax
push 0xf003f
xor esi, esi
push esi
push str.SYSTEMCurrentControlSetServices
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10015a99
push 7
pop edi
push esi
lea ecx, [ebp]
mov dword [ebp + 0x18], edi
call fcn.10001b70
push esi
lea ecx, [ebp + 0x1c]
mov dword [ebp - 4], esi
mov dword [ebp + 0x34], edi
call fcn.10001b70
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov edi, 0x206
push edi
lea eax, [ebp + 0x3a]
push esi
push eax
mov byte [ebp - 4], 2
mov word [ebp + 0x38], si
call fcn.10076580
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ebp + 0x38]
push eax
push str.ServiceName
call fcn.100154e3
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp]
call fcn.100017c0
cmp dword [ebp + 0x14], esi
je 0x1001596e
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp]
mov dword [ebp - 0x10], 0x56
call fcn.10003820
cmp eax, 0xffffffff
je 0x1001596e
push eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp]
call fcn.10003610
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 3
call fcn.10001d60
push esi
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.100017f0
cmp dword [ebp + 0x30], esi
je 0x10015a25
push edi
lea eax, [ebp + 0x242]
push esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], 0x104
mov word [ebp + 0x240], si
call fcn.10076580
mov edi, dword [sym.imp.SHLWAPI.dll_SHEnumKeyExW]
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x240]
push eax
push esi
push dword [ebp - 0x18]
call edi
mov ebx, 0x103
jmp 0x10015a21
inc dword [ebp - 0x10]
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x100159c6
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp + 0x240]
push eax
call fcn.10078b09
test eax, eax
pop ecx
pop ecx
je 0x10015a07
lea eax, [ebp + 0x240]
push eax
lea ecx, [ebp - 0x48]
call fcn.100015f0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.10012b23
push esi
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.100017f0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x240]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0x104
push dword [ebp - 0x18]
call edi
cmp eax, ebx
jne 0x100159b7
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x2c]
call fcn.10012456
cmp eax, esi
jbe 0x10015a6f
xor edi, edi
cmp eax, esi
jbe 0x10015a7b
push edi
lea ecx, [ebp - 0x2c]
call fcn.100125ee
cmp dword [eax + 0x18], 8
jb 0x10015a54
mov eax, dword [eax + 4]
jmp 0x10015a57
add eax, 4
mov ecx, dword [ebp - 0x14]
push eax
call fcn.10015443
lea ecx, [ebp - 0x2c]
inc edi
call fcn.10012456
cmp edi, eax
jb 0x10015a40
jmp 0x10015a7b
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 0x38]
push eax
call fcn.10015443
lea ecx, [ebp - 0x2c]
call fcn.100127fb
push esi
push 1
lea ecx, [ebp + 0x1c]
call fcn.100017f0
push esi
push 1
lea ecx, [ebp]
call fcn.100017f0
mov ecx, dword [ebp - 0x14]
call fcn.100156e1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x448]
xor ecx, ebp
call fcn.10075e13
add ebp, 0x44c
leave
ret