Function at 0x4c7520
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x19c
test eax, eax
je 0x4c7533
mov word [eax], 0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1ac]
test esi, esi
push edi
jne 0x4c7596
mov eax, dword [esp + 0x1b4]
test eax, eax
je 0x4c7721
push eax
call fcn.004c74c0
add esp, 4
mov esi, eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.ole32.dll_GetClassFile]
test eax, eax
push esi
je 0x4c7581
call fcn.004c7430
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x19c
ret 0xc
call fcn.004c7430
lea ecx, [esp + 0x1c]
lea esi, [esp + 0x1c]
test ecx, ecx
je 0x4c7721
push 0x20
call fcn.004c73f0
lea edx, [esp + 0x14]
push edx
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
je 0x4c75ca
mov eax, dword [esp + 0x14]
push eax
call fcn.004c7430
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x19c
ret 0xc
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004c7480
mov edx, dword [esp + 0x18]
add esp, 4
mov ebx, eax
push edx
call fcn.004c7430
push ebx
call fcn.004c7790
test eax, eax
je 0x4c7605
push ebx
call fcn.004c7430
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x19c
ret 0xc
mov edi, str.CLSIDD77D3C81_8AB9_1068_BD3C_5DC20200558BDataFormatsGetSet
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xac]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
push eax
lea ecx, [esp + 0xb6]
push ebx
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
push ebx
call fcn.004c7430
lea edx, [esp + 0x10]
lea eax, [esp + 0xac]
push edx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4c7721
push str.Corel_32_bit_Presentation_Exchange_Data
call esi
push str.Corel_Presentation_Exchange_Data
mov ebx, eax
call esi
lea ecx, [esp + 0x12c]
xor esi, esi
mov edx, dword [esp + 0x10]
push 0x80
push ecx
push esi
push edx
mov ebp, eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4c7716
mov edi, dword [sym.imp.MSVCRT.dll_strncmp]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x130]
push ecx
push edx
push eax
mov dword [esp + 0x28], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x4c76f8
push ebx
lea ecx, [esp + 0x30]
push str.Corel_32_bit_Presentation_Exchange_Data
push ecx
call edi
add esp, 0xc
test eax, eax
je 0x4c7730
push ebp
lea edx, [esp + 0x30]
push str.Corel_Presentation_Exchange_Data
push edx
call edi
add esp, 0xc
test eax, eax
je 0x4c7760
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x12c]
inc esi
push 0x80
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x4c76a7
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x19c
ret 0xc
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x1b8]
test esi, esi
je 0x4c777e
call fcn.004c72e0
mov word [esi], ax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x19c
ret 0xc
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x1b8]
test esi, esi
je 0x4c777e
call fcn.004c72f0
mov word [esi], ax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x19c
ret 0xc