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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov byte [ebp - 9], dl
mov eax, dword [ebp - 4]
call fcn.00406ec0
mov eax, dword [ebp + 8]
call fcn.00406ec0
xor eax, eax
push ebp
push 0x4d4086
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xa], 0
lea eax, [ebp - 8]
xor edx, edx
call fcn.00406f2c
xor ebx, ebx
mov byte [ebp - 0x19], 0
mov byte [ebp - 0x1a], 0
xor edx, edx
push ebp
push 0x4d404c
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 4]
mov edx, 0x4d40a8
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 - 0xa], al
test al, al
je 0x4d4042
xor edx, edx
push ebp
push 0x4d403b
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x14]
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 - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4d3fe8
mov eax, dword [ebp - 0x14]
call fcn.0040421c
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x4d3fe1
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0
push 0
push esi
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
sete byte [ebp - 0xa]
mov esi, dword [ebp - 0x18]
jmp 0x4d3f0c
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]
push eax
lea edx, [ebp - 0x2c]
mov eax, 0x4d4104
call fcn.00411148
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.00407598
jne 0x4d3ece
mov bl, 1
cmp byte [ebp - 9], 0
jne 0x4d3ef0
mov byte [ebp - 0x1a], 1
jmp 0x4d3ef0
push dword [ebp - 8]
lea eax, [ebp - 0x30]
mov edx, esi
call fcn.00407084
push dword [ebp - 0x30]
push 0x4d4124
lea eax, [ebp - 8]
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
sete al
test al, bl
je 0x4d3f0a
mov byte [ebp - 0x19], 1
xor ebx, ebx
cmp word [esi], 0
jne 0x4d3e8f
cmp byte [ebp - 9], 1
jne 0x4d3f36
push dword [ebp - 8]
push 0x4d4104
push 0x4d4124
lea eax, [ebp - 8]
mov edx, 3
call fcn.00407478
cmp byte [ebp - 9], 0
je 0x4d3f46
cmp byte [ebp - 0x19], 0
jne 0x4d3fcb
cmp dword [ebp - 8], 0
jne 0x4d3f66
mov eax, dword [ebp + 8]
call fcn.00406f64
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegDeleteValueW
test eax, eax
sete byte [ebp - 0xa]
jmp 0x4d3fcb
cmp byte [ebp - 9], 1
je 0x4d3f78
cmp byte [ebp - 9], 0
sete al
and al, byte [ebp - 0x1a]
je 0x4d3fcb
mov eax, dword [ebp - 8]
test eax, eax
je 0x4d3f95
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4d3f95
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.004067fc
mov ebx, eax
test ebx, ebx
je 0x4d3fa0
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
mov eax, ebx
add eax, eax
push eax
mov eax, dword [ebp - 8]
call fcn.00406f64
push eax
push 7
push 0
mov eax, dword [ebp + 8]
call fcn.00406f64
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
sete byte [ebp - 0xa]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d401e
mov eax, dword [ebp - 0x18]
call fcn.00404238
ret
cmp byte [ebp - 9], 1
jne 0x4d401e
cmp byte [ebp - 0xa], 0
je 0x4d4015
push 0x16
push 0x4d4128
push 7
push 0
mov eax, dword [ebp + 8]
call fcn.00406f64
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x4d4019
xor eax, eax
jmp 0x4d401b
mov al, 1
mov byte [ebp - 0xa], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d4042
cmp dword [ebp - 0x10], 0
je 0x4d403a
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
jmp 0x4d4056
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d408d
lea eax, [ebp - 0x30]
mov edx, 5
call fcn.00406ed0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ed0
lea eax, [ebp + 8]
call fcn.00406ec8
ret