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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x44c], ecx
mov dword [ebp - 0x448], ecx
mov dword [ebp - 0x43c], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x426a27
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
jne 0x426875
xor esi, esi
push 0x20a
lea eax, [ebp - 0x21e]
push eax
push esi
push edi
call sub.advapi32.dll_RegEnumKeyW
mov ebx, eax
test ebx, ebx
je 0x42677a
cmp ebx, 0x103
jne 0x4269fb
xor ebx, ebx
jmp 0x4269fb
cmp word [ebp - 0x21e], 0x2e
je 0x426859
lea eax, [ebp - 0x21e]
call fcn.00419fe4
mov dword [ebp - 0x10], eax
mov edx, 0x426a38
lea eax, [ebp - 0x21e]
call fcn.0041a008
mov edx, 0x426a60
lea eax, [ebp - 0x428]
call fcn.00419ff4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x21e]
push eax
push edi
call sub.advapi32.dll_RegOpenKeyW
mov ebx, eax
test ebx, ebx
jne 0x42680b
mov eax, dword [ebp - 0x10]
mov word [ebp + eax*2 - 0x21e], 0
mov dword [ebp - 0xc], 0x20a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x426aa0
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 0x426859
mov eax, dword [ebp - 0xc]
shr eax, 1
mov word [ebp + eax*2 - 0x42a], 0
lea eax, [ebp - 0x21e]
mov dword [ebp - 0x438], eax
mov byte [ebp - 0x434], 0xa
lea eax, [ebp - 0x428]
mov dword [ebp - 0x430], eax
mov byte [ebp - 0x42c], 0xa
lea edx, [ebp - 0x438]
mov eax, 0x426aa4
mov ecx, 1
call fcn.0041e4c0
mov eax, dword [0x433c40]
cmp dword [eax], 0
je 0x42686f
mov dword [ebp - 4], 1
jmp 0x4269fe
inc esi
jmp 0x42674e
cmp word [esi], 0x2e
jne 0x4268bc
push 0
lea edx, [ebp - 0x43c]
mov eax, dword [0x433d8c]
call fcn.00409478
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x444], esi
mov byte [ebp - 0x440], 0xa
lea ecx, [ebp - 0x444]
mov edx, 1
call fcn.0042cf54
mov dword [ebp - 4], 0x7b
jmp 0x4269fe
xor edx, edx
mov eax, esi
call fcn.0042d688
mov esi, eax
mov dx, 0x20
mov eax, esi
call fcn.00419f9c
test eax, eax
je 0x4268db
mov word [eax], 0
push 0
mov dword [ebp - 0x444], esi
mov byte [ebp - 0x440], 0xa
lea ecx, [ebp - 0x444]
mov edx, 0x426ab4
lea eax, [ebp - 0x21e]
call fcn.0041a0a0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x21e]
push eax
push edi
call sub.advapi32.dll_RegOpenKeyW
mov ebx, eax
test ebx, ebx
je 0x426954
push 0
lea edx, [ebp - 0x448]
mov eax, dword [0x433d8c]
call fcn.00409478
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x444], esi
mov byte [ebp - 0x440], 0xa
lea ecx, [ebp - 0x444]
mov edx, 1
call fcn.0042cf54
mov dword [ebp - 4], ebx
jmp 0x4269fe
mov dword [ebp - 0xc], 0x20a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x426aa0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov ebx, eax
test ebx, ebx
jne 0x4269c6
mov eax, dword [ebp - 0xc]
shr eax, 1
mov word [ebp + eax*2 - 0x42a], 0
mov dword [ebp - 0x438], esi
mov byte [ebp - 0x434], 0xa
lea eax, [ebp - 0x428]
mov dword [ebp - 0x430], eax
mov byte [ebp - 0x42c], 0xa
lea edx, [ebp - 0x438]
mov eax, 0x426aa4
mov ecx, 1
call fcn.0041e4c0
jmp 0x4269fb
push 0
lea edx, [ebp - 0x44c]
mov eax, dword [0x433d8c]
call fcn.00409478
mov eax, dword [ebp - 0x44c]
mov dword [ebp - 0x444], esi
mov byte [ebp - 0x440], 0xa
lea ecx, [ebp - 0x444]
mov edx, 1
call fcn.0042cf54
mov dword [ebp - 4], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426a2e
lea eax, [ebp - 0x44c]
mov edx, 2
call fcn.004069e4
lea eax, [ebp - 0x43c]
call fcn.00406984
ret