Function at 0x4165c0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e09b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
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
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x4b542c
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
call fcn.004168e0
add esp, 4
test al, al
je 0x416655
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push 0
push 0x4b542c
push SysReAllocStringLen
call edi
test eax, eax
je 0x41665f
cmp eax, 5
jne 0x416655
cmp byte [ebp + 8], 0
je 0x416655
call fcn.00416500
mov eax, 0x80004005
jmp 0x41685a
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push 0
push 0x4b525c
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x416655
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x4b6134
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x416655
push 0x4b616c
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x416655
push dword [ebp - 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
push 0x4b525c
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x416655
push str.CLSID
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x416655
push dword [ebp - 0x14]
call ebx
push 0x4b542c
push SysReAllocStringLen
call esi
test eax, eax
jne 0x416655
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.EurothermIDM.Mini8
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov dword [ebp - 4], 1
mov dword [ebp - 4], 0xffffffff
call fcn.004168e0
add esp, 4
test al, al
je 0x416655
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push 0
push str.EurothermIDM.Mini8
push SysReAllocStringLen
call edi
test eax, eax
jne 0x416655
push str.CLSID
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x416655
push str.CurVer
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x416655
push dword [ebp - 0x14]
call ebx
push str.EurothermIDM.Mini8
push SysReAllocStringLen
call esi
test eax, eax
jne 0x416655
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.0b76c9f6_94e0_4aa1_af17_13d031a3168f
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov dword [ebp - 4], 2
mov dword [ebp - 4], 0xffffffff
call fcn.00416880
add esp, 4
test al, al
je 0x416655
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push 0
push str.CLSID
push SysReAllocStringLen
call edi
test eax, eax
jne 0x416655
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push 0
push str.0b76c9f6_94e0_4aa1_af17_13d031a3168f
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x416655
push str.ProgID
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x416655
push str.VersionIndependentProgID
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x416655
push str.LocalServer32
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x416655
push dword [ebp - 0x18]
call ebx
push str.0b76c9f6_94e0_4aa1_af17_13d031a3168f
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x416655
push dword [ebp - 0x14]
call ebx
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push 0
push str.AppID
push SysReAllocStringLen
call edi
test eax, eax
jne 0x416655
push str.0b76c9f6_94e0_4aa1_af17_13d031a3168f
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x416655
push dword [ebp - 0x14]
call ebx
xor eax, eax
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