Function at 0x406193
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4d7590]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x4a10a4
call fcn.00437e40
call fcn.0041a7e3
push eax
lea ecx, [ebp - 0x18]
call fcn.00401bb0
lea eax, [ebp - 0x14]
push str.Tray.Name
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00455b50
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004058e4
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00401111
xor eax, eax
push 0x206
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
call fcn.00436ec0
add esp, 0xc
call fcn.004198d1
mov eax, dword [eax + 8]
push 0x104
lea ecx, [ebp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push ebx
push str.SOFTWARE360SafemenuextLiveUpdate360
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
mov dword [ebp - 0x10], ebx
call edi
test eax, eax
je 0x406310
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push ebx
push str.SOFTWARE360Safemenuext
push esi
mov dword [ebp - 0x14], ebx
call edi
test eax, eax
je 0x4062c9
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push ebx
push str.SOFTWARE360Safe
push esi
call edi
test eax, eax
je 0x4062ac
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401111
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00436eab
add ebp, 0x20c
leave
ret
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push str.SOFTWARE360Safemenuext
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40627c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push str.SOFTWARE360SafemenuextLiveUpdate360
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4062f5
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401111
mov eax, ebx
jmp 0x406289
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push ebx
push str.SOFTWARE360SafemenuextLiveUpdate360
push esi
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, 0x4a9da0
push edi
push dword [ebp - 0x10]
call esi
push 0x4aa404
push dword [ebp - 0x10]
call esi
push str.Parameters
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call esi
test eax, eax
je 0x406398
push dword [ebp - 0x18]
call esi
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x18]
push 1
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp]
push eax
call esi
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp]
push eax
push 1
push ebx
push 0x4aa404
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
call esi
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push ebx
push str.Parameters
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
inc ebx
jmp 0x4062e6