Function at 0x1000d4a0
Capabilities:
Get storage device properties

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006a502
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x2988
push ebx
call fcn.100459f0
mov eax, ecx
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
push esi
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
push edi
mov byte [eax], 0
mov dword [ebp - 4], 0
xor edi, edi
mov dword [ebp - 0x24], 1
push edi
lea eax, [ebp - 0x288]
mov dword [ebp - 0x20], 0
push str..PhysicalDrive_d
push eax
call fcn.10008250
add esp, 0xc
lea eax, [ebp - 0x288]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000d8e0
push 0
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push 0x28
lea eax, [ebp - 0xc0]
movq qword [ebp - 0xa0], xmm0
push eax
push 0
push 0
push 0x700a0
push esi
movups xmmword [ebp - 0xc0], xmm0
movups xmmword [ebp - 0xb0], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1000d8d3
cmp dword [ebp - 0xb8], 0xc
jne 0x1000d8d3
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xa4]
push 0x2710
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2998]
push 0
push eax
call fcn.10047830
add esp, 0xc
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x38], 0
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2998]
mov dword [ebp - 0x34], 0
push eax
push 0xc
lea eax, [ebp - 0x38]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1000d8d3
sub esp, 8
lea ecx, [ebp - 0x188]
call fcn.10001cc0
mov dword [ebp - 4], 1
lea edx, [ebp - 0x2998]
add edx, dword [ebp - 0x298c]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x84], 0xf
cmp byte [edx], 0
mov dword [ebp - 0x88], 0
mov byte [ebp - 0x98], 0
jne 0x1000d667
xor ecx, ecx
jmp 0x1000d67a
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000d670
sub ecx, dword [ebp - 0x18]
push ecx
push edx
lea ecx, [ebp - 0x98]
call fcn.10006490
mov byte [ebp - 4], 2
lea edx, [ebp - 0x2998]
add edx, dword [ebp - 0x2988]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x6c], 0xf
cmp byte [edx], 0
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x80], 0
jne 0x1000d6c0
xor ecx, ecx
jmp 0x1000d6d2
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000d6c8
sub ecx, dword [ebp - 0x18]
push ecx
push edx
lea ecx, [ebp - 0x80]
call fcn.10006490
mov byte [ebp - 4], 3
lea edx, [ebp - 0x2998]
add edx, dword [ebp - 0x2984]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x54], 0xf
cmp byte [edx], 0
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
jne 0x1000d715
xor eax, eax
jmp 0x1000d72a
mov eax, edx
lea ecx, [eax + 1]
mov dword [ebp - 0x18], ecx
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000d720
sub eax, dword [ebp - 0x18]
push eax
push edx
lea ecx, [ebp - 0x68]
call fcn.10006490
mov byte [ebp - 4], 4
lea edx, [ebp - 0x2998]
add edx, dword [ebp - 0x2980]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x3c], 0xf
cmp byte [edx], 0
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
jne 0x1000d76d
xor ecx, ecx
jmp 0x1000d77f
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000d775
sub ecx, dword [ebp - 0x18]
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.10006490
push dword [ebp - 0x28]
mov edx, str.DiskSize:
mov byte [ebp - 4], 5
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x178]
call fcn.10007c50
mov ecx, eax
call fcn.100022e0
mov edx, str._VendorIdOffset:
lea ecx, [ebp - 0x178]
call fcn.10007c50
lea edx, [ebp - 0x98]
mov ecx, eax
call fcn.10007e90
mov edx, str._ProductIdOffset:
lea ecx, [ebp - 0x178]
call fcn.10007c50
lea edx, [ebp - 0x80]
mov ecx, eax
call fcn.10007e90
mov edx, str._ProductRevisionOffset:
lea ecx, [ebp - 0x178]
call fcn.10007c50
lea edx, [ebp - 0x68]
mov ecx, eax
call fcn.10007e90
mov edx, str._SerialNumberOffset:
lea ecx, [ebp - 0x178]
call fcn.10007c50
lea edx, [ebp - 0x50]
mov ecx, eax
call fcn.10007e90
push dword [ebp - 0x297c]
mov edx, str._BusType:
push ecx
lea ecx, [ebp - 0x178]
call fcn.10007c50
add esp, 4
mov ecx, eax
call fcn.1000deb0
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x170]
call fcn.100032f0
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.10004060
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 5
call fcn.10005f70
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x11], 1
mov byte [ebp - 4], 4
call fcn.10005f70
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.10005f70
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.10005f70
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.10005f70
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 0
call fcn.10001c00
lea eax, [ebp - 0x120]
mov dword [ebp - method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.10065dac
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x11], 0
jne 0x1000d8ea
inc edi
cmp edi, 0x10
jl 0x1000d510
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret