Function at 0x428060
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 0x42839a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
jne 0x4281e8
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 0x4280ca
cmp ebx, 0x103
jne 0x42836e
xor ebx, ebx
jmp 0x42836e
cmp word [ebp - 0x22a], 0x2e
je 0x4281cc
lea eax, [ebp - 0x22a]
test eax, eax
je 0x4280fe
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 0x428103
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov edx, 0x4283ac
lea eax, [ebp - 0x22a]
call fcn.0041c33c
mov edx, 0x4283d4
lea eax, [ebp - 0x434]
call fcn.0041c328
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 0x42817e
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 0x428414
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 0x4281cc
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, 0x428418
mov ecx, 1
call fcn.00425334
mov eax, dword [0x459848]
cmp dword [eax], 0
je 0x4281e2
mov dword [ebp - 4], 1
jmp 0x428371
inc esi
jmp 0x42809e
cmp word [esi], 0x2e
jne 0x42822f
push 0
lea edx, [ebp - 0x448]
mov eax, dword [0x4599c0]
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.0042b774
mov dword [ebp - 4], 0x7b
jmp 0x428371
xor edx, edx
mov eax, esi
call fcn.0042bf64
mov esi, eax
mov dx, 0x20
mov eax, esi
call fcn.0041c2d0
test eax, eax
je 0x42824e
mov word [eax], 0
push 0
mov dword [ebp - 0x450], esi
mov byte [ebp - 0x44c], 0xa
lea ecx, [ebp - 0x450]
mov edx, 0x428428
lea eax, [ebp - 0x22a]
call fcn.0041c3fc
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 0x4282c7
push 0
lea edx, [ebp - 0x454]
mov eax, dword [0x4599c0]
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.0042b774
mov dword [ebp - 4], ebx
jmp 0x428371
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 0x428414
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov ebx, eax
test ebx, ebx
jne 0x428339
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, 0x428418
mov ecx, 1
call fcn.00425334
jmp 0x42836e
push 0
lea edx, [ebp - 0x458]
mov eax, dword [0x4599c0]
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.0042b774
mov dword [ebp - 4], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4283a1
lea eax, [ebp - 0x458]
mov edx, 2
call fcn.00406a1c
lea eax, [ebp - 0x448]
call fcn.004069bc
ret