Function at 0x4e6638
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 9
push 0
push 0
dec ecx
jne 0x4e6641
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404c04
mov eax, dword [ebp - 0xc]
call fcn.00404c04
mov eax, dword [ebp + 0xc]
call fcn.00404c04
xor eax, eax
push ebp
push 0x4e6a4c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x88], 0
je 0x4e68da
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x74]
call fcn.004047dc
mov byte [ebp - 0xd], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
call fcn.00404798
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004e53dc
test al, al
je 0x4e68c8
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404c14
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4e68c8
cmp dword [ebp - 0x20], 1
je 0x4e66f8
cmp dword [ebp - 0x20], 2
jne 0x4e676a
cmp dword [ebp - 0x1c], 1
jne 0x4e670f
mov eax, dword [ebp + 8]
call fcn.00404744
mov byte [ebp - 0xd], 1
jmp 0x4e68c8
mov eax, dword [ebp - 0x1c]
call fcn.00402b10
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x28]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404c14
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete byte [ebp - 0xd]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
call fcn.0040aa44
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp + 8]
call fcn.00404798
mov eax, dword [ebp - 0x28]
call fcn.00402b40
jmp 0x4e68c8
cmp dword [ebp - 0x20], 7
jne 0x4e6818
cmp dword [ebp - 0x1c], 1
jne 0x4e678b
mov eax, dword [ebp + 8]
call fcn.00404744
mov byte [ebp - 0xd], 1
jmp 0x4e68c8
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
inc eax
mov edx, 0x4e6a68
call fcn.004b97d8
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
call fcn.00404798
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.00404c14
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x28]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404c14
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete byte [ebp - 0xd]
mov eax, dword [ebp + 8]
mov ecx, 0x4e6a74
mov edx, 0x4e6a68
call fcn.004b989c
test al, al
jne 0x4e67e1
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.00404a14
mov edx, eax
sub edx, 3
mov eax, dword [ebp + 8]
mov ecx, 4
call fcn.00404cb8
jmp 0x4e68c8
cmp dword [ebp - 0x20], 4
jne 0x4e6863
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404c14
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete byte [ebp - 0xd]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x20]
call fcn.00409b44
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp + 8]
call fcn.00404798
jmp 0x4e68c8
cmp dword [ebp - 0x20], 3
jne 0x4e68c8
mov eax, dword [ebp - 0x1c]
call fcn.00402b10
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404c14
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete byte [ebp - 0xd]
cmp byte [ebp - 0xd], 0
je 0x4e68c0
lea ecx, [ebp - 0x38]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
call fcn.004e31d4
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp + 8]
call fcn.00404798
mov eax, dword [ebp - 0x24]
call fcn.00402b40
xor ecx, ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004e53dc
jmp 0x4e6a14
mov byte [ebp - 0xd], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
call fcn.00404798
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x30]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4e6a14
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x10], 4
jne 0x4e692f
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp + 8]
call fcn.00404798
mov byte [ebp - 0xd], 1
jmp 0x4e6a14
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x10], 3
jne 0x4e695a
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
call fcn.0040aa44
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp + 8]
call fcn.00404798
mov byte [ebp - 0xd], 1
jmp 0x4e6a14
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x10], 2
jne 0x4e6985
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
call fcn.00409b44
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp + 8]
call fcn.00404798
mov byte [ebp - 0xd], 1
jmp 0x4e6a14
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x10], 6
jne 0x4e69b4
mov eax, dword [ebp - 0x14]
fld qword [eax + 0x18]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x48]
call fcn.0040bbd4
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
call fcn.00404798
mov byte [ebp - 0xd], 1
jmp 0x4e6a14
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x10], 1
jne 0x4e69e8
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x11], 0
je 0x4e69d5
mov eax, dword [ebp + 8]
mov edx, 0x4e6a80
call fcn.00404798
jmp 0x4e69e2
mov eax, dword [ebp + 8]
mov edx, 0x4e6a90
call fcn.00404798
mov byte [ebp - 0xd], 1
jmp 0x4e6a14
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x10], 5
jne 0x4e6a14
lea ecx, [ebp - 0x4c]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
call fcn.004e31d4
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
call fcn.00404798
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e6a53
lea eax, [ebp - 0x4c]
mov edx, 9
call fcn.00404768
lea eax, [ebp - 0x18]
call fcn.00404744
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404768
lea eax, [ebp + 0xc]
call fcn.00404744
ret