Function at 0x10e5bd6
Capabilities:
Get disk information via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x4c], 0xffffffff
push esi
push edi
xor edi, edi
push 0x12
push edi
push edi
mov esi, 0x1005590
push esi
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], edi
mov byte [eax], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov dword [ebp - 0x48], eax
cmp eax, 0xffffffff
jne 0x10e5c69
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10e5c4f
test byte [eax + 0x1c], 1
je 0x10e5c4f
cmp byte [eax + 0x19], 2
jb 0x10e5c4f
push esi
push 0x10118fc
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, dword [0x111124c]
cmp esi, edi
jg 0x10e5c5b
mov dword [ebp - 0x40], esi
jmp 0x10e5fda
and esi, 0xffff
or esi, 0x80070000
jmp 0x10e5c53
push ebx
push 7
pop ecx
mov dword [ebp - 0x54], edi
xor eax, eax
push 0x1c
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
pop ebx
lea eax, [ebp - 0x20]
push eax
push 0
jmp 0x10e5e0a
xor eax, eax
push eax
lea ecx, [ebp - 0x50]
push ecx
push eax
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x48]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
jne 0x10e5cb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x7a
jne 0x10e5ead
cmp dword [ebp - 0x44], 0
je 0x10e5cbf
push dword [ebp - 0x44]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0x50]
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov edi, eax
mov dword [ebp - 0x44], edi
test edi, edi
je 0x10e5ef0
push dword [ebp - 0x50]
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
push 7
pop ecx
mov dword [edi], 6
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x44]
lea eax, [ebp - 0x3c]
push eax
push 0
push dword [ebp - 0x50]
lea eax, [ebp - 0x20]
push edi
push eax
push dword [ebp - 0x48]
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
je 0x10e5efc
cmp dword [ebp - 0x4c], 0xffffffff
je 0x10e5d27
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push eax
add edi, 4
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4c], eax
cmp eax, 0xffffffff
jne 0x10e5d85
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x111124c]
cmp ecx, 0x111124c
je 0x10e5df6
test byte [ecx + 0x1c], 1
je 0x10e5df6
cmp byte [ecx + 0x19], 3
jb 0x10e5df6
push eax
push edi
push 0x10118fc
push 0x14
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010196ed
jmp 0x10e5df6
xor eax, eax
lea edi, [ebp - 0x68]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
push eax
lea ecx, [ebp - 0x50]
push ecx
push 0xc
lea ecx, [ebp - 0x68]
push ecx
push eax
push eax
push 0x2d1080
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10e5dea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x111124c]
cmp ecx, 0x111124c
je 0x10e5df6
test byte [ecx + 0x1c], 1
je 0x10e5df6
cmp byte [ecx + 0x19], 3
jb 0x10e5df6
push eax
mov eax, dword [ebp - 0x44]
add eax, 4
push eax
push 0x10118fc
push 0x15
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010196ed
jmp 0x10e5df6
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x64], eax
je 0x10e5f35
inc dword [ebp - 0x54]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x54]
push esi
push 0
push dword [ebp - 0x48]
mov dword [ebp - 0x20], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x10e5c85
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x103
je 0x10e5e74
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10e5e5c
test byte [eax + 0x1c], 1
je 0x10e5e5c
cmp byte [eax + 0x19], 2
jb 0x10e5e5c
push esi
push 0x10118fc
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
test esi, esi
jle 0x10e5e6c
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 0x40], esi
jmp 0x10e5fab
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10e5ea1
test byte [eax + 0x1c], 1
je 0x10e5ea1
cmp byte [eax + 0x19], 2
jb 0x10e5ea1
push dword [ebp + 8]
push 0x10118fc
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov dword [ebp - 0x40], 0x8000ffff
jmp 0x10e5fab
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10e5ed8
test byte [eax + 0x1c], 1
je 0x10e5ed8
cmp byte [eax + 0x19], 2
jb 0x10e5ed8
push edi
push 0x10118fc
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
test edi, edi
jle 0x10e5ee8
and edi, 0xffff
or edi, 0x80070000
mov dword [ebp - 0x40], edi
jmp 0x10e5fab
mov dword [ebp - 0x40], 0x8007000e
jmp 0x10e5fab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10e5e5c
test byte [eax + 0x1c], 1
je 0x10e5e5c
cmp byte [eax + 0x19], 2
jb 0x10e5e5c
push esi
push 0x10118fc
push 0x13
jmp 0x10e5e51
lea eax, [ebp - 0x50]
push eax
push 4
lea eax, [ebp - 0x58]
push eax
push 0
push 0x1f
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x48]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x10e5f9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10e5e5c
test byte [eax + 0x1c], 1
je 0x10e5e5c
cmp byte [eax + 0x19], 2
jb 0x10e5e5c
mov ecx, dword [ebp - 0x44]
push esi
add ecx, 4
push ecx
push 0x10118fc
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x10e5e5c
cmp dword [ebp - 0x58], 1
je 0x10e5fab
mov eax, dword [ebp - 0x5c]
mov byte [eax], 1
cmp dword [ebp - 0x4c], 0xffffffff
pop ebx
je 0x10e5fbb
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x44], 0
je 0x10e5fca
push dword [ebp - 0x44]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0x48]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [0x111124c]
xor edi, edi
cmp dword [ebp - 0x40], edi
pop edi
pop esi
jge 0x10e600c
cmp eax, 0x111124c
je 0x10e600c
test byte [eax + 0x1c], 1
je 0x10e600c
cmp byte [eax + 0x19], 2
jb 0x10e600c
push dword [ebp - 0x40]
push dword [ebp + 8]
push 0x10118fc
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0109ba57
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x40]
xor ecx, ebp
call fcn.0106f5f8
leave
ret 8