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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00403ce4
xor eax, eax
push ebp
push 0x4e8438
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403d04
mov ebx, eax
push ebx
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 0x4e83ff
mov eax, dword [ebp - 0x14]
add eax, 1
jae 0x4e81d8
call fcn.0040282c
push eax
lea eax, [ebp - 0x20]
mov ecx, 1
mov edx, dword [0x4e8138]
call fcn.00405208
add esp, 4
mov edx, dword [ebp - 0x14]
add edx, 1
jae 0x4e81fc
call fcn.0040282c
mov eax, dword [ebp - 0x20]
call fcn.00407380
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push ebx
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 0x4e823b
mov eax, dword [ebp - 0x20]
call fcn.00401538
jmp 0x4e83ff
cmp dword [ebp - 0x10], 7
jne 0x4e824b
cmp dword [ebp - 0x14], 2
jbe 0x4e8347
cmp dword [ebp - 0x10], 1
jne 0x4e825b
cmp dword [ebp - 0x14], 1
jbe 0x4e8347
cmp dword [ebp - 0x10], 3
jne 0x4e826b
cmp dword [ebp - 0x14], 0
jbe 0x4e8347
cmp dword [ebp - 0x10], 2
jne 0x4e827b
cmp dword [ebp - 0x14], 1
jbe 0x4e8347
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.004e4ba8
sub eax, 1
jno 0x4e8290
call fcn.0040282c
test eax, eax
jl 0x4e8311
inc eax
mov dword [ebp - 0x28], 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 edx, edx
push ebp
push 0x4e82f5
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403d04
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e8309
inc dword [ebp - 0x18]
dec dword [ebp - 0x28]
jne 0x4e829f
cmp dword [ebp - 0x10], 1
je 0x4e8323
cmp dword [ebp - 0x10], 2
je 0x4e8323
cmp dword [ebp - 0x10], 7
jne 0x4e832b
mov eax, dword [ebp - 0x20]
cmp byte [eax], 0
je 0x4e8347
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x4e8347
inc eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov edx, dword [ebp - 0x20]
cmp byte [edx + eax], 0
jne 0x4e8347
inc eax
dec dword [ebp - 0x28]
jne 0x4e8338
cmp byte [ebp + 0xc], 0
je 0x4e83e7
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403b34
mov edx, eax
mov ecx, 0x4e8450
mov eax, 0x4e8450
call fcn.004e4b28
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
call fcn.0043955c
test al, al
jne 0x4e83dc
mov eax, dword [ebp - 0xc]
call fcn.00403b34
test eax, eax
je 0x4e83dc
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403b34
mov edx, eax
mov ecx, 0x4e8450
mov eax, 0x4e8450
call fcn.004e4b28
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00439670
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403b34
mov edx, eax
mov ecx, 0x4e8450
mov eax, 0x4e8450
call fcn.004e4b28
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
call fcn.00439090
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00439090
push 0
lea eax, [ebp - 0x20]
mov ecx, 1
mov edx, dword [0x4e8138]
call fcn.00405208
add esp, 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e843f
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.0040386c
lea eax, [ebp - 0x24]
call fcn.00403804
lea eax, [ebp - 0x20]
mov edx, dword [0x4e8138]
call fcn.00405214
lea eax, [ebp - 0xc]
call fcn.00403804
ret