Function at 0x451b60
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 [0x49503c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x14]
push ecx
push edi
call fcn.004517b0
add esp, 8
mov edi, dword [edi]
test edi, edi
je 0x451bca
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 0x451bd1
push edi
call fcn.0044fc0e
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004503b0
mov eax, ebx
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, 2
jmp 0x451bb6
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
push ecx
push 0x20019
push 0
push 0x48fc36
mov dword [ebp - 0x3c], eax
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x451c07
mov ebx, 2
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x451bad
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x451bad
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 0x451cf0
push ebx
mov dword [ebp - 0x40], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 2
cmp dword [ebp - 0x40], 0
jne 0x451bf7
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x451bf2
xor ecx, ecx
lea eax, [ebp - 0x34]
mov dword [eax], ecx
push eax
push ecx
push ecx
push 2
push str.ProgId
push 0x48fc36
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, 2
test eax, eax
jne 0x451bf7
mov ebx, dword [ebp - 0x34]
shr ebx, 1
add ebx, 2
xor eax, eax
dec eax
add ebx, ebx
cmovb ebx, eax
push ebx
call fcn.0044fc05
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 0x48fc36
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, 2
test eax, eax
je 0x451d02
push dword [ebp - 0x40]
call fcn.0044fc0e
add esp, 4
jmp 0x451bf7
mov ebx, 2
test eax, eax
jne 0x451bf7
jmp 0x451c51
xor ecx, ecx
mov dword [ebp - 0x34], ecx
lea eax, [ebp - 0x34]
push eax
push ecx
push ecx
push 2
push str.Hash
push 0x48fc36
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x451ce0
mov ebx, dword [ebp - 0x34]
shr ebx, 1
add ebx, 2
add ebx, ebx
mov eax, 0xffffffff
cmovb ebx, eax
push ebx
call fcn.0044fc05
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 0x48fc36
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, 2
test eax, eax
mov eax, dword [ebp - 0x44]
je 0x451d8a
push eax
call fcn.0044fc0e
add esp, 4
jmp 0x451ce0
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.00451820
add esp, 0x20
mov esi, dword [esi]
test esi, esi
je 0x451de3
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.0044fc0e
add esp, 4
mov eax, dword [ebp - 0x44]
jmp 0x451d7c
mov ebx, 2
jmp 0x451dde