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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffba8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x458], ecx
mov dword [ebp - 0x454], ecx
mov dword [ebp - 0x448], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x428026
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
jne 0x427e74
xor esi, esi
push 0x20a
lea eax, [ebp - 0x22a]
push eax
push esi
push edi
call sub.advapi32.dll_RegEnumKeyW
mov ebx, eax
test ebx, ebx
je 0x427d56
cmp ebx, 0x103
jne 0x427ffa
xor ebx, ebx
jmp 0x427ffa
cmp word [ebp - 0x22a], 0x2e
je 0x427e58
lea eax, [ebp - 0x22a]
test eax, eax
je 0x427d8a
lea eax, [ebp - 0x22a]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call fcn.00406ea8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
jmp 0x427d8f
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov edx, 0x428038
lea eax, [ebp - 0x22a]
call fcn.0041c34c
mov edx, 0x428060
lea eax, [ebp - 0x434]
call fcn.0041c338
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x22a]
push eax
push edi
call sub.advapi32.dll_RegOpenKeyW
mov ebx, eax
test ebx, ebx
jne 0x427e0a
mov eax, dword [ebp - 0x10]
mov word [ebp + eax*2 - 0x22a], 0
mov dword [ebp - 0xc], 0x20a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x4280a0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov ebx, eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
jne 0x427e58
mov eax, dword [ebp - 0xc]
shr eax, 1
mov word [ebp + eax*2 - 0x436], 0
lea eax, [ebp - 0x22a]
mov dword [ebp - 0x444], eax
mov byte [ebp - 0x440], 0xa
lea eax, [ebp - 0x434]
mov dword [ebp - 0x43c], eax
mov byte [ebp - 0x438], 0xa
lea edx, [ebp - 0x444]
mov eax, 0x4280a4
mov ecx, 1
call fcn.00424fc0
mov eax, dword [0x458848]
cmp dword [eax], 0
je 0x427e6e
mov dword [ebp - 4], 1
jmp 0x427ffd
inc esi
jmp 0x427d2a
cmp word [esi], 0x2e
jne 0x427ebb
push 0
lea edx, [ebp - 0x448]
mov eax, dword [0x4589c0]
call fcn.00409d44
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x450], esi
mov byte [ebp - 0x44c], 0xa
lea ecx, [ebp - 0x450]
mov edx, 1
call fcn.0042b400
mov dword [ebp - 4], 0x7b
jmp 0x427ffd
xor edx, edx
mov eax, esi
call fcn.0042bbf0
mov esi, eax
mov dx, 0x20
mov eax, esi
call fcn.0041c2e0
test eax, eax
je 0x427eda
mov word [eax], 0
push 0
mov dword [ebp - 0x450], esi
mov byte [ebp - 0x44c], 0xa
lea ecx, [ebp - 0x450]
mov edx, 0x4280b4
lea eax, [ebp - 0x22a]
call fcn.0041c40c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x22a]
push eax
push edi
call sub.advapi32.dll_RegOpenKeyW
mov ebx, eax
test ebx, ebx
je 0x427f53
push 0
lea edx, [ebp - 0x454]
mov eax, dword [0x4589c0]
call fcn.00409d44
mov eax, dword [ebp - 0x454]
mov dword [ebp - 0x450], esi
mov byte [ebp - 0x44c], 0xa
lea ecx, [ebp - 0x450]
mov edx, 1
call fcn.0042b400
mov dword [ebp - 4], ebx
jmp 0x427ffd
mov dword [ebp - 0xc], 0x20a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x4280a0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov ebx, eax
test ebx, ebx
jne 0x427fc5
mov eax, dword [ebp - 0xc]
shr eax, 1
mov word [ebp + eax*2 - 0x436], 0
mov dword [ebp - 0x444], esi
mov byte [ebp - 0x440], 0xa
lea eax, [ebp - 0x434]
mov dword [ebp - 0x43c], eax
mov byte [ebp - 0x438], 0xa
lea edx, [ebp - 0x444]
mov eax, 0x4280a4
mov ecx, 1
call fcn.00424fc0
jmp 0x427ffa
push 0
lea edx, [ebp - 0x458]
mov eax, dword [0x4589c0]
call fcn.00409d44
mov eax, dword [ebp - 0x458]
mov dword [ebp - 0x450], esi
mov byte [ebp - 0x44c], 0xa
lea ecx, [ebp - 0x450]
mov edx, 1
call fcn.0042b400
mov dword [ebp - 4], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42802d
lea eax, [ebp - 0x458]
mov edx, 2
call fcn.00406a1c
lea eax, [ebp - 0x448]
call fcn.004069bc
ret