Function at 0x4159b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49dff1
mov eax, dword fs:[0]
push eax
sub esp, 0x24
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 - 0x18]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
call dword [sym.imp.mfc120u.dll_Ordinal_296]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push 0x4b542c
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov ecx, eax
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push eax
push SysReAllocStringLen
call edi
mov esi, eax
test esi, esi
setne bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
test bl, bl
je 0x415a5d
cmp esi, 5
jmp 0x415b35
push str.Eurotherm_IDM_Mini8_Class
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_1518]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc120u.dll_Ordinal_5787]
lea ecx, [ebp - 0x18]
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 - 0x28]
call esi
test eax, eax
jne 0x415b32
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.CLSID
push dword [ebp - 0x28]
call edi
test eax, eax
jne 0x415b32
push str.0b76c9f6_94e0_4aa1_af17_13d031a3168f
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_1518]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc120u.dll_Ordinal_5787]
lea ecx, [ebp - 0x18]
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 - 0x20]
call esi
test eax, eax
je 0x415b75
cmp eax, 5
jne 0x415b42
cmp byte [ebp + 8], 0
je 0x415b42
call fcn.004162e0
mov esi, 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
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
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x4b525c
push dword [ebp - 0x28]
call edi
test eax, eax
jne 0x415b42
push eax
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.SimulationSupported
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 4
push dword [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00416450
add esp, 0x10
test eax, eax
js 0x415b42
lea eax, [ebp - 0x18]
push eax
call fcn.0040c5b0
add esp, 4
test al, al
je 0x415b42
push str.Mini8.uib
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x18]
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_1684]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_280]
mov byte [ebp - 4], 6
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.Image
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 7
push dword [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.004163a0
add esp, 0xc
test eax, eax
js 0x415b42
lea eax, [ebp - 0x18]
push eax
call fcn.0040c5b0
add esp, 4
test al, al
je 0x415b42
push str.Mini8s.uib
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x18]
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_1684]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x2c], esp
mov ecx, esp
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_280]
mov byte [ebp - 4], 9
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.Image16
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 0xa
push dword [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.004163a0
add esp, 0xc
test eax, eax
js 0x415b42
push 0
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.StandardDevice
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 0xb
push dword [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00416450
add esp, 0x10
test eax, eax
js 0x415b42
push 0
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.CommsProtocol
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 0xc
push dword [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00416450
add esp, 0x10
test eax, eax
js 0x415b42
push 0
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.CommsTypeValueIsHexNumber
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 0xd
push dword [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00416450
add esp, 0x10
test eax, eax
js 0x415b42
push 0
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.CommsVersionValueIsHexNumber
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 0xe
push dword [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00416450
add esp, 0x10
test eax, eax
js 0x415b42
push 0
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.StrictVersionMatching
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 0xf
push dword [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00416450
add esp, 0x10
test eax, eax
js 0x415b42
lea eax, [ebp - 0x18]
push eax
call fcn.0040c5b0
add esp, 4
test al, al
je 0x415b42
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x4b4618
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 0
call fcn.0040c670
add esp, 8
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x18]
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_1684]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x2c], esp
mov ecx, esp
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_280]
mov byte [ebp - 4], 0x12
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.ParameterHelpFileName
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 0x13
push dword [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.004163a0
add esp, 0xc
test eax, eax
js 0x415b42
lea eax, [ebp - 0x18]
push eax
call fcn.0040c5b0
add esp, 4
test al, al
je 0x415b42
lea eax, [ebp - 0x14]
push eax
call fcn.0040c910
add esp, 4
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x18]
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_1684]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x2c], esp
mov ecx, esp
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_280]
mov byte [ebp - 4], 0x15
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.EtherCATDefaultESIXMLFileName
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 0x16
push dword [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.004163a0
add esp, 0xc
test eax, eax
js 0x415b42
lea eax, [ebp - 0x18]
push eax
call fcn.0040c5b0
add esp, 4
test al, al
je 0x415b42
lea eax, [ebp - 0x14]
push eax
call fcn.0040c910
add esp, 4
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x18]
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_1684]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x2c], esp
mov ecx, esp
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_280]
mov byte [ebp - 4], 0x18
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.EtherCATDefaultESIXMLFileName
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 0x19
push dword [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.004163a0
add esp, 0xc
test eax, eax
js 0x415b42
push 0
push 0x7a
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.DeviceTypeAddress
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 0x1a
push dword [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00416450
add esp, 0x10
test eax, eax
js 0x415b42
push 0
push 0x6b
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.DeviceVersionAddress
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 0x1b
push dword [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00416450
add esp, 0x10
test eax, eax
js 0x415b42
push 0
push 0xbf
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.DeviceSerialNumberAddress
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 0x1c
push dword [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00416450
add esp, 0x10
test eax, eax
js 0x415b42
push 0
push 0x80
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.CommsPasswordSetAddress
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 0x1d
push dword [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00416450
add esp, 0x10
test eax, eax
js 0x415b42
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x4b6134
push dword [ebp - 0x20]
call edi
test eax, eax
jne 0x415b42
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.V5.27
call dword [sym.imp.mfc120u.dll_Ordinal_290]
mov byte [ebp - 4], 0x1e
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x4b4618
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 0x1f
push dword [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.004163a0
add esp, 0xc
test eax, eax
js 0x415b42
push 0
push 0x527
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x4b6134
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 0x20
push dword [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.00416450
add esp, 0x10
test eax, eax
js 0x415b42
cmp dword [0x6350e8], 0
mov esi, 0x6350e8
mov ebx, dword [sym.imp.mfc120u.dll_Ordinal_4772]
mov edi, 1
je 0x416121
mov edi, edi
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120u.dll_Ordinal_296]
mov byte [ebp - 4], 0x21
lea eax, [ebp - 0x14]
push edi
push str.VersionSupported_d
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x14]
inc edi
push 0
push dword [esi]
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_280]
mov byte [ebp - 4], 0x22
push dword [ebp - 0x24]
mov byte [ebp - 4], 0x21
call fcn.00416450
add esp, 0x10
test eax, eax
js 0x416275
add esi, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
cmp dword [esi], 0
jne 0x4160c0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x4b616c
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x415b42
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x4b57e8
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 0x23
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x4b4618
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 0x24
push dword [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.004163a0
add esp, 0xc
test eax, eax
js 0x415b42
cmp dword [0x6350dc], 0
mov edi, 1
je 0x416259
mov esi, 0x6350dc
lea ecx, [ecx]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120u.dll_Ordinal_296]
mov byte [ebp - 4], 0x25
lea eax, [ebp - 0x14]
push edi
push str.ID_d
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x14]
push 0
push dword [esi]
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_280]
mov byte [ebp - 4], 0x26
push dword [ebp - 0x24]
mov byte [ebp - 4], 0x25
call fcn.00416450
add esp, 0x10
test eax, eax
js 0x416275
push edi
lea eax, [ebp - 0x14]
push str.ID_dSTR
push eax
call ebx
add esp, 8
inc edi
mov ecx, esp
mov dword [ebp - 0x2c], esp
push dword [esi - 4]
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 0x27
lea eax, [ebp - 0x14]
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_280]
mov byte [ebp - 4], 0x28
push dword [ebp - 0x24]
mov byte [ebp - 4], 0x25
call fcn.004163a0
add esp, 0xc
test eax, eax
js 0x416275
add esi, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
cmp dword [esi], 0
jne 0x4161b0
push dword [ebp - 0x24]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
push dword [ebp - 0x20]
call ebx
push dword [ebp - 0x28]
call ebx
xor esi, esi
jmp 0x415b47
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
jmp 0x415b42