Function at 0x4c5b10
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x950
mov eax, dword [0x4f72bc]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x413]
push ebx
push eax
mov byte [ebp - 0x414], bl
call fcn.004d29c0
add esp, 0xc
mov edi, 0xff
push str.SYSTEMCurrentControlSetServices
mov edx, 0x7ffffffe
mov eax, edi
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x92c], 0x104
mov dword [ebp - 0x91c], ebx
call fcn.004010b0
lea ecx, [ebp - 0x918]
push ecx
push 0x20019
push ebx
lea edx, [ebp - 0x20c]
push edx
push CreateStatusWindowA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4c5de0
lea eax, [ebp - 0x94c]
push eax
lea ecx, [ebp - 0x934]
push ecx
lea edx, [ebp - 0x944]
push edx
lea eax, [ebp - 0x93c]
push eax
lea ecx, [ebp - 0x930]
push ecx
lea edx, [ebp - 0x938]
push edx
lea eax, [ebp - 0x940]
push eax
lea ecx, [ebp - 0x91c]
push ecx
mov ecx, dword [ebp - 0x918]
push ebx
lea edx, [ebp - 0x92c]
push edx
lea eax, [ebp - 0x414]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0x91c], ebx
je 0x4c5de0
xor esi, esi
jmp 0x4c5c00
lea edx, [ebp - 0x94c]
push edx
lea eax, [ebp - 0x928]
push eax
lea ecx, [ebp - 0x914]
push ecx
mov ecx, dword [ebp - 0x918]
push ebx
lea edx, [ebp - 0x924]
push edx
lea eax, [ebp - 0x614]
push eax
push esi
push ecx
mov dword [ebp - 0x928], edi
mov dword [ebp - 0x924], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edx, esi
inc esi
cmp edx, dword [ebp - 0x91c]
ja 0x4c5de0
cmp eax, 0x103
je 0x4c5de0
lea eax, [ebp - 0x614]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4c5c00
push str.SYSTEMCurrentControlSetServices_
mov edx, 0x7ffffffe
mov eax, edi
lea ecx, [ebp - 0x20c]
call fcn.004010b0
mov edx, edi
lea eax, [ebp - 0x20c]
cmp byte [eax], bl
je 0x4c5c92
inc eax
dec edx
jne 0x4c5c88
jmp 0x4c5cb6
cmp edx, ebx
je 0x4c5cb6
mov ecx, edi
sub ecx, edx
lea edx, [ebp - 0x614]
mov eax, edi
push edx
sub eax, ecx
lea ecx, [ebp + ecx - 0x20c]
mov edx, 0x7fffffff
call fcn.004010b0
push 0x100
lea eax, [ebp - 0x20c]
push str.ImagePath
push eax
lea ecx, [ebp - 0x714]
mov edx, CreateStatusWindowA
call fcn.004bff10
add esp, 0xc
lea ecx, [ebp - 0x714]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x4c5c00
push 0x200
lea edx, [ebp - 0x20c]
push str.DisplayName
push edx
lea ecx, [ebp - 0x614]
mov edx, CreateStatusWindowA
call fcn.004bff10
mov eax, dword [ebp + 8]
add esp, 0xc
push eax
lea ecx, [ebp - 0x614]
push ecx
call fcn.00483650
test eax, eax
jne 0x4c5c00
push 0x100
lea edx, [ebp - 0x30c]
push ebx
push edx
call fcn.004d29c0
mov al, byte [ebp + 0xc]
lea ecx, [ebp - 0x30c]
push ecx
push 0x4f0f80
lea esi, [ebp - 0x20c]
mov ebx, CreateStatusWindowA
mov byte [ebp - 0x30c], al
call fcn.004c0450
mov eax, dword [0x4f8b78]
add esp, 0x14
lea edx, [ebp - 0x920]
push edx
push eax
push 0
mov ecx, esi
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c5d9a
push str.DelayedAutostart
lea esi, [ebp - 0x920]
call fcn.004c0500
add esp, 4
cmp eax, 0xffffffff
je 0x4c5dbd
mov dl, byte [ebp + 0x10]
lea eax, [ebp - 0x30c]
push eax
push str.DelayedAutostart
lea esi, [ebp - 0x20c]
mov byte [ebp - 0x30c], dl
call fcn.004c0450
add esp, 8
mov ecx, dword [ebp - 0x918]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x918]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret