Function at 0x100ba890
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101141b5
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x10162378]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x10166c1c], 0x10
lea ecx, [ebp - 0x50]
mov eax, 0x10166c08
mov dword [0x10166c18], 0
cmovae eax, dword [0x10166c08]
xorps xmm0, xmm0
push 0x11
push str..PhysicalDrive
mov byte [eax], 0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
call fcn.100ab530
xor ecx, ecx
mov dword [ebp - 4], 0
lea esi, [ebp - 0x13]
mov dword [ebp - 0x5c], ecx
nop dword [eax]
mov eax, 0xcccccccd
dec esi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x5c]
add cl, cl
sub al, cl
mov ecx, edx
add al, 0x30
mov byte [esi], al
mov eax, edx
mov dword [ebp - 0x5c], eax
test eax, eax
jne 0x100ba910
push ecx
lea eax, [ebp - 0x13]
push eax
push esi
lea ecx, [ebp - 0x74]
call fcn.100b36b0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x50]
call fcn.100ae220
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x60]
cmp ecx, 0x10
jb 0x100ba98f
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100ba985
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100bab39
push ecx
push edx
call fcn.1011116c
add esp, 8
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
push 0
cmovae eax, dword [ebp - 0x50]
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100ba9c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100bab13
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push eax
push 8
lea eax, [ebp - 0x58]
mov dword [ebp - 0x38], 0
push eax
push 0xc
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], 0
push eax
push 0x2d1400
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
push edi
movlpd qword [ebp - 0x58], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x100baa1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100bab13
mov esi, dword [ebp - 0x54]
push esi
call fcn.1011124b
push esi
push 0
push eax
mov dword [ebp - 0x5c], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp - 0x2c]
push 0
push eax
push esi
mov esi, dword [ebp - 0x5c]
lea eax, [ebp - 0x38]
push esi
push 0xc
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x100baa74
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x5c]
push eax
call fcn.10111246
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100bab13
mov eax, dword [esi + 0x18]
test eax, eax
je 0x100bab01
lea edx, [eax + esi]
mov dword [ebp - 0x18], 0
mov ecx, edx
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
lea eax, [ecx + 1]
mov dword [ebp - 0x5c], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100baaa0
sub ecx, dword [ebp - 0x5c]
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.100ab530
mov ecx, dword [0x10166c1c]
cmp ecx, 0x10
jb 0x100baae9
mov eax, dword [0x10166c08]
inc ecx
cmp ecx, 0x1000
jb 0x100baadf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100bab39
mov eax, edx
push ecx
push eax
call fcn.1011116c
add esp, 8
movups xmm0, xmmword [ebp - 0x28]
movups xmmword [0x10166c08], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [0x10166c18], xmm0
push esi
call fcn.10111246
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0x10
jb 0x100bab49
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100bab3f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100bab3f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1011116c
add esp, 8
mov eax, esi
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.10110a52
mov esp, ebp
pop ebp
ret