Function at 0x40bed4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1fb4]
mov eax, 0x2034
call fcn.004239d0
mov eax, dword [0x43637c]
xor eax, ebp
mov dword [ebp + 0x1fb0], eax
mov eax, dword [ebp + 0x1fbc]
push esi
push edi
xor edi, edi
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x80], 0x800
mov byte [ebp - 0x51], 0
cmp eax, 1
jne 0x40bf22
mov eax, str.SoftwareMacromediaFlashPlayerActiveX
jmp 0x40bf30
cmp eax, 2
jne 0x40c0eb
mov eax, str.SoftwareMacromediaFlashPlayerPlugin
lea ecx, [ebp - 0x6c]
push ecx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x6c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40c0eb
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0xfb0]
push eax
push edi
push edi
push str.Version
push dword [ebp - 0x6c]
call esi
mov dword [ebp - 0x64], eax
cmp eax, edi
jne 0x40bfa0
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x5c]
push eax
push edi
push edi
push str.isScriptDebugger
push dword [ebp - 0x6c]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x68], 4
call esi
test eax, eax
jne 0x40bfa0
cmp dword [ebp - 0x5c], edi
jbe 0x40bfa0
mov byte [ebp - 0x51], 1
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x64], edi
jne 0x40c0eb
cmp byte [ebp - 0x51], 0
jne 0x40c0eb
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x60], edi
cmp dword [ebp - 0x60], 0x800
jae 0x40c0d4
lea eax, [ebp + 0xfb0]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x40bfea
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x60], eax
jae 0x40c013
mov eax, dword [ebp - 0x60]
cmp word [ebp + eax*2 + 0xfb0], 0x2e
je 0x40c013
inc dword [ebp - 0x58]
jmp 0x40c0b1
mov ecx, dword [ebp - 0x74]
xor eax, eax
cmp ecx, dword [ebp - 0x58]
jae 0x40c039
mov eax, dword [ebp - 0x58]
sub eax, ecx
lea esi, [ebp + ecx*2 + 0xfb0]
mov ecx, eax
shr ecx, 1
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
xor edi, edi
inc dword [ebp - 0x58]
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x74], ecx
xor ecx, ecx
mov word [ebp + eax*2 - 0x50], cx
mov eax, dword [ebp - 0x5c]
sub eax, edi
je 0x40c099
dec eax
je 0x40c085
dec eax
je 0x40c071
dec eax
jne 0x40c0eb
push 0xa
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00413c27
mov dword [ebp - 0x68], eax
jmp 0x40c0ab
push 0xa
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00413c27
mov dword [ebp - 0x64], eax
jmp 0x40c0ab
push 0xa
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00413c27
mov dword [ebp - 0x7c], eax
jmp 0x40c0ab
push 0xa
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00413c27
mov dword [ebp - 0x78], eax
add esp, 0xc
inc dword [ebp - 0x5c]
inc dword [ebp - 0x60]
lea eax, [ebp + 0xfb0]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x40c0bd
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x60], eax
jbe 0x40bfd4
mov eax, dword [ebp - 0x78]
mov dword [ebx], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x64]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x68]
mov dword [ebx + 0xc], eax
mov ecx, dword [ebp + 0x1fb0]
pop edi
xor ecx, ebp
mov eax, ebx
pop esi
call fcn.00412c50
add ebp, 0x1fb4
leave
ret 4