Function at 0x10e5aac
Capabilities:
Get disk information via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x111027c]
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, 0x1005594
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 0x10e5b3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10e5b25
test byte [eax + 0x1c], 1
je 0x10e5b25
cmp byte [eax + 0x19], 2
jb 0x10e5b25
push esi
push 0x10119f4
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [0x111024c]
cmp esi, edi
jg 0x10e5b31
mov dword [ebp - 0x40], esi
jmp 0x10e5eb0
and esi, 0xffff
or esi, 0x80070000
jmp 0x10e5b29
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 0x10e5ce0
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 0x10e5b86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x7a
jne 0x10e5d83
cmp dword [ebp - 0x44], 0
je 0x10e5b95
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 0x10e5dc6
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 0x10e5dd2
cmp dword [ebp - 0x4c], 0xffffffff
je 0x10e5bfd
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 0x10e5c5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x111024c]
cmp ecx, 0x111024c
je 0x10e5ccc
test byte [ecx + 0x1c], 1
je 0x10e5ccc
cmp byte [ecx + 0x19], 3
jb 0x10e5ccc
push eax
push edi
push 0x10119f4
push 0x14
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01048c37
jmp 0x10e5ccc
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 0x10e5cc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x111024c]
cmp ecx, 0x111024c
je 0x10e5ccc
test byte [ecx + 0x1c], 1
je 0x10e5ccc
cmp byte [ecx + 0x19], 3
jb 0x10e5ccc
push eax
mov eax, dword [ebp - 0x44]
add eax, 4
push eax
push 0x10119f4
push 0x15
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01048c37
jmp 0x10e5ccc
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x64], eax
je 0x10e5e0b
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 0x10e5b5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x103
je 0x10e5d4a
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10e5d32
test byte [eax + 0x1c], 1
je 0x10e5d32
cmp byte [eax + 0x19], 2
jb 0x10e5d32
push esi
push 0x10119f4
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
test esi, esi
jle 0x10e5d42
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 0x40], esi
jmp 0x10e5e81
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10e5d77
test byte [eax + 0x1c], 1
je 0x10e5d77
cmp byte [eax + 0x19], 2
jb 0x10e5d77
push dword [ebp + 8]
push 0x10119f4
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov dword [ebp - 0x40], 0x8000ffff
jmp 0x10e5e81
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10e5dae
test byte [eax + 0x1c], 1
je 0x10e5dae
cmp byte [eax + 0x19], 2
jb 0x10e5dae
push edi
push 0x10119f4
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
test edi, edi
jle 0x10e5dbe
and edi, 0xffff
or edi, 0x80070000
mov dword [ebp - 0x40], edi
jmp 0x10e5e81
mov dword [ebp - 0x40], 0x8007000e
jmp 0x10e5e81
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10e5d32
test byte [eax + 0x1c], 1
je 0x10e5d32
cmp byte [eax + 0x19], 2
jb 0x10e5d32
push esi
push 0x10119f4
push 0x13
jmp 0x10e5d27
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 0x10e5e75
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10e5d32
test byte [eax + 0x1c], 1
je 0x10e5d32
cmp byte [eax + 0x19], 2
jb 0x10e5d32
mov ecx, dword [ebp - 0x44]
push esi
add ecx, 4
push ecx
push 0x10119f4
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x10e5d32
cmp dword [ebp - 0x58], 1
je 0x10e5e81
mov eax, dword [ebp - 0x5c]
mov byte [eax], 1
cmp dword [ebp - 0x4c], 0xffffffff
pop ebx
je 0x10e5e91
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x44], 0
je 0x10e5ea0
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 [0x111024c]
xor edi, edi
cmp dword [ebp - 0x40], edi
pop edi
pop esi
jge 0x10e5ee2
cmp eax, 0x111024c
je 0x10e5ee2
test byte [eax + 0x1c], 1
je 0x10e5ee2
cmp byte [eax + 0x19], 2
jb 0x10e5ee2
push dword [ebp - 0x40]
push dword [ebp + 8]
push 0x10119f4
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01083f04
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x40]
xor ecx, ebp
call fcn.0106f798
leave
ret 8