Function at 0x404d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48946e
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x4d9754]
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 [0x4da078], esi
je 0x404e1b
cmp dword [0x4da07c], 8
mov eax, 0x4da068
mov esi, 0x4b65d4
cmovae eax, dword [0x4da068]
test eax, eax
mov dword [edi], 0x4b6748
mov dword [edi + 0x28], 0x4b6750
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, 0x4b65d4
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 0x404dd3
sub edx, dword [ebp - 0xa4]
sar edx, 1
push edx
push ecx
lea ecx, [edi + 4]
call fcn.004091c0
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 0x40515f
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 0x404e82
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0x70], 0x4b6748
mov dword [ebp - 0x48], 0x4b6750
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 0x404f98
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 0x404f15
mov eax, 0x104
sub eax, ecx
lea ecx, [ebp - 0x6c]
push 0
push eax
call fcn.00408610
mov esi, 4
mov dword [ebp - 0xac], esi
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 3
call fcn.00405f10
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 0x404f8d
mov eax, dword [ebp - 0xa8]
cmp eax, 1
je 0x404f75
cmp eax, 2
jne 0x404f8d
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x404f8d
cmp dword [ebp - 0xa4], 0
jne 0x404f8d
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0xbc]
call fcn.00405f90
cmp dword [ebp - 0x5c], 0
jne 0x4050a7
mov dword [ebp - 0x40], 0x4b6748
mov dword [ebp - 0x18], 0x4b6750
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 0x405028
mov eax, 0x104
sub eax, ecx
lea ecx, [ebp - 0x3c]
push 0
push eax
call fcn.00408610
or esi, 8
mov dword [ebp - 0xac], esi
push 0x104
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 5
call fcn.00405f10
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 4
call fcn.00405f90
push 0
push 0
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x40]
call fcn.004062d0
add eax, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x6c]
cmp ecx, eax
je 0x405094
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x405088
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x6c]
call fcn.00408130
lea ecx, [ebp - 0xa0]
call fcn.00404cc0
lea ecx, [ebp - 0x40]
call fcn.00404cc0
mov dword [ebp - 0x40], 0x4b6748
mov dword [ebp - 0x18], 0x4b6750
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.004091c0
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.004077f0
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.004077f0
mov ecx, edi
call fcn.00406c60
lea ecx, [ebp - 0x40]
call fcn.00404cc0
lea ecx, [ebp - 0x70]
call fcn.00404cc0
mov eax, dword [ebp - 0xc8]
test eax, eax
je 0x40515f
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.0045978b
mov esp, ebp
pop ebp
ret