Function at 0x403189
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
mov dword [ebp - 0xdc], 0
lea eax, [ebp - 0xdc]
push eax
push 0x20019
push 0
push 0x412e9c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x40327b
mov dword [ebp - 0x68], 4
cmp dword [ebp - 0x6c], 0
je 0x40320a
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0xd8]
push edx
push 0
push 0
push str.PresentationStarted
mov eax, dword [ebp - 0xdc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40320a
mov dword [ebp - 0xe0], 1
jmp 0x403214
mov dword [ebp - 0xe0], 0
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], 4
cmp dword [ebp - 0x6c], 0
je 0x40325b
lea edx, [ebp - 0x68]
push edx
lea eax, [ebp - 0xd4]
push eax
push 0
push 0
push str.WizardStarted
mov ecx, dword [ebp - 0xdc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40325b
mov dword [ebp - 0xe4], 1
jmp 0x403265
mov dword [ebp - 0xe4], 0
mov edx, dword [ebp - 0xe4]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0xdc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x6c], 0
je 0x4032af
lea ecx, [ebp - 0xdc]
push ecx
push 0x20019
push 0
push str.SOFTWAREIBMNPDirectData
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4032af
mov dword [ebp - 0xe8], 1
jmp 0x4032b9
mov dword [ebp - 0xe8], 0
mov edx, dword [ebp - 0xe8]
mov dword [ebp - 0x6c], edx
cmp dword [ebp - 0x6c], 0
je 0x403323
mov dword [ebp - 0x68], 0x64
cmp dword [ebp - 0x6c], 0
je 0x403303
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x64]
push ecx
push 0
push 0
push str.DataVersion
mov edx, dword [ebp - 0xdc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403303
mov dword [ebp - 0xec], 1
jmp 0x40330d
mov dword [ebp - 0xec], 0
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0xdc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x6c], 0
je 0x403357
lea edx, [ebp - 0xdc]
push edx
push 0x20019
push 0
push 0x412f0c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403357
mov dword [ebp - 0xf0], 1
jmp 0x403361
mov dword [ebp - 0xf0], 0
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x4033ce
mov dword [ebp - 0x68], 0x64
cmp dword [ebp - 0x6c], 0
je 0x4033ae
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0xd0]
push edx
push 0
push 0
push str.NPDWIZVersion
mov eax, dword [ebp - 0xdc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4033ae
mov dword [ebp - 0xf4], 1
jmp 0x4033b8
mov dword [ebp - 0xf4], 0
mov ecx, dword [ebp - 0xf4]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0xdc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x6c], 0
je 0x4033f5
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4033f5
mov dword [ebp - 0xf8], 1
jmp 0x4033ff
mov dword [ebp - 0xf8], 0
mov edx, dword [ebp - 0xf8]
mov dword [ebp - 0x6c], edx
cmp dword [ebp - 0x6c], 0
jne 0x403415
mov eax, 0x80000000
jmp 0x40344d
cmp dword [ebp - 0xd4], 0
je 0x403425
mov eax, 2
jmp 0x40344d
cmp dword [ebp + 8], 0
je 0x40343b
cmp dword [ebp - 0xd8], 0
je 0x40343b
mov eax, 1
jmp 0x40344d
call fcn.00403100
test eax, eax
je 0x403448
xor eax, eax
jmp 0x40344d
mov eax, 0x80000001
mov esp, ebp
pop ebp
ret