Function at 0x4074f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x46c36c
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 0x407542
xor al, al
jmp 0x4078a5
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 0x407866
mov esi, dword [esp + 0xc]
test esi, esi
je 0x407866
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.00451b50
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 0x40765b
cmp dword [esp + 0x1c], 0x104
jae 0x40765b
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 0x40786c
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.0040f010
mov edx, str.__r_t_n
lea ecx, [esp + 0x20]
call fcn.0040f080
cmp dword [esp + 0x30], 0
je 0x407852
cmp dword [esp + 0x34], 8
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
cmp word [eax], 0x22
jne 0x40772e
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.004123f0
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 0x407841
lea eax, [esi + 0x18]
jmp 0x4077a8
lea ecx, [esp + 0x20]
call fcn.00410ea0
test al, al
je 0x407753
mov bl, 1
mov byte [esp + 0x268], 0
lea ecx, [esp + 0x20]
call fcn.00402d10
jmp 0x40786e
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.004123f0
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, dword [esp + 0x14]
je 0x407841
lea ecx, [esp + 0x20]
cmp ecx, eax
je 0x4077ba
push 0xffffffffffffffff
push 0
push eax
call fcn.00403ac0
mov byte [esp + 0x268], 1
lea ecx, [esp + 0x10]
call fcn.00409fd0
mov edx, str.__r_t_n
lea ecx, [esp + 0x20]
call fcn.0040f010
mov edx, str.__r_t_n
lea ecx, [esp + 0x20]
call fcn.0040f080
cmp dword [esp + 0x30], 0
je 0x407852
cmp dword [esp + 0x34], 8
lea ecx, [esp + 0x20]
mov edx, str.MsiExec.exe
cmovae ecx, dword [esp + 0x20]
call fcn.0040ee70
test al, al
je 0x40781f
mov bl, 1
mov byte [esp + 0x268], 0
lea ecx, [esp + 0x20]
call fcn.00402d10
jmp 0x40786e
lea ecx, [esp + 0x20]
call fcn.00410ea0
test al, al
je 0x407852
mov bl, 1
mov byte [esp + 0x268], 0
lea ecx, [esp + 0x20]
call fcn.00402d10
jmp 0x40786e
mov byte [esp + 0x268], 1
lea ecx, [esp + 0x10]
call fcn.00409fd0
xor bl, bl
mov byte [esp + 0x268], bl
lea ecx, [esp + 0x20]
call fcn.00402d10
jmp 0x40786e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
mov dword [esp + 0x268], 0xffffffff
cmp dword [esp + 0x50], 8
jb 0x40788c
push dword [esp + 0x3c]
call fcn.0044b63d
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.0044b642
add esp, 0x260
ret