Function at 0x1584e8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 9
push 0
push 0
dec ecx
jne 0x1584f1
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x158770
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, 0x400
call fcn.00019248
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x158717
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x2a9118]
mov eax, dword [eax]
add eax, 0x20019
push eax
push 0
push 0x158780
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
jne 0x1586ac
xor eax, eax
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
mov ebx, eax
test ebx, ebx
jne 0x158669
xor esi, esi
jmp 0x158637
mov eax, dword [ebp - 0xc]
call fcn.00018ad4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
call fcn.00018abc
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00018af0
push eax
push esi
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov ebx, eax
test ebx, ebx
jne 0x1585ed
cmp dword [ebp - 0x18], 2
jb 0x158636
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00018adc
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x158636
cmp ebx, 0x103
je 0x158636
push edi
lea edx, [ebp - 0x28]
mov eax, 0x1587ac
call fcn.00031d88
push dword [ebp - 0x28]
lea edx, [ebp - 0x2c]
mov eax, ebx
call fcn.0002b100
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00013f8c
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
call fcn.000144c4
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
call fcn.000199bc
inc esi
mov eax, esi
cdq
push edx
push eax
mov eax, dword [ebp - 0x14]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x158654
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x1586ed
jmp 0x15865c
pop edx
pop eax
jle 0x1586ed
test ebx, ebx
je 0x158597
jmp 0x1586ed
push edi
lea edx, [ebp - 0x38]
mov eax, 0x1587c4
call fcn.00031d88
push dword [ebp - 0x38]
lea edx, [ebp - 0x3c]
mov eax, ebx
call fcn.0002b100
push dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00013f8c
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
call fcn.000144c4
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
call fcn.000199bc
jmp 0x1586ed
push edi
lea edx, [ebp - 0x48]
mov eax, 0x1587dc
call fcn.00031d88
push dword [ebp - 0x48]
lea edx, [ebp - 0x4c]
mov eax, ebx
call fcn.0002b100
push dword [ebp - 0x4c]
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00013f8c
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
call fcn.000144c4
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 8]
call fcn.000199bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x15871e
lea eax, [ebp - 0xc]
call fcn.00019258
cmp dword [ebp - 0x10], 0
je 0x158711
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x10], eax
ret