Function at 0x414890
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41879b
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x421014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0xe0], ebx
mov esi, ecx
push dword [ebp - 0xe0]
mov edx, dword [ebx + 4]
push ecx
mov ecx, dword [ebx]
call fcn.00402c40
mov eax, dword [ebx]
add esp, 8
mov dword [ebx + 4], eax
mov eax, 0x92492493
mov ecx, dword [ebx + 8]
sub ecx, dword [ebx]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x10
jae 0x414907
push 0x10
mov ecx, ebx
call fcn.00401940
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xdc], 0
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlClass
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0xd0], 0
jb 0x414941
mov esi, dword [esi]
lea eax, [ebp - 0xd0]
push eax
push 0x20019
push 0
push esi
push dword [ebp - 0xdc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
call esi
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xcc], 0
push eax
push 0x20019
push 0
push str.Events
push dword [ebp - 0xd0]
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xd8], 0
xor eax, eax
lea ecx, [ebp - 0x104]
push 0x100
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], eax
call fcn.004012b0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x100]
mov ebx, dword [ebp - 0x104]
sub eax, ebx
sar eax, 1
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0xf0]
push eax
push ebx
push dword [ebp - 0xd8]
push dword [ebp - 0xcc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x414e54
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0xc8]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0xcc]
call esi
xor eax, eax
mov dword [ebp - 0x4c], 7
mov dword [ebp - 0x50], 0
mov word [ebp - 0x60], ax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 1
push eax
xor edx, edx
lea ecx, [ebp - 0xc8]
call fcn.00415320
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
mov edx, str.GUID
lea ecx, [ebp - 0xc8]
call fcn.00415320
mov eax, dword [ebp - 0x28]
add esp, 8
cmp dword [ebp - 0x14], 8
jae 0x414a87
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x48]
push ecx
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
xor esi, esi
mov dword [ebp - 0xd4], esi
lea ebx, [ebx]
xor eax, eax
lea ecx, [ebp - 0xec]
push 0x100
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], eax
call fcn.004012b0
mov eax, dword [ebp - 0xe8]
mov ebx, dword [ebp - 0xec]
sub eax, ebx
sar eax, 1
mov dword [ebp - 0xf4], eax
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0xf4]
push eax
push ebx
push esi
push dword [ebp - 0xc8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x414cc0
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xc4]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0xc8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0xc4], 0
je 0x414c9f
xor eax, eax
mov dword [ebp - 0xac], 7
mov dword [ebp - 0xb0], 0
mov word [ebp - 0xc0], ax
mov dword [ebp - 0x94], 7
mov dword [ebp - 0x98], eax
mov word [ebp - 0xa8], ax
mov dword [ebp - 0x7c], 7
mov dword [ebp - 0x80], eax
mov word [ebp - 0x90], ax
mov dword [ebp - 0x64], 7
mov dword [ebp - 0x68], eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 4
push eax
mov edx, str.CmdLine
lea ecx, [ebp - 0xc4]
call fcn.00415320
lea eax, [ebp - 0xc0]
mov edx, str.Name
push eax
lea ecx, [ebp - 0xc4]
call fcn.00415320
lea eax, [ebp - 0x90]
mov edx, str.Desc
push eax
lea ecx, [ebp - 0xc4]
call fcn.00415320
lea eax, [ebp - 0x78]
mov edx, str.Icon
push eax
lea ecx, [ebp - 0xc4]
call fcn.00415320
add esp, 0x10
cmp dword [ebp - 0x98], 0
je 0x414c82
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0xc0]
cmp eax, esi
jae 0x414c4c
mov ebx, dword [ebp - 0x38]
cmp ebx, eax
ja 0x414c4c
mov ecx, eax
mov eax, 0x2aaaaaab
sub ecx, ebx
imul ecx
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp esi, dword [ebp - 0x30]
jne 0x414c29
push ecx
lea ecx, [ebp - 0x38]
call fcn.00401d80
mov esi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x38]
lea eax, [edi + edi*2]
shl eax, 5
add eax, ebx
mov byte [ebp - 4], 5
test esi, esi
je 0x414c44
push eax
mov ecx, esi
call fcn.00402e00
mov esi, dword [ebp - 0x34]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x414c76
cmp esi, dword [ebp - 0x30]
jne 0x414c5d
push ecx
lea ecx, [ebp - 0x38]
call fcn.00401d80
mov esi, dword [ebp - 0x34]
mov byte [ebp - 4], 6
test esi, esi
je 0x414c76
lea eax, [ebp - 0xc0]
mov ecx, esi
push eax
call fcn.00402e00
mov esi, dword [ebp - 0x34]
add esi, 0x60
mov dword [ebp - 0x34], esi
mov esi, dword [ebp - 0xd4]
push dword [ebp - 0xc4]
call edi
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xc4], 0
call fcn.004011d0
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 2
call fcn.00401820
inc esi
mov dword [ebp - 0xd4], esi
cmp esi, 0x20
jl 0x414aa0
jmp 0x414d37
mov byte [ebp - 4], 2
test ebx, ebx
je 0x414d37
mov eax, dword [ebp - 0xe4]
sub eax, ebx
sar eax, 1
cmp eax, 0x7fffffff
ja 0x414e69
add eax, eax
cmp eax, 0x1000
jb 0x414d10
test bl, 0x1f
jne 0x414e69
mov eax, dword [ebx - 4]
cmp eax, ebx
jae 0x414e69
sub ebx, eax
cmp ebx, 4
jb 0x414e69
cmp ebx, 0x23
ja 0x414e69
mov ebx, eax
push ebx
call fcn.00403a71
add esp, 4
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
mov ecx, dword [ebp - 0xe0]
lea eax, [ebp - 0x60]
push eax
call fcn.004013e0
push dword [ebp - 0xc8]
call edi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc8], 0
cmp eax, 8
jb 0x414daf
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
ja 0x414e69
add eax, eax
cmp eax, 0x1000
jb 0x414da6
test cl, 0x1f
jne 0x414e69
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x414e69
sub ecx, eax
cmp ecx, 4
jb 0x414e69
cmp ecx, 0x23
ja 0x414e69
mov ecx, eax
push ecx
call fcn.00403a71
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], al
call fcn.00401cd0
mov eax, dword [ebp - 0x4c]
cmp eax, 8
jb 0x414e11
mov ecx, dword [ebp - 0x60]
inc eax
cmp eax, 0x7fffffff
ja 0x414e69
add eax, eax
cmp eax, 0x1000
jb 0x414e08
test cl, 0x1f
jne 0x414e69
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x414e69
sub ecx, eax
cmp ecx, 4
jb 0x414e69
cmp ecx, 0x23
ja 0x414e69
mov ecx, eax
push ecx
call fcn.00403a71
add esp, 4
xor eax, eax
mov dword [ebp - 0x4c], 7
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x50], 0
mov word [ebp - 0x60], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00401820
mov eax, dword [ebp - 0xd8]
inc eax
mov dword [ebp - 0xd8], eax
cmp eax, 0x10
jge 0x414eae
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jmp 0x414993
test ebx, ebx
je 0x414eae
mov eax, dword [ebp - 0xfc]
sub eax, ebx
sar eax, 1
cmp eax, 0x7fffffff
jbe 0x414e6e
call fcn.00408487
add eax, eax
cmp eax, 0x1000
jb 0x414ea5
test bl, 0x1f
je 0x414e81
call fcn.00408487
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x414e8d
call fcn.00408487
sub ebx, eax
cmp ebx, 4
jae 0x414e99
call fcn.00408487
cmp ebx, 0x23
jbe 0x414ea3
call fcn.00408487
mov ebx, eax
push ebx
call fcn.00403a71
add esp, 4
push dword [ebp - 0xcc]
call edi
push dword [ebp - 0xd0]
mov dword [ebp - 0xcc], 0
call edi
push dword [ebp - 0xdc]
mov dword [ebp - 0xd0], 0
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403a28
mov esp, ebp
pop ebp
ret