Function at 0x4043a5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42eac6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov dword [ebp - 0x48], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
push 0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp - 0x28]
push ecx
push 0x20019
push 0
push 0x43a61c
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push 0
push str.Siemens
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [ebp - 0x14]
push edx
push 0x20019
push 0
push str.AUTSW
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp - 0x20]
push ecx
push 0x20019
push 0
lea ecx, [ebp + 0xc]
call fcn.004062a0
push eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x1c], 0x7d0
lea ecx, [ebp - 0x18]
call fcn.00406220
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1c]
push eax
push 0x7d0
lea ecx, [ebp - 0x18]
call fcn.0041e2ae
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push str.Path
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.0041e2fd
cmp dword [ebp + 0x10], 0
je 0x4044f8
mov dword [ebp - 0x34], 0x7d0
lea ecx, [ebp - 0x30]
call fcn.00406220
mov byte [ebp - 4], 3
lea eax, [ebp - 0x34]
push eax
push 0x7d0
lea ecx, [ebp - 0x30]
call fcn.0041e2ae
push eax
lea ecx, [ebp - 0x38]
push ecx
push 0
push str.TechnVersion
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x30]
call fcn.0041e2fd
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.0041dfb7
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0041de7e
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x43a650
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x18]
call fcn.0041bebf
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x50]
push edx
call fcn.00406310
mov byte [ebp - 0x3c], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.0041de7e
mov eax, dword [ebp - 0x3c]
and eax, 0xff
test eax, eax
je 0x4045ab
lea ecx, [ebp - 0x18]
call fcn.00406240
sub eax, 1
push eax
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0041bf3b
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x58], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x58]
push eax
lea ecx, [ebp - 0x18]
call fcn.0041dfb7
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.0041de7e
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041dbf3
mov edx, dword [ebp - 0x48]
or edx, 1
mov dword [ebp - 0x48], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.0041de7e
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0041de7e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret