Function at 0x6535b3fa
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
and dword [ebp - 4], 0
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x30], 0x104
call fcn.6535b362
and dword [ebp - 0x14], 0
pop ecx
test eax, eax
mov dword [ebp - 0x2c], eax
jbe 0x6535b482
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x54]
push 0xa
push eax
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x6536e496
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x6536e4a2
push dword [ebp - 0xc]
call fcn.6535b362
and dword [ebp - 0x1c], 0
pop ecx
test eax, eax
mov dword [ebp - 0x34], eax
ja 0x6535b4c5
push dword [ebp - 0xc]
call ebx
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x2c]
jb 0x6535b42b
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
push 0x10
mov edi, eax
pop ecx
mov esi, edx
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x6536e48b
mov edi, dword [ebp - 0x18]
mov esi, 0x65343f30
shl edi, 4
add edi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x6535b5d4
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x34]
jae 0x6535b472
lea eax, [ebp - 0x48]
push 0xb
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x6536e4a2
push 8
mov edi, str.HELPDIR
lea esi, [ebp - 0x48]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x6535b4ba
push 6
mov edi, str.FLAGS
lea esi, [ebp - 0x48]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x6535b4ba
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x6536e4a2
push dword [ebp - 8]
call fcn.6535b362
and dword [ebp - 0x10], 0
pop ecx
test eax, eax
mov dword [ebp - 0x3c], eax
jbe 0x6535b5ff
lea eax, [ebp - 0x60]
push 0xb
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x6536e4b3
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x6536e4b3
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x164]
push eax
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x6536e4c1
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x164]
push eax
call fcn.6535b18a
test eax, eax
mov dword [ebp - 4], eax
jl 0x6536e4c8
mov eax, dword [ebp - 0x38]
test eax, eax
jbe 0x6535b5dc
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
and dword [ebp - 0x18], 0
cmp dword [ebp + 0x10], 0
jbe 0x6535b5d4
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx]
cmp ecx, dword [eax]
je 0x6535b48c
inc dword [ebp - 0x18]
add eax, 0x10
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp + 0x10]
jb 0x6535b5bc
add edx, 0x10
dec dword [ebp - 0x28]
jne 0x6535b5af
cmp dword [ebp - 0x20], 0
je 0x6535b5eb
push dword [ebp - 0x20]
call fcn.6534329a
pop ecx
push dword [ebp - 0x24]
call ebx
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x3c]
jb 0x6535b532
push dword [ebp - 8]
call ebx
jmp 0x6535b4ba
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x6535b5c6
mov dword [ebp - 4], 0x8002801c
jmp 0x6535b482
mov dword [ebp - 4], 0x8002801c
push dword [ebp - 0xc]
call ebx
jmp 0x6535b482
mov dword [ebp - 4], 0x8002801c
push dword [ebp - 8]
call ebx
jmp 0x6536e4a9
mov dword [ebp - 4], 0x8002801c
push dword [ebp - 0x24]
call ebx
jmp 0x6536e4ba