Function at 0x4031f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4703ec
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x49274c]
xor eax, esp
mov dword [esp + 0x254], eax
push ebx
push esi
push edi
mov eax, dword [0x49274c]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
cmp dword [esi + 0x10], 0
mov eax, dword [esp + 0x278]
jne 0x403242
xor al, al
jmp 0x4035a1
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.00406750
mov dword [esp + 0x270], 0
lea ecx, [esp + 0x44]
push 0xffffffffffffffff
push 0
push esi
call fcn.004065b0
cmp byte [esp + 0x27c], 0
lea edx, [esp + 0x14]
push edx
mov eax, 0x20119
mov ecx, 0x20019
cmovne ecx, eax
cmp dword [esp + 0x5c], 8
push ecx
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 0x403562
mov esi, dword [esp + 0x14]
test esi, esi
je 0x403562
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.00455ee0
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 0x403357
cmp dword [esp + 0x24], 0x104
jae 0x403357
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 0x403568
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x2c]
call fcn.00404e90
mov byte [esp + 0x270], 1
mov edx, str.__r_t_n
lea ecx, [esp + 0x28]
call fcn.00411320
mov edx, str.__r_t_n
lea ecx, [esp + 0x28]
call fcn.00411390
cmp dword [esp + 0x38], 0
je 0x40354e
cmp dword [esp + 0x3c], 8
lea eax, [esp + 0x28]
cmovae eax, dword [esp + 0x28]
cmp word [eax], 0x22
jne 0x40342a
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 + 0x270], 2
lea eax, [esp + 0x18]
push eax
mov edx, 0x22
lea ecx, [esp + 0x2c]
call fcn.00412fd0
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 0x40353d
lea eax, [esi + 0x18]
jmp 0x4034a4
lea ecx, [esp + 0x28]
call fcn.00412780
test al, al
je 0x40344f
mov bl, 1
mov byte [esp + 0x270], 0
lea ecx, [esp + 0x28]
call fcn.00404f60
jmp 0x40356a
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 + 0x270], 3
lea eax, [esp + 0x18]
push eax
mov edx, 0x20
lea ecx, [esp + 0x2c]
call fcn.00412fd0
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, dword [esp + 0x1c]
je 0x40353d
lea ecx, [esp + 0x28]
cmp ecx, eax
je 0x4034b6
push 0xffffffffffffffff
push 0
push eax
call fcn.00406750
mov byte [esp + 0x270], 1
lea ecx, [esp + 0x18]
call fcn.004052a0
mov edx, str.__r_t_n
lea ecx, [esp + 0x28]
call fcn.00411320
mov edx, str.__r_t_n
lea ecx, [esp + 0x28]
call fcn.00411390
cmp dword [esp + 0x38], 0
je 0x40354e
cmp dword [esp + 0x3c], 8
lea ecx, [esp + 0x28]
mov edx, str.MsiExec.exe
cmovae ecx, dword [esp + 0x28]
call fcn.00411180
test al, al
je 0x40351b
mov bl, 1
mov byte [esp + 0x270], 0
lea ecx, [esp + 0x28]
call fcn.00404f60
jmp 0x40356a
lea ecx, [esp + 0x28]
call fcn.00412780
test al, al
je 0x40354e
mov bl, 1
mov byte [esp + 0x270], 0
lea ecx, [esp + 0x28]
call fcn.00404f60
jmp 0x40356a
mov byte [esp + 0x270], 1
lea ecx, [esp + 0x18]
call fcn.004052a0
xor bl, bl
mov byte [esp + 0x270], bl
lea ecx, [esp + 0x28]
call fcn.00404f60
jmp 0x40356a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
mov dword [esp + 0x270], 0xffffffff
cmp dword [esp + 0x58], 8
jb 0x403588
push dword [esp + 0x44]
call fcn.0044fd7a
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 + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.0044fd7f
add esp, 0x264
ret