Function at 0x404da0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a18e
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x4ab7b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xb0], edi
xor esi, esi
mov dword [ebp - 0xcc], edi
mov dword [ebp - 0xac], esi
cmp dword [0x4ac018], esi
je 0x404e9b
cmp dword [0x4ac01c], 8
mov eax, 0x4ac008
mov esi, 0x48e7d0
cmovae eax, dword [0x4ac008]
test eax, eax
mov dword [edi], 0x48e948
mov dword [edi + 0x28], 0x48e950
cmovne esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x2c], eax
test esi, esi
mov dword [ebp - 4], 0
mov ecx, 0x48e7d0
xorps xmm0, xmm0
cmovne ecx, esi
mov edx, ecx
movups xmmword [edi + 4], xmm0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
lea eax, [edx + 2]
mov dword [ebp - 0xa4], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x404e53
sub edx, dword [ebp - 0xa4]
sar edx, 1
push edx
push ecx
lea ecx, [edi + 4]
call fcn.00409080
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov ecx, dword [edi + 0x28]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + edi + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4051df
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xc0], esi
lea eax, [ebp - 0xa8]
mov dword [ebp - 4], 1
push eax
push 0x20019
push 0
push str.SOFTWAREInstallShield29.0Professional
push SysReAllocStringLen
mov dword [ebp - 0xa8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xa4], eax
test eax, eax
jne 0x404f02
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0x70], 0x48e948
mov dword [ebp - 0x48], 0x48e950
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x44], eax
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x5c], 0
movups xmmword [ebp - 0x6c], xmm0
mov word [ebp - 0x6c], ax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x58], 7
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x48]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [ebp - 4], 2
cmp dword [ebp - 0xa4], 0
jne 0x405018
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x70]
mov dword [ebp - 0xbc], eax
mov byte [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
cmp ecx, 0x104
jae 0x404f95
mov eax, 0x104
sub eax, ecx
lea ecx, [ebp - 0x6c]
push 0
push eax
call fcn.00408530
mov esi, 4
mov dword [ebp - 0xac], esi
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 3
call fcn.00405f90
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xb0], eax
push ecx
push eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa4], 0x208
push eax
push 0
push str.VerboseLogPath
push dword [ebp - 0xc8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40500d
mov eax, dword [ebp - 0xa8]
cmp eax, 1
je 0x404ff5
cmp eax, 2
jne 0x40500d
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x40500d
cmp dword [ebp - 0xa4], 0
jne 0x40500d
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0xbc]
call fcn.00406010
cmp dword [ebp - 0x5c], 0
jne 0x405127
mov dword [ebp - 0x40], 0x48e948
mov dword [ebp - 0x18], 0x48e950
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x3c], xmm0
mov word [ebp - 0x3c], ax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], 7
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x18]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [ebp - 4], 4
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0xbc], eax
mov byte [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
cmp ecx, 0x104
jae 0x4050a8
mov eax, 0x104
sub eax, ecx
lea ecx, [ebp - 0x3c]
push 0
push eax
call fcn.00408530
or esi, 8
mov dword [ebp - 0xac], esi
push 0x104
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 5
call fcn.00405f90
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 4
call fcn.00406010
push 0
push 0
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x40]
call fcn.00406350
add eax, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x6c]
cmp ecx, eax
je 0x405114
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x405108
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x6c]
call fcn.00408080
lea ecx, [ebp - 0xa0]
call fcn.00404d40
lea ecx, [ebp - 0x40]
call fcn.00404d40
mov dword [ebp - 0x40], 0x48e948
mov dword [ebp - 0x18], 0x48e950
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
push 0x11
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
push str.InstallShield.log
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x28], 0
call fcn.00409080
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x18]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 1
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 9
push eax
mov ecx, edi
call fcn.00407870
push 0x5c
sub esp, 0x30
lea eax, [ebp - 0x40]
mov ecx, esp
or esi, 2
mov dword [ebp - 0xac], esi
push 1
push eax
call fcn.00407870
mov ecx, edi
call fcn.00406ce0
lea ecx, [ebp - 0x40]
call fcn.00404d40
lea ecx, [ebp - 0x70]
call fcn.00404d40
mov eax, dword [ebp - 0xc8]
test eax, eax
je 0x4051df
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00443e8b
mov esp, ebp
pop ebp
ret