Function at 0x41e97d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor ebx, ebx
push esi
mov esi, ebx
mov dword [ebp - 0x10], ebx
push edi
mov edi, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 8], ebx
jne 0x41e9ab
mov ecx, 0x80070057
mov ebx, ecx
jmp 0x41eb93
cmp dword [ebp + 0xc], ebx
je 0x41e99f
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
push eax
push 0x20019
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x28], ebx
push 0x80000002
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [ebp - 0x14]
mov ecx, eax
call fcn.00427846
test eax, eax
jne 0x41e9f3
mov ebx, dword [ebp - 0x14]
jmp 0x41eb91
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
lea edx, [ebp - 0x14]
mov ecx, eax
call fcn.00427846
test eax, eax
je 0x41e9eb
mov ecx, dword [ebp - 4]
lea eax, [ebp - 4]
xor edx, edx
push eax
inc edx
call fcn.004274d1
mov ebx, eax
test ebx, ebx
js 0x41eb91
mov ecx, dword [ebp - 4]
xor ebx, ebx
test ecx, ecx
je 0x41ea5e
lea edx, [ecx + ecx]
mov eax, edx
shr eax, 1
cmp eax, ecx
je 0x41ea59
mov ebx, 0x80070216
mov ecx, ebx
call fcn.004298bc
jmp 0x41ea63
mov dword [ebp - 4], edx
jmp 0x41ea63
and dword [ebp - 4], ebx
xor ebx, ebx
mov ecx, ebx
call fcn.004298d9
test ebx, ebx
js 0x41eb91
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x41ea94
mov ecx, 0x8007000e
jmp 0x41e9a4
push dword [ebp - 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x41ea8a
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
and dword [ebp - 0x1c], 0
inc eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x28]
push eax
push esi
push ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x41eb6a
mov ecx, dword [ebp - 0x1c]
dec ecx
je 0x41eb1b
dec ecx
je 0x41eb1b
dec ecx
dec ecx
jne 0x41eb6a
lea edx, [ebp - 0xc]
mov ecx, esi
call fcn.004275e9
mov ebx, eax
test ebx, ebx
js 0x41eb91
push dword [edi]
lea eax, [ebp - 8]
push 0x409b00
push eax
call fcn.004271d1
add esp, 0xc
jmp 0x41eb35
lea edx, [ebp - 0xc]
mov ecx, esi
call fcn.004275e9
mov ebx, eax
test ebx, ebx
js 0x41eb91
lea edx, [ebp - 8]
mov ecx, edi
call fcn.004275e9
mov ebx, eax
test ebx, ebx
js 0x41eb91
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ecx + 4]
call fcn.0041ec66
test eax, eax
jne 0x41eb67
push dword [ebp - 8]
push dword [ebp - 0xc]
push 2
push 0x4093a0
call fcn.004265c4
add esp, 0x10
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
inc ecx
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x41eaaf
cmp eax, 0x103
je 0x41eb98
test eax, eax
jg 0x41eb88
mov ebx, eax
jmp 0x41eb91
movzx ebx, ax
or ebx, 0x80070000
mov ecx, ebx
call fcn.004298bc
mov ecx, ebx
call fcn.004298d9
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x41ebab
call fcn.0042986c
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x41ebb7
call fcn.0042986c
test edi, edi
je 0x41ebcb
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
je 0x41ebdf
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x10], 0
je 0x41ebee
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8