Function at 0x416f40
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418c9e
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x42300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x244], ecx
lea ecx, [ebp - 0x224]
call fcn.004016e0
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 0x104
lea eax, [ebp - 0x21c]
push eax
push 0xf003f
push 0
push 0x41ecb4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x417034
mov dword [ebp - 0x228], 0x104
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x234]
push eax
push 0
push 0x41ecf4
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
jne 0x417034
lea edx, [ebp - 0x114]
mov dword [ebp - 0x220], edx
mov eax, dword [ebp - 0x220]
push eax
call fcn.00406c10
add esp, 4
push eax
mov ecx, dword [ebp - 0x220]
push ecx
push 1
push 0
push 0x41ecfc
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x248], eax
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x220], 0x41e873
lea ecx, [ebp - 0x21c]
push ecx
push 0xf003f
push 0
push str.SOFTWAREMTA_Services__Inc.Perfect_Care_for_WindowsDirectories
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4170c1
mov dword [ebp - 0x228], 0x104
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
push ecx
push 0
push str.Output
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
jne 0x4170c1
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x224]
call fcn.004015e0
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x5c
lea ecx, [ebp - 0x224]
call fcn.00401430
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0xffffffff
je 0x41713a
mov edx, dword [ebp - 0x230]
push edx
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x224]
call fcn.004013b0
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x23c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x23c]
push edx
lea ecx, [ebp - 0x224]
call fcn.00401600
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.00401620
lea eax, [ebp - 0x21c]
push eax
push 0xf003f
push 0
push 0x41ed54
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41719a
lea ecx, [ebp - 0x224]
call fcn.004017d0
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x220]
push ecx
call fcn.00406c10
add esp, 4
push eax
mov edx, dword [ebp - 0x220]
push edx
push 1
push 0
push 0x41ed94
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00401620
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403385
mov esp, ebp
pop ebp
ret