Function at 0x40afe0
Capabilities:
Delete registry key
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x421c66
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x42c070]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42c070]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0xc4]
push str.DeleteInstanceSoftWareKey_enter..
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
call fcn.00412950
xor ebx, ebx
add esp, 4
cmp dword [esp + 0xb4], ebx
jne 0x40b06e
push str.DeleteInstanceSoftWareKey_parameter_is_invalid
call fcn.004129d0
lea eax, [ebx + 3]
jmp 0x40b0bc
push ebx
push ebx
push ebx
lea ecx, [esp + 0x78]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40b0a6
lea edx, [esp + 0x80]
push edx
push ebx
push ebp
mov dword [esp + 0x8c], 0x1c
mov dword [esp + 0x20], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x40b0f2
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
push str.DeleteInstanceSoftWareKey__ERROR_NO_SUCH_DEVICE__leave..
call fcn.00412950
mov eax, 2
add esp, 4
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00413017
add esp, 0x9c
ret 0x14
xor ebx, ebx
push ebx
mov esi, 0xf
push 0x424da5
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.00407f80
mov dword [esp + 0xac], ebx
push ebx
push 0x424da5
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.00407f80
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x80000024
mov ebx, ebp
mov byte [esp + 0xb4], 1
call fcn.0040ab90
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0xb8], 2
call fcn.004077d0
mov byte [esp + 0xac], 1
cmp dword [esp + 0x30], 0x10
jb 0x40b188
mov edx, dword [esp + 0x1c]
push edx
call fcn.0041300c
add esp, 4
mov edi, dword [esp + 0x68]
mov eax, dword [esp + 0x54]
cmp edi, 0x10
jae 0x40b199
lea eax, [esp + 0x54]
mov ecx, dword [esp + 0xb4]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b1c0
cmp dl, bl
je 0x40b1bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b1c0
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x40b1a0
xor eax, eax
jmp 0x40b1c5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40b23c
cmp dword [esp + 0x4c], 0x10
jb 0x40b1e1
mov eax, dword [esp + 0x38]
push eax
call fcn.0041300c
mov edi, dword [esp + 0x6c]
add esp, 4
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov dword [esp + 0xac], 0xffffffff
cmp edi, 0x10
jb 0x40b20a
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0041300c
add esp, 4
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x80]
inc eax
push edx
push eax
push ebp
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
mov dword [esp + 0x20], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x40b0f0
jmp 0x40b0a6
mov eax, dword [esp + 0x54]
cmp edi, 0x10
jae 0x40b249
lea eax, [esp + 0x54]
push eax
push str.Compair:__s
call fcn.00412950
add esp, 8
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 9
mov ebx, ebp
call fcn.0040ab90
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xb8], 3
call fcn.004077d0
mov edi, 0x10
mov byte [esp + 0xac], 1
cmp dword [esp + 0x30], edi
jb 0x40b2a7
mov edx, dword [esp + 0x1c]
push edx
call fcn.0041300c
add esp, 4
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], edi
jae 0x40b2b5
lea eax, [esp + 0x38]
push eax
push str.Soft_Key:__s
call fcn.00412950
add esp, 8
lea edi, [esp + 0x34]
mov ecx, 0x424da5
call fcn.0040c9d0
test al, al
je 0x40b31d
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov edi, 0x10
cmp dword [esp + 0x4c], edi
jb 0x40b2f4
mov eax, dword [esp + 0x38]
push eax
call fcn.0041300c
add esp, 4
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
cmp dword [esp + 0x68], edi
jb 0x40b313
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0041300c
add esp, 4
mov eax, 3
jmp 0x40b0bf
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetControlClass_
push 0x80000002
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
push str.Open_Key_ret:__d
call fcn.00412950
add esp, 8
cmp esi, ebx
je 0x40b39c
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov esi, 0x10
cmp dword [esp + 0x4c], esi
jb 0x40b36f
mov eax, dword [esp + 0x38]
push eax
call fcn.0041300c
add esp, 4
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
cmp dword [esp + 0x68], esi
jb 0x40b392
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0041300c
add esp, 4
mov eax, 5
jmp 0x40b0bf
cmp dword [esp + 0x4c], 0x10
mov eax, dword [esp + 0x38]
jae 0x40b3ab
lea eax, [esp + 0x38]
mov edx, dword [esp + 0x14]
push eax
push edx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov esi, eax
push esi
push str.delete_Key_ret:__d
call fcn.00412950
mov eax, dword [esp + 0x1c]
add esp, 8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x40b3f9
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
lea ecx, [esp + 0x34]
call fcn.00406fe0
lea ecx, [esp + 0x50]
call fcn.00406fe0
mov eax, 6
jmp 0x40b0bf
push str.Delete_software_key_success
call fcn.00412950
add esp, 4
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
lea ecx, [esp + 0x34]
call fcn.00406fe0
lea ecx, [esp + 0x50]
call fcn.00406fe0
xor eax, eax
jmp 0x40b0bf