Function at 0x10087e20
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10245c88
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x102e1e14]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb8], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push ecx
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xac], 0
call edi
mov esi, eax
mov dword [ebp - 0x9c], esi
cmp esi, 0xffffffff
jne 0x10087ebf
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebp - 0xa8]
call edi
mov esi, eax
mov dword [ebp - 0x9c], eax
cmp esi, 0xffffffff
je 0x100881f9
push 0
lea eax, [ebp - 0xa4]
push eax
push 0xc
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100881f2
cmp dword [ebp - 0x30], 0
jl 0x100881f2
mov eax, dword [0x10266848]
mov edi, 0x41
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], eax
mov eax, dword [0x1026684c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xa0], edi
lea eax, [ebp - 0x18]
mov word [ebp - 0x18], di
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x10087fd2
mov eax, dword [0x10266838]
movq xmm0, qword [str.._:]
push 0
push 0x80
push 3
mov dword [ebp - 0x20], eax
mov ax, word [0x1026683c]
push 0
push 3
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x28]
push 0xc0000000
push eax
movq qword [ebp - 0x28], xmm0
mov word [ebp - 0x20], di
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10087f8e
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10087fcc
push 0
lea eax, [ebp - 0xa4]
or edi, 0xffffffff
push eax
push 0xc
lea eax, [ebp - 0x40]
push eax
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
push esi
cmovne edi, dword [ebp - 0x3c]
cmp edi, dword [ebp - 0x30]
je 0x10087ff1
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov edi, dword [ebp - 0xa0]
jmp 0x10087fd2
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
mov dword [ebp - 0xa0], edi
cmp di, 0x5a
jbe 0x10087f11
mov edi, dword [ebp - 0x9c]
push edi
call esi
jmp 0x100881f9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x38
call fcn.100d1d56
mov esi, eax
mov dword [ebp - 0x14], esi
push 0x50
lea eax, [ebp - 0x90]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.1020dca0
mov eax, dword [ebp - 0x98]
push 0x60
add eax, 0x30
push 0
push eax
mov dword [ebp - 0xa4], eax
call fcn.1020dca0
mov edi, dword [ebp - 0x9c]
add esp, 0x1c
mov eax, 0x2c
mov word [ebp - 0x8a], 0x2006
mov word [ebp - 0x90], ax
lea eax, [ebp - 0xac]
mov byte [ebp - 0x88], 1
push 0
push eax
push 0x50
lea eax, [ebp - 0x90]
mov dword [ebp - 0x84], 0x38
push eax
push 0x50
push eax
push 0x4d014
push edi
mov dword [ebp - 0x80], 0x1388
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], 0x30
mov byte [ebp - 0x74], 0x12
mov byte [ebp - 0x70], 0x38
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x100880c4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x38
push esi
mov byte [ebp - 0x91], 0
call fcn.10209d2a
mov al, byte [ebp - 0x91]
add esp, 8
jmp 0x100881fb
movups xmm0, xmmword [esi]
mov eax, dword [ebp - 0xa4]
mov edi, dword [ebp - 0x98]
push dword [ebp - 0xa8]
movups xmmword [eax], xmm0
lea ecx, [edi + 0x90]
movups xmm0, xmmword [esi + 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [eax + 0x20], xmm0
movq xmm0, qword [esi + 0x30]
movq qword [eax + 0x30], xmm0
xorps xmm0, xmm0
movq qword [edi + 0x10], xmm0
mov byte [edi + 0x18], 0
movups xmmword [edi + 0x19], xmm0
mov byte [edi + 0x29], 0
mov dword [edi + 0x2a], 0
mov byte [edi + 0x2e], 0
mov eax, dword [esi + 8]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0x14], eax
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x19], xmm0
mov eax, dword [esi + 0x20]
mov dword [edi + 0x2a], eax
call fcn.10016610
push dword [ebp - 0xa0]
lea ecx, [edi + 4]
call fcn.10016630
push 0x10263250
lea ecx, [edi + 4]
call fcn.10017090
mov edi, dword [ebp - 0x9c]
lea eax, [ebp - 0xac]
push 0
push eax
push 8
lea eax, [ebp - 0xb4]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0x41018
movlpd qword [ebp - 0xb4], xmm0
push edi
mov dword [ebp - 0xb4], 8
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [ebp - 0x98]
test eax, eax
je 0x100881bb
movzx eax, byte [ebp - 0xb0]
mov byte [ecx], al
movzx eax, byte [ebp - 0xae]
mov byte [ecx + 1], al
movzx eax, byte [ebp - 0xad]
mov byte [ecx + 2], al
jmp 0x100881d1
mov edx, dword [ebp - 0xb8]
mov byte [ecx], 0
mov al, byte [edx + 0x18]
mov byte [ecx + 1], al
inc byte [edx + 0x18]
mov byte [ecx + 2], 0xfa
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x38
push esi
mov byte [ebp - 0x91], 1
call fcn.10209d2a
mov al, byte [ebp - 0x91]
add esp, 8
jmp 0x100881fb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1020a080
mov esp, ebp
pop ebp
ret 8