Function at 0x51ea80
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a38e0
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x6121d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x180], esi
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x17c], ebx
xor eax, eax
mov dword [ebp - 0x188], ecx
mov dword [ebp - 0x144], 7
mov dword [ebp - 0x148], ebx
mov word [ebp - 0x158], ax
mov dword [ebp - 0x15c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x12c], 7
mov dword [ebp - 0x130], eax
mov word [ebp - 0x140], ax
mov byte [ebp - 4], 1
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x18c]
mov dword [ebp - 0x184], eax
push edx
lea edx, [ebp - 0x110]
mov dword [ebp - 0x18c], 0x80
push edx
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test edi, edi
jne 0x51edf6
mov dword [ebp - 0x114], 7
mov dword [ebp - 0x118], eax
mov word [ebp - 0x128], ax
cmp word [ebp - 0x110], ax
je 0x51eb75
lea eax, [ebp - 0x110]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x51eb66
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x128]
call fcn.004ab820
push 0
push 1
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 2
push eax
mov eax, dword [ebp - 0x188]
lea ecx, [ebp - 0x15c]
push dword [eax]
call fcn.0051dc60
mov edi, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x114]
test edi, edi
sete byte [ebp - 0x175]
cmp eax, 8
jb 0x51ebd7
inc eax
lea ecx, [ebp - 0x128]
push eax
push dword [ebp - 0x128]
call fcn.004abec0
cmp byte [ebp - 0x175], 0
je 0x51edf6
cmp dword [esi + 0x5c], 8
lea edx, [esi + 0x48]
jb 0x51ebef
mov edx, dword [edx]
xor eax, eax
mov dword [ebp - 0x160], 7
mov dword [ebp - 0x164], 0
mov word [ebp - 0x174], ax
cmp word [edx], ax
jne 0x51ec15
xor ecx, ecx
jmp 0x51ec35
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51ec20
sub ecx, esi
mov esi, dword [ebp - 0x180]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x174]
call fcn.004ab820
lea eax, [ebp - 0x140]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x174]
or ebx, 1
push eax
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x17c], ebx
call fcn.0051df60
test eax, eax
je 0x51eccf
push 0x10
xor eax, eax
mov dword [ebp - 0x114], 7
push str.QuietDisplayName
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x118], 0
mov word [ebp - 0x128], ax
call fcn.004ab820
lea eax, [ebp - 0x140]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x128]
or ebx, 2
push eax
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x17c], ebx
call fcn.0051df60
mov byte [ebp - 0x175], 0
test eax, eax
jne 0x51ecd6
mov byte [ebp - 0x175], 1
test bl, 2
je 0x51ed19
mov eax, dword [ebp - 0x114]
and ebx, 0xfffffffd
cmp eax, 8
jb 0x51ecfc
inc eax
lea ecx, [ebp - 0x128]
push eax
push dword [ebp - 0x128]
call fcn.004abec0
xor eax, eax
mov dword [ebp - 0x114], 7
mov dword [ebp - 0x118], 0
mov word [ebp - 0x128], ax
mov dword [ebp - 4], 1
and ebx, 0xfffffffe
mov eax, dword [ebp - 0x160]
cmp eax, 8
jb 0x51ed41
inc eax
lea ecx, [ebp - 0x174]
push eax
push dword [ebp - 0x174]
call fcn.004abec0
cmp byte [ebp - 0x175], 0
je 0x51edf6
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x17c], esp
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 8
jb 0x51ed71
mov eax, dword [edx]
jmp 0x51ed73
mov eax, edx
xor ecx, ecx
mov word [eax], cx
cmp word [ebp - 0x110], cx
je 0x51ed9f
lea ecx, [ebp - 0x110]
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51ed90
sub ecx, esi
sar ecx, 1
push ecx
lea eax, [ebp - 0x110]
mov ecx, edx
push eax
call fcn.004ab820
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x51edcf
mov eax, dword [ecx]
jmp 0x51edd1
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x140]
push edx
push eax
call fcn.004abb60
mov esi, dword [ebp - 0x180]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0051e950
cmp edi, 0x103
je 0x51ee10
mov eax, dword [ebp - 0x184]
mov ecx, dword [ebp - 0x188]
inc eax
jmp 0x51eb04
mov eax, dword [ebp - 0x12c]
cmp eax, 8
jb 0x51ee2e
inc eax
lea ecx, [ebp - 0x140]
push eax
push dword [ebp - 0x140]
call fcn.004abec0
xor eax, eax
mov dword [ebp - 0x12c], 7
mov word [ebp - 0x140], ax
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x130], 0
test eax, eax
je 0x51ee66
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x15c], 0
mov eax, dword [ebp - 0x144]
cmp eax, 8
jb 0x51ee84
inc eax
lea ecx, [ebp - 0x158]
push eax
push dword [ebp - 0x158]
call fcn.004abec0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00540c56
mov esp, ebp
pop ebp
ret 8