Function at 0x4077c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x46c54c
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 [0x48d66c], 0
mov eax, dword [esp + 0x270]
jne 0x407812
xor al, al
jmp 0x407b75
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.00403a60
mov dword [esp + 0x268], 0
lea ecx, [esp + 0x3c]
push 0xffffffffffffffff
push 0
push 0x48d65c
call fcn.004038c0
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 0x407b36
mov esi, dword [esp + 0xc]
test esi, esi
je 0x407b36
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.00451ce0
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 0x40792b
cmp dword [esp + 0x1c], 0x104
jae 0x40792b
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 0x407b3c
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x24]
call fcn.00402be0
mov byte [esp + 0x268], 1
mov edx, str.__r_t_n
lea ecx, [esp + 0x20]
call fcn.0040f130
mov edx, str.__r_t_n
lea ecx, [esp + 0x20]
call fcn.0040f1a0
cmp dword [esp + 0x30], 0
je 0x407b22
cmp dword [esp + 0x34], 8
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
cmp word [eax], 0x22
jne 0x4079fe
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.00412680
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 0x407b11
lea eax, [esi + 0x18]
jmp 0x407a78
lea ecx, [esp + 0x20]
call fcn.00411030
test al, al
je 0x407a23
mov bl, 1
mov byte [esp + 0x268], 0
lea ecx, [esp + 0x20]
call fcn.00402cb0
jmp 0x407b3e
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.00412680
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, dword [esp + 0x14]
je 0x407b11
lea ecx, [esp + 0x20]
cmp ecx, eax
je 0x407a8a
push 0xffffffffffffffff
push 0
push eax
call fcn.00403a60
mov byte [esp + 0x268], 1
lea ecx, [esp + 0x10]
call fcn.0040a360
mov edx, str.__r_t_n
lea ecx, [esp + 0x20]
call fcn.0040f130
mov edx, str.__r_t_n
lea ecx, [esp + 0x20]
call fcn.0040f1a0
cmp dword [esp + 0x30], 0
je 0x407b22
cmp dword [esp + 0x34], 8
lea ecx, [esp + 0x20]
mov edx, str.MsiExec.exe
cmovae ecx, dword [esp + 0x20]
call fcn.0040ef90
test al, al
je 0x407aef
mov bl, 1
mov byte [esp + 0x268], 0
lea ecx, [esp + 0x20]
call fcn.00402cb0
jmp 0x407b3e
lea ecx, [esp + 0x20]
call fcn.00411030
test al, al
je 0x407b22
mov bl, 1
mov byte [esp + 0x268], 0
lea ecx, [esp + 0x20]
call fcn.00402cb0
jmp 0x407b3e
mov byte [esp + 0x268], 1
lea ecx, [esp + 0x10]
call fcn.0040a360
xor bl, bl
mov byte [esp + 0x268], bl
lea ecx, [esp + 0x20]
call fcn.00402cb0
jmp 0x407b3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
mov dword [esp + 0x268], 0xffffffff
cmp dword [esp + 0x50], 8
jb 0x407b5c
push dword [esp + 0x3c]
call fcn.0044b7dc
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.0044b7e1
add esp, 0x260
ret