Function at 0x4152c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ddf0
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x636b1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
call dword [sym.imp.mfc120u.dll_Ordinal_296]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
push str.EurothermIDM.Mini8
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x21c]
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_1518]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x22c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.CLSID
push SysReAllocStringLen
call edi
test eax, eax
jne 0x4156f0
push str.0b76c9f6_94e0_4aa1_af17_13d031a3168f
lea ecx, [ebp - 0x230]
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x21c]
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_1518]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x228]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x21c]
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
push dword [ebp - 0x22c]
call edi
test eax, eax
jne 0x4156f0
push str.Eurotherm_IDM_Mini8_Class
lea ecx, [ebp - 0x230]
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x21c]
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_1518]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
lea ecx, [ebp - 0x21c]
call dword [sym.imp.mfc120u.dll_Ordinal_5787]
lea ecx, [ebp - 0x21c]
lea eax, [eax*2 + 2]
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
push 1
push 0
push 0x4b4618
push dword [ebp - 0x228]
call ebx
test eax, eax
jne 0x4156f0
push str.0b76c9f6_94e0_4aa1_af17_13d031a3168f
lea ecx, [ebp - 0x230]
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x21c]
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_1518]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
lea ecx, [ebp - 0x21c]
call dword [sym.imp.mfc120u.dll_Ordinal_5787]
lea ecx, [ebp - 0x21c]
lea eax, [eax*2 + 2]
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
push 1
push 0
push str.AppID
push dword [ebp - 0x228]
call ebx
test eax, eax
jne 0x4156f0
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.ProgID
push dword [ebp - 0x228]
call edi
test eax, eax
jne 0x4156f0
push 0x4b542c
lea ecx, [ebp - 0x230]
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x21c]
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_1518]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
lea ecx, [ebp - 0x21c]
call dword [sym.imp.mfc120u.dll_Ordinal_5787]
lea ecx, [ebp - 0x21c]
lea eax, [eax*2 + 2]
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
push 1
push 0
push 0
push dword [ebp - 0x224]
call ebx
test eax, eax
jne 0x4156f0
push dword [ebp - 0x224]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.VersionIndependentProgID
push dword [ebp - 0x228]
call edi
test eax, eax
jne 0x4156f0
push str.EurothermIDM.Mini8
lea ecx, [ebp - 0x230]
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x21c]
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_1518]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
lea ecx, [ebp - 0x21c]
call dword [sym.imp.mfc120u.dll_Ordinal_5787]
lea ecx, [ebp - 0x21c]
lea eax, [eax*2 + 2]
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
push 1
push 0
push 0
push dword [ebp - 0x224]
call ebx
test eax, eax
jne 0x4156f0
push dword [ebp - 0x224]
call esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.LocalServer32
push dword [ebp - 0x228]
call edi
test eax, eax
jne 0x4156f0
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push 0
push dword [ebp - 0x224]
call ebx
test eax, eax
jne 0x4156f0
push 0x4b624c
lea ecx, [ebp - 0x230]
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x21c]
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_1518]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
lea ecx, [ebp - 0x21c]
call dword [sym.imp.mfc120u.dll_Ordinal_5787]
lea ecx, [ebp - 0x21c]
lea eax, [eax*2 + 2]
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
push 1
push 0
push str.ThreadingModel
push dword [ebp - 0x224]
call ebx
test eax, eax
je 0x415707
cmp eax, 5
jne 0x415700
cmp byte [ebp + 8], 0
je 0x415700
call fcn.004162e0
mov esi, 0x80004005
jmp 0x415721
push dword [ebp - 0x224]
call esi
push dword [ebp - 0x228]
call esi
push dword [ebp - 0x22c]
call esi
xor esi, esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
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
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004743e6
mov esp, ebp
pop ebp
ret