Function at 0x44ea90
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x4bb998
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4eb86c]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4eb86c]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x3c], ecx
push str.DevUtil::RemoveDevice
lea ecx, [esp + 0x3c]
mov dword [esp + 0x30], eax
call fcn.00405a40
xor ebx, ebx
push str.SETUPAPI.DLL
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x1a], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x30], ebp
je 0x44ed49
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetupDiDestroyDeviceInfoList
push ebp
call esi
push str.SetupDiEnumDeviceInfo
push ebp
mov dword [esp + 0x30], eax
call esi
push str.SetupDiGetClassDevsW
push ebp
mov dword [esp + 0x28], eax
call esi
push str.SetupDiGetDeviceRegistryPropertyW
push ebp
mov edi, eax
call esi
push str.SetupDiRemoveDevice
push ebp
mov dword [esp + 0x24], eax
call esi
cmp dword [esp + 0x28], ebx
mov dword [esp + 0x34], eax
je 0x44ed40
cmp dword [esp + 0x20], ebx
je 0x44ed40
cmp edi, ebx
je 0x44ed40
cmp dword [esp + 0x1c], ebx
je 0x44ed40
cmp eax, ebx
je 0x44ed40
push 4
push ebx
push ebx
push ebx
call edi
mov ebp, eax
cmp ebp, 0xffffffff
je 0x44ed25
lea edx, [esp + 0x40]
push edx
push ebx
push ebp
mov dword [esp + 0x4c], 0x1c
mov dword [esp + 0x30], ebx
call dword [esp + 0x2c]
test eax, eax
je 0x44ed13
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push ebx
push 1
lea ecx, [esp + 0x54]
push ecx
push ebp
mov byte [esp + 0x33], bl
mov dword [esp + 0x34], ebx
call dword [esp + 0x38]
cmp eax, ebx
jne 0x44ecf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xd
je 0x44ecf5
mov eax, dword [esp + 0x18]
cmp eax, ebx
jbe 0x44ecf5
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00458af3
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x44ecf5
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x18]
push eax
push ecx
push edi
push ebx
push 1
lea edx, [esp + 0x54]
push edx
push ebp
call dword [esp + 0x38]
cmp eax, ebx
je 0x44ec99
mov eax, dword [esp + 0x18]
push eax
push edi
push str._DUMP_HWIDs:
call fcn.0044f300
mov ecx, eax
call fcn.0044fcc0
cmp word [edi], bx
mov esi, edi
je 0x44ec99
nop
mov ecx, dword [esp + 0x18]
lea edx, [edi + ecx*2]
cmp esi, edx
jae 0x44ec99
mov eax, dword [esp + 0x2c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x44ec7c
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x44ec60
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], bx
lea esi, [esi + eax*2 + 2]
jne 0x44ec40
jmp 0x44ec99
mov ecx, dword [esp + 0x2c]
push ecx
push str._INFO__The_device___s__is_found__n
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 0xc
mov byte [esp + 0x17], 1
push edi
call fcn.00458af8
add esp, 4
cmp byte [esp + 0x17], bl
je 0x44ecf5
push str._INFO_Trying_to_remove_device_n
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 8
lea edx, [esp + 0x40]
push edx
push ebp
call dword [esp + 0x3c]
cmp eax, ebx
je 0x44ece2
push str._INFO_The_device_is_removed_successfully_n
call fcn.0044f300
push eax
call fcn.0044fb20
mov eax, dword [esp + 0x44]
mov byte [eax], 1
jmp 0x44ecf2
push str._ERROR_Removing_device_is_failed_n
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 8
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x40]
add eax, 1
push ecx
push eax
push ebp
mov dword [esp + 0x30], eax
call dword [esp + 0x2c]
test eax, eax
jne 0x44eba3
push ebp
call dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x44ed60
push str._ERROR_SetupDiGetClassDevs_Failed_n
call fcn.0044f300
push eax
call fcn.0044fb20
mov ebp, dword [esp + 0x38]
add esp, 8
mov byte [esp + 0x16], bl
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x44ed60
push str._ERROR_Failed_to_load_setupapi.dll_n
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 8
mov byte [esp + 0x16], bl
lea ecx, [esp + 0x38]
mov dword [esp + 0x68], 0xffffffff
call fcn.00403f90
mov al, byte [esp + 0x16]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.004888ae
add esp, 0x58
ret