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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x581ae534]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], 0x101
mov dword [ebp - 8], esi
cmp dword [eax + 0x2af8], esi
push edi
ja 0x5814ca31
mov eax, dword [0x581ae530]
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x16c]
mov dword [0x581ae530], eax
lea eax, [ebp - 0x16c]
push eax
mov dword [ebp - 0x20], esi
call fcn.58190d38
pop ecx
cmp eax, esi
pop ecx
jne 0x5814ca0d
lea eax, [ebp - 0xc]
push eax
push 0x20019
push esi
push str.SOFTWAREMicrosoftShared_ToolsGraphics_FiltersImport
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5814ca0d
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x581ae534]
add eax, 0x2af8
push eax
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [0x581ae534]
push esi
push esi
push 1
mov eax, dword [eax + 0x2af8]
lea eax, [eax + eax*4]
shl eax, 2
push eax
push dword [0x581b2680]
call fcn.5817ddc5
mov ecx, dword [0x581ae534]
add esp, 0x14
mov edi, eax
mov dword [ebp - 0x14], esi
push esi
mov dword [ecx + 0x2afc], eax
push esi
push esi
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x270]
push eax
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x5814ca0d
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 8]
mov dword [ebp - 0x18], esi
push eax
push 0x20019
lea eax, [ebp - 0x270]
push esi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5814c98a
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x101
push eax
lea eax, [ebp - 0x12c]
push eax
push esi
push esi
push str.Path
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x5814c97e
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, esi
mov dword [edi + 0xc], eax
je 0x5814c97e
push 1
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x5814c97e
push esi
push edi
push 0x581b2674
push 2
call eax
cmp ax, 2
jne 0x5814c97e
push 2
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x10], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x12c]
push eax
push esi
push esi
push str.Name
push dword [ebp - 8]
mov dword [ebp - 4], 0x101
call ebx
test eax, eax
jne 0x5814c97e
push esi
push esi
lea eax, [ebp - 0x12c]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [0x581b2680]
call fcn.5817ddc5
add esp, 0x14
cmp eax, esi
mov dword [edi + 4], eax
je 0x5814c97e
lea ecx, [ebp - 0x12c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x101
push eax
lea eax, [ebp - 0x12c]
push eax
push esi
push esi
push 0x581a1610
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x5814c97e
push esi
push esi
lea eax, [ebp - 0x12c]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [0x581b2680]
call fcn.5817ddc5
add esp, 0x14
cmp eax, esi
mov dword [edi + 8], eax
je 0x5814c97e
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
lea eax, [ebp - 0x12c]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x18], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], esi
inc dword [ebp - 0x14]
cmp dword [ebp - 0x18], esi
mov dword [ebp - 4], 0x101
je 0x5814c99e
add edi, 0x14
jmp 0x5814c9ea
mov eax, dword [edi]
cmp eax, esi
je 0x5814c9ab
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [edi + 0xc]
cmp eax, esi
je 0x5814c9b9
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
push esi
push dword [edi + 4]
push dword [0x581b2680]
call fcn.5817dea6
add esp, 0x10
push esi
push esi
push dword [edi + 8]
push dword [0x581b2680]
call fcn.5817dea6
mov eax, dword [0x581ae534]
add esp, 0x10
dec dword [eax + 0x2af8]
push esi
push esi
push esi
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x5814c81d
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 8], esi
mov dword [0x581ae530], eax
je 0x5814ca23
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], esi
je 0x5814ca31
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret