Function at 0x4d45c4
Capabilities:
Delete registry value
Query or enumerate registry value
Set 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 - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00406ec0
mov eax, dword [ebp - 8]
call fcn.00406ec0
xor eax, eax
push ebp
push 0x4d481b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00406f2c
xor ebx, ebx
xor edx, edx
push ebp
push 0x4d47e9
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 4]
mov edx, 0x4d483c
call fcn.00407394
mov eax, dword [ebp - 0x20]
call fcn.00406f64
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
sete al
mov byte [ebp - 0xd], al
test al, al
je 0x4d47df
xor edx, edx
push ebp
push 0x4d47d8
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00406f64
mov esi, eax
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4d47bb
mov eax, dword [ebp - 0x18]
call fcn.0040421c
mov dword [ebp - 0x1c], eax
xor edx, edx
push ebp
push 0x4d47b4
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 0
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
sete byte [ebp - 0xd]
mov esi, dword [ebp - 0x1c]
jmp 0x4d4721
lea eax, [ebp - 0x28]
mov edx, esi
call fcn.00407084
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.00411148
mov eax, dword [ebp - 0x24]
mov edx, 0x4d48bc
call fcn.00407598
jne 0x4d46f4
mov bl, 1
jmp 0x4d4716
push dword [ebp - 0xc]
lea eax, [ebp - 0x2c]
mov edx, esi
call fcn.00407084
push dword [ebp - 0x2c]
push 0x4d48dc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407478
push esi
call sub.kernel32.dll_lstrlenW_1
inc eax
add eax, eax
add esi, eax
cmp word [esi], 0
jne 0x4d46cc
test bl, bl
je 0x4d479e
cmp dword [ebp - 0xc], 0
jne 0x4d474b
mov eax, dword [ebp - 8]
call fcn.00406f64
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegDeleteValueW
test eax, eax
sete byte [ebp - 0xd]
jmp 0x4d479e
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4d4768
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4d4768
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.004067fc
mov ebx, eax
test ebx, ebx
je 0x4d4773
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
mov eax, ebx
add eax, eax
push eax
mov eax, dword [ebp - 0xc]
call fcn.00406f64
push eax
push 7
push 0
mov eax, dword [ebp - 8]
call fcn.00406f64
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
sete byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d47bb
mov eax, dword [ebp - 0x1c]
call fcn.00404238
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d47df
cmp dword [ebp - 0x14], 0
je 0x4d47d7
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d47f3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d4822
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00406ed0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406ed0
ret