Function at 0x42af82
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3890]
mov eax, 0x3890
call fcn.00439e90
push 0xffffffffffffffff
push 0x46645a
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x498b28]
xor eax, ebp
mov dword [ebp + 0x388c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp]
call fcn.0040d9b1
mov edi, reloc.WS2_32.dll_bind
lea ecx, [ebp]
mov dword [ebp + 0x414], edi
call fcn.0040c026
xor esi, esi
cmp dword [ebp + 0x27f8], esi
je 0x42affe
push dword [ebp + 0x27f8]
push str.DisableSelectiveSuspend:_m_dwSelectiveSuspendEnabled__d_n
call fcn.0041b266
pop ecx
pop ecx
jmp 0x42b2e1
lea eax, [ebp + 0x27fc]
push eax
lea eax, [ebp + 0x3274]
push eax
mov word [ebp + 0x3274], si
call fcn.0043ad55
lea eax, [ebp + 0x3274]
push eax
push str.DisableSelectiveSuspend:_szPidVidList__s_n
call fcn.0041b266
lea eax, [ebp + 0x3274]
push eax
call fcn.0043ada3
add esp, 0x14
test eax, eax
je 0x42b2e1
mov ebx, dword [0x46700c]
lea eax, [ebp - 0x18]
push eax
push 0x2000e
push esi
push str.SYSTEMCurrentControlSetEnumUSB
push edi
call ebx
test eax, eax
je 0x42b06e
push str.DisableSelectiveSuspend:_Reg_open_failed_SYSTEMCurrentControlSetEnumUSB__n
call fcn.0041b266
pop ecx
xor eax, eax
jmp 0x42b2e4
mov edi, dword [0x467044]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x3684]
push eax
mov dword [ebp - 0x1c], esi
push esi
jmp 0x42b2b2
lea eax, [ebp + 0x3684]
push eax
push str.DisableSelectiveSuspend:_found_VID_PID__s__n
call fcn.0041b266
lea eax, [ebp + 0x3684]
push eax
lea eax, [ebp + 0x3274]
push eax
call fcn.0043bc55
add esp, 0x10
test eax, eax
je 0x42b29d
push str.DisableSelectiveSuspend:_matches_PID_VID_in_list_n
call fcn.0041b266
pop ecx
lea eax, [ebp - 0x14]
push eax
push 0x2000e
push esi
lea eax, [ebp + 0x3684]
push eax
push dword [ebp - 0x18]
call ebx
test eax, eax
jne 0x42b28a
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x347c]
push eax
mov dword [ebp - 0x2c], esi
push esi
jmp 0x42b259
lea eax, [ebp - 0x30]
push eax
push 0x2000e
push esi
lea eax, [ebp + 0x347c]
push eax
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x42b231
lea eax, [ebp - 0x20]
push eax
push 0x2000f
push esi
push str.Device_Parameters
push dword [ebp - 0x30]
call ebx
test eax, eax
jne 0x42b215
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push esi
mov ebx, str.SelectiveSuspendEnabled
push ebx
push dword [ebp - 0x20]
mov dword [ebp - 0x34], 4
mov dword [ebp - 0x10], esi
call dword [0x467040]
test eax, eax
jne 0x42b175
push dword [ebp - 0x10]
push str.DisableSelectiveSuspend:_RegQueryValueEx_SelectiveSuspendEnabled_value___d_n
call fcn.0041b266
cmp dword [ebp - 0x10], esi
pop ecx
pop ecx
je 0x42b220
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push ebx
push dword [ebp - 0x20]
mov dword [ebp - 0x10], esi
call dword [0x46703c]
push str.DisableSelectiveSuspend:_SelectiveSuspendEnabled__0_set__n
call fcn.0041b266
pop ecx
push dword [ebp - 0x20]
call dword [0x467004]
push 0x46ff1c
call dword [0x46712c]
cmp eax, esi
mov dword [ebp - 0x38], eax
je 0x42b220
push str.BT2K_RefreshDevice
push eax
call dword [0x467118]
mov ebx, eax
cmp ebx, esi
je 0x42b20a
lea eax, [ebp + 0x3684]
push eax
lea ecx, [ebp - 0xbc]
call fcn.0042af62
push dword [eax]
mov dword [ebp - 4], esi
call ebx
or dword [ebp - 4], 0xffffffff
mov ebx, eax
lea eax, [ebp - 0xb8]
cmp dword [ebp - 0xbc], eax
pop ecx
je 0x42b1fd
push dword [ebp - 0xbc]
call fcn.00439c78
pop ecx
push ebx
push str.DisableSelectiveSuspend:_BT2K_RefreshDevice__d_n
call fcn.0041b266
pop ecx
pop ecx
push dword [ebp - 0x38]
call dword [0x467128]
jmp 0x42b220
push str.DisableSelectiveSuspend:_RegOpenKeyEx_false_Device_Parameters__n
call fcn.0041b266
pop ecx
push dword [ebp - 0x30]
call dword [0x467004]
mov ebx, dword [0x46700c]
jmp 0x42b244
lea eax, [ebp + 0x347c]
push eax
push str.DisableSelectiveSuspend:_RegOpenKeyEx_false__s_n
call fcn.0041b266
pop ecx
pop ecx
inc dword [ebp - 0x2c]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x347c]
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
mov word [ebp + 0x347c], si
mov dword [ebp - 0x24], 0x104
call edi
test eax, eax
je 0x42b0fc
push str.DisableSelectiveSuspend:_RegEnumKeyEx_szKeyNameDevInstance_false_n
call fcn.0041b266
pop ecx
push dword [ebp - 0x14]
call dword [0x467004]
jmp 0x42b29d
lea eax, [ebp + 0x3684]
push eax
push str.DisableSelectiveSuspend:_RegOpenKeyEx_false__s_n
call fcn.0041b266
pop ecx
pop ecx
inc dword [ebp - 0x1c]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x3684]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
mov word [ebp + 0x3684], si
mov dword [ebp - 0x28], 0x104
call edi
test eax, eax
je 0x42b08c
push str.DisableSelectiveSuspend:_RegEnumKeyEx_szKeyNamePidVid_false_n
call fcn.0041b266
pop ecx
push dword [ebp - 0x18]
call dword [0x467004]
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x388c]
xor ecx, ebp
call fcn.004369c2
add ebp, 0x3890
leave
ret