Function at 0x48b050
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4c
mov eax, dword [0x4f72bc]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
push 0x103
xor esi, esi
lea eax, [ebp - 0x31b]
push esi
push eax
mov byte [ebp - 0x31c], 0
call fcn.004d29c0
add esp, 0xc
push 0x4e27f8
mov edx, 0x7ffffffe
mov eax, 0x400
mov ecx, ebx
mov dword [ebp - 0xb28], 0x104
mov dword [ebp - 0xb24], esi
call fcn.004010b0
push str.SYSTEMCurrentControlSetServices
mov edx, 0x7ffffffe
mov eax, 0xff
lea ecx, [ebp - 0x10c]
call fcn.004010b0
mov edx, dword [0x4f8b78]
lea ecx, [ebp - 0xb20]
push ecx
push edx
push esi
lea eax, [ebp - 0x10c]
push eax
push CreateStatusWindowA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x48b347
lea ecx, [ebp - 0xb48]
push ecx
lea edx, [ebp - 0xb34]
push edx
lea eax, [ebp - 0xb40]
push eax
lea ecx, [ebp - 0xb38]
push ecx
lea edx, [ebp - 0xb30]
push edx
lea eax, [ebp - 0xb2c]
push eax
lea ecx, [ebp - 0xb3c]
push ecx
lea edx, [ebp - 0xb24]
push edx
mov edx, dword [ebp - 0xb20]
push esi
lea eax, [ebp - 0xb28]
push eax
lea ecx, [ebp - 0x31c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0xb24], esi
je 0x48b347
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0xb20]
push 0x100
lea eax, [ebp - 0x71c]
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edx, esi
inc esi
cmp edx, dword [ebp - 0xb24]
ja 0x48b347
cmp eax, 0x103
je 0x48b347
lea eax, [ebp - 0x71c]
push eax
call edi
test eax, eax
je 0x48b152
push str.SYSTEMCurrentControlSetServices_
mov edx, 0x7ffffffe
mov eax, 0xff
lea ecx, [ebp - 0x10c]
call fcn.004010b0
mov edx, 0xff
lea eax, [ebp - 0x10c]
cmp byte [eax], 0
je 0x48b1c3
inc eax
dec edx
jne 0x48b1b8
jmp 0x48b1ed
test edx, edx
je 0x48b1ed
mov ecx, 0xff
sub ecx, edx
lea edx, [ebp - 0x71c]
mov eax, 0xff
push edx
sub eax, ecx
lea ecx, [ebp + ecx - 0x10c]
mov edx, 0x7fffffff
call fcn.004010b0
push 0x200
lea eax, [ebp - 0x10c]
push str.ImagePath
push eax
lea ecx, [ebp - 0x51c]
mov edx, CreateStatusWindowA
call fcn.004bff10
add esp, 0xc
mov edx, 0x4eeb00
lea ecx, [ebp - 0x51c]
call fcn.0047bb80
test eax, eax
je 0x48b2b4
mov eax, 0xff
lea ecx, [ebp - 0x10c]
cmp byte [ecx], 0
je 0x48b23f
inc ecx
dec eax
jne 0x48b234
jmp 0x48b267
test eax, eax
je 0x48b267
mov ecx, 0xff
sub ecx, eax
mov eax, 0xff
sub eax, ecx
push str.Parameters
lea ecx, [ebp + ecx - 0x10c]
mov edx, 0x7fffffff
call fcn.004010b0
push 0x104
lea ecx, [ebp - 0x10c]
push str.ServiceDll
push ecx
lea ecx, [ebp - 0x214]
mov edx, CreateStatusWindowA
call fcn.004bff10
add esp, 0xc
lea edx, [ebp - 0x214]
push edx
call edi
test eax, eax
je 0x48b2b4
lea eax, [ebp - 0x214]
push eax
mov edx, 0x7ffffffe
mov eax, 0x200
lea ecx, [ebp - 0x51c]
call fcn.004010b0
lea ecx, [ebp - 0x51c]
push ecx
call edi
test eax, eax
jle 0x48b152
lea edx, [ebp - 0x214]
push edx
lea ecx, [ebp - 0x51c]
call fcn.0047cea0
mov ecx, dword [ebp + 8]
add esp, 4
lea eax, [ebp - 0x214]
push eax
push ecx
call fcn.00483650
test eax, eax
jne 0x48b152
push 0x400
lea edx, [ebp - 0x10c]
push str.Description
push edx
lea ecx, [ebp - 0xb1c]
mov edx, CreateStatusWindowA
call fcn.004bff10
add esp, 0xc
lea eax, [ebp - 0xb1c]
push eax
mov edx, 0x7ffffffe
mov eax, 0x400
mov ecx, ebx
call fcn.004010b0
lea ecx, [ebp - 0xb1c]
push ecx
call edi
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xb20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret