Function at 0x40fea0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x5504d6
mov eax, dword fs:[0]
push eax
sub esp, 0xc2c
mov eax, dword [0x5b3890]
xor eax, esp
mov dword [esp + 0xc28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0xc40]
mov dword fs:[0], eax
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x41]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x48], bl
call fcn.00519500
add esp, 0xc
call fcn.0040f9f0
mov ebp, eax
cmp dword [ebp], ebx
jne 0x41007f
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
push ebx
call fcn.0049eff0
mov dword [esp + 0x20], vtable.cWCStr.0
cmp esi, ebx
jne 0x40ff5b
mov edx, dword [esp + 0xc50]
mov eax, dword [str.MicrosoftWindowsCurrentVersionUninstall]
lea ecx, [esp + 0x18]
push ecx
or edx, 9
push edx
push ebx
push eax
push str.SOFTWARE
lea ecx, [esp + 0x34]
push 0x56be54
push ecx
mov dword [esp + 0xc64], ebx
call fcn.00401080
add esp, 0x10
push eax
push reloc.OLEAUT32.dll_SysReAllocString
jmp 0x40ff9c
mov eax, dword [esp + 0xc50]
mov ecx, dword [str.MicrosoftWindowsCurrentVersionUninstall]
lea edx, [esp + 0x18]
push edx
or eax, 9
push eax
push ebx
push ecx
push str.Software
push esi
lea edx, [esp + 0x38]
push 0x56c704
push edx
mov dword [esp + 0xc68], 1
call fcn.00401080
add esp, 0x14
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x20]
mov esi, eax
mov dword [esp + 0xc48], 0xffffffff
mov dword [esp + 0x20], vtable.cWCS.0
call fcn.0049ee80
cmp esi, ebx
jne 0x40fff9
mov edx, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x44]
push eax
push ebx
push ebx
lea ecx, [esp + 0x38]
push ecx
push ebx
push ebx
push ebx
push edx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x64], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x410000
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x4100c5
mov esi, dword [esp + 0x1c]
mov byte [esp + 0x17], bl
cmp esi, ebx
je 0x41005b
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov eax, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x450]
push edx
dec esi
push esi
push eax
mov dword [esp + 0x50], 0x400
call edi
test eax, eax
jne 0x410050
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x440]
call fcn.0040fcf0
add esp, 4
test al, al
jne 0x410056
cmp esi, ebx
jne 0x410012
jmp 0x41005b
mov byte [esp + 0x17], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x17], bl
je 0x40fff9
xor eax, eax
cmp dword [esp + 0xc50], 0x100
sete al
mov dword [ebp + 8], eax
cmp dword [ebp + 4], ebx
lea esi, [ebp + 4]
jne 0x4100c3
mov eax, dword [ebp]
push ebx
push 0x56de58
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x48]
push edx
push eax
mov dword [esp + 0x4c], 0x400
call fcn.004a33a0
add esp, 0x14
test eax, eax
je 0x40fff9
push 0xffffffffffffffff
lea ecx, [esp + 0x40]
push ecx
push esi
call fcn.004ae9d0
add esp, 0xc
mov al, 1
mov ecx, dword [esp + 0xc40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc28]
xor ecx, esp
call fcn.0051916c
add esp, 0xc38
ret