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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x4d
push 0
push 0
dec ecx
jne 0x58c708
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x58cade
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 8]
call fcn.0040b860
push eax
push 0x58caec
push 1
push 0
mov eax, dword [0x66a0d4]
push eax
call sub.ole32.dll_CoCreateInstance
test eax, 0x80000000
jne 0x58c87f
lea eax, [ebp - 4]
call fcn.0040b860
push eax
push 0
push 0
mov eax, dword [0x669d38]
push eax
push 1
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
call fcn.004bdbcc
jmp 0x58c85f
cmp dword [ebp - 0x14], 0
je 0x58c7dd
push 0x58cb08
lea edx, [ebp - 0x238]
lea eax, [ebp - 0x34]
call fcn.004bdc38
push dword [ebp - 0x238]
push 0x58cb24
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00408ea8
lea eax, [ebp - 0x23c]
push eax
mov ecx, 0x80000000
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.004bdda4
mov eax, dword [ebp - 0x23c]
mov edx, 0x58cb34
call fcn.00408fb8
jne 0x58c85f
xor eax, eax
push ebp
push 0x58c800
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x34]
call fcn.004bdcc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x58c854
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x34]
push eax
push 1
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x58c77f
jmp 0x58ca88
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
push 0x58cb38
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x58ca88
xor eax, eax
push ebp
push 0x58ca81
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x58ca49
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x234]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0xa
lea edx, [ebp - 0x260]
mov eax, dword [0x669d38]
call fcn.004bdc38
mov eax, dword [ebp - 0x260]
mov dword [ebp - 0x254], eax
mov byte [ebp - 0x250], 0x11
lea edx, [ebp - 0x25c]
mov ecx, 1
mov eax, 0x58cb50
call fcn.004239f8
lea eax, [ebp - 0x20]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00408bc4
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegQueryValueW
test eax, eax
jne 0x58c9aa
cmp dword [ebp - 0x14], 0
je 0x58c9aa
mov dword [ebp - 0x20], pe_nt_image_headers32
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x20]
call fcn.00408d48
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00408bc4
push eax
push 0
push 0
mov eax, dword [ebp - 0x14]
call fcn.00408bc4
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x58c975
mov edx, dword [ebp - 0x20]
dec edx
lea eax, [ebp - 0xc]
call fcn.00408d48
jmp 0x58c97d
lea eax, [ebp - 0xc]
call fcn.00407b30
lea eax, [ebp - 0x264]
push eax
mov ecx, 0x80000000
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.004bdda4
mov eax, dword [ebp - 0x264]
mov edx, 0x58cb34
call fcn.00408fb8
jne 0x58ca49
xor eax, eax
push ebp
push 0x58c9f7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x268]
lea edx, [ebp - 0x234]
mov ecx, pe_nt_image_headers32
call fcn.00408c70
mov eax, dword [ebp - 0x268]
lea edx, [ebp - 0x25c]
call fcn.004bdbdc
lea eax, [ebp - 0x25c]
lea edx, [ebp - 0xc]
call fcn.004bdcc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x58ca3b
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x1c]
push 0x200
lea eax, [ebp - 0x234]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegEnumKeyW
test eax, eax
je 0x58c8b9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58ca88
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58cae5
lea eax, [ebp - 0x26c]
mov edx, 4
call fcn.00407b90
lea eax, [ebp - 0x24c]
mov edx, 2
call fcn.00407b90
lea eax, [ebp - 0x23c]
mov edx, 2
call fcn.00407b90
lea eax, [ebp - 0xc]
call fcn.00407b30
lea eax, [ebp - 8]
call fcn.0040b860
lea eax, [ebp - 4]
call fcn.0040b860
ret