Function at 0x406cf0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x42d2b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x18]
push eax
push 0xf003f
push ebx
push str.SOFTWARE
push SysReAllocString
mov dword [esp + 0x144], ebx
mov dword [esp + 0x2c], ebx
call edi
cmp eax, ebx
jne 0x406d5e
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x406d52
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x14], ecx
je 0x406d84
push str.RegDb_Key_:HKCUSOFTWARE:_ERROR
push 0x3c
call fcn.00404290
mov eax, dword [esp + 0x1c]
add esp, 8
cmp eax, ebx
je 0x406d7c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x406fa2
mov dword [esp + 0x10], ebx
lea edx, [esp + 0x1c]
mov byte [esp + 0x130], 1
push edx
push 0x2001f
push ebx
push str.ABB_VEI_METRONICA
push ecx
mov dword [esp + 0x30], ebx
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x406e45
lea ecx, [esp + 0x10]
call fcn.00406fc0
mov esi, eax
mov eax, dword [esp + 0x1c]
cmp esi, ebx
mov dword [esp + 0x10], eax
jne 0x406e45
lea ecx, [esp + 0x20]
lea edx, [esp + 0x18]
push ecx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x38]
push edx
push ecx
push ebx
push eax
mov dword [esp + 0x38], 0x100
call ebp
test eax, eax
jne 0x406e2a
lea edx, [esp + 0x28]
lea ecx, [esp + 0x10]
push edx
call fcn.00407030
mov esi, eax
cmp esi, ebx
jne 0x406e45
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea edx, [esp + 0x38]
push ecx
push edx
push ebx
push eax
mov dword [esp + 0x38], 0x100
call ebp
test eax, eax
je 0x406df0
lea ecx, [esp + 0x10]
call fcn.00406fc0
mov ecx, dword [esp + 0x14]
push str.ABB_VEI_METRONICA
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x130], bl
call fcn.00406fc0
cmp esi, ebx
je 0x406e68
push str.RegDb_Key_:HKCUSOFTWAREABB_VEI_METRONICA:_ERROR_n
push 0x3c
call fcn.00404290
add esp, 8
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x406e7f
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov dword [esp + 0x14], ebx
jmp 0x406e85
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push edx
push 0xf003f
push ebx
push str.SOFTWAREElster_Metronica
push SysReAllocString
call edi
cmp eax, ebx
jne 0x406ebf
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x406eb1
push ecx
call esi
mov ecx, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x14], ecx
je 0x406ed2
jmp 0x406ec3
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x406eca
push ecx
call esi
or eax, 0xffffffff
jmp 0x406fa2
mov dword [esp + 0x10], ebx
push 0x2001f
push str.accomm
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x13c], 2
call fcn.00406fe0
cmp eax, ebx
jne 0x406f6a
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea edx, [esp + 0x38]
push ecx
push edx
mov edi, 0x100
push ebx
push eax
mov dword [esp + 0x38], edi
call ebp
test eax, eax
jne 0x406f51
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
call fcn.00407030
cmp eax, ebx
jne 0x406f6a
lea edx, [esp + 0x20]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x38]
push eax
push ecx
push ebx
push edx
mov dword [esp + 0x38], edi
call ebp
test eax, eax
je 0x406f1d
lea ecx, [esp + 0x10]
call fcn.00406fc0
mov eax, dword [esp + 0x14]
push str.accomm
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x130], bl
call fcn.00406fc0
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x406f89
push eax
call esi
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x130], 0xffffffff
call fcn.00406fc0
mov eax, 1
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret