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

Disassembly:
push 0xffffffffffffffff
push 0x420dc6
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x42b1d0]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42b1d0]
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.004124a0
add esp, 4
xor ebx, ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x78]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40b15b
lea edx, [esp + 0x80]
push edx
push ebx
push edi
mov dword [esp + 0x8c], 0x1c
mov dword [esp + 0x20], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x40b15b
mov ebp, 0xf
push ebx
push 0x423d93
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.00401c30
mov dword [esp + 0xac], ebx
push ebx
push 0x423d93
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.00401c30
lea eax, [esp + 0x80]
push eax
push edi
mov edx, 0x80000024
lea ecx, [esp + 0x20]
mov byte [esp + 0xb4], 1
call fcn.0040ab20
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0xb8], 2
call fcn.00401850
mov byte [esp + 0xac], 1
cmp dword [esp + 0x30], 0x10
jb 0x40b0a8
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0041288e
add esp, 4
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x54]
cmp esi, 0x10
jae 0x40b0b9
lea eax, [esp + 0x54]
mov ecx, dword [esp + 0xb4]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b0e0
cmp dl, bl
je 0x40b0dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b0e0
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x40b0c0
xor eax, eax
jmp 0x40b0e5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40b19e
cmp dword [esp + 0x4c], 0x10
jb 0x40b105
mov edx, dword [esp + 0x38]
push edx
call fcn.0041288e
mov esi, dword [esp + 0x6c]
add esp, 4
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov dword [esp + 0xac], 0xffffffff
cmp esi, 0x10
jb 0x40b12e
mov eax, dword [esp + 0x54]
push eax
call fcn.0041288e
add esp, 4
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x80]
inc eax
push ecx
push eax
push edi
mov dword [esp + 0x74], ebp
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 0x40b01b
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
push str.DeleteInstanceSoftWareKey__ERROR_NO_SUCH_DEVICE__leave..
call fcn.004124a0
add esp, 4
mov eax, 2
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.00412899
add esp, 0x9c
ret 0x14
mov eax, dword [esp + 0x54]
cmp esi, 0x10
jae 0x40b1ab
lea eax, [esp + 0x54]
push eax
push str.Compair:__s
call fcn.004124a0
add esp, 8
lea edx, [esp + 0x80]
push edx
push edi
mov edx, 9
lea ecx, [esp + 0x20]
call fcn.0040ab20
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xb8], 3
call fcn.00401850
mov esi, 0x10
mov byte [esp + 0xac], 1
cmp dword [esp + 0x30], esi
jb 0x40b205
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041288e
add esp, 4
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], esi
jae 0x40b213
lea eax, [esp + 0x38]
push eax
push str.Soft_Key:__s
call fcn.004124a0
mov edx, dword [esp + 0x40]
add esp, 8
cmp dword [esp + 0x4c], esi
jae 0x40b22f
lea edx, [esp + 0x38]
xor eax, eax
mov ecx, 0x423d93
call fcn.00401040
cmp eax, ebx
jne 0x40b28f
xor eax, eax
cmp dword [esp + 0x48], ebx
setne al
cmp eax, ebx
jne 0x40b28f
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
cmp dword [esp + 0x4c], esi
jb 0x40b266
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0041288e
add esp, 4
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
cmp dword [esp + 0x68], esi
jb 0x40b285
mov edx, dword [esp + 0x54]
push edx
call fcn.0041288e
add esp, 4
mov eax, 3
jmp 0x40b174
lea eax, [esp + 0x14]
push eax
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.004124a0
add esp, 8
cmp esi, ebx
je 0x40b30a
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov esi, 0x10
cmp dword [esp + 0x4c], esi
jb 0x40b2e1
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0041288e
add esp, 4
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
cmp dword [esp + 0x68], esi
jb 0x40b300
mov edx, dword [esp + 0x54]
push edx
call fcn.0041288e
add esp, 4
mov eax, 5
jmp 0x40b174
cmp dword [esp + 0x4c], 0x10
mov eax, dword [esp + 0x38]
jae 0x40b319
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov esi, eax
push esi
push str.delete_Key_ret:__d
call fcn.004124a0
mov ecx, dword [esp + 0x1c]
add esp, 8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x40b38c
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov esi, 0x10
cmp dword [esp + 0x4c], esi
jb 0x40b363
mov edx, dword [esp + 0x38]
push edx
call fcn.0041288e
add esp, 4
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
cmp dword [esp + 0x68], esi
jb 0x40b382
mov eax, dword [esp + 0x54]
push eax
call fcn.0041288e
add esp, 4
mov eax, 6
jmp 0x40b174
push str.Delete_software_key_success
call fcn.004124a0
add esp, 4
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov esi, 0x10
cmp dword [esp + 0x4c], esi
jb 0x40b3b8
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0041288e
add esp, 4
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
cmp dword [esp + 0x68], esi
jb 0x40b3d7
mov edx, dword [esp + 0x54]
push edx
call fcn.0041288e
add esp, 4
xor eax, eax
jmp 0x40b174