Function at 0x43477e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2e0]
sub esp, 0x360
mov eax, dword [0x498b28]
xor eax, ebp
mov dword [ebp + 0x2dc], eax
push ebx
push edi
push 6
mov dword [ebp - 0x64], ecx
pop ecx
push 2
xor ebx, ebx
push ebx
push ebx
xor eax, eax
mov dword [ebp - 0x4c], 0x1c
lea edi, [ebp - 0x48]
push 0x47039c
rep stosd dword es:[edi], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
cmp eax, ebx
mov dword [ebp - 0x58], eax
jne 0x4347e2
call dword [0x467358]
push eax
push str.MakeAllBtDevsNonRemovable:_SetupDiGetClassDevs_failed._err_d_n
push 1
call fcn.004295b9
add esp, 0xc
jmp 0x434bd6
mov ecx, dword [ebp - 0x64]
push esi
push ebx
mov dword [ebp - 0x50], ebx
call fcn.0043142b
test eax, eax
je 0x43485a
xor esi, esi
mov edi, dword [ebp - 0x64]
mov eax, dword [edi + 4]
push ebx
push dword [eax + esi + 0x14]
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
cmp eax, ebx
jne 0x43482c
push ebx
push dword [ebp - 0x54]
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
cmp eax, ebx
jne 0x43482c
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0x54]
mov dword [eax + esi + 0x14], ecx
jmp 0x434843
push eax
push str.MakeAllBtDevsNonRemovable:_CM_Get_Parent_failed._err_d_n
push 1
call fcn.004295b9
mov eax, dword [edi + 4]
add esp, 0xc
mov dword [eax + esi + 0x14], ebx
inc dword [ebp - 0x50]
push dword [ebp - 0x50]
mov ecx, edi
add esi, 0x1ac
call fcn.0043142b
test eax, eax
jne 0x4347f5
mov dword [ebp - 0x5c], ebx
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x5c]
push dword [ebp - 0x58]
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x434bb6
lea eax, [ebp - 0x60]
push eax
mov edi, 0x104
push edi
lea eax, [ebp + 0x1d8]
push eax
push ebx
push 0x23
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x58]
mov dword [ebp - 0x60], edi
mov byte [ebp + 0x1d8], bl
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
jne 0x4348be
call dword [0x467358]
push eax
push str.MakeAllBtDevsNonRemovable:_SetupDiGetDeviceRegistryProperty_SPDRP_LOCATION_PATHS__failed._err_d_n
push 1
call fcn.004295b9
add esp, 0xc
jmp 0x434ba4
push 0x20019
push 1
push ebx
push 1
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x58]
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4348f4
lea eax, [ebp + 0x1d8]
push eax
call dword [0x467358]
push eax
push str.MakeAllBtDevsNonRemovable:_SetupDiOpenDevRegKey_failed._err_d_LocationPaths_hs_n
jmp 0x434b9a
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push str.RemovableOverride
push esi
mov dword [ebp - 0x60], 4
call dword [0x467050]
push esi
mov dword [ebp - 0x50], eax
call dword [0x467004]
cmp dword [ebp - 0x50], ebx
je 0x434936
lea eax, [ebp + 0x1d8]
push eax
push dword [ebp - 0x50]
push str.MakeAllBtDevsNonRemovable:_no_RemovableOverride._RegQueryValueEx_returned__d._LocationPaths_hs_n
push 4
jmp 0x434b9c
cmp dword [ebp - 0x68], ebx
jne 0x43494e
lea eax, [ebp + 0x1d8]
push eax
push str.MakeAllBtDevsNonRemovable:_no_RemovableOverride._LocationPaths_hs_n
push 4
jmp 0x4348b1
push ebx
push dword [ebp - 0x38]
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
cmp eax, ebx
je 0x434972
lea ecx, [ebp + 0x1d8]
push ecx
push eax
push str.MakeAllBtDevsNonRemovable:_CM_Get_Parent_failed._err_d_LocationPaths_hs_n
jmp 0x434b9a
mov esi, dword [ebp - 0x64]
push ebx
mov ecx, esi
mov dword [ebp - 0x50], ebx
call fcn.0043142b
test eax, eax
je 0x4349a8
mov edx, dword [esi + 4]
add edx, 0x14
mov eax, dword [ebp - 0x54]
cmp eax, dword [edx]
je 0x4349a8
inc dword [ebp - 0x50]
push dword [ebp - 0x50]
mov ecx, esi
add edx, 0x1ac
call fcn.0043142b
test eax, eax
jne 0x43498a
push dword [ebp - 0x50]
mov ecx, esi
call fcn.0043142b
cmp eax, ebx
mov dword [ebp - 0x50], eax
je 0x4349e2
lea eax, [ebp + 0x1d8]
push 0x23
push eax
call fcn.0043df60
cmp eax, ebx
pop ecx
pop ecx
jne 0x4349de
lea eax, [ebp + 0x1d8]
push eax
push str.MakeAllBtDevsNonRemovable:_wrong_LocationPaths__hs_n
jmp 0x4348af
mov byte [eax], bl
jmp 0x4349e8
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x54], eax
push ebx
push edi
lea eax, [ebp + 0xd4]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDA]
cmp eax, ebx
je 0x434a10
lea ecx, [ebp + 0x1d8]
push ecx
push eax
push str.MakeAllBtDevsNonRemovable:_CM_Get_Device_ID._err_d_LocationPaths_hs_n
jmp 0x434b9a
lea eax, [ebp + 0xd4]
push eax
call fcn.0043d40b
push 8
lea eax, [ebp + 0xd4]
push str.USBVID_
push eax
call fcn.0043800c
add esp, 0x10
test eax, eax
lea eax, [ebp + 0xd4]
je 0x434a47
push eax
push str.MakeAllBtDevsNonRemovable:_wrong_instance_id__hs_n
jmp 0x4348af
push 0x5c
push eax
mov byte [ebp + 0xd7], 0x23
call fcn.0043e610
cmp eax, ebx
pop ecx
pop ecx
jne 0x434a6d
lea eax, [ebp + 0xd4]
push eax
push str.MakeAllBtDevsNonRemovable:_wrong_InstanceId__hs_n
jmp 0x4348af
mov byte [eax], bl
lea eax, [ebp + 0x1d8]
push eax
lea eax, [ebp + 0xd4]
push eax
push str.SYSTEMCurrentControlSetControlDeviceOverrides_hsLocationPaths_hs
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.0043ce7f
lea eax, [ebp - 0x6c]
push eax
push ebx
push str.Removable
lea eax, [ebp - 0x30]
push eax
mov esi, reloc.WS2_32.dll_bind
push esi
call fcn.00434654
add esp, 0x28
test eax, eax
je 0x434ba4
cmp dword [ebp - 0x6c], ebx
je 0x434ac6
lea eax, [ebp + 0xd4]
push eax
push str.MakeAllBtDevsNonRemovable:_not_changed._InstanceId_hs_n
jmp 0x434947
cmp dword [ebp - 0x50], ebx
je 0x434afd
lea eax, [ebp + 0xd4]
push eax
push str.SYSTEMCurrentControlSetControlDeviceOverrides_hsChildLocationPaths
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.0043ce7f
push ebx
push ebx
push str.Removable
lea eax, [ebp - 0x30]
push eax
push esi
call fcn.00434654
add esp, 0x24
test eax, eax
je 0x434ba4
cmp dword [ebp + 0x2e8], ebx
lea eax, [ebp + 0xd4]
push eax
jne 0x434b16
push str.MakeAllBtDevsNonRemovable:_do_not_notify_system._InstanceId_hs_n
jmp 0x434947
push str.MakeAllBtDevsNonRemovable:_notify_system._InstanceId_hs_n
push 4
call fcn.004295b9
xor eax, eax
lea edi, [ebp - 0x7c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 0x12
pop edi
push 0x14
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x58]
xor esi, esi
inc esi
mov dword [ebp - 0x80], 8
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], 3
mov dword [ebp - 0x74], esi
call dword [sym.imp.SETUPAPI.dll_SetupDiSetClassInstallParamsA]
test eax, eax
jne 0x434b75
lea eax, [ebp + 0x1d8]
push eax
call dword [0x467358]
push eax
push str.MakeAllBtDevsNonRemovable:_SetupDiSetClassInstallParams_failed._err_d_LocationPaths_hs_n
push esi
jmp 0x434b9c
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x58]
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
test eax, eax
jne 0x434ba4
lea eax, [ebp + 0x1d8]
push eax
call dword [0x467358]
push eax
push str.MakeAllBtDevsNonRemovable:_SetupDiCallClassInstaller_failed._err_d_LocationPaths_hs_n
push 1
call fcn.004295b9
add esp, 0x10
inc dword [ebp - 0x5c]
cmp dword [ebp - 0x5c], 0x3e8
jb 0x43485d
jmp 0x434bcc
call dword [0x467358]
push eax
push str.MakeAllBtDevsNonRemovable:_no_more_devices._SetupDiEnumDeviceInfo_returned__d__n
push 4
call fcn.004295b9
add esp, 0xc
push dword [ebp - 0x58]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop esi
mov ecx, dword [ebp + 0x2dc]
pop edi
xor ecx, ebp
pop ebx
call fcn.004369c2
add ebp, 0x2e0
leave
ret 4