Function at 0x401090
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41315d
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x41929c]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push esi
push edi
mov eax, dword [0x41929c]
xor eax, esp
push eax
lea eax, [esp + 0x1b0]
mov dword fs:[0], eax
push 0x200
mov dword [esp + 0x30], 0
call fcn.0040747b
add esp, 4
push 0x100
mov dword [esp + 0x14], eax
call fcn.0040747b
add esp, 4
push 0x200
mov dword [esp + 0x20], eax
call fcn.0040747b
mov edx, dword [0x416a88]
mov ebx, eax
mov eax, dword [str.ProductName]
mov dword [esp + 0x48], eax
mov eax, dword [0x416a8c]
add esp, 4
mov ecx, 0x12
mov esi, str.SOFTWAREClassesInstallerProducts
lea edi, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x416a84]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x4c], ecx
mov ecx, dword [0x416a90]
push 8
mov dword [esp + 0x5c], ecx
push 0
lea ecx, [esp + 0x68]
mov dword [esp + 0x58], edx
mov edx, dword [0x416a94]
push ecx
push 0x80000002
mov dword [esp + 0x6c], edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40117a
mov eax, 1
jmp 0x40133b
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
push esi
push 0
push eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x34], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40130d
push str.SOFTWAREClassesInstallerProducts_
push 0x100
push ebx
call fcn.00407e63
add esp, 0xc
push esi
push 0x100
push ebx
call fcn.00407ec6
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push 1
push 0
push ebx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4012da
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
push 0
lea ecx, [esp + 0x54]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x28]
push edi
lea ecx, [esp + 0x30]
push ecx
push 0
lea edx, [esp + 0x54]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4012da
cmp dword [esp + 0x28], 1
jne 0x4012da
push 0x100
push eax
lea ecx, [esp + 0xac]
push ecx
call fcn.00410ab0
add esp, 0xc
push 0xffffffffffffffff
push edi
push 0x100
lea edx, [esp + 0xb0]
push edx
push 0
call fcn.004082db
add esp, 0x14
lea eax, [esp + 0x34]
push eax
call fcn.004013f0
lea eax, [esp + 0xa4]
mov dword [esp + 0x1b8], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401290
lea ecx, [esp + 0x34]
sub eax, edx
push 0x10
push ecx
lea edx, [esp + eax + 0xac]
lea ecx, [esp + 0xac]
call fcn.004015e0
add esp, 8
lea edx, [esp + 0x34]
push edx
movzx esi, al
mov dword [esp + 0x1bc], 0xffffffff
call fcn.004014d0
mov dword [esp + 0x2c], esi
test esi, esi
mov esi, dword [esp + 0x10]
jne 0x401311
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
inc eax
push esi
push eax
push edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4011b1
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.004082fb
add esp, 4
push edi
call fcn.004082fb
add esp, 4
push ebx
call fcn.004082fb
mov eax, dword [esp + 0x30]
add esp, 4
mov ecx, dword [esp + 0x1b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.00407e54
mov esp, ebp
pop ebp
ret