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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x80ed7f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00409c78
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 4]
call fcn.00409c78
lea eax, [ebp - 8]
call fcn.00409c78
mov dword [ebp - 0x24], 0x800
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x24]
call fcn.0040ab04
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x2c]
call fcn.0040ab04
mov eax, dword [ebp - 4]
test eax, eax
je 0x80eaa5
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x80eab4
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 8]
call fcn.0040a224
push eax
lea eax, [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 4]
call fcn.0040a224
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegEnumValueW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x80ec8d
mov eax, dword [ebp - 4]
call fcn.0040a974
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.0040a9d8
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
call fcn.0040ad14
jne 0x80ec8a
cmp dword [ebp - 0x28], 1
jne 0x80ec8a
mov eax, dword [ebp - 8]
call fcn.0040a974
mov edx, eax
lea eax, [ebp - 0x34]
call fcn.0040a9d8
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp + 0x14]
jne 0x80eb3c
mov al, 1
jmp 0x80eb80
mov eax, dword [ebp - 8]
call fcn.0040a974
mov edx, eax
lea eax, [ebp - 0x38]
call fcn.0040a9d8
cmp dword [ebp - 0x38], 0
je 0x80eb5a
cmp dword [ebp + 0x14], 0
jne 0x80eb5e
xor eax, eax
jmp 0x80eb80
mov eax, dword [ebp - 8]
call fcn.0040a974
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040a9d8
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp + 0x14]
call fcn.00427c94
test eax, eax
sete al
test al, al
je 0x80ec8a
lea eax, [ebp - 0x20]
push eax
push 0x20019
push 0
mov eax, dword [ebp + 0x10]
call fcn.0040a974
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x80ec8a
xor edx, edx
push ebp
push 0x80ec83
push dword fs:[edx]
mov dword fs:[edx], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x80ebc9
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x80ebd8
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 8]
call fcn.0040a224
push eax
lea eax, [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 4]
call fcn.0040a224
push eax
push ebx
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegEnumValueW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x80ec57
mov eax, dword [ebp - 4]
call fcn.0040a974
mov edx, eax
lea eax, [ebp - 0x40]
call fcn.0040a9d8
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp + 0xc]
call fcn.0040ad14
jne 0x80ec57
cmp dword [ebp - 0x28], 1
jne 0x80ec57
mov eax, dword [ebp - 8]
call fcn.0040a974
test eax, eax
je 0x80ec57
cmp word [eax], 0
je 0x80ec57
mov eax, dword [ebp - 8]
call fcn.0040a974
mov edx, eax
mov eax, dword [ebp + 8]
call fcn.0040a9d8
inc ebx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x80ec6a
cmp dword [ebp - 0x18], 0
je 0x80ebbd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x80ec8a
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
inc dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x80ec9f
cmp dword [ebp - 0x18], 0
je 0x80ea99
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x80ed55
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a974
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegEnumKeyW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x80ed43
lea eax, [ebp - 0x20]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.0040a974
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x80ed40
xor eax, eax
push ebp
push 0x80ed39
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.0080ea24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x80ed40
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
inc dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x80ed55
cmp dword [ebp - 0x18], 0
je 0x80ecb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x80ed86
lea eax, [ebp - 0x40]
mov edx, 5
call fcn.00409cd8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409cd8
pop eax
jmp eax