Function at 0x407940
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x46c84c
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov esi, edx
cmp dword [0x48d69c], 0
mov eax, dword [esp + 0x270]
jne 0x407992
xor al, al
jmp 0x407cf5
xor ecx, ecx
mov dword [esp + 0x4c], 0
push 0xffffffffffffffff
push ecx
mov word [esp + 0x44], cx
lea ecx, [esp + 0x44]
mov dword [esp + 0x58], 0
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
call fcn.00403ac0
mov dword [esp + 0x268], 0
lea ecx, [esp + 0x3c]
push 0xffffffffffffffff
push 0
push 0x48d68c
call fcn.00403920
cmp byte [esp + 0x274], 0
lea edx, [esp + 0xc]
push edx
mov eax, 0x20119
mov ecx, 0x20019
cmovne ecx, eax
cmp dword [esp + 0x54], 8
push ecx
lea eax, [esp + 0x44]
cmovae eax, dword [esp + 0x44]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407cb6
mov esi, dword [esp + 0xc]
test esi, esi
je 0x407cb6
push 0x206
push eax
mov dword [esp + 0x24], eax
xor bl, bl
mov word [esp + 0x5c], ax
lea eax, [esp + 0x5e]
push eax
mov dword [esp + 0x44], 1
call fcn.00451fb0
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x40]
push eax
push 0
push str.UninstallString
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
test eax, eax
jne 0x407aab
cmp dword [esp + 0x1c], 0x104
jae 0x407aab
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x40]
push eax
push 0
push str.UninstallString
push dword [esp + 0x20]
call esi
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x407cbc
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x24]
call fcn.00402c40
mov byte [esp + 0x268], 1
mov edx, str.__r_t_n
lea ecx, [esp + 0x20]
call fcn.0040f470
mov edx, str.__r_t_n
lea ecx, [esp + 0x20]
call fcn.0040f4e0
cmp dword [esp + 0x30], 0
je 0x407ca2
cmp dword [esp + 0x34], 8
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
cmp word [eax], 0x22
jne 0x407b7e
xorps xmm0, xmm0
mov dword [esp + 0x18], 0
movq qword [esp + 0x10], xmm0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x268], 2
lea eax, [esp + 0x10]
push eax
mov edx, 0x22
lea ecx, [esp + 0x24]
call fcn.00412850
mov ecx, dword [esp + 0x18]
mov eax, 0x2aaaaaab
mov esi, dword [esp + 0x14]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jb 0x407c91
lea eax, [esi + 0x18]
jmp 0x407bf8
lea ecx, [esp + 0x20]
call fcn.00411300
test al, al
je 0x407ba3
mov bl, 1
mov byte [esp + 0x268], 0
lea ecx, [esp + 0x20]
call fcn.00402d10
jmp 0x407cbe
xorps xmm0, xmm0
mov dword [esp + 0x18], 0
movq qword [esp + 0x10], xmm0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x268], 3
lea eax, [esp + 0x10]
push eax
mov edx, 0x20
lea ecx, [esp + 0x24]
call fcn.00412850
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, dword [esp + 0x14]
je 0x407c91
lea ecx, [esp + 0x20]
cmp ecx, eax
je 0x407c0a
push 0xffffffffffffffff
push 0
push eax
call fcn.00403ac0
mov byte [esp + 0x268], 1
lea ecx, [esp + 0x10]
call fcn.0040a420
mov edx, str.__r_t_n
lea ecx, [esp + 0x20]
call fcn.0040f470
mov edx, str.__r_t_n
lea ecx, [esp + 0x20]
call fcn.0040f4e0
cmp dword [esp + 0x30], 0
je 0x407ca2
cmp dword [esp + 0x34], 8
lea ecx, [esp + 0x20]
mov edx, str.MsiExec.exe
cmovae ecx, dword [esp + 0x20]
call fcn.0040f2d0
test al, al
je 0x407c6f
mov bl, 1
mov byte [esp + 0x268], 0
lea ecx, [esp + 0x20]
call fcn.00402d10
jmp 0x407cbe
lea ecx, [esp + 0x20]
call fcn.00411300
test al, al
je 0x407ca2
mov bl, 1
mov byte [esp + 0x268], 0
lea ecx, [esp + 0x20]
call fcn.00402d10
jmp 0x407cbe
mov byte [esp + 0x268], 1
lea ecx, [esp + 0x10]
call fcn.0040a420
xor bl, bl
mov byte [esp + 0x268], bl
lea ecx, [esp + 0x20]
call fcn.00402d10
jmp 0x407cbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
mov dword [esp + 0x268], 0xffffffff
cmp dword [esp + 0x50], 8
jb 0x407cdc
push dword [esp + 0x3c]
call fcn.0044baac
add esp, 4
xor eax, eax
mov dword [esp + 0x50], 7
mov word [esp + 0x3c], ax
mov al, bl
mov dword [esp + 0x4c], 0
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0044bab1
add esp, 0x260
ret