Function at 0x40a500
Capabilities:
Delete registry value

Disassembly:
mov r11, rsp
sub rsp, 0x188
mov rax, qword [0x00454a00]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
xor esi, esi
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
lea rdx, str.SYSTEMCurrentControlSetServiceshwdatacard
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x2001f
mov qword [r11 + 0x20], rdi
mov ebx, esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov edi, eax
je 0x40a599
lea rdx, str.INFO:_Open_Key_hwdatacard_error___d._n
lea rcx, [rsp + 0x60]
mov r8d, eax
call fcn.004209a0
lea rcx, [rsp + 0x60]
call fcn.004042c0
cmp edi, 5
jne 0x40a5e1
mov eax, 0x4e2d
jmp 0x40a8e5
mov rcx, qword [rsp + 0x50]
lea rdx, str.QCDriverResident
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x50]
lea rdx, str.QCDriverPowerManagementEnabled
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x50]
lea rdx, str.QCDriverWaitWakeEnabled
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 5
je 0x40a644
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
lea rdx, str.SYSTEMCurrentControlSetServiceshuawei_updateParameters
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov edi, eax
je 0x40a64e
lea rdx, str.INFO:_Open_Key_hwusbdev_error___d._n
lea rcx, [rsp + 0x60]
mov r8d, eax
call fcn.004209a0
lea rcx, [rsp + 0x60]
call fcn.004042c0
cmp edi, 5
jne 0x40a67f
mov eax, 0x4e2d
jmp 0x40a8e5
mov rcx, qword [rsp + 0x50]
lea rdx, str.DataInOutPacketsPerXfer
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x50]
lea rdx, str.DebugLevel
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 5
je 0x40a58f
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
lea rdx, str.SYSTEMCurrentControlSetServiceshwusbdev
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov edi, eax
je 0x40a6f5
lea rdx, str.INFO:_Open_Key_hwusbdev_error___d._n
lea rcx, [rsp + 0x60]
mov r8d, eax
call fcn.004209a0
lea rcx, [rsp + 0x60]
call fcn.004042c0
cmp edi, 5
jne 0x40a74a
mov eax, 0x4e2d
jmp 0x40a8e5
mov rcx, qword [rsp + 0x50]
lea rdx, str.QCDriverResident
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x50]
lea rdx, str.QCDriverPowerManagementEnabled
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x50]
lea rdx, str.QCDriverWaitWakeEnabled
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x50]
lea rdx, str.EnableCD
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 5
je 0x40a58f
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
lea rdx, str.SYSTEMCurrentControlSetServicesew_hwusbdev
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov edi, eax
je 0x40a7c0
lea rdx, str.INFO:_Open_Key_ew_hwusbdev_error___d._n
lea rcx, [rsp + 0x60]
mov r8d, eax
call fcn.004209a0
lea rcx, [rsp + 0x60]
call fcn.004042c0
cmp edi, 5
jne 0x40a815
mov eax, 0x4e2d
jmp 0x40a8e5
mov rcx, qword [rsp + 0x50]
lea rdx, str.QCDriverResident
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x50]
lea rdx, str.QCDriverPowerManagementEnabled
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x50]
lea rdx, str.QCDriverWaitWakeEnabled
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x50]
lea rdx, str.EnableCD
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 5
je 0x40a58f
mov eax, dword [0x0044a00c]
cmp eax, 7
je 0x40a915
cmp eax, 6
je 0x40a915
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
lea rdx, str.SYSTEMCurrentControlSetServicesewusbnet
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov edi, eax
je 0x40a8a0
mov r8d, eax
lea rdx, str.INFO:_Open_Key_ewusbnet_error___d._n
lea rcx, [rsp + 0x60]
call fcn.004209a0
lea rcx, [rsp + 0x60]
call fcn.004042c0
cmp edi, 5
jne 0x40a8d1
mov eax, 0x4e2d
jmp 0x40a8e5
mov rcx, qword [rsp + 0x50]
lea rdx, str.NetworkCardNotRemovalable
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x50]
lea rdx, str.QCDriverQOSEnabled
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
call fcn.00404eb0
mov eax, 0x4e2d
cmp ebx, 5
cmove ebx, eax
mov eax, ebx
mov rdi, qword [rsp + 0x1a8]
mov rsi, qword [rsp + 0x1a0]
mov rbx, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.00420600
add rsp, 0x188
ret
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
lea rdx, str.SYSTEMCurrentControlSetServicesewusbmbb
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov edi, eax
je 0x40a8b2
mov r8d, eax
lea rdx, str.INFO:_Open_Key_ewusbwwan_error___d._n
jmp 0x40a880