Function at 0x48a730
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3114
call fcn.004d9280
mov eax, dword [0x4f72bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x857]
push ebx
push eax
mov byte [ebp - 0x858], bl
call fcn.004d29c0
add esp, 0xc
mov dword [ebp - 0x30f4], 0x104
mov dword [ebp - 0x30e0], ebx
cmp dword [0x506e0c], ebx
je 0x48a7ab
mov ecx, dword [0x4f8b78]
mov edx, dword [0x4f8b7c]
mov dword [ebp - 0x30e4], ecx
mov dword [ebp - 0x30f0], edx
mov dword [0x4f8b78], 0x20019
mov dword [0x4f8b7c], 0x20006
cmp dword [0x505890], ebx
je 0x48a7b8
call fcn.004c2580
push 0x80
lea edx, [ebp - 0x8d8]
mov ecx, 0x2da
mov dword [0x505890], ebx
call fcn.004ca1e0
add esp, 4
push str.SYSTEMCurrentControlSetServices
mov edx, 0x7ffffffe
mov eax, 0x200
lea ecx, [ebp - 0x248]
call fcn.004010b0
mov ecx, dword [0x4f8b78]
lea eax, [ebp - 0x30dc]
push eax
push ecx
push ebx
lea edx, [ebp - 0x248]
push edx
push CreateStatusWindowA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x48abb1
lea eax, [ebp - 0x3114]
push eax
lea ecx, [ebp - 0x310c]
push ecx
lea edx, [ebp - 0x3104]
push edx
lea eax, [ebp - 0x30fc]
push eax
lea ecx, [ebp - 0x3100]
push ecx
lea edx, [ebp - 0x3108]
push edx
lea eax, [ebp - 0x30f8]
push eax
lea ecx, [ebp - 0x30e0]
push ecx
mov ecx, dword [ebp - 0x30dc]
push ebx
lea edx, [ebp - 0x30f4]
push edx
lea eax, [ebp - 0x858]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0x30e0], ebx
je 0x48abb1
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x30ec], ebx
mov dword [ebp - 0x30e8], ebx
mov esi, dword [ebp - 0x30ec]
mov eax, dword [ebp - 0x30dc]
push 0xff
lea edx, [ebp - 0x448]
push edx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ecx, dword [ebp - 0x30e8]
mov edx, ecx
inc esi
inc ecx
mov dword [ebp - 0x30ec], esi
mov dword [ebp - 0x30e8], ecx
cmp edx, dword [ebp - 0x30e0]
ja 0x48ab9b
cmp eax, 0x103
je 0x48ab9b
test eax, eax
jne 0x48a88b
lea eax, [ebp - 0x448]
push eax
call edi
test eax, eax
je 0x48a88b
push str.SYSTEMCurrentControlSetServices_
mov edx, 0x7ffffffe
mov eax, 0x200
lea ecx, [ebp - 0x248]
call fcn.004010b0
mov edx, 0x200
lea eax, [ebp - 0x248]
mov edi, edi
cmp byte [eax], 0
je 0x48a91b
inc eax
dec edx
jne 0x48a910
jmp 0x48a945
test edx, edx
je 0x48a945
mov ecx, 0x200
sub ecx, edx
lea edx, [ebp - 0x448]
mov eax, 0x200
push edx
sub eax, ecx
lea ecx, [ebp + ecx - 0x248]
mov edx, 0x7fffffff
call fcn.004010b0
push 0x200
lea eax, [ebp - 0x248]
push str.ImagePath
push eax
lea ecx, [ebp - 0x648]
mov edx, CreateStatusWindowA
call fcn.004bff10
add esp, 0xc
lea ecx, [ebp - 0x648]
push ecx
call edi
test eax, eax
jle 0x48a88b
lea edx, [ebp - 0xcd8]
push edx
lea ebx, [ebp - 0x448]
mov esi, 0x2bc
call fcn.004c5e00
add esp, 4
test eax, eax
jne 0x48a9ba
push 0x200
lea eax, [ebp - 0x248]
push str.DisplayName
push eax
mov ecx, ebx
mov edx, CreateStatusWindowA
call fcn.004bff10
add esp, 0xc
jmp 0x48a9d6
lea ecx, [ebp - 0xcd8]
push ecx
mov edx, 0x7ffffffe
mov eax, 0x200
lea ecx, [ebp - 0x448]
call fcn.004010b0
push 0x1000
lea edx, [ebp - 0x248]
push str.Description
push edx
lea ecx, [ebp - 0x1cd8]
mov edx, CreateStatusWindowA
call fcn.004bff10
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x248]
call fcn.004c5ea0
add esp, 0x10
test eax, eax
jne 0x48aa1f
push 0x40
lea edx, [ebp - 0x48]
mov ecx, 0x268
call fcn.004ca1e0
add esp, 4
mov edx, str..exe
lea ecx, [ebp - 0x648]
call fcn.0047bb80
test eax, eax
jne 0x48aa4b
mov edx, str.svchost
lea ecx, [ebp - 0x648]
call fcn.0047bb80
test eax, eax
je 0x48a88b
mov edx, str.svchost
lea ecx, [ebp - 0x648]
call fcn.0047bb80
test eax, eax
je 0x48aaf3
mov esi, 0x2bd
mov eax, 0x200
lea ecx, [ebp - 0x248]
cmp byte [ecx], 0
je 0x48aa7e
inc ecx
dec eax
jne 0x48aa73
jmp 0x48aaa6
test eax, eax
je 0x48aaa6
mov ecx, 0x200
sub ecx, eax
mov eax, 0x200
sub eax, ecx
push str.Parameters
lea ecx, [ebp + ecx - 0x248]
mov edx, 0x7fffffff
call fcn.004010b0
push 0x200
lea ecx, [ebp - 0x248]
push str.ServiceDll
push ecx
lea ecx, [ebp - 0xad8]
mov edx, CreateStatusWindowA
call fcn.004bff10
add esp, 0xc
lea edx, [ebp - 0xad8]
push edx
call edi
test eax, eax
je 0x48aaf3
lea eax, [ebp - 0xad8]
push eax
mov edx, 0x7ffffffe
mov eax, 0x200
lea ecx, [ebp - 0x648]
call fcn.004010b0
cmp dword [0x506df0], 0
jle 0x48ab74
lea ecx, [ebp - 0x750]
push ecx
lea ecx, [ebp - 0x648]
call fcn.0047cea0
push 0x1400
lea edx, [ebp - 0x30d8]
push 0
push edx
call fcn.004d29c0
lea eax, [ebp - 0x750]
push eax
lea ecx, [ebp - 0x30d8]
call fcn.004c0890
add esp, 0x14
mov edx, 0x4e295c
lea ecx, [ebp - 0x28d8]
call fcn.0047bb80
test eax, eax
jne 0x48a88b
push eax
push esi
lea ecx, [ebp - 0x1cd8]
push ecx
lea edx, [ebp - 0x48]
push edx
lea edx, [ebp - 0x750]
lea ecx, [ebp - 0x448]
call fcn.004c1eb0
add esp, 0x10
jmp 0x48a88b
push 0
push esi
lea eax, [ebp - 0x1cd8]
push eax
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x648]
lea ecx, [ebp - 0x448]
call fcn.004c1eb0
add esp, 0x10
jmp 0x48a88b
mov edx, dword [ebp - 0x30dc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x506e0c], 0
jmp 0x48abc4
mov edx, dword [ebp - 0x30dc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x506e0c], ebx
je 0x48abdd
mov eax, dword [ebp - 0x30e4]
mov ecx, dword [ebp - 0x30f0]
mov dword [0x4f8b78], eax
mov dword [0x4f8b7c], ecx
mov ecx, dword [ebp - 4]
mov eax, dword [0x505890]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret