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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4d201e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4fff44]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4d1fec
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x28], 0
mov eax, dword [0x4fff44]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp - 0x28]
call fcn.0041c108
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0xc]
mov edx, dword [0x4ffee0]
mov edx, dword [edx]
mov eax, dword [0x50042c]
mov eax, dword [eax]
call fcn.004d91e0
test al, al
je 0x4d1fe0
mov edx, dword [ebp - 0x28]
mov al, 0xb
call fcn.004dd734
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x20]
call fcn.004d8e60
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
call fcn.004dbe20
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 4]
call fcn.004dbe20
mov eax, dword [0x500390]
movzx eax, byte [eax]
mov byte [ebp - 0x21], al
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 4
je 0x4d197b
mov byte [ebp - 0x21], 1
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 8
je 0x4d199c
mov eax, dword [0x4fff2c]
cmp byte [eax], 0
jne 0x4d1998
mov eax, 0x4d2034
call fcn.004b2440
mov byte [ebp - 0x21], 2
mov byte [ebp - 0x29], 0
xor edx, edx
push ebp
push 0x4d1ebd
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 0x40
je 0x4d19dc
mov eax, dword [ebp - 0x10]
call fcn.004d16b8
test al, al
je 0x4d19dc
mov eax, dword [ebp - 0x10]
call fcn.00405300
mov ecx, eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
movzx eax, byte [ebp - 0x21]
call fcn.00470814
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 0x40
je 0x4d19f2
mov eax, dword [ebp - 0x3c]
cmp byte [eax + 0x3e], 0
je 0x4d1eb3
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 0x80
je 0x4d1a4d
mov eax, dword [ebp - 0x3c]
cmp byte [eax + 0x3e], 0
jne 0x4d1a4d
push 0
push 2
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405300
mov ecx, eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
movzx eax, byte [ebp - 0x21]
call fcn.00470770
test eax, eax
jne 0x4d1eb3
mov eax, dword [ebp - 4]
call fcn.00405300
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4d1eb3
mov eax, dword [ebp - 0x3c]
movsx eax, word [eax + 0x3c]
push eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x10]
movzx eax, byte [ebp - 0x21]
call fcn.004d16e0
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 2
jne 0x4d1ae3
push 0
push 0
push 0
push 3
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405300
mov ecx, eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
movzx eax, byte [ebp - 0x21]
call fcn.00470738
mov ebx, eax
test ebx, ebx
jne 0x4d1ac7
cmp dword [ebp - 0x18], 1
jne 0x4d1b39
mov eax, dword [ebp - 0x3c]
movsx eax, word [eax + 0x3c]
push eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x10]
movzx eax, byte [ebp - 0x21]
call fcn.004d16e0
jmp 0x4d1b39
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 1
jne 0x4d1b39
push ebx
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x10]
mov al, 1
call fcn.004ccd28
jmp 0x4d1b39
mov eax, dword [ebp - 0x3c]
cmp byte [eax + 0x3e], 0
je 0x4d1b34
push 0
push 3
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405300
mov ecx, eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
movzx eax, byte [ebp - 0x21]
call fcn.00470770
mov ebx, eax
test ebx, ebx
je 0x4d1b39
cmp ebx, 2
je 0x4d1b39
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 1
jne 0x4d1b39
push ebx
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x10]
mov al, 2
call fcn.004ccd28
jmp 0x4d1b39
mov ebx, 2
test ebx, ebx
jne 0x4d1eb3
xor edx, edx
push ebp
push 0x4d1eac
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 0x80
je 0x4d1b6a
mov eax, dword [ebp - 4]
call fcn.00405300
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov eax, dword [ebp - 0x3c]
cmp byte [eax + 0x3e], 0
je case.0x4d1bad.0
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 1
je 0x4d1b9a
mov eax, dword [ebp - 4]
call fcn.00405300
mov edx, eax
mov eax, dword [ebp - 0x14]
call fcn.004706b4
test al, al
jne case.0x4d1bad.0
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax + 0x3e]
movzx edx, al
cmp edx, 6
ja case.0x4d1bad.0
jmp dword [edx*4 + 0x4d1bb4]
mov ebx, 1
mov edx, eax
sub dl, 2
je 0x4d1be3
sub dl, 3
je 0x4d1bea
jmp 0x4d1bef
mov ebx, 2
jmp 0x4d1bef
mov ebx, 7
cmp al, 5
je 0x4d1c8e
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 8]
mov eax, 0x4d207c
call fcn.0040544c
test eax, eax
je 0x4d1c24
mov eax, dword [ebp - 4]
call fcn.00405300
mov edx, eax
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call fcn.0047069c
test al, al
jne 0x4d1c2c
lea eax, [ebp - 0xc]
call fcn.00404e70
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 0x20
je 0x4d1c64
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00405300
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4d1c64
cmp dword [ebp - 0x1c], 1
je 0x4d1c61
cmp dword [ebp - 0x1c], 2
jne 0x4d1c64
mov ebx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
push eax
mov eax, 0x4d2090
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
mov ecx, 1
call fcn.004dbe40
jmp 0x4d1d21
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 8]
mov eax, 0x4d207c
call fcn.0040544c
test eax, eax
je 0x4d1cbb
mov eax, dword [ebp - 4]
call fcn.00405300
mov edx, eax
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call fcn.004706a8
test al, al
jne 0x4d1cc3
lea eax, [ebp - 0xc]
call fcn.00404e70
lea eax, [ebp - 8]
push eax
mov eax, 0x4d2090
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x50], eax
mov eax, 0x4d20a0
mov dword [ebp - 0x4c], eax
mov eax, 0x4d20b0
mov dword [ebp - 0x48], eax
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
mov ecx, 3
call fcn.004dbe40
cmp dword [ebp - 8], 0
je 0x4d1d21
mov eax, dword [ebp - 8]
test eax, eax
je 0x4d1d0a
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 1], 0
je 0x4d1d21
lea eax, [ebp - 8]
mov edx, 0x4d20b0
call fcn.0040513c
mov esi, dword [ebp - 8]
test esi, esi
je 0x4d1d2d
sub esi, 4
mov esi, dword [esi]
inc esi
mov eax, esi
push eax
mov eax, dword [ebp - 8]
call fcn.00405300
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
call fcn.00405300
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je case.0x4d1bad.0
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 1
jne case.0x4d1bad.0
push ebx
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x10]
xor eax, eax
call fcn.004ccd28
jmp case.0x4d1bad.0
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
call fcn.004dbe20
mov eax, dword [ebp - 0x58]
call fcn.00409efc
mov dword [ebp - 0x20], eax
push 4
lea eax, [ebp - 0x20]
push eax
push 4
push 0
mov eax, dword [ebp - 4]
call fcn.00405300
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je case.0x4d1bad.0
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 1
jne case.0x4d1bad.0
push ebx
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x10]
xor eax, eax
call fcn.004ccd28
jmp case.0x4d1bad.0
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
call fcn.004dbe20
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x34]
call fcn.00475a5c
test al, al
jne 0x4d1e05
mov eax, 0x4d20bc
call fcn.004b2440
push 8
lea eax, [ebp - 0x34]
push eax
push 0xb
push 0
mov eax, dword [ebp - 4]
call fcn.00405300
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je case.0x4d1bad.0
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 1
jne case.0x4d1bad.0
push ebx
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x10]
xor eax, eax
call fcn.004ccd28
jmp case.0x4d1bad.0
mov eax, dword [ebp - 0x3c]
mov ebx, dword [eax + 8]
test ebx, ebx
je 0x4d1e52
sub ebx, 4
mov ebx, dword [ebx]
push ebx
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
call fcn.00405300
push eax
push 3
push 0
mov eax, dword [ebp - 4]
call fcn.00405300
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je case.0x4d1bad.0
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 1
jne case.0x4d1bad.0
push ebx
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x10]
xor eax, eax
call fcn.004ccd28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1eb3
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 0x4d1eeb
cmp byte [ebp - 0x29], 0
jne 0x4d199c
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 8
je 0x4d1f30
mov eax, dword [ebp - 0x10]
call fcn.004d16b8
test al, al
je 0x4d1f30
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
movzx ecx, byte [ebp - 0x21]
mov dx, 0x86
call fcn.004b9120
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 0x10
je 0x4d1f6b
mov eax, dword [ebp - 0x10]
call fcn.004d16b8
test al, al
je 0x4d1f6b
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
movzx ecx, byte [ebp - 0x21]
mov dx, 0x88
call fcn.004b9120
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 2
je 0x4d1fa0
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x44]
push eax
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
movzx ecx, byte [ebp - 0x21]
mov dx, 0x89
call fcn.004b9120
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 4
je 0x4d1fd5
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x44]
push eax
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
movzx ecx, byte [ebp - 0x21]
mov dx, 0x87
call fcn.004b9120
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x1c]
call fcn.004d8e8c
inc dword [ebp - 0x28]
dec dword [ebp - 0x38]
jne 0x4d18e9
mov eax, 0x3e8
call fcn.004cc4a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d2025
lea eax, [ebp - 0x60]
mov edx, 3
call fcn.00404e94
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404e94
ret