Function at 0x4d6cd8
Capabilities:
Persist via appinit_dlls registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004050c0
xor eax, eax
push ebp
push 0x4d6f2c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0xf013f
push 0
push 0x4d6f3c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4d6f04
mov eax, 0x80
call fcn.00402f4c
mov dword [ebp - 0x18], eax
mov eax, 4
call fcn.00402f4c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0x80
xor edx, edx
push ebp
push 0x4d6efd
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0
push 0
push 0x4d6f74
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4d6db2
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4d6d80
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
push ebx
mov eax, dword [ebp - 4]
call fcn.004050d0
push eax
push 1
push 0
push 0x4d6f74
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4d6dab
call fcn.00404660
jmp 0x4d6f04
mov bl, 1
jmp 0x4d6e3d
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x18]
call fcn.0040a494
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 8]
call fcn.00409270
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00409270
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 8]
call fcn.0040521c
test eax, eax
jne 0x4d6e3b
cmp dword [ebp - 8], 0
je 0x4d6e00
push dword [ebp - 4]
push 0x4d6f8c
push dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404fd4
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4d6e0c
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
push ebx
mov eax, dword [ebp - 4]
call fcn.004050d0
push eax
push 1
push 0
push 0x4d6f74
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4d6e37
call fcn.00404660
jmp 0x4d6f04
mov bl, 1
jmp 0x4d6e3d
mov bl, 1
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x4d6f90
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4d6e92
or edx, 0xffffffff
mov eax, 0x4d6fac
call fcn.00409a64
mov dword [ebp - 0x1c], eax
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
push 0x4d6f90
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4d6e8e
call fcn.00404660
jmp 0x4d6f04
mov al, 1
jmp 0x4d6ed1
cmp dword [ebp - 0x20], 1
je 0x4d6ecf
or edx, 0xffffffff
mov eax, 0x4d6fac
call fcn.00409a64
mov dword [ebp - 0x1c], eax
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
push 0x4d6f90
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4d6ecb
call fcn.00404660
jmp 0x4d6f04
mov al, 1
jmp 0x4d6ed1
mov al, 1
and al, bl
mov byte [ebp - 9], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d6f04
mov eax, dword [ebp - 0x18]
call fcn.00402f68
mov eax, dword [ebp - 0x14]
call fcn.00402f68
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d6f33
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00404c64
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404c64
ret