Function at 0x510980
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x220
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebp
mov ebp, dword [esp + 0x22c]
push esi
mov esi, dword [esp + 0x22c]
xor eax, eax
push edi
mov edi, dword [esp + 0x238]
push 0x207
push eax
mov dword [esp + 0x21], eax
mov word [esp + 0x25], ax
mov byte [esp + 0x27], al
mov byte [esp + 0x28], al
lea eax, [esp + 0x29]
push eax
mov byte [esp + 0x24], 0
call fcn.005dfd60
push esi
lea ecx, [esp + 0x30]
push 0x628b4c
push ecx
mov dword [esp + 0x24], 8
call fcn.005dfb23
add esp, 0x18
lea edx, [esp + 0x10]
push edx
push 1
push 0
lea eax, [esp + 0x2c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x510a61
push 0x208
lea ecx, [esp + 0x24]
push esi
push ecx
mov dword [esp + 0x18], 0x208
call fcn.005dfd60
add esp, 0xc
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.DisplayName
push edx
call esi
test eax, eax
je 0x510a7b
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x220
ret
test edi, edi
je 0x510a8b
lea ecx, [esp + 0x20]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x208
lea edx, [esp + 0x24]
push 0
push edx
mov dword [esp + 0x18], 0x208
call fcn.005dfd60
add esp, 0xc
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0x648094
push eax
call esi
test eax, eax
je 0x510aed
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x220
ret
test ebp, ebp
je 0x510b13
push 0x104
push 0
lea edx, [esp + 0x28]
push 1
push edx
call fcn.0050d0f0
add esp, 0x10
lea eax, [esp + 0x20]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0x648160
mov edi, 8
push ecx
mov dword [esp + 0x24], edi
call esi
cmp byte [esp + 0x18], 1
jne 0x510b6f
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x220
ret
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push str.Start
push eax
mov dword [esp + 0x24], edi
call esi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x18]
cmp al, 4
jne 0x510bca
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x220
ret
cmp al, 3
jne 0x510beb
pop edi
pop esi
mov eax, 3
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x220
ret
mov ecx, dword [esp + 0x228]
xor edx, edx
cmp al, 2
setne dl
pop edi
pop esi
pop ebp
xor ecx, esp
dec edx
and edx, 2
mov eax, edx
call fcn.005dfbbe
add esp, 0x220
ret