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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4d48fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x505ae0]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4d48ac
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x2c], 0
mov eax, dword [0x505ae0]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp - 0x2c]
call fcn.00423584
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0xc]
mov edx, dword [0x505a88]
mov edx, dword [edx]
mov eax, dword [0x505fa0]
mov eax, dword [eax]
call fcn.004db940
test al, al
je 0x4d48a0
mov edx, dword [ebp - 0x2c]
mov al, 0xb
call fcn.004e1650
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x20]
call fcn.004db514
mov eax, 0x4d4918
call fcn.004b2f34
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
call fcn.004df2e0
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x38]
call fcn.004ae0ac
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0x11
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0x11
lea edx, [ebp - 0x50]
mov ecx, 1
mov eax, 0x4d4950
call fcn.004b31b8
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 4]
call fcn.004df2e0
cmp dword [ebp - 4], 0
je 0x4d40d3
mov eax, dword [ebp - 4]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0x11
lea edx, [ebp - 0x5c]
xor ecx, ecx
mov eax, 0x4d4974
call fcn.004b31b8
mov eax, dword [0x505f18]
movzx eax, byte [eax]
mov byte [ebp - 0x25], al
mov eax, dword [ebp - 0x40]
test byte [eax + 0x40], 4
je 0x4d40fb
cmp byte [ebp - 0x25], 1
je 0x4d40fb
mov eax, 0x4d49a0
call fcn.004b2f34
mov byte [ebp - 0x25], 1
mov eax, dword [ebp - 0x40]
test byte [eax + 0x40], 8
je 0x4d412c
mov eax, dword [0x505acc]
cmp byte [eax], 0
jne 0x4d4118
mov eax, 0x4d49e4
call fcn.004ade4c
cmp byte [ebp - 0x25], 2
je 0x4d412c
mov eax, 0x4d4a6c
call fcn.004b2f34
mov byte [ebp - 0x25], 2
mov byte [ebp - 0x2d], 0
xor edx, edx
push ebp
push 0x4d4773
push dword fs:[edx]
mov dword fs:[edx], esp
xor ebx, ebx
mov eax, dword [ebp - 0x40]
test byte [eax + 0x3f], 0x40
je 0x4d4186
mov eax, dword [ebp - 0x10]
call fcn.004d3d3c
test al, al
je 0x4d417c
mov eax, 0x4d4ab0
call fcn.004b2f34
mov eax, dword [ebp - 0x10]
call fcn.004064d4
mov ecx, eax
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x38]
movzx eax, byte [ebp - 0x25]
call fcn.0047fe78
mov bl, 1
jmp 0x4d4186
mov eax, 0x4d4ae0
call fcn.004b2f34
mov eax, dword [ebp - 0x40]
test byte [eax + 0x3f], 0x40
je 0x4d41af
mov eax, dword [ebp - 0x40]
cmp byte [eax + 0x3e], 0
jne 0x4d41af
test bl, bl
je 0x4d4769
mov eax, 0x4d4b2c
call fcn.004b2f34
jmp 0x4d4769
mov eax, dword [ebp - 0x40]
test byte [eax + 0x3f], 0x80
je 0x4d4229
mov eax, dword [ebp - 0x40]
cmp byte [eax + 0x3e], 0
jne 0x4d4229
push 0
push 2
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
call fcn.004064d4
mov ecx, eax
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x38]
movzx eax, byte [ebp - 0x25]
call fcn.0047fdb8
test eax, eax
jne 0x4d421a
mov eax, 0x4d4b74
call fcn.004b2f34
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegDeleteValueW
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, 0x4d4ba8
call fcn.004b2f34
jmp 0x4d4769
mov eax, 0x4d4bf4
call fcn.004b2f34
jmp 0x4d4769
mov eax, dword [ebp - 0x40]
movzx eax, word [eax + 0x3c]
cmp ax, 0xffff
je 0x4d424c
movsx eax, ax
push eax
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x10]
movzx eax, byte [ebp - 0x25]
call fcn.004d3d68
mov eax, dword [ebp - 0x40]
test byte [eax + 0x40], 2
jne 0x4d42f1
mov eax, 0x4d4c50
call fcn.004b2f34
push 0
push 0
push 0
push 3
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
call fcn.004064d4
mov ecx, eax
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x38]
movzx eax, byte [ebp - 0x25]
call fcn.0047fd80
mov ebx, eax
test ebx, ebx
jne 0x4d42d5
cmp dword [ebp - 0x1c], 1
jne 0x4d435b
mov eax, dword [ebp - 0x40]
cmp word [eax + 0x3c], 0xffff
je 0x4d435b
mov eax, 0x4d4c98
call fcn.004b2f34
mov eax, dword [ebp - 0x40]
movsx eax, word [eax + 0x3c]
push eax
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x10]
movzx eax, byte [ebp - 0x25]
call fcn.004d3d68
jmp 0x4d435b
mov eax, dword [ebp - 0x40]
test byte [eax + 0x40], 1
jne 0x4d435b
push ebx
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x10]
mov al, 1
call fcn.004cde70
jmp 0x4d435b
mov eax, dword [ebp - 0x40]
cmp byte [eax + 0x3e], 0
je 0x4d434c
mov eax, 0x4d4d04
call fcn.004b2f34
push 0
push 3
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
call fcn.004064d4
mov ecx, eax
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x38]
movzx eax, byte [ebp - 0x25]
call fcn.0047fdb8
mov ebx, eax
test ebx, ebx
je 0x4d435b
cmp ebx, 2
je 0x4d435b
mov eax, dword [ebp - 0x40]
test byte [eax + 0x40], 1
jne 0x4d435b
push ebx
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x10]
mov al, 2
call fcn.004cde70
jmp 0x4d435b
mov eax, 0x4d4d34
call fcn.004b2f34
mov ebx, 2
test ebx, ebx
jne 0x4d4769
xor edx, edx
push ebp
push 0x4d4762
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x40]
test byte [eax + 0x3f], 0x80
je 0x4d4396
mov eax, 0x4d4b74
call fcn.004b2f34
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegDeleteValueW
mov eax, dword [ebp - 0x40]
cmp byte [eax + 0x3e], 0
je 0x4d472c
mov eax, dword [ebp - 0x40]
test byte [eax + 0x3f], 1
je 0x4d43c6
mov eax, dword [ebp - 4]
call fcn.004064d4
mov edx, eax
mov eax, dword [ebp - 0x18]
call fcn.0047fcf8
test al, al
jne 0x4d472c
mov eax, 0x4d4de8
call fcn.004b2f34
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax + 0x3e]
movzx edx, al
cmp edx, 6
ja case.0x4d43e3.0
jmp dword [edx*4 + 0x4d43ea]
mov ebx, 1
mov edx, eax
sub dl, 2
je 0x4d4419
sub dl, 3
je 0x4d4420
jmp 0x4d4425
mov ebx, 2
jmp 0x4d4425
mov ebx, 7
cmp al, 5
je 0x4d44c6
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 8]
mov eax, 0x4d4e34
call fcn.00406f04
test eax, eax
je 0x4d445a
mov eax, dword [ebp - 4]
call fcn.004064d4
mov edx, eax
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 0x18]
call fcn.0047fce0
test al, al
jne 0x4d4464
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.0040649c
mov eax, dword [ebp - 0x40]
test byte [eax + 0x3f], 0x20
je 0x4d449c
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4d449c
cmp dword [ebp - 0x20], 1
je 0x4d4499
cmp dword [ebp - 0x20], 2
jne 0x4d449c
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 8]
push eax
mov eax, 0x4d4e54
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x58], eax
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
mov ecx, 1
call fcn.004df304
jmp 0x4d455c
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 8]
mov eax, 0x4d4e34
call fcn.00406f04
test eax, eax
je 0x4d44f3
mov eax, dword [ebp - 4]
call fcn.004064d4
mov edx, eax
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 0x18]
call fcn.0047fcec
test al, al
jne 0x4d44fd
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.0040649c
lea eax, [ebp - 8]
push eax
mov eax, 0x4d4e54
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x4c], eax
mov eax, 0x4d4e70
mov dword [ebp - 0x48], eax
mov eax, 0x4d4e88
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
mov ecx, 3
call fcn.004df304
cmp dword [ebp - 8], 0
je 0x4d455c
mov eax, dword [ebp - 8]
test eax, eax
je 0x4d4544
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
cmp word [edx + eax*2 - 2], 0
je 0x4d455c
lea eax, [ebp - 8]
mov edx, 0x4d4e88
call fcn.00406854
mov esi, dword [ebp - 8]
test esi, esi
je 0x4d4568
sub esi, 4
mov esi, dword [esi]
inc esi
mov eax, esi
add eax, eax
push eax
mov eax, dword [ebp - 8]
call fcn.004064d4
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
je case.0x4d43e3.0
mov eax, dword [ebp - 0x40]
test byte [eax + 0x40], 1
jne case.0x4d43e3.0
push ebx
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x10]
xor eax, eax
call fcn.004cde70
jmp case.0x4d43e3.0
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
call fcn.004df2e0
mov eax, dword [ebp - 0x60]
call fcn.0040d21c
mov dword [ebp - 0x24], eax
push 4
lea eax, [ebp - 0x24]
push eax
push 4
push 0
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
je case.0x4d43e3.0
mov eax, dword [ebp - 0x40]
test byte [eax + 0x40], 1
jne case.0x4d43e3.0
push ebx
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x10]
xor eax, eax
call fcn.004cde70
jmp case.0x4d43e3.0
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
call fcn.004df2e0
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x38]
call fcn.00481a64
test al, al
jne 0x4d4642
mov eax, 0x4d4e98
call fcn.004ade4c
push 8
lea eax, [ebp - 0x38]
push eax
push 0xb
push 0
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
je case.0x4d43e3.0
mov eax, dword [ebp - 0x40]
test byte [eax + 0x40], 1
jne case.0x4d43e3.0
push ebx
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x10]
xor eax, eax
call fcn.004cde70
jmp case.0x4d43e3.0
lea eax, [ebp - 0x14]
call fcn.0040527c
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
test eax, eax
je 0x4d46a2
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
test ebx, ebx
jle 0x4d46d4
mov esi, 1
lea eax, [ebp - 0x68]
mov edx, dword [ebp - 0x40]
mov edx, dword [edx + 8]
movzx edx, word [edx + esi*2 - 2]
mov ecx, 0
call fcn.00405550
mov edx, dword [ebp - 0x68]
lea eax, [ebp - 0x14]
call fcn.00405684
inc esi
dec ebx
jne 0x4d46ad
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4d46e0
sub ebx, 4
mov ebx, dword [ebx]
push ebx
mov eax, dword [ebp - 0x14]
call fcn.00405a4c
push eax
push 3
push 0
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
je case.0x4d43e3.0
mov eax, dword [ebp - 0x40]
test byte [eax + 0x40], 1
jne case.0x4d43e3.0
push ebx
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x10]
xor eax, eax
call fcn.004cde70
mov eax, 0x4d4ee0
call fcn.004b2f34
jmp 0x4d474b
mov eax, dword [ebp - 0x40]
test byte [eax + 0x3f], 0x80
je 0x4d4741
mov eax, 0x4d4ba8
call fcn.004b2f34
jmp 0x4d474b
mov eax, 0x4d4f3c
call fcn.004b2f34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d4769
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d47ab
cmp byte [ebp - 0x2d], 0
jne 0x4d412c
mov eax, dword [ebp - 0x40]
test byte [eax + 0x3f], 8
je 0x4d47f0
mov eax, dword [ebp - 0x10]
call fcn.004d3d3c
test al, al
je 0x4d47f0
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x70]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
movzx ecx, byte [ebp - 0x25]
mov dx, 0x86
call fcn.004b6034
mov eax, dword [ebp - 0x40]
test byte [eax + 0x3f], 0x10
je 0x4d482b
mov eax, dword [ebp - 0x10]
call fcn.004d3d3c
test al, al
je 0x4d482b
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x70]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
movzx ecx, byte [ebp - 0x25]
mov dx, 0x88
call fcn.004b6034
mov eax, dword [ebp - 0x40]
test byte [eax + 0x3f], 2
je 0x4d4860
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x5c]
push eax
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
movzx ecx, byte [ebp - 0x25]
mov dx, 0x89
call fcn.004b6034
mov eax, dword [ebp - 0x40]
test byte [eax + 0x3f], 4
je 0x4d4895
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x5c]
push eax
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
movzx ecx, byte [ebp - 0x25]
mov dx, 0x87
call fcn.004b6034
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x1c]
call fcn.004db55c
inc dword [ebp - 0x2c]
dec dword [ebp - 0x3c]
jne 0x4d3ffa
mov eax, 0x3e8
call fcn.004cd414
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d4905
lea eax, [ebp - 0x6c]
call fcn.00406438
lea eax, [ebp - 0x68]
call fcn.0040527c
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.00406440
lea eax, [ebp - 0x54]
call fcn.00406438
lea eax, [ebp - 0x14]
call fcn.0040527c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00406440
ret