Function at 0x491620
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x950
mov eax, dword [0x4c32cc]
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.004a3190
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.00401000
lea ecx, [ebp - 0x918]
push ecx
push 0x20019
push ebx
lea edx, [ebp - 0x20c]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4918ed
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 0x4918ed
xor esi, esi
jmp 0x491710
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 0x4918ed
cmp eax, 0x103
je 0x4918ed
lea eax, [ebp - 0x614]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x491710
push str.SYSTEMCurrentControlSetServices_
mov edx, 0x7ffffffe
mov eax, edi
lea ecx, [ebp - 0x20c]
call fcn.00401000
mov edx, edi
lea eax, [ebp - 0x20c]
cmp byte [eax], bl
je 0x4917a2
inc eax
dec edx
jne 0x491798
jmp 0x4917c6
cmp edx, ebx
je 0x4917c6
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.00401000
push 0x100
lea eax, [ebp - 0x20c]
push str.ImagePath
push eax
lea ecx, [ebp - 0x714]
mov edx, 0x80000002
call fcn.0048e050
add esp, 0xc
lea ecx, [ebp - 0x714]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x491710
push 0x200
lea edx, [ebp - 0x20c]
push str.DisplayName
push edx
lea ecx, [ebp - 0x614]
mov edx, 0x80000002
call fcn.0048e050
mov eax, dword [ebp + 8]
add esp, 0xc
push eax
lea ecx, [ebp - 0x614]
push ecx
call fcn.00483b10
test eax, eax
jne 0x491710
push 0x100
lea edx, [ebp - 0x30c]
push ebx
push edx
call fcn.004a3190
lea eax, [ebp - 0x30c]
push eax
push str.Start
lea esi, [ebp - 0x20c]
mov ebx, 0x80000002
mov byte [ebp - 0x30c], 4
call fcn.0048e590
mov edx, dword [0x4c6444]
add esp, 0x14
lea ecx, [ebp - 0x920]
push ecx
push edx
push 0
mov eax, esi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4918a9
push str.DelayedAutostart
lea esi, [ebp - 0x920]
call fcn.0048e640
add esp, 4
cmp eax, 0xffffffff
je 0x4918ca
lea ecx, [ebp - 0x30c]
push ecx
push str.DelayedAutostart
lea esi, [ebp - 0x20c]
mov byte [ebp - 0x30c], 0
call fcn.0048e590
add esp, 8
mov edx, dword [ebp - 0x918]
push edx
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.004a01d6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x918]
push eax
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.004a01d6
mov esp, ebp
pop ebp
ret