Function at 0x54d2d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5afba0
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 [0x5ce5e0]
mov dword [ebp - 0x58], edx
mov eax, dword [0x5ce5e4]
mov dword [ebp - 0x54], eax
mov cx, word [0x5ce5e8]
mov word [ebp - 0x50], cx
mov dl, byte [0x5ce5ea]
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 0x54d4de
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 0x54d4de
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp - 0x30]
jg 0x54d4de
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 0x54d4d2
mov eax, dword [ebp - 0x24]
cmp eax, esi
je 0x54d405
push eax
call fcn.0055a5bd
add esp, 4
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0055c86c
add esp, 4
mov dword [ebp - 0x24], eax
cmp eax, esi
je 0x54d4de
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 0x54d4d2
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.0055ce78
add esp, 4
push eax
call fcn.0055aac0
add esp, 8
mov dword [ebp - 0x48], eax
cmp eax, esi
je 0x54d4d2
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 0x54d495
mov eax, dword [ebp - 0x28]
cmp eax, esi
je 0x54d4d2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
jmp 0x54d3c0
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 0x54d4c9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
je 0x54d4de
mov edi, 4
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
jmp 0x54d3c0
mov eax, dword [ebp - 0x20]
cmp eax, esi
je 0x54d4ec
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x24]
cmp eax, esi
je 0x54d4fc
push eax
call fcn.0055a5bd
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