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

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x244
push ebx
push ebp
push edi
mov edi, dword [esp + 0x258]
lea eax, [esp + 0xc]
push eax
push 0x20019
xor ebp, ebp
push ebp
push edi
push ecx
mov ebx, 0x80070005
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5bffe9
push esi
mov esi, dword [esp + 0x260]
mov edx, dword [esi]
push 1
push edx
push edi
mov dword [esp + 0x40], 0x208
call fcn.005bed60
mov dword [esi], eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x30]
push ebp
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x74]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x5bffdd
cmp dword [esp + 0x30], ebp
mov dword [esp + 0x24], ebp
jbe 0x5bff16
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
add eax, 0xa
lea edx, [eax + eax]
push edx
add ecx, 0xa
push 2
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call ebx
mov edi, eax
mov eax, dword [esp + 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call ebx
mov ecx, dword [esp + 0x20]
lea edx, [ecx + ecx]
mov ebx, eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x34]
push edx
push ebp
mov dword [esp + 0x38], eax
lea eax, [esp + 0x24]
push eax
push edi
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x5bfee8
mov edi, edi
mov eax, dword [esp + 0x2c]
inc ebp
cmp eax, 4
jne 0x5bfe93
mov edx, dword [esi]
push 1
push edx
push edi
call fcn.005bed60
push eax
mov dword [esi], eax
movzx eax, byte [ebx]
push eax
call fcn.005bee90
jmp 0x5bfead
cmp eax, 1
jne 0x5bfeaf
mov ecx, dword [esi]
push eax
push ecx
push edi
call fcn.005bed60
push 1
push eax
push ebx
mov dword [esi], eax
call fcn.005bed60
mov dword [esi], eax
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
lea eax, [edx + edx]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x14]
push ebx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x34]
push eax
push 0
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x24]
push ecx
push edi
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x5bfe70
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push edi
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push eax
call edi
push ebx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call ebp
push eax
call edi
jmp 0x5bff1c
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalHandle]
mov eax, dword [esp + 0x38]
test eax, eax
jbe 0x5bffd9
mov eax, dword [esp + 0x1c]
add eax, 0xa
mov dword [esp + 0x1c], eax
add eax, eax
push eax
push 2
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x1c]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x24]
push edx
mov edi, eax
mov eax, dword [esp + 0x24]
push edi
push ebx
push eax
mov dword [esp + 0x34], ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x5bffc5
mov edi, edi
mov ecx, dword [esi]
push 1
push ecx
push edi
inc ebx
call fcn.005bed60
mov edx, dword [esp + 0x10]
push esi
push edi
push edx
mov dword [esi], eax
call fcn.005bfd50
test eax, eax
mov dword [esp + 0x24], eax
jne 0x5bffbd
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
push edi
push ebx
push edx
mov dword [esp + 0x34], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x5bff70
jmp 0x5bffc5
mov dword [esp + 0x24], 0x80070005
push edi
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x244
ret 0xc