Function at 0x10003270
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2cec
call fcn.1008c5b0
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor ebx, ebx
mov dword [ebp - 0x2ce4], ecx
nop dword [eax + eax]
push ebx
lea eax, [ebp - 0x408]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x408]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x2ce0], esi
cmp esi, 0xffffffff
je 0x100035f2
push 0x2710
xorps xmm0, xmm0
mov dword [ebp - 0x2cdc], 0
lea eax, [ebp - 0x2b18]
movq qword [ebp - 0x2b24], xmm0
push 0
push eax
mov dword [ebp - 0x2b1c], 0
mov dword [ebp - 0x2b24], 0
mov dword [ebp - 0x2b20], 0
call fcn.1008da10
add esp, 0xc
lea eax, [ebp - 0x2cdc]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2b18]
push eax
push 0xc
lea eax, [ebp - 0x2b24]
push eax
push 0x2d1400
push esi
call edi
test eax, eax
je 0x100035d7
push 0x80
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.1008da10
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x80
push 0
push eax
call fcn.1008da10
add esp, 0xc
lea eax, [ebp - 0x88]
push 0x80
push 0
push eax
call fcn.1008da10
add esp, 0xc
lea eax, [ebp - 0x188]
push 0x80
push 0
push eax
call fcn.1008da10
mov eax, dword [ebp - 0x2b0c]
add esp, 0xc
mov byte [ebp - 0x88], 0
test eax, eax
jle 0x100033d5
lea ecx, [ebp - 0x88]
push ecx
push 0
push eax
lea ecx, [ebp - 0x2b18]
call fcn.10003110
mov eax, dword [ebp - 0x2b08]
mov byte [ebp - 0x108], 0
test eax, eax
jle 0x100033fb
lea ecx, [ebp - 0x108]
push ecx
push 0
push eax
lea ecx, [ebp - 0x2b18]
call fcn.10003110
mov eax, dword [ebp - 0x2b04]
mov byte [ebp - 0x188], 0
test eax, eax
jle 0x10003421
lea ecx, [ebp - 0x188]
push ecx
push 0
push eax
lea ecx, [ebp - 0x2b18]
call fcn.10003110
mov eax, dword [ebp - 0x2b00]
mov byte [ebp - 0x208], 0
test eax, eax
jle 0x10003447
lea ecx, [ebp - 0x208]
push ecx
push 1
push eax
lea ecx, [ebp - 0x2b18]
call fcn.10003110
push 0x1a0
lea eax, [ebp - 0x2cd0]
mov dword [ebp - 0x2b30], 0
xorps xmm0, xmm0
push 0
push eax
movlpd qword [ebp - 0x2cd8], xmm0
call fcn.1008da10
lea ecx, [ebp - 0x88]
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003480
sub ecx, edx
je 0x100034a5
xor ecx, ecx
nop dword [eax]
mov al, byte [ebp + ecx - 0x88]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x2cb1], al
test al, al
jne 0x10003490
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100034b0
sub ecx, edx
je 0x100034f5
lea edx, [ebp - 0x108]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x100034c3
lea edi, [ebp - 0x2cb0]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100034d3
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x2ce0]
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x188]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x2bb1], al
test al, al
jne 0x10003500
xor eax, eax
nop word [eax + eax]
mov cl, byte [ebp + eax - 0x208]
lea eax, [eax + 1]
mov byte [ebp + eax - 0x2c31], cl
test cl, cl
jne 0x10003520
lea eax, [ebp - 0x2c30]
push eax
call fcn.10003610
lea eax, [ebp - 0x2cb0]
push eax
call fcn.10003610
lea eax, [ebp - 0x2bb0]
push eax
call fcn.10003610
push 0x2710
lea eax, [ebp - 0x2b18]
push 0
push eax
call fcn.1008da10
add esp, 0xc
lea eax, [ebp - 0x2cdc]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2b18]
push eax
push 0
push 0
push 0x700a0
push esi
call edi
test eax, eax
je 0x100035f2
mov eax, dword [ebp - 0x2b00]
mov ecx, 2
mov dword [ebp - 0x2cd8], eax
mov eax, dword [ebp - 0x2afc]
mov dword [ebp - 0x2cd4], eax
xor eax, eax
cmp dword [ebp - 0x2b10], 0xc
cmove eax, ecx
mov ecx, dword [ebp - 0x2ce4]
mov dword [ebp - 0x2b30], eax
lea eax, [ebp - 0x2cd8]
push eax
call fcn.10003a90
jmp 0x100035eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nDeviceIOControl_IOCTL_STORAGE_QUERY_PROPERTY_error___d_n
call fcn.10002ff0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, 0x10
jl 0x100032a0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008bffe
mov esp, ebp
pop ebp
ret