Function at 0x4066c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x830
mov eax, 0x4dbaeb
call fcn.004bb813
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x834], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, 0x5311f0
cmp dword [0x532b50], ebx
je 0x406772
cmp dword [0x532b54], ebx
je 0x406772
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x818]
push 0x532b78
push eax
call fcn.00401dfb
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00401cd3
mov ecx, dword [ebp - 0x818]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.00404c8b
push edi
lea ecx, [ebp - 0x814]
call fcn.00401749
mov ecx, dword [0x532b54]
push ebx
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.00412de4
push dword [ebp - 0x814]
lea ecx, [ebp + 8]
call fcn.00401d76
mov ecx, dword [ebp - 0x814]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.00404c8b
xor eax, eax
cmp byte [0x532b58], al
mov esi, SysReAllocStringLen
sete al
push edi
lea ecx, [ebp - 0x820]
add eax, esi
mov dword [ebp - 0x814], eax
call fcn.00401749
cmp byte [ebp + 0x10], 0
mov byte [ebp - 4], 3
mov edi, 0x4e7718
je 0x4067f1
cmp byte [0x52c03c], 0
jne 0x4067f1
mov eax, dword [0x532bb8]
cmp dword [eax - 0xc], 0
je 0x4067f7
push edi
lea eax, [ebp - 0x818]
push 0x532bb8
push eax
add esi, 2
call fcn.00401e50
add esp, 0xc
push eax
lea ecx, [ebp - 0x820]
mov byte [ebp - 4], 4
call fcn.00401cd3
mov ecx, dword [ebp - 0x818]
lea ecx, [ecx - 0x10]
call fcn.00404c8b
jmp 0x4067f7
mov esi, dword [ebp - 0x814]
mov dword [ebp - 0x830], ebx
mov dword [ebp - 0x82c], ebx
mov dword [ebp - 0x828], ebx
push str.Software_
lea ecx, [ebp - 0x838]
mov byte [ebp - 4], 5
call fcn.00401814
push eax
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x83c]
push eax
mov byte [ebp - 4], 6
call fcn.00401dfb
push 0x532b8c
push eax
lea eax, [ebp - 0x81c]
push eax
mov byte [ebp - 4], 7
call fcn.00401dfb
push edi
push eax
lea eax, [ebp - 0x814]
push eax
mov byte [ebp - 4], 8
call fcn.00401e50
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x818]
push eax
mov byte [ebp - 4], 9
call fcn.00401dfb
add esp, 0x30
lea ecx, [ebp - 0x830]
push 1
push dword [eax]
push esi
call fcn.00406f73
mov ecx, dword [ebp - 0x818]
test eax, eax
lea ecx, [ecx - 0x10]
setne bl
call fcn.00404c8b
mov ecx, dword [ebp - 0x814]
lea ecx, [ecx - 0x10]
call fcn.00404c8b
mov ecx, dword [ebp - 0x81c]
lea ecx, [ecx - 0x10]
call fcn.00404c8b
mov ecx, dword [ebp - 0x83c]
lea ecx, [ecx - 0x10]
call fcn.00404c8b
mov ecx, dword [ebp - 0x838]
mov byte [ebp - 4], 5
lea ecx, [ecx - 0x10]
call fcn.00404c8b
test bl, bl
je 0x4068df
xor ebx, ebx
jmp 0x406a8f
xor eax, eax
push 0x7fe
mov word [ebp - 0x810], ax
xor ebx, ebx
lea eax, [ebp - 0x80e]
push ebx
push eax
mov dword [ebp - 0x824], 0x400
call fcn.004bc640
mov esi, dword [0x532ad4]
add esp, 0xc
lea eax, [esi + 1]
imul eax, esi
push 0xf
cdq
pop ecx
idiv ecx
mov edi, ebx
cmp edx, 8
jne 0x40693b
xor ecx, ecx
inc ecx
cmp esi, ecx
jle 0x406935
mov eax, esi
cdq
idiv ecx
inc ecx
add ecx, edx
cmp ecx, esi
jl 0x406929
mov dword [0x532ad4], ecx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x810]
push eax
push edi
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
inc edi
test esi, esi
je 0x40696d
cmp esi, 0x103
jne 0x406a7a
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x81c]
call fcn.00401855
mov eax, dword [ebp - 0x81c]
mov byte [ebp - 4], 0xa
cmp dword [eax - 0xc], 0
je 0x406a49
cmp dword [0x532b50], 0
je 0x406a37
cmp dword [0x532b54], 0
je 0x406a37
push 0x5311f0
lea ecx, [ebp - 0x814]
call fcn.00401749
push dword [ebp - 0x81c]
lea ecx, [ebp - 0x818]
mov byte [ebp - 4], 0xb
call fcn.004017d3
mov ecx, dword [0x532b50]
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x818]
push eax
mov byte [ebp - 4], 0xc
call fcn.00412930
push 0x4e504c
push dword [0x532b78]
lea ecx, [ebp - 0x814]
call fcn.00404ca7
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x81c]
call fcn.00401cd3
mov ecx, dword [ebp - 0x818]
lea ecx, [ecx - 0x10]
call fcn.00404c8b
mov ecx, dword [ebp - 0x814]
mov byte [ebp - 4], 0xa
lea ecx, [ecx - 0x10]
call fcn.00404c8b
mov ecx, dword [ebp - 0x834]
lea eax, [ebp - 0x81c]
push eax
call fcn.0040780a
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
mov dword [ebp - 0x824], 0x400
call fcn.004bc640
mov ecx, dword [ebp - 0x81c]
add esp, 0xc
lea ecx, [ecx - 0x10]
mov byte [ebp - 4], 5
call fcn.00404c8b
test esi, esi
je 0x40693b
lea ecx, [ebp - 0x830]
call fcn.00406621
mov bl, 1
lea ecx, [ebp - 0x830]
call fcn.00406621
mov ecx, dword [ebp - 0x820]
add ecx, 0xfffffff0
call fcn.00404c8b
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00404c8b
mov al, bl
call fcn.004bb7c2
ret