Function at 0x10084000
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x10145188]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.Common.dll_int___cdecl_COMMON::WriteLog_int__wchar_t_const__]
push esi
push edi
push str.RemovalUDisk_GetDrivesDevInstByDiskNumber_In
push 0
mov esi, ecx
call ebx
add esp, 8
cmp esi, 2
jb 0x1008407d
cmp esi, 3
jbe 0x10084046
cmp esi, 5
jne 0x1008407d
mov edi, 0x1010b578
mov dword [ebp - 0x468], edi
jmp 0x10084056
mov dword [ebp - 0x468], 0x1010b568
mov edi, dword [ebp - 0x468]
push 0x12
push 0
push 0
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10084090
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RemovalUDisk_GetDrivesDevInstByDiskNumber_SetupDiGetClassDevs_Fail__d_
push 0
call ebx
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d0962
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], eax
mov eax, 0x1c
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x464], eax
lea eax, [ebp - 0x43c]
push eax
xor ebx, ebx
push ebx
push edi
push ebx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x1008421e
lea ecx, [ebp - 0x464]
push ecx
push ebx
push edi
push 0
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
push 0
lea edx, [ebp - 0x46c]
push edx
push 0
push 0
lea eax, [ebp - 0x464]
push eax
push esi
mov dword [ebp - 0x46c], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
mov ecx, dword [ebp - 0x46c]
test ecx, ecx
je 0x10084203
cmp ecx, 0x400
ja 0x10084203
xor eax, eax
mov dword [ebp - 0x420], eax
lea edx, [ebp - 0x420]
push edx
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x414], eax
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x408], eax
lea eax, [ebp - 0x46c]
push eax
push ecx
lea ecx, [ebp - 0x404]
push ecx
lea edx, [ebp - 0x464]
push edx
push esi
mov dword [ebp - 0x404], 6
mov dword [ebp - 0x420], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
je 0x10084203
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100841fd
push 0
lea ecx, [ebp - 0x470]
push ecx
push 0xc
lea edx, [ebp - 0x448]
push edx
push 0
push 0
push 0x2d1080
push edi
mov dword [ebp - 0x470], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100841f6
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x444]
je 0x10084248
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x468]
lea ecx, [ebp - 0x43c]
push ecx
inc ebx
push ebx
push edi
push 0
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x100840e2
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
push str.RemovalUDisk_GetDrivesDevInstByDiskNumber_Out
push 0
call dword [sym.imp.Common.dll_int___cdecl_COMMON::WriteLog_int__wchar_t_const__]
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d0962
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x40c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100d0962
mov esp, ebp
pop ebp
ret