Function at 0x4e0780
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 0x4e0a97
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
jne 0x4e08e5
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 0x4e07ea
cmp ebx, 0x103
jne 0x4e0a6b
xor ebx, ebx
jmp 0x4e0a6b
cmp word [ebp - 0x21e], 0x2e
je 0x4e08c9
lea eax, [ebp - 0x21e]
call fcn.004d40f0
mov dword [ebp - 0x10], eax
mov edx, 0x4e0aa8
lea eax, [ebp - 0x21e]
call fcn.004d4114
mov edx, 0x4e0ad0
lea eax, [ebp - 0x428]
call fcn.004d4100
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 0x4e087b
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 0x4e0b10
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 0x4e08c9
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, 0x4e0b14
mov ecx, 1
call fcn.004d8538
mov eax, dword [0x4f1144]
cmp dword [eax], 0
je 0x4e08df
mov dword [ebp - 4], 1
jmp 0x4e0a6e
inc esi
jmp 0x4e07be
cmp word [esi], 0x2e
jne 0x4e092c
push 0
lea edx, [ebp - 0x43c]
mov eax, dword [0x4f1304]
call fcn.0040d7c0
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x444], esi
mov byte [ebp - 0x440], 0xa
lea ecx, [ebp - 0x444]
mov edx, 1
call fcn.004e6fc4
mov dword [ebp - 4], 0x7b
jmp 0x4e0a6e
xor edx, edx
mov eax, esi
call fcn.004e76f8
mov esi, eax
mov dx, 0x20
mov eax, esi
call fcn.004d40a8
test eax, eax
je 0x4e094b
mov word [eax], 0
push 0
mov dword [ebp - 0x444], esi
mov byte [ebp - 0x440], 0xa
lea ecx, [ebp - 0x444]
mov edx, 0x4e0b24
lea eax, [ebp - 0x21e]
call fcn.004d41ac
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 0x4e09c4
push 0
lea edx, [ebp - 0x448]
mov eax, dword [0x4f1304]
call fcn.0040d7c0
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x444], esi
mov byte [ebp - 0x440], 0xa
lea ecx, [ebp - 0x444]
mov edx, 1
call fcn.004e6fc4
mov dword [ebp - 4], ebx
jmp 0x4e0a6e
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 0x4e0b10
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov ebx, eax
test ebx, ebx
jne 0x4e0a36
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, 0x4e0b14
mov ecx, 1
call fcn.004d8538
jmp 0x4e0a6b
push 0
lea edx, [ebp - 0x44c]
mov eax, dword [0x4f1304]
call fcn.0040d7c0
mov eax, dword [ebp - 0x44c]
mov dword [ebp - 0x444], esi
mov byte [ebp - 0x440], 0xa
lea ecx, [ebp - 0x444]
mov edx, 1
call fcn.004e6fc4
mov dword [ebp - 4], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e0a9e
lea eax, [ebp - 0x44c]
mov edx, 2
call fcn.00409ec8
lea eax, [ebp - 0x43c]
call fcn.00409e68
ret