Function at 0x402e01
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x728
push edi
mov dword [ebp - 0x728], ecx
mov byte [ebp - 0x40c], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x40b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x728]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp - 0x728]
mov eax, dword [edx + 0x1c]
push eax
push 0x410404
lea ecx, [ebp - 0x40c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov edx, dword [ebp - 0x728]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp - 0x728]
mov edx, dword [ecx + 0x2ac]
push edx
push 0x410428
mov eax, dword [ebp - 0x728]
mov ecx, dword [eax + 0x14c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0xc]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x40c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403035
mov dword [ebp - 0x41c], 0
xor ecx, ecx
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x410], ecx
mov word [ebp - 0x51c], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x51a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [ebp - 0x41c]
push edx
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x80
lea eax, [ebp - 0x51c]
push eax
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.ole32.dll_StringFromGUID2]
push 0
push 0
push 0x80
mov edx, dword [ebp - 0x728]
mov eax, dword [edx + 0x164]
push eax
push 0x80
lea ecx, [ebp - 0x51c]
push ecx
push 0x200
push 1
call dword [0x4115a0]
mov edx, dword [ebp - 0x728]
mov eax, dword [edx + 0x164]
push eax
mov ecx, dword [ebp - 0x728]
mov edx, dword [ecx + 0x2ac]
push edx
push 0x410430
mov eax, dword [ebp - 0x728]
mov ecx, dword [eax + 0x154]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov word [ebp - 0x724], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x722]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea edx, [ebp - 0x724]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x728]
mov ecx, dword [eax + 0x18]
push ecx
push 0
push 0
call dword [0x41159c]
mov edx, dword [ebp - 0x728]
mov eax, dword [edx + 0x2b0]
push eax
mov ecx, dword [ebp - 0x728]
mov edx, dword [ecx + 0x150]
push edx
call dword [0x4115a8]
push 0x410444
mov eax, dword [ebp - 0x728]
mov ecx, dword [eax + 0x150]
push ecx
call dword [0x4115a4]
lea edx, [ebp - 0x724]
push edx
mov eax, dword [ebp - 0x728]
mov ecx, dword [eax + 0x150]
push ecx
call dword [0x4115a4]
mov edx, dword [ebp - 0x728]
cmp dword [edx + 0x160], 4
jne 0x40302e
mov eax, dword [ebp - 0x728]
mov dword [eax + 0x160], 1
xor eax, eax
jmp 0x403204
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x728]
mov eax, dword [edx + 0x164]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0x410448
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x728]
mov edx, dword [ecx + 0x164]
push edx
lea eax, [ebp - 8]
push eax
push 0
push 0x410450
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x728]
mov ecx, dword [eax + 0x150]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push 0x410458
mov eax, dword [ebp - 0xc]
push eax
call dword [0x411594]
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x728]
mov eax, dword [edx + 0x150]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push str.ProgramGroups
mov edx, dword [ebp - 0xc]
push edx
call dword [0x411594]
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x728]
mov edx, dword [ecx + 0x14c]
push edx
lea eax, [ebp - 8]
push eax
push 0
push 0x410490
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x728]
mov ecx, dword [eax + 0x14c]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push str.InstallPath
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x728]
mov eax, dword [edx + 0x158]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0x4104a8
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 4], 0x104
jbe 0x403178
mov eax, dword [ebp - 0x728]
add eax, 0x158
push eax
call fcn.00402688
add esp, 4
mov ecx, dword [ebp - 4]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x728]
add edx, 0x158
push edx
call fcn.00402650
add esp, 8
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x728]
mov edx, dword [ecx + 0x158]
push edx
lea eax, [ebp - 8]
push eax
push 0
push str.InstalledComponents
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x728]
mov eax, dword [edx + 0x164]
push eax
mov ecx, dword [ebp - 0x728]
mov edx, dword [ecx + 0x2ac]
push edx
push str._sZenographics_s
mov eax, dword [ebp - 0x728]
mov ecx, dword [eax + 0x154]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov edx, dword [ebp - 0x728]
cmp dword [edx + 0x160], 4
jne 0x4031f2
mov eax, dword [ebp - 0x728]
mov dword [eax + 0x160], 3
push str._ZSetupMain.LoadInstallOptions__function_finished._n
call fcn.00407a82
add esp, 4
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret