Function at 0x41ce9b
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 0x41cec9
mov ecx, 0x80070057
mov ebx, ecx
jmp 0x41d0b1
cmp dword [ebp + 0xc], ebx
je 0x41cebd
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.00425c37
test eax, eax
jne 0x41cf11
mov ebx, dword [ebp - 0x14]
jmp 0x41d0af
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.00425c37
test eax, eax
je 0x41cf09
mov ecx, dword [ebp - 4]
lea eax, [ebp - 4]
xor edx, edx
push eax
inc edx
call fcn.004258c2
mov ebx, eax
test ebx, ebx
js 0x41d0af
mov ecx, dword [ebp - 4]
xor ebx, ebx
test ecx, ecx
je 0x41cf7c
lea edx, [ecx + ecx]
mov eax, edx
shr eax, 1
cmp eax, ecx
je 0x41cf77
mov ebx, 0x80070216
mov ecx, ebx
call fcn.0042752a
jmp 0x41cf81
mov dword [ebp - 4], edx
jmp 0x41cf81
and dword [ebp - 4], ebx
xor ebx, ebx
mov ecx, ebx
call fcn.00427547
test ebx, ebx
js 0x41d0af
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 0x41cfb2
mov ecx, 0x8007000e
jmp 0x41cec2
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 0x41cfa8
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 0x41d088
mov ecx, dword [ebp - 0x1c]
dec ecx
je 0x41d039
dec ecx
je 0x41d039
dec ecx
dec ecx
jne 0x41d088
lea edx, [ebp - 0xc]
mov ecx, esi
call fcn.004259da
mov ebx, eax
test ebx, ebx
js 0x41d0af
push dword [edi]
lea eax, [ebp - 8]
push 0x409740
push eax
call fcn.004255e4
add esp, 0xc
jmp 0x41d053
lea edx, [ebp - 0xc]
mov ecx, esi
call fcn.004259da
mov ebx, eax
test ebx, ebx
js 0x41d0af
lea edx, [ebp - 8]
mov ecx, edi
call fcn.004259da
mov ebx, eax
test ebx, ebx
js 0x41d0af
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ecx + 4]
call fcn.0041d184
test eax, eax
jne 0x41d085
push dword [ebp - 8]
push dword [ebp - 0xc]
push 2
push 0x408fe0
call fcn.004249da
add esp, 0x10
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
inc ecx
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x41cfcd
cmp eax, 0x103
je 0x41d0b6
test eax, eax
jg 0x41d0a6
mov ebx, eax
jmp 0x41d0af
movzx ebx, ax
or ebx, 0x80070000
mov ecx, ebx
call fcn.0042752a
mov ecx, ebx
call fcn.00427547
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x41d0c9
call fcn.004274da
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x41d0d5
call fcn.004274da
test edi, edi
je 0x41d0e9
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
je 0x41d0fd
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 0x41d10c
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