Function at 0x511e40
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5963d0
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x5ff1d4]
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 0x5121b6
mov dword [ebp - 0x114], 7
mov dword [ebp - 0x118], eax
mov word [ebp - 0x128], ax
cmp word [ebp - 0x110], ax
je 0x511f35
lea eax, [ebp - 0x110]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x511f26
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x128]
call fcn.004a4ab0
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.00511020
mov edi, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x114]
test edi, edi
sete byte [ebp - 0x175]
cmp eax, 8
jb 0x511f97
inc eax
lea ecx, [ebp - 0x128]
push eax
push dword [ebp - 0x128]
call fcn.004a5150
cmp byte [ebp - 0x175], 0
je 0x5121b6
cmp dword [esi + 0x5c], 8
lea edx, [esi + 0x48]
jb 0x511faf
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 0x511fd5
xor ecx, ecx
jmp 0x511ff5
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x511fe0
sub ecx, esi
mov esi, dword [ebp - 0x180]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x174]
call fcn.004a4ab0
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.00511320
test eax, eax
je 0x51208f
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.004a4ab0
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.00511320
mov byte [ebp - 0x175], 0
test eax, eax
jne 0x512096
mov byte [ebp - 0x175], 1
test bl, 2
je 0x5120d9
mov eax, dword [ebp - 0x114]
and ebx, 0xfffffffd
cmp eax, 8
jb 0x5120bc
inc eax
lea ecx, [ebp - 0x128]
push eax
push dword [ebp - 0x128]
call fcn.004a5150
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 0x512101
inc eax
lea ecx, [ebp - 0x174]
push eax
push dword [ebp - 0x174]
call fcn.004a5150
cmp byte [ebp - 0x175], 0
je 0x5121b6
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 0x512131
mov eax, dword [edx]
jmp 0x512133
mov eax, edx
xor ecx, ecx
mov word [eax], cx
cmp word [ebp - 0x110], cx
je 0x51215f
lea ecx, [ebp - 0x110]
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x512150
sub ecx, esi
sar ecx, 1
push ecx
lea eax, [ebp - 0x110]
mov ecx, edx
push eax
call fcn.004a4ab0
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 0x51218f
mov eax, dword [ecx]
jmp 0x512191
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x140]
push edx
push eax
call fcn.004a4df0
mov esi, dword [ebp - 0x180]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00511d10
cmp edi, 0x103
je 0x5121d0
mov eax, dword [ebp - 0x184]
mov ecx, dword [ebp - 0x188]
inc eax
jmp 0x511ec4
mov eax, dword [ebp - 0x12c]
cmp eax, 8
jb 0x5121ee
inc eax
lea ecx, [ebp - 0x140]
push eax
push dword [ebp - 0x140]
call fcn.004a5150
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 0x512226
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x15c], 0
mov eax, dword [ebp - 0x144]
cmp eax, 8
jb 0x512244
inc eax
lea ecx, [ebp - 0x158]
push eax
push dword [ebp - 0x158]
call fcn.004a5150
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.00533fc6
mov esp, ebp
pop ebp
ret 8