Function at 0x519080
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59dbd0
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 0x5193f6
mov dword [ebp - 0x114], 7
mov dword [ebp - 0x118], eax
mov word [ebp - 0x128], ax
cmp word [ebp - 0x110], ax
je 0x519175
lea eax, [ebp - 0x110]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x519166
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.00518260
mov edi, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x114]
test edi, edi
sete byte [ebp - 0x175]
cmp eax, 8
jb 0x5191d7
inc eax
lea ecx, [ebp - 0x128]
push eax
push dword [ebp - 0x128]
call fcn.004a9d40
cmp byte [ebp - 0x175], 0
je 0x5193f6
cmp dword [esi + 0x5c], 8
lea edx, [esi + 0x48]
jb 0x5191ef
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 0x519215
xor ecx, ecx
jmp 0x519235
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x519220
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.00518560
test eax, eax
je 0x5192cf
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.00518560
mov byte [ebp - 0x175], 0
test eax, eax
jne 0x5192d6
mov byte [ebp - 0x175], 1
test bl, 2
je 0x519319
mov eax, dword [ebp - 0x114]
and ebx, 0xfffffffd
cmp eax, 8
jb 0x5192fc
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 0x519341
inc eax
lea ecx, [ebp - 0x174]
push eax
push dword [ebp - 0x174]
call fcn.004a9d40
cmp byte [ebp - 0x175], 0
je 0x5193f6
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 0x519371
mov eax, dword [edx]
jmp 0x519373
mov eax, edx
xor ecx, ecx
mov word [eax], cx
cmp word [ebp - 0x110], cx
je 0x51939f
lea ecx, [ebp - 0x110]
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x519390
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 0x5193cf
mov eax, dword [ecx]
jmp 0x5193d1
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.00518f50
cmp edi, 0x103
je 0x519410
mov eax, dword [ebp - 0x184]
mov ecx, dword [ebp - 0x188]
inc eax
jmp 0x519104
mov eax, dword [ebp - 0x12c]
cmp eax, 8
jb 0x51942e
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 0x519466
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x15c], 0
mov eax, dword [ebp - 0x144]
cmp eax, 8
jb 0x519484
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.0053b206
mov esp, ebp
pop ebp
ret 8