Function at 0x452d70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov ebx, edx
mov esi, ecx
mov eax, dword [0x49f070]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x14]
push ecx
push edi
call fcn.00452970
add esp, 8
mov edi, dword [edi]
test edi, edi
je 0x452dda
mov dword [ebp - 0x48], ebx
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 2
test eax, eax
je 0x452de1
push edi
call fcn.0044fa50
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00450100
mov eax, ebx
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, 2
jmp 0x452dc6
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
push ecx
push 0x20019
push 0
push 0x4995c4
mov dword [ebp - 0x3c], eax
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x452e12
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x452dbd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x452dbd
mov ebx, dword [ebp - 0x30]
sub esp, 0x30
lea eax, [ebp - 0x20]
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
xorps xmm0, xmm0
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 4], xmm0
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test ebx, ebx
je 0x452e5a
push ebx
mov dword [ebp - 0x40], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 2
cmp dword [ebp - 0x40], 0
jne 0x452e02
jmp 0x452e63
mov ebx, 2
test eax, eax
jne 0x452e02
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x452e02
xor ecx, ecx
lea eax, [ebp - 0x34]
mov dword [eax], ecx
push eax
push ecx
push ecx
push 2
push str.ProgId
push 0x4995c4
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x452e02
mov eax, dword [ebp - 0x34]
shr eax, 1
lea ecx, [eax + 2]
lea ebx, [eax + eax]
add ebx, 4
xor eax, eax
dec eax
test ecx, ecx
cmovs ebx, eax
push ebx
call fcn.0044fa47
add esp, 4
push ebx
xor ecx, ecx
push ecx
push eax
mov ebx, eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x40], ebx
push ebx
xor eax, eax
push eax
push 2
push str.ProgId
push 0x4995c4
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, 2
test eax, eax
je 0x452f03
push dword [ebp - 0x40]
call fcn.0044fa50
add esp, 4
jmp 0x452e02
xor ecx, ecx
mov dword [ebp - 0x34], ecx
lea eax, [ebp - 0x34]
push eax
push ecx
push ecx
push 2
push str.Hash
push 0x4995c4
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x452ef3
mov eax, dword [ebp - 0x34]
shr eax, 1
lea ebx, [eax + eax]
add ebx, 4
add eax, 2
mov eax, 0xffffffff
cmovs ebx, eax
push ebx
call fcn.0044fa47
add esp, 4
push ebx
xor ecx, ecx
push ecx
push eax
mov ebx, eax
mov dword [ebp - 0x44], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push ebx
xor eax, eax
push eax
push 2
push str.Hash
push 0x4995c4
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, 2
test eax, eax
mov eax, dword [ebp - 0x44]
je 0x452f8f
push eax
call fcn.0044fa50
add esp, 4
jmp 0x452ef3
sub esp, 0x20
movups xmm0, xmmword [ebp - 0x30]
movups xmmword [esp + 0x10], xmm0
mov eax, dword [ebp - 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
lea esi, [ebp - 0x38]
mov dword [esp], esi
call fcn.004529f0
add esp, 0x20
mov esi, dword [esi]
test esi, esi
je 0x452fe3
push 0
xor eax, eax
dec eax
push eax
push dword [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
xor ebx, ebx
cmp eax, 2
setne bl
push esi
call fcn.0044fa50
add esp, 4
mov eax, dword [ebp - 0x44]
jmp 0x452f81