Function at 0x493f50
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4e958c
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x254], eax
push ebx
push esi
push edi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x26c]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
cmp dword [esi + 0x94], 0
mov eax, dword [esp + 0x27c]
jne 0x493fa5
xor al, al
jmp 0x4942f3
xor ecx, ecx
mov dword [esp + 0x54], 0
push 0xffffffffffffffff
push ecx
mov word [esp + 0x4c], cx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x60], 0
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
call fcn.00403000
mov dword [esp + 0x274], 0
lea eax, [esi + 0x84]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x50]
call fcn.004033c0
cmp dword [esp + 0x58], 8
lea ecx, [esp + 0x14]
push ecx
push 0x20019
lea eax, [esp + 0x4c]
cmovae eax, dword [esp + 0x4c]
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4942ba
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4942ba
push 0x206
push eax
mov dword [esp + 0x2c], eax
xor bl, bl
mov word [esp + 0x64], ax
lea eax, [esp + 0x66]
push eax
mov dword [esp + 0x4c], 1
call fcn.004cb9a0
add esp, 0xc
lea eax, [esp + 0x24]
push eax
push 0
lea eax, [esp + 0x48]
push eax
push 0
push str.UninstallString
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
test eax, eax
jne 0x4940af
cmp dword [esp + 0x24], 0x104
jae 0x4940af
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x48]
push eax
push 0
push str.UninstallString
push dword [esp + 0x28]
call esi
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x4942ba
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x2c]
call fcn.004029f0
mov byte [esp + 0x274], 1
mov edx, str.__r_t_n
lea ecx, [esp + 0x28]
call fcn.004957b0
mov edx, str.__r_t_n
lea ecx, [esp + 0x28]
call fcn.00495820
cmp dword [esp + 0x38], 0
je 0x4942a6
cmp dword [esp + 0x3c], 8
lea eax, [esp + 0x28]
cmovae eax, dword [esp + 0x28]
cmp word [eax], 0x22
jne 0x494182
xorps xmm0, xmm0
mov dword [esp + 0x20], 0
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov byte [esp + 0x274], 2
lea eax, [esp + 0x18]
push eax
mov edx, 0x22
lea ecx, [esp + 0x2c]
call fcn.004972a0
mov ecx, dword [esp + 0x20]
mov eax, 0x2aaaaaab
mov esi, dword [esp + 0x1c]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jb 0x494295
lea eax, [esi + 0x18]
jmp 0x4941fc
lea ecx, [esp + 0x28]
call fcn.00496100
test al, al
je 0x4941a7
mov bl, 1
mov byte [esp + 0x274], 0
lea ecx, [esp + 0x28]
call fcn.00402a90
jmp 0x4942bc
xorps xmm0, xmm0
mov dword [esp + 0x20], 0
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov byte [esp + 0x274], 3
lea eax, [esp + 0x18]
push eax
mov edx, 0x20
lea ecx, [esp + 0x2c]
call fcn.004972a0
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, dword [esp + 0x1c]
je 0x494295
lea ecx, [esp + 0x28]
cmp ecx, eax
je 0x49420e
push 0xffffffffffffffff
push 0
push eax
call fcn.00403000
mov byte [esp + 0x274], 1
lea ecx, [esp + 0x18]
call fcn.0047e810
mov edx, str.__r_t_n
lea ecx, [esp + 0x28]
call fcn.004957b0
mov edx, str.__r_t_n
lea ecx, [esp + 0x28]
call fcn.00495820
cmp dword [esp + 0x38], 0
je 0x4942a6
cmp dword [esp + 0x3c], 8
lea ecx, [esp + 0x28]
mov edx, str.MsiExec.exe
cmovae ecx, dword [esp + 0x28]
call fcn.00495610
test al, al
je 0x494273
mov bl, 1
mov byte [esp + 0x274], 0
lea ecx, [esp + 0x28]
call fcn.00402a90
jmp 0x4942bc
lea ecx, [esp + 0x28]
call fcn.00496100
test al, al
je 0x4942a6
mov bl, 1
mov byte [esp + 0x274], 0
lea ecx, [esp + 0x28]
call fcn.00402a90
jmp 0x4942bc
mov byte [esp + 0x274], 1
lea ecx, [esp + 0x18]
call fcn.0047e810
xor bl, bl
mov byte [esp + 0x274], bl
lea ecx, [esp + 0x28]
call fcn.00402a90
jmp 0x4942bc
xor bl, bl
mov dword [esp + 0x274], 0xffffffff
cmp dword [esp + 0x58], 8
jb 0x4942da
push dword [esp + 0x44]
call fcn.004c515a
add esp, 4
xor eax, eax
mov dword [esp + 0x58], 7
mov word [esp + 0x44], ax
mov al, bl
mov dword [esp + 0x54], 0
mov ecx, dword [esp + 0x26c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.004c515f
add esp, 0x268
ret