Function at 0x1010d000
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014295e
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x1017b074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x5c], 0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
xor eax, eax
mov dword [ebp - 4], 0
mov esi, 1
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x5c], esi
cmp dword [ebp + 0xc], eax
jle 0x1010dab2
nop
test eax, eax
jns 0x1010d099
neg eax
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.10107bb0
mov byte [eax - 1], 0x2d
lea ecx, [eax - 1]
jmp 0x1010d0a5
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.10107bb0
mov ecx, eax
lea eax, [ebp - 0x13]
mov dword [ebp - 0xd8], 0
add esp, 8
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0xf
mov byte [ebp - 0xd8], 0
cmp ecx, eax
je 0x1010d0e3
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0xd8]
call fcn.100ee160
or esi, 6
mov dword [ebp - 0x5c], esi
push 0x11
push str..PhysicalDrive
push 0
lea ecx, [ebp - 0xd8]
mov dword [ebp - 4], 1
call fcn.100fb860
mov dword [ebp - 0x40], 0
or esi, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
mov dword [ebp - 0x5c], esi
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0xc4]
mov byte [ebp - 4], 3
cmp ecx, 0x10
jb 0x1010d17f
mov edx, dword [ebp - 0xd8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1010d175
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010dacf
push ecx
push edx
call fcn.101402f2
add esp, 8
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push 0
push 3
push 0
push 3
push 0
push eax
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0xf
mov byte [ebp - 0xd8], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x7c], eax
push 0
cmp eax, 0xffffffff
jne 0x1010d29d
mov dword [ebp - 0x74], 0
lea ecx, [ebp - 0x74]
push 0x10145770
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
call fcn.100ee160
mov eax, dword [edi + 4]
mov byte [ebp - 4], 4
cmp eax, dword [edi + 8]
je 0x1010d218
movups xmm0, xmmword [ebp - 0x74]
mov ecx, 0xf
mov byte [ebp - 0x74], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x64]
movq qword [eax + 0x10], xmm0
add dword [edi + 4], 0x18
jmp 0x1010d227
lea ecx, [ebp - 0x74]
push ecx
push eax
mov ecx, edi
call fcn.101076c0
mov ecx, dword [ebp - 0x60]
mov byte [ebp - 4], 3
cmp ecx, 0x10
jb 0x1010d25c
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1010d252
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010dacf
push ecx
push edx
call fcn.101402f2
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
cmp ecx, 0x10
jb 0x1010da9c
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1010d28e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010dacf
push ecx
push edx
call fcn.101402f2
add esp, 8
jmp 0x1010da9c
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x48], 0
push ecx
push 8
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x50], 0
push ecx
push 0xc
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x4c], 0
push ecx
push 0x2d1400
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0
push eax
movlpd qword [ebp - 0x58], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1010d6b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.10107bb0
mov ecx, eax
mov dword [ebp - 0xa0], 0
lea eax, [ebp - 0x13]
mov dword [ebp - 0x90], 0
add esp, 8
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 0xa0], 0
cmp ecx, eax
je 0x1010d335
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0xa0]
call fcn.100ee160
or esi, 0x30
mov dword [ebp - 0x5c], esi
mov ecx, dword [ebp - 0x30]
mov eax, SysReAllocString
sub eax, ecx
mov byte [ebp - 4], 5
mov dword [ebp - 0xc0], ecx
cmp eax, 0x24
jb 0x1010dad5
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov esi, 0xf
mov dword [ebp - 0x74], 0
cmovae eax, dword [ebp - 0x40]
mov dword [ebp - 0x78], eax
lea eax, [ecx + 0x24]
mov dword [ebp - 0x64], 0
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0x80], ecx
cmp eax, esi
jbe 0x1010d3e2
cmp eax, 0x10
mov esi, eax
mov eax, 0x10
cmovb esi, eax
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x1010d3b2
mov esi, SysReAllocString
jmp 0x1010d3bd
cmp esi, 0x16
mov eax, 0x16
cmovb esi, eax
xor ecx, ecx
mov eax, esi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
lea ecx, [ebp - 0x74]
call fcn.100ee0a0
mov ecx, eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x74], ecx
movups xmm0, xmmword [str.DeviceIoControl__header__failed_for]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], esi
mov esi, dword [ebp - 0xc0]
movups xmmword [ecx], xmm0
push esi
movups xmm0, xmmword [0x10145e50]
push dword [ebp - 0x78]
movups xmmword [ecx + 0x10], xmm0
mov eax, dword [0x10145e60]
mov dword [ecx + 0x20], eax
lea eax, [ecx + 0x24]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x80]
add esp, 0xc
mov byte [eax + esi + 0x24], 0
mov esi, dword [ebp - 0x5c]
or esi, 0x40
mov dword [ebp - 0x5c], esi
push 0xd
push str._with_error:
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 6
call fcn.100fb5e0
or esi, 0x80
mov dword [ebp - 0x5c], esi
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xf0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xe0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0xf0]
push eax
push dword [ebp - 0x88]
lea ecx, [ebp - 0xb8]
call fcn.100f0600
or esi, 0x100
mov dword [ebp - 0x5c], esi
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 8
push eax
call fcn.100fcdf0
mov ecx, dword [ebp - 0xa4]
add esp, 4
mov byte [ebp - 4], 7
cmp ecx, 0x10
jb 0x1010d4ed
mov edx, dword [ebp - 0xb8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1010d4e3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010dacf
push ecx
push edx
call fcn.101402f2
add esp, 8
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0xf
mov byte [ebp - 0xb8], 0
mov byte [ebp - 4], 6
cmp ecx, 0x10
jb 0x1010d546
mov edx, dword [ebp - 0xf0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1010d53c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010dacf
push ecx
push edx
call fcn.101402f2
add esp, 8
mov ecx, dword [ebp - 0x60]
mov byte [ebp - 4], 5
cmp ecx, 0x10
jb 0x1010d57e
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1010d574
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010dacf
push ecx
push edx
call fcn.101402f2
add esp, 8
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
mov byte [ebp - 4], 3
cmp ecx, 0x10
jb 0x1010d5ce
mov edx, dword [ebp - 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1010d5c4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010dacf
push ecx
push edx
call fcn.101402f2
add esp, 8
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov dword [ebp - 0x74], 0
lea ecx, [ebp - 0x74]
push 0x10145770
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
call fcn.100ee160
mov eax, dword [edi + 4]
mov byte [ebp - 4], 9
cmp eax, dword [edi + 8]
je 0x1010d62b
movups xmm0, xmmword [ebp - 0x74]
mov ecx, 0xf
mov byte [ebp - 0x74], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x64]
movq qword [eax + 0x10], xmm0
add dword [edi + 4], 0x18
jmp 0x1010d63a
lea ecx, [ebp - 0x74]
push ecx
push eax
mov ecx, edi
call fcn.101076c0
mov ecx, dword [ebp - 0x60]
mov byte [ebp - 4], 3
cmp ecx, 0x10
jb 0x1010d66f
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1010d665
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010dacf
push ecx
push edx
call fcn.101402f2
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
cmp ecx, 0x10
jb 0x1010da9c
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1010d6a1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010dacf
push ecx
push edx
call fcn.101402f2
add esp, 8
jmp 0x1010da9c
mov esi, dword [ebp - 0x54]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push esi
push 0
push eax
mov dword [ebp - 0x78], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp - 0x44]
push 0
push eax
push esi
mov esi, dword [ebp - 0x78]
lea eax, [ebp - 0x50]
push esi
push 0xc
push eax
push 0x2d1400
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1010d9b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.10107bb0
mov ecx, eax
mov dword [ebp - 0xa0], 0
lea eax, [ebp - 0x13]
mov dword [ebp - 0x90], 0
add esp, 8
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 0xa0], 0
cmp ecx, eax
je 0x1010d740
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0xa0]
call fcn.100ee160
or dword [ebp - 0x5c], 0x600
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x74]
push str.DeviceIoControl__data__failed_for
push eax
call fcn.101071b0
add esp, 0xc
push 0xd
push str._with_error:
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.100fb5e0
or dword [ebp - 0x5c], 0x800
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x108], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xf8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x88]
lea ecx, [ebp - 0xb8]
call fcn.100f0600
or dword [ebp - 0x5c], 0x1000
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 0xd
push eax
call fcn.100fcdf0
mov ecx, dword [ebp - 0xa4]
add esp, 4
mov byte [ebp - 4], 0xc
cmp ecx, 0x10
jb 0x1010d81c
mov edx, dword [ebp - 0xb8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1010d812
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010dacf
push ecx
push edx
call fcn.101402f2
add esp, 8
mov ecx, dword [ebp - 0xf4]
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0xf
mov byte [ebp - 0xb8], 0
mov byte [ebp - 4], 0xb
cmp ecx, 0x10
jb 0x1010d875
mov edx, dword [ebp - 0x108]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1010d86b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010dacf
push ecx
push edx
call fcn.101402f2
add esp, 8
mov ecx, dword [ebp - 0x60]
mov byte [ebp - 4], 0xa
cmp ecx, 0x10
jb 0x1010d8ad
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1010d8a3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010dacf
push ecx
push edx
call fcn.101402f2
add esp, 8
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
mov byte [ebp - 4], 3
cmp ecx, 0x10
jb 0x1010d8fd
mov edx, dword [ebp - 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1010d8f3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010dacf
push ecx
push edx
call fcn.101402f2
add esp, 8
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov dword [ebp - 0x74], 0
lea ecx, [ebp - 0x74]
push 0x10145770
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
call fcn.100ee160
mov eax, dword [edi + 4]
mov byte [ebp - 4], 0xe
cmp eax, dword [edi + 8]
je 0x1010d964
movups xmm0, xmmword [ebp - 0x74]
mov ecx, 0xf
mov byte [ebp - 0x74], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x64]
movq qword [eax + 0x10], xmm0
add dword [edi + 4], 0x18
jmp 0x1010d973
lea ecx, [ebp - 0x74]
push ecx
push eax
mov ecx, edi
call fcn.101076c0
mov ecx, dword [ebp - 0x60]
mov byte [ebp - 4], 3
cmp ecx, 0x10
jb 0x1010da65
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1010d9a2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010dacf
push ecx
push edx
call fcn.101402f2
add esp, 8
jmp 0x1010da65
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
test eax, eax
je 0x1010d9fa
lea edx, [eax + esi]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x78], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1010d9e0
sub ecx, dword [ebp - 0x78]
push ecx
push edx
lea ecx, [ebp - 0x74]
call fcn.100ee160
mov byte [ebp - 4], 0xf
jmp 0x1010da0d
push 0
push 0x10145770
lea ecx, [ebp - 0x74]
call fcn.100ee160
mov byte [ebp - 4], 0x10
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x1010da3e
movups xmm0, xmmword [ebp - 0x74]
mov byte [ebp - 0x74], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x64]
movq qword [eax + 0x10], xmm0
add dword [edi + 4], 0x18
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
jmp 0x1010da4a
lea ecx, [ebp - 0x74]
push ecx
push eax
mov ecx, edi
call fcn.101076c0
lea ecx, [ebp - 0x74]
call fcn.100ed7e0
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
cmp ecx, 0x10
jb 0x1010da99
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1010da8f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010dacf
push ecx
push edx
call fcn.101402f2
add esp, 8
mov esi, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x84]
inc eax
mov dword [ebp - 0x84], eax
cmp eax, dword [ebp + 0xc]
jl 0x1010d080
mov eax, edi
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.10140300
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.100ee080
int3