Function at 0x4e854c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x4e8555
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e897a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
je 0x4e8949
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.004e4ba8
sub eax, 1
jno 0x4e859e
call fcn.0040282c
test eax, eax
jl 0x4e8784
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 4]
add eax, 0x48
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x44]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004e757c
mov dword [ebp - 0x1c], eax
xor ecx, ecx
push ebp
push 0x4e8764
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
sub esi, 1
jno 0x4e85ee
call fcn.0040282c
test esi, esi
jl 0x4e875a
inc esi
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
lea ecx, [ebp - 0x30]
mov edx, ebx
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x30]
call fcn.00403d04
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
push eax
call sub.kernel32.dll_SetLastError
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x4e8643
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e8949
mov eax, dword [ebp - 0x14]
add eax, 1
jae 0x4e8650
call fcn.0040282c
push eax
lea eax, [ebp - 0x24]
mov ecx, 1
mov edx, dword [0x4e8528]
call fcn.00405208
add esp, 4
mov edx, dword [ebp - 0x14]
add edx, 1
jae 0x4e8674
call fcn.0040282c
mov eax, dword [ebp - 0x24]
call fcn.00407380
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
lea ecx, [ebp - 0x34]
mov edx, ebx
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x34]
call fcn.00403d04
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
push eax
call sub.kernel32.dll_SetLastError
call sub.kernel32.dll_GetLastError_1
test eax, eax
jne 0x4e871b
cmp dword [ebp - 0x10], 7
jne 0x4e86c7
cmp dword [ebp - 0x14], 2
jbe 0x4e871b
cmp dword [ebp - 0x10], 1
jne 0x4e86d3
cmp dword [ebp - 0x14], 1
jbe 0x4e871b
cmp dword [ebp - 0x10], 3
jne 0x4e86df
cmp dword [ebp - 0x14], 0
jbe 0x4e871b
cmp dword [ebp - 0x10], 2
jne 0x4e86eb
cmp dword [ebp - 0x14], 1
jbe 0x4e871b
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
lea ecx, [ebp - 0x38]
mov edx, ebx
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x38]
call fcn.00403d04
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
cmp dword [ebp - 0x18], 0
jne 0x4e8752
cmp dword [ebp - 0x10], 1
je 0x4e8733
cmp dword [ebp - 0x10], 2
je 0x4e8733
cmp dword [ebp - 0x10], 7
jne 0x4e873b
mov eax, dword [ebp - 0x24]
cmp byte [eax], 0
je 0x4e8752
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x4e8752
inc eax
xor edx, edx
mov ecx, dword [ebp - 0x24]
cmp byte [ecx + edx], 0
jne 0x4e8752
inc edx
dec eax
jne 0x4e8745
inc ebx
dec esi
jne 0x4e85f9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e8778
inc dword [ebp - 0x18]
dec dword [ebp - 0x2c]
jne 0x4e85b1
cmp byte [ebp + 0x10], 0
je 0x4e8931
mov dl, 1
mov eax, dword [0x418910]
call fcn.004028b0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
sub eax, 1
jno 0x4e87af
call fcn.0040282c
test eax, eax
jl 0x4e88b5
inc eax
mov dword [ebp - 0x2c], eax
xor ebx, ebx
lea ecx, [ebp - 0x3c]
mov edx, ebx
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x3c]
call fcn.00403b34
test eax, eax
je 0x4e88ab
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x44]
mov edx, ebx
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x44]
call fcn.00403b34
push eax
lea edx, [ebp - 0x48]
mov eax, ebx
call fcn.00408edc
mov eax, dword [ebp - 0x48]
mov ecx, 0x4e8994
pop edx
call fcn.004e4b28
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 8]
call fcn.0043955c
test al, al
jne 0x4e88ab
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x50]
mov edx, ebx
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x50]
call fcn.00403b34
push eax
lea edx, [ebp - 0x54]
mov eax, ebx
call fcn.00408edc
mov eax, dword [ebp - 0x54]
mov ecx, 0x4e8994
pop edx
call fcn.004e4b28
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x58]
mov edx, ebx
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 8]
pop ecx
call fcn.00439670
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x60]
mov edx, ebx
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x60]
call fcn.00403b34
push eax
lea edx, [ebp - 0x64]
mov eax, ebx
call fcn.00408edc
mov eax, dword [ebp - 0x64]
mov ecx, 0x4e8994
pop edx
call fcn.004e4b28
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
dec dword [ebp - 0x2c]
jne 0x4e87bd
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
sub eax, 1
jno 0x4e88c7
call fcn.0040282c
test eax, eax
jl 0x4e88ef
inc eax
mov dword [ebp - 0x2c], eax
xor ebx, ebx
lea ecx, [ebp - 0x68]
mov edx, ebx
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 8]
call fcn.00439090
inc ebx
dec dword [ebp - 0x2c]
jne 0x4e88d1
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
sub eax, 1
jno 0x4e8901
call fcn.0040282c
test eax, eax
jl 0x4e8929
inc eax
mov dword [ebp - 0x2c], eax
xor ebx, ebx
lea ecx, [ebp - 0x6c]
mov edx, ebx
mov eax, dword [ebp - 0x20]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 8]
call fcn.00439090
inc ebx
dec dword [ebp - 0x2c]
jne 0x4e890b
lea eax, [ebp - 0x20]
call fcn.0040f2b8
push 0
lea eax, [ebp - 0x24]
mov ecx, 1
mov edx, dword [0x4e8528]
call fcn.00405208
add esp, 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8981
lea eax, [ebp - 0x6c]
mov edx, 0x10
call fcn.0040386c
lea eax, [ebp - 0x28]
call fcn.00403804
lea eax, [ebp - 0x24]
mov edx, dword [0x4e8528]
call fcn.00405214
ret