Function at 0x51a9c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f660
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x6091d4]
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 0x51ad36
mov dword [ebp - 0x114], 7
mov dword [ebp - 0x118], eax
mov word [ebp - 0x128], ax
cmp word [ebp - 0x110], ax
je 0x51aab5
lea eax, [ebp - 0x110]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x51aaa6
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x128]
call int.004a96a0
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.00519ba0
mov edi, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x114]
test edi, edi
sete byte [ebp - 0x175]
cmp eax, 8
jb 0x51ab17
inc eax
lea ecx, [ebp - 0x128]
push eax
push dword [ebp - 0x128]
call fcn.004a9d40
cmp byte [ebp - 0x175], 0
je 0x51ad36
cmp dword [esi + 0x5c], 8
lea edx, [esi + 0x48]
jb 0x51ab2f
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 0x51ab55
xor ecx, ecx
jmp 0x51ab75
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51ab60
sub ecx, esi
mov esi, dword [ebp - 0x180]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x174]
call int.004a96a0
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.00519ea0
test eax, eax
je 0x51ac0f
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 int.004a96a0
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.00519ea0
mov byte [ebp - 0x175], 0
test eax, eax
jne 0x51ac16
mov byte [ebp - 0x175], 1
test bl, 2
je 0x51ac59
mov eax, dword [ebp - 0x114]
and ebx, 0xfffffffd
cmp eax, 8
jb 0x51ac3c
inc eax
lea ecx, [ebp - 0x128]
push eax
push dword [ebp - 0x128]
call fcn.004a9d40
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 0x51ac81
inc eax
lea ecx, [ebp - 0x174]
push eax
push dword [ebp - 0x174]
call fcn.004a9d40
cmp byte [ebp - 0x175], 0
je 0x51ad36
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 0x51acb1
mov eax, dword [edx]
jmp 0x51acb3
mov eax, edx
xor ecx, ecx
mov word [eax], cx
cmp word [ebp - 0x110], cx
je 0x51acdf
lea ecx, [ebp - 0x110]
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51acd0
sub ecx, esi
sar ecx, 1
push ecx
lea eax, [ebp - 0x110]
mov ecx, edx
push eax
call int.004a96a0
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 0x51ad0f
mov eax, dword [ecx]
jmp 0x51ad11
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x140]
push edx
push eax
call fcn.004a99e0
mov esi, dword [ebp - 0x180]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0051a890
cmp edi, 0x103
je 0x51ad50
mov eax, dword [ebp - 0x184]
mov ecx, dword [ebp - 0x188]
inc eax
jmp 0x51aa44
mov eax, dword [ebp - 0x12c]
cmp eax, 8
jb 0x51ad6e
inc eax
lea ecx, [ebp - 0x140]
push eax
push dword [ebp - 0x140]
call fcn.004a9d40
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 0x51ada6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x15c], 0
mov eax, dword [ebp - 0x144]
cmp eax, 8
jb 0x51adc4
inc eax
lea ecx, [ebp - 0x158]
push eax
push dword [ebp - 0x158]
call fcn.004a9d40
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.0053cb86
mov esp, ebp
pop ebp
ret 8