Function at 0x22915767
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x229158d1
cmp dword [ebp + 0xc], ebx
je 0x229158d1
cmp dword [ebp + 0x10], ebx
je 0x229158d1
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x229158d1
or dword [eax], 0xffffffff
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
mov esi, 0x22914564
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x229157cb
push eax
push esi
call fcn.22915639
jmp 0x229157cd
mov al, 1
cmp al, bl
jne 0x229157d9
mov byte [ebp + 0x13], bl
jmp 0x229158f0
push 0x200
call sub.msvcrt.dll____U_YAPAXI_Z
pop ecx
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x229158d1
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x28]
push ecx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0xc]
push ecx
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 0x100
call esi
mov edi, 0x103
mov dword [ebp - 0x14], 1
cmp eax, edi
je 0x229158c7
cmp eax, ebx
jne 0x229158fa
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x1c], ebx
call fcn.22914ea7
test al, al
je 0x22915898
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
jle 0x22915898
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x10], ebx
je 0x22915869
push dword [ebp - 0x10]
call sub.msvcrt.dll____V_YAXPAX_Z
pop ecx
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll____U_YAPAXI_Z
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x229158d1
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.22914b93
test eax, eax
jl 0x229158d1
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], 0x100
push dword [ebp - 0x14]
push dword [ebp - 8]
call esi
inc dword [ebp - 0x14]
cmp eax, edi
jne 0x22915828
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jne 0x22915909
push 0x1d
push ebx
call fcn.22915eb7
pop ecx
pop ecx
mov byte [ebp + 0x13], bl
cmp dword [ebp - 8], ebx
je 0x229158e2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
je 0x229158f0
push dword [ebp - 4]
call sub.msvcrt.dll____V_YAXPAX_Z
pop ecx
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10
push 0x22914564
push 0x13
push eax
call fcn.22915f85
jmp 0x229158d1
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
push eax
mov dword [ecx], eax
mov ecx, dword [ebp - 0x18]
push 0x17
lea eax, [ebp + 0x10]
push eax
push 0x229144a8
mov eax, esi
mov dword [edx], ecx
call fcn.2291566a
add esp, 0x10
test al, al
je 0x229158d1
push dword [ebp + 8]
mov esi, dword [esi]
push 0x20019
push ebx
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x2291595d
push eax
push esi
call fcn.22915639
mov byte [ebp + 0x13], al
jmp 0x229158d4
mov byte [ebp + 0x13], 1
jmp 0x229158d4