Function at 0x4722a0
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 0x4ca177
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd8
mov eax, dword [0x519100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [0x519bfc], 0
jge 0x47243c
mov eax, dword [0x5208e4]
xorps xmm0, xmm0
movq qword [ebp - 0xc8], xmm0
mov dword [ebp - 0xc0], 0
movups xmmword [ebp - 0xd8], xmm0
test eax, eax
je 0x47231f
cmp dword [eax + 0x14], 7
jbe 0x472324
mov eax, dword [eax]
jmp 0x472324
mov eax, str.SoftwareAVAST_SoftwareAvast
push eax
lea ecx, [ebp - 0xd8]
call fcn.0040b2a0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 4], 1
push ecx
push str.properties
lea ecx, [ebp - 0xd8]
call fcn.00471a60
cmp dword [ebp - 0xc4], 7
lea eax, [ebp - 0xe4]
push 0
push 0
push eax
lea edx, [ebp - 0xd8]
mov dword [ebp - 0xe4], 0
cmova edx, dword [ebp - 0xd8]
mov ecx, str.HKEY_LOCAL_MACHINE
push 0x20019
call fcn.00460250
add esp, 0x10
test eax, eax
jne 0x4723ff
mov esi, dword [ebp - 0xe4]
mov dword [ebp - 0x9c], eax
test esi, esi
je 0x4723e8
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xbc], 4
push eax
lea eax, [ebp - 0x9c]
push eax
push 0
push 0
push str.UseRegistry
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4723e8
cmp dword [ebp - 0x9c], eax
je 0x4723e8
mov dword [0x519bfc], 1
jmp 0x4723f2
mov dword [0x519bfc], 0
test esi, esi
je 0x472409
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x472409
mov dword [0x519bfc], 0
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0xc0]
test eax, eax
je 0x472423
push eax
call fcn.00484967
add esp, 4
mov dword [ebp - 4], 3
lea ecx, [ebp - 0xd8]
call fcn.00423780
mov dword [ebp - 4], 0xffffffff
mov edx, dword [0x5208f0]
test edx, edx
je 0x472450
cmp dword [edx + 0x14], 7
jbe 0x472455
mov edx, dword [edx]
jmp 0x472455
mov edx, 0x5087b8
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x472460
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.0040b920
cmp dword [edi + 0x10], 0
mov eax, 0x5205c4
jne 0x4724b8
cmp word [0x5205c4], 0
mov edx, str.avast5.ini
cmovne edx, eax
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4724a0
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.0040b920
cmp dword [0x519bfc], 0
jle 0x472795
cmp dword [edi + 0x14], 7
mov edx, edi
mov dword [ebp - 0xdc], edi
jbe 0x4724db
mov edx, dword [edi]
mov dword [ebp - 0xdc], edx
mov ecx, dword [0x520924]
test ecx, ecx
je 0x4724ef
cmp dword [ecx + 0x14], 7
jbe 0x4724f4
mov ecx, dword [ecx]
jmp 0x4724f4
mov ecx, 0x5087b8
mov esi, ecx
lea eax, [esi + 2]
mov dword [ebp - 0xe0], eax
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x472500
sub esi, dword [ebp - 0xe0]
sar esi, 1
push esi
push ecx
push edx
call fcn.004983b9
mov ecx, dword [ebp - 0xdc]
add esp, 0xc
test eax, eax
jne 0x47252f
cmp word [ecx + esi*2], 0x5c
je 0x472537
test esi, esi
jne 0x47278f
xor eax, eax
mov edx, 0x5205c4
test esi, esi
setne al
add eax, esi
cmp word [0x5205c4], 0
lea eax, [ecx + eax*2]
mov ecx, str.avast5.ini
cmovne ecx, edx
mov dword [ebp - 0xdc], eax
push ecx
push eax
call fcn.004a0c1d
add esp, 8
test eax, eax
jne 0x472573
mov esi, 0x508de0
jmp 0x4725e1
xor esi, esi
nop word [eax + eax]
push dword [esi + 0x508ddc]
push dword [ebp - 0xdc]
call fcn.004a0c1d
add esp, 8
test eax, eax
je 0x47278f
add esi, 4
cmp esi, 4
jb 0x472580
push 0x40
push dword [ebp - 0xdc]
lea eax, [ebp - 0x98]
push eax
call fcn.0049ddc6
add esp, 0xc
xor eax, eax
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x98]
push 0x2e
push eax
call fcn.00487237
add esp, 8
test eax, eax
je 0x4725db
xor ecx, ecx
mov word [eax], cx
lea esi, [ebp - 0x98]
mov eax, dword [0x5208e4]
xorps xmm0, xmm0
movq qword [ebp - 0xa8], xmm0
mov dword [ebp - 0xa0], 0
movups xmmword [ebp - 0xb8], xmm0
test eax, eax
je 0x472610
cmp dword [eax + 0x14], 7
jbe 0x472615
mov eax, dword [eax]
jmp 0x472615
mov eax, str.SoftwareAVAST_SoftwareAvast
push eax
lea ecx, [ebp - 0xb8]
call fcn.0040b2a0
mov dword [ebp - 4], 4
mov dword [ebp - 0xa0], 0
mov dword [ebp - 4], 5
push ecx
push str.properties
lea ecx, [ebp - 0xb8]
call fcn.00471a60
push ecx
push esi
lea ecx, [ebp - 0xb8]
call fcn.00471a60
cmp esi, 0x508de0
jne 0x472672
cmp byte [0x520980], 0
je 0x472672
mov esi, 1
jmp 0x4726f2
cmp dword [ebp - 0xa4], 7
lea eax, [ebp - 0xe0]
push 0
push 0
push eax
lea edx, [ebp - 0xb8]
mov dword [ebp - 0xe0], 0
cmova edx, dword [ebp - 0xb8]
mov ecx, str.HKEY_LOCAL_MACHINE
push 0x20019
call fcn.00460250
add esp, 0x10
test eax, eax
jne 0x472739
mov ecx, dword [ebp - 0xe0]
mov eax, 1
mov dword [ebp - 0xdc], eax
test ecx, ecx
je 0x4726d7
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xdc]
cmp esi, 0x508de0
jne 0x4726ec
mov byte [0x520980], 1
mov dword [ebp - 0xdc], eax
mov esi, dword [ebp - 0xdc]
lea eax, [ebp - 0xb8]
cmp edi, eax
je 0x472758
mov ecx, edi
call fcn.00423780
movups xmm0, xmmword [ebp - 0xb8]
xor eax, eax
mov word [ebp - 0xb8], ax
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0xa8]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
jmp 0x472758
cmp dword [edi + 0x14], 7
mov ecx, edi
jbe 0x472743
mov ecx, dword [edi]
mov edx, 1
call fcn.00464240
test eax, eax
jne 0x472756
lea esi, [eax + 1]
jmp 0x4726f2
xor esi, esi
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x472772
push eax
call fcn.00484967
add esp, 4
mov dword [ebp - 4], 7
lea ecx, [ebp - 0xb8]
call fcn.00423780
mov dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x472797
xor esi, esi
mov eax, esi
jmp 0x472797
xor eax, eax
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.0048471b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret