Function at 0x4d66b0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e027d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x65eb68]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x28], 0
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
je 0x4d68fa
mov eax, dword [edi]
xor esi, esi
cmp dword [edi + 0x3c], esi
cmovne esi, ecx
mov ecx, edi
mov dword [ebp - 0x28], esi
call dword [eax + 0x88]
test eax, eax
jne 0x4d671d
push esi
push ebx
push dword [ebp + 0xc]
mov ecx, edi
call fcn.004d5610
jmp 0x4d6a60
mov esi, dword [ebp + 0xc]
movzx eax, si
add eax, 0xfffffffe
cmp eax, 0x63
ja case.0x4d6736.4
movzx eax, byte [eax + 0x4d6a90]
jmp dword [eax*4 + 0x4d6a80]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 4
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push dword [ebp - 0x14]
push dword [edi + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, edi
test eax, eax
jne 0x4d6774
lea eax, [ebp - 0x24]
push eax
push ebx
push esi
call fcn.004d5610
jmp 0x4d6a60
push dword [ebp - 0x28]
push ebx
push esi
call fcn.004d5610
jmp 0x4d6a60
lea ecx, [ebp - 0x24]
call fcn.00404c19
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
push 0
lea eax, [ebp - 0x30]
push eax
push 0
push dword [ebp - 0x14]
push dword [edi + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4d68dd
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
shr eax, 1
push eax
call fcn.004d7f90
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push dword [ebp - 0x14]
push dword [edi + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.004191b1
test esi, esi
jne 0x4d68da
mov eax, dword [ebp + 0xc]
cmp ax, 0x65
jne 0x4d6841
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], esi
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], esi
push eax
push 0x603778
push dword [ebp - 0x24]
call fcn.00472a20
add esp, 0x10
cmp eax, 2
je 0x4d6822
push dword [ebp - 0x28]
push ebx
push 0x65
jmp 0x4d68e2
mov ecx, dword [ebp - 0x14]
mov esi, 1
mov eax, dword [ebp - 0x18]
mov dword [ebx + 4], ecx
lea ecx, [ebp - 0x24]
mov dword [ebx], eax
call fcn.00404cb7
mov eax, esi
jmp 0x4d6a60
cmp ax, 0x64
jne 0x4d68bb
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0
push eax
push 0x603788
push dword [ebp - 0x24]
call fcn.00472a20
add esp, 0x18
cmp eax, 4
je 0x4d6890
push dword [ebp - 0x28]
push ebx
push 0x64
jmp 0x4d68e2
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
mov dword [ebx], eax
mov esi, 1
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0xc], eax
call fcn.00404cb7
mov eax, esi
jmp 0x4d6a60
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.0048d280
lea ecx, [ebp - 0x24]
mov esi, 1
call fcn.00404cb7
mov eax, esi
jmp 0x4d6a60
mov esi, dword [ebp + 0xc]
push dword [ebp - 0x28]
push ebx
push esi
mov ecx, edi
call fcn.004d5610
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.00404cb7
mov eax, esi
jmp 0x4d6a60
xor eax, eax
cmp dword [edi + 0x40], eax
cmovne eax, ecx
mov ecx, edi
mov dword [ebp - 0x30], eax
mov eax, dword [edi]
call dword [eax + 0x88]
test eax, eax
jne 0x4d691a
xor eax, eax
jmp 0x4d6a60
push dword [ebp - 0x30]
mov ecx, edi
push ebx
push dword [ebp + 0xc]
call fcn.004d8460
test eax, eax
je 0x4d694b
mov eax, dword [edi + 0x44]
test eax, eax
je 0x4d6941
cmp dword [edi + 0x34], 0
jne 0x4d6941
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, 1
jmp 0x4d6a60
mov edx, dword [ebp + 0xc]
or ecx, 0xffffffff
movzx eax, dx
add eax, 0xfffffffe
cmp eax, 0x63
ja case.0x4d6967.6
movzx eax, byte [eax + 0x4d6b0c]
jmp dword [eax*4 + 0x4d6af4]
push ebx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push edx
mov ecx, edi
call fcn.004d5610
push 4
lea eax, [ebp - 0x2c]
push eax
push 4
push 0
push esi
push dword [edi + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, eax
jmp case.0x4d6967.6
mov ecx, dword [ebx]
mov eax, dword [ecx - 0xc]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push esi
push dword [edi + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, eax
jmp case.0x4d6967.6
push edx
mov ecx, edi
call fcn.004d8350
push eax
push ebx
push 3
push 0
push esi
push dword [edi + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, eax
jmp case.0x4d6967.6
lea ecx, [ebp - 0x14]
call fcn.00404c19
push dword [ebx + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push dword [ebx]
push 0x603778
push eax
call fcn.00405013
add esp, 0x10
jmp 0x4d6a2e
lea ecx, [ebp - 0x14]
call fcn.00404c19
push dword [ebx + 0xc]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push dword [ebx + 8]
push dword [ebx + 4]
push dword [ebx]
push 0x603788
push eax
call fcn.00405013
add esp, 0x18
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push 1
push 0
push esi
push dword [edi + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], eax
call fcn.00404cb7
mov ecx, dword [ebp - 0x28]
xor eax, eax
test ecx, ecx
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00599f9c
mov esp, ebp
pop ebp
ret 0x10