Function at 0x46bde0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x47cf04
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x4a22c4]
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x24], edi
je 0x46be4a
mov eax, dword [0x4a22c0]
cmp eax, edi
jne 0x46be1a
mov eax, 0x47e608
mov esi, dword [esp + 0xb0]
cmp eax, edi
mov dword [esi], 0x47e5a0
mov dword [esi + 0x20], 0x47e598
jne 0x46be37
mov eax, 0x49cc4c
lea ecx, [esp + 0xa]
push edi
push ecx
push eax
mov ecx, esi
call fcn.00408d43
jmp 0x46c16f
mov dword [esp + 0xc], edi
lea edx, [esp + 0x10]
mov dword [esp + 0xa8], 1
push edx
push 0x20019
push edi
push str.SOFTWAREInstallShield15.0Professional
push SysReAllocStringLen
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, edi
jne 0x46be91
lea ecx, [esp + 0xc]
call fcn.0040d2f9
mov esi, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], eax
push ebx
push ebp
lea ecx, [esp + 0x12]
push edi
mov ebx, 0x47e598
push ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x60], 0x47e5a0
mov dword [esp + 0x80], ebx
call fcn.004017e6
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esp + 0xb0], 2
jne 0x46bf8e
lea edx, [esp + 0x1c]
push 0x104
push edx
lea ecx, [esp + 0x60]
mov dword [esp + 0x20], 0x104
call fcn.00408e34
mov esi, eax
mov ecx, dword [esi]
mov byte [esp + 0xb0], 3
call fcn.00401992
lea ecx, [esp + 0x18]
lea edx, [esp + 0x28]
push ecx
push eax
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
push edx
push 0
push str.VerboseLogPath
push eax
mov dword [esp + 0x40], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov al, byte [esp + 0x20]
mov byte [esp + 0xb0], 2
test al, al
je 0x46bf43
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x1c]
push edx
call fcn.0046cb70
mov eax, dword [esp + 0x24]
test eax, eax
je 0x46bf8e
call edi
mov ecx, dword [esp + 0x24]
mov esi, eax
lea eax, [esp + 0x13]
push 1
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.00401764
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0xb4], 4
call fcn.004095a6
lea ecx, [esp + 0x30]
mov byte [esp + 0xb0], 2
call fcn.00401bc7
push esi
call ebp
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x46c0eb
lea eax, [esp + 0x13]
push 0
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0x47e5a0
mov dword [esp + 0x58], ebx
call fcn.004017e6
lea ecx, [esp + 0x1c]
push 0x104
mov bl, 5
push ecx
lea ecx, [esp + 0x38]
mov byte [esp + 0xb8], bl
call fcn.00408e34
mov esi, eax
mov ecx, dword [esi]
mov byte [esp + 0xb0], 6
call fcn.00401992
push 0x104
push eax
push 0
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov al, byte [esp + 0x20]
mov byte [esp + 0xb0], bl
test al, al
je 0x46c010
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x1c]
push edx
call fcn.0046cb70
mov eax, dword [esp + 0x24]
test eax, eax
je 0x46c063
call edi
mov ecx, dword [esp + 0x24]
mov esi, eax
lea eax, [esp + 0x11]
push 1
push eax
push ecx
lea ecx, [esp + 0x8c]
call fcn.00401764
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x80]
push edx
mov byte [esp + 0xb4], 7
call fcn.004095a6
lea ecx, [esp + 0x80]
mov byte [esp + 0xb0], bl
call fcn.00401bc7
push esi
call ebp
push 0
lea eax, [esp + 0x84]
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.0040dd3e
mov edx, dword [esp + 0x58]
mov byte [esp + 0xb0], 8
cmp edx, 0x47e5a0
jne 0x46c0a4
test eax, eax
jne 0x46c094
xor ecx, ecx
jmp 0x46c09b
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
mov edx, dword [edx + 4]
mov ecx, dword [ecx]
mov dword [esp + edx + 0x58], ecx
test eax, eax
je 0x46c0ad
add eax, 4
jmp 0x46c0af
xor eax, eax
mov edx, dword [0x47e654]
lea ecx, [esp + 0x5c]
push edx
push 0
push eax
call fcn.00409739
lea ecx, [esp + 0x80]
mov byte [esp + 0xb0], bl
call fcn.00401bc7
lea ecx, [esp + 0x30]
mov byte [esp + 0xb0], 2
call fcn.00401bc7
mov ebx, 0x47e598
mov eax, str.InstallShield.log
mov dword [esp + 0x50], ebx
pop ebp
mov dword [esp + 0x2c], 0x47e5a0
test eax, eax
pop ebx
jne 0x46c107
mov eax, 0x49cc4c
lea ecx, [esp + 9]
push 0
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.00408d43
mov esi, dword [esp + 0xb0]
lea edx, [esp + 0x28]
push edx
push esi
lea ecx, [esp + 0x58]
mov byte [esp + 0xb0], 9
call fcn.0040dc89
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], 1
mov byte [esp + 0xa8], 2
call fcn.00401bc7
lea ecx, [esp + 0x50]
mov byte [esp + 0xa8], 1
call fcn.00401bc7
mov eax, dword [esp + 0xc]
test eax, eax
je 0x46c16f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xa0]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0xa4
ret 4