Function at 0x424924
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 0x424c3b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
jne 0x424a89
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 0x42498e
cmp ebx, 0x103
jne 0x424c0f
xor ebx, ebx
jmp 0x424c0f
cmp word [ebp - 0x21e], 0x2e
je 0x424a6d
lea eax, [ebp - 0x21e]
call fcn.00418150
mov dword [ebp - 0x10], eax
mov edx, 0x424c4c
lea eax, [ebp - 0x21e]
call fcn.00418174
mov edx, 0x424c74
lea eax, [ebp - 0x428]
call fcn.00418160
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 0x424a1f
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 0x424cb4
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 0x424a6d
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, 0x424cb8
mov ecx, 1
call fcn.0041c6d4
mov eax, dword [0x43203c]
cmp dword [eax], 0
je 0x424a83
mov dword [ebp - 4], 1
jmp 0x424c12
inc esi
jmp 0x424962
cmp word [esi], 0x2e
jne 0x424ad0
push 0
lea edx, [ebp - 0x43c]
mov eax, dword [0x432190]
call fcn.004095b4
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x444], esi
mov byte [ebp - 0x440], 0xa
lea ecx, [ebp - 0x444]
mov edx, 1
call fcn.0042b1b0
mov dword [ebp - 4], 0x7b
jmp 0x424c12
xor edx, edx
mov eax, esi
call fcn.0042b8e4
mov esi, eax
mov dx, 0x20
mov eax, esi
call fcn.00418108
test eax, eax
je 0x424aef
mov word [eax], 0
push 0
mov dword [ebp - 0x444], esi
mov byte [ebp - 0x440], 0xa
lea ecx, [ebp - 0x444]
mov edx, 0x424cc8
lea eax, [ebp - 0x21e]
call fcn.0041820c
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 0x424b68
push 0
lea edx, [ebp - 0x448]
mov eax, dword [0x432190]
call fcn.004095b4
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x444], esi
mov byte [ebp - 0x440], 0xa
lea ecx, [ebp - 0x444]
mov edx, 1
call fcn.0042b1b0
mov dword [ebp - 4], ebx
jmp 0x424c12
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 0x424cb4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov ebx, eax
test ebx, ebx
jne 0x424bda
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, 0x424cb8
mov ecx, 1
call fcn.0041c6d4
jmp 0x424c0f
push 0
lea edx, [ebp - 0x44c]
mov eax, dword [0x432190]
call fcn.004095b4
mov eax, dword [ebp - 0x44c]
mov dword [ebp - 0x444], esi
mov byte [ebp - 0x440], 0xa
lea ecx, [ebp - 0x444]
mov edx, 1
call fcn.0042b1b0
mov dword [ebp - 4], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424c42
lea eax, [ebp - 0x44c]
mov edx, 2
call fcn.00406a34
lea eax, [ebp - 0x43c]
call fcn.004069d4
ret