Function at 0x4e968
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4ec9f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
call fcn.00013d18
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax], edx
lea eax, [ebp - 0x14]
mov edx, 0x400
call fcn.000271f0
xor eax, eax
push ebp
push 0x4ec39
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, case.0x1ffea.3
push eax
push 0
lea eax, [ebp - 0x28]
call fcn.00026f34
mov eax, dword [ebp - 0x28]
call fcn.0001416c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x1c], eax
test bl, bl
je 0x4ea25
lea eax, [ebp - 0x20]
push eax
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, case.0x1ffea.3
push eax
push 0
push 0x4ecb4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0xc], 0
je 0x4ec07
mov dword [ebp - 0x18], 0x3ff
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov edx, 0x400
call fcn.00012c70
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4eccc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4ea88
cmp dword [ebp - 0x10], 1
jne 0x4eae9
cmp dword [ebp - 0x18], 3
jb 0x4eae9
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
call fcn.00013ee0
jmp 0x4eae9
test bl, bl
je 0x4eae9
cmp dword [ebp - 0x20], 0
je 0x4eae9
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0x3ff
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov edx, 0x400
call fcn.00012c70
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4eccc
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4eae9
cmp dword [ebp - 0x10], 1
jne 0x4eae9
cmp dword [ebp - 0x18], 3
jb 0x4eae9
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
call fcn.00013ee0
mov dword [ebp - 0x18], 4
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4ecf4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4eb3e
cmp dword [ebp - 0x10], 4
jne 0x4eb9b
cmp dword [ebp - 0x24], 0
jbe 0x4eb9b
cmp dword [ebp - 0x24], 0xffff
jae 0x4eb9b
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
jmp 0x4eb9b
test bl, bl
je 0x4eb9b
cmp dword [ebp - 0x20], 0
je 0x4eb9b
mov dword [ebp - 0x18], 4
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4ecf4
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4eb9b
cmp dword [ebp - 0x10], 4
jne 0x4eb9b
cmp dword [ebp - 0x24], 0
jbe 0x4eb9b
cmp dword [ebp - 0x24], 0xffff
jae 0x4eb9b
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
mov dword [ebp - 0x18], 0x3ff
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov edx, 0x400
call fcn.00012c70
mov byte [esi], 1
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4ed20
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4ec07
cmp dword [ebp - 0x10], 1
jne 0x4ec07
cmp dword [ebp - 0x18], 3
jb 0x4ec07
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
call fcn.00013ee0
mov eax, dword [ebp - 0x2c]
mov edx, 0x4ed44
call fcn.000140b8
jne 0x4ec07
mov byte [esi], 0
cmp dword [ebp - 0xc], 0
je 0x4ec16
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x20], 0
je 0x4ec2a
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ec43
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00013fa8
cmp eax, 3
jl 0x4ec65
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x4ec65
mov eax, dword [ebp - 8]
cmp dword [eax], 0xffff
jb 0x4ec74
mov eax, dword [ebp - 4]
call fcn.00013d18
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax], edx
lea eax, [ebp - 0x14]
mov edx, 0x400
call fcn.00027218
mov ebx, dword [ebp - 0x1c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4eca6
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00013d3c
ret