Function at 0x406320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6c28
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x278
mov eax, dword [0x6540c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x278], edx
mov edi, ecx
push 0x208
lea eax, [ebp - 0x220]
mov dword [ebp - 0x274], 0
push 0
push eax
mov byte [ebp - 0x269], 0
call fcn.00490360
xor esi, esi
add esp, 0xc
mov dword [ebp - 0x288], esi
mov dword [ebp - 0x284], esi
mov dword [ebp - 0x280], esi
mov dword [ebp - 4], esi
mov eax, bind
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 0x34
jb 0x4066a3
cmp dword [edi + 0x14], 7
jbe 0x4063c2
mov edi, dword [edi]
push ecx
push edi
push 0x34
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push ecx
push dword [ebp - 0x278]
lea ecx, [ebp - 0x268]
call fcn.004028b0
mov dword [ebp - 0x274], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x270]
cmp dword [ebp - 0x254], 7
lea eax, [ebp - 0x268]
push ecx
cmova eax, dword [ebp - 0x268]
push 0x2001f
push 0
push eax
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x270], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40661f
mov esi, dword [ebp - 0x270]
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x288], esi
push eax
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x284], 0
push eax
push 0
push str.InstallLocation
push esi
mov dword [ebp - 0x270], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406616
mov eax, dword [ebp - 0x27c]
cmp eax, 1
je 0x406490
cmp eax, 2
jne 0x406616
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x4064b4
test al, 1
jne 0x406616
shr eax, 1
cmp word [ebp + eax*2 - 0x222], 0
je 0x4064bd
jmp 0x406616
xor eax, eax
mov word [ebp - 0x220], ax
xorps xmm0, xmm0
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x224], 0
movups xmmword [ebp - 0x238], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4064e4
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.00402780
lea edx, [ebp - 0x238]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x250]
call fcn.00405200
cmp dword [ebp - 0x240], 0
mov dword [ebp - 0x274], 3
jbe 0x406560
cmp dword [ebp - 0x224], 7
lea ecx, [ebp - 0x238]
mov eax, dword [ebp - 0x228]
mov edx, 0x5c
cmova ecx, dword [ebp - 0x238]
cmp dx, word [ecx + eax*2 - 2]
je 0x406560
push edx
lea ecx, [ebp - 0x250]
call fcn.00409fa0
mov ecx, dword [ebp - 0x278]
lea eax, [ebp - 0x250]
push eax
call fcn.00403e50
mov ecx, dword [ebp - 0x23c]
cmp ecx, 7
jbe 0x4065b2
mov edx, dword [ebp - 0x250]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4065a8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4066a8
push ecx
push edx
call fcn.00439938
add esp, 8
mov ecx, dword [ebp - 0x224]
xor eax, eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
cmp ecx, 7
jbe 0x40660f
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406605
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4066a8
push ecx
push edx
call fcn.00439938
add esp, 8
mov byte [ebp - 0x269], 1
test esi, esi
je 0x40661f
push esi
call edi
xor esi, esi
mov ecx, dword [ebp - 0x254]
cmp ecx, 7
jbe 0x40665b
mov edx, dword [ebp - 0x268]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406651
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4066ad
push ecx
push edx
call fcn.00439938
add esp, 8
xor eax, eax
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
test esi, esi
je 0x40667f
push esi
call edi
mov al, byte [ebp - 0x269]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004398fa
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004012e0
call fcn.00494baa
call fcn.00494baa
int3