Function at 0x519330
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59df80
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x6071d4]
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 0x5196a6
mov dword [ebp - 0x114], 7
mov dword [ebp - 0x118], eax
mov word [ebp - 0x128], ax
cmp word [ebp - 0x110], ax
je 0x519425
lea eax, [ebp - 0x110]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x519416
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x128]
call fcn.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.00518510
mov edi, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x114]
test edi, edi
sete byte [ebp - 0x175]
cmp eax, 8
jb 0x519487
inc eax
lea ecx, [ebp - 0x128]
push eax
push dword [ebp - 0x128]
call fcn.004a9d40
cmp byte [ebp - 0x175], 0
je 0x5196a6
cmp dword [esi + 0x5c], 8
lea edx, [esi + 0x48]
jb 0x51949f
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 0x5194c5
xor ecx, ecx
jmp 0x5194e5
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5194d0
sub ecx, esi
mov esi, dword [ebp - 0x180]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x174]
call fcn.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.00518810
test eax, eax
je 0x51957f
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.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.00518810
mov byte [ebp - 0x175], 0
test eax, eax
jne 0x519586
mov byte [ebp - 0x175], 1
test bl, 2
je 0x5195c9
mov eax, dword [ebp - 0x114]
and ebx, 0xfffffffd
cmp eax, 8
jb 0x5195ac
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 0x5195f1
inc eax
lea ecx, [ebp - 0x174]
push eax
push dword [ebp - 0x174]
call fcn.004a9d40
cmp byte [ebp - 0x175], 0
je 0x5196a6
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 0x519621
mov eax, dword [edx]
jmp 0x519623
mov eax, edx
xor ecx, ecx
mov word [eax], cx
cmp word [ebp - 0x110], cx
je 0x51964f
lea ecx, [ebp - 0x110]
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x519640
sub ecx, esi
sar ecx, 1
push ecx
lea eax, [ebp - 0x110]
mov ecx, edx
push eax
call fcn.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 0x51967f
mov eax, dword [ecx]
jmp 0x519681
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.00519200
cmp edi, 0x103
je 0x5196c0
mov eax, dword [ebp - 0x184]
mov ecx, dword [ebp - 0x188]
inc eax
jmp 0x5193b4
mov eax, dword [ebp - 0x12c]
cmp eax, 8
jb 0x5196de
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 0x519716
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x15c], 0
mov eax, dword [ebp - 0x144]
cmp eax, 8
jb 0x519734
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.0053b526
mov esp, ebp
pop ebp
ret 8