Function at 0x4062f0
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 0x5c6578
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.0048fce0
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 0x406673
cmp dword [edi + 0x14], 7
jbe 0x406392
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.00402910
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 0x4065ef
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 0x4065e6
mov eax, dword [ebp - 0x27c]
cmp eax, 1
je 0x406460
cmp eax, 2
jne 0x4065e6
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x406484
test al, 1
jne 0x4065e6
shr eax, 1
cmp word [ebp + eax*2 - 0x222], 0
je 0x40648d
jmp 0x4065e6
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 0x4064b4
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.004027e0
lea edx, [ebp - 0x238]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x250]
call fcn.00405290
cmp dword [ebp - 0x240], 0
mov dword [ebp - 0x274], 3
jbe 0x406530
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 0x406530
push edx
lea ecx, [ebp - 0x250]
call fcn.00409b90
mov ecx, dword [ebp - 0x278]
lea eax, [ebp - 0x250]
push eax
call fcn.00403ee0
mov ecx, dword [ebp - 0x23c]
cmp ecx, 7
jbe 0x406582
mov edx, dword [ebp - 0x250]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406578
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406678
push ecx
push edx
call fcn.004392c8
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 0x4065df
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4065d5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406678
push ecx
push edx
call fcn.004392c8
add esp, 8
mov byte [ebp - 0x269], 1
test esi, esi
je 0x4065ef
push esi
call edi
xor esi, esi
mov ecx, dword [ebp - 0x254]
cmp ecx, 7
jbe 0x40662b
mov edx, dword [ebp - 0x268]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406621
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40667d
push ecx
push edx
call fcn.004392c8
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 0x40664f
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.0043928a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004012e0
call fcn.0049452a
call fcn.0049452a
int3