Function at 0x415760
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49de56
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x636b1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.mfc120u.dll_Ordinal_296]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
push str.EurothermIDM.Mini8
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_1518]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push eax
push SysReAllocStringLen
call edi
test eax, eax
jne 0x415910
push str.Eurotherm_IDM_Mini8_Class
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_1518]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120u.dll_Ordinal_5787]
lea ecx, [ebp - 0x14]
lea eax, [eax*2 + 2]
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
push 1
push 0
push 0x4b4618
push dword [ebp - 0x20]
call esi
test eax, eax
jne 0x415910
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.CLSID
push dword [ebp - 0x20]
call edi
test eax, eax
jne 0x415910
push str.0b76c9f6_94e0_4aa1_af17_13d031a3168f
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_1518]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120u.dll_Ordinal_5787]
lea ecx, [ebp - 0x14]
lea eax, [eax*2 + 2]
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
push 1
push 0
push 0x4b4618
push dword [ebp - 0x1c]
call esi
test eax, eax
jne 0x415910
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.CurVer
push dword [ebp - 0x20]
call edi
test eax, eax
je 0x415927
cmp eax, 5
jne 0x415964
cmp byte [ebp + 8], 0
je 0x415964
call fcn.004162e0
mov esi, 0x80004005
jmp 0x415977
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x4b542c
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x4b4618
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 5
push dword [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.004163a0
add esp, 0xc
test eax, eax
jns 0x41596b
mov esi, 0x80004005
jmp 0x415977
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x20]
call esi
xor esi, esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004743e6
mov esp, ebp
pop ebp
ret