Function at 0x552890
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b5c30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x40], str.HARDWAREDEVICEMAPVIDEO
mov dword [ebp - 0x44], str.MaxObjectNumber
mov dword [ebp - 0x38], str.systemcurrentcontrolset
mov dword [ebp - 0x3c], str.HardwareInformation.MemorySize
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x24], esi
mov ecx, dword [str.DeviceVideo0]
mov dword [ebp - 0x5c], ecx
mov edx, dword [0x5d7020]
mov dword [ebp - 0x58], edx
mov eax, dword [0x5d7024]
mov dword [ebp - 0x54], eax
mov cx, word [0x5d7028]
mov word [ebp - 0x50], cx
mov dl, byte [0x5d702a]
mov byte [ebp - 0x4e], dl
xor eax, eax
mov dword [ebp - 0x4d], eax
mov byte [ebp - 0x49], al
lea ecx, [ebp - 0x20]
push ecx
push 0x20019
push esi
push str.HARDWAREDEVICEMAPVIDEO
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x552a9e
mov edi, 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x18]
push ecx
push esi
push str.MaxObjectNumber
mov edx, dword [ebp - 0x20]
push edx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call ebx
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x552a9e
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp - 0x30]
jg 0x552a9e
add eax, 0x30
mov byte [ebp - 0x4f], al
mov dword [ebp - 0x18], 1
lea eax, [ebp - 0x14]
push eax
push esi
lea ecx, [ebp - 0x18]
push ecx
push esi
lea edx, [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x20]
push eax
call ebx
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x552a92
mov eax, dword [ebp - 0x24]
cmp eax, esi
je 0x5529c5
push eax
call fcn.0055f42e
add esp, 4
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0055f41c
add esp, 4
mov dword [ebp - 0x24], eax
cmp eax, esi
je 0x552a9e
lea edx, [ebp - 0x14]
push edx
push eax
lea ecx, [ebp - 0x18]
push ecx
push esi
lea edx, [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x20]
push eax
call ebx
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x552a92
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.00562438
add esp, 4
push eax
call fcn.00560370
add esp, 8
mov dword [ebp - 0x48], eax
cmp eax, esi
je 0x552a92
mov dword [ebp - 0x28], esi
lea ecx, [ebp - 0x28]
push ecx
push 0x20019
push esi
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x552a55
mov eax, dword [ebp - 0x28]
cmp eax, esi
je 0x552a92
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
jmp 0x552980
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x14], edi
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x18]
push ecx
push esi
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x28]
push eax
call ebx
mov edi, eax
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x28]
cmp eax, esi
je 0x552a89
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
je 0x552a9e
mov edi, 4
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
jmp 0x552980
mov eax, dword [ebp - 0x20]
cmp eax, esi
je 0x552aac
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x24]
cmp eax, esi
je 0x552abc
push eax
call fcn.0055f42e
add esp, 4
mov ecx, dword [ebp - 0x34]
shr ecx, 0x14
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret