Function at 0x4bc300
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2cdc
call fcn.004c3090
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x5c8]
push edi
push str..PhysicalDrive_d
push eax
mov ebx, edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x5c8]
push edi
push edi
push 3
push edi
push 3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, 0xffffffff
je 0x4bc5e4
push 0x2710
xorps xmm0, xmm0
mov dword [ebp - 4], edi
lea eax, [ebp - 0x2cd8]
movq qword [ebp - 0x18], xmm0
push edi
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.0050ba40
add esp, 0xc
lea eax, [ebp - 4]
push edi
push eax
push 0x2710
lea eax, [ebp - 0x2cd8]
push eax
push 0xc
lea eax, [ebp - 0x18]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4bc5dd
push 0x80
lea eax, [ebp - 0x3c8]
push edi
push eax
call fcn.0050ba40
push 0x80
lea eax, [ebp - 0x2c8]
push edi
push eax
call fcn.0050ba40
push 0x80
lea eax, [ebp - 0x248]
push edi
push eax
call fcn.0050ba40
push 0x80
lea eax, [ebp - 0x348]
push edi
push eax
call fcn.0050ba40
mov edx, dword [ebp - 0x2ccc]
lea eax, [ebp - 0x248]
add esp, 0x30
push eax
push ecx
lea ecx, [ebp - 0x2cd8]
call fcn.004bc0c0
mov edx, dword [ebp - 0x2cc8]
lea eax, [ebp - 0x2c8]
add esp, 8
push eax
push ecx
lea ecx, [ebp - 0x2cd8]
call fcn.004bc0c0
mov edx, dword [ebp - 0x2cc4]
lea eax, [ebp - 0x348]
add esp, 8
push eax
push ecx
lea ecx, [ebp - 0x2cd8]
call fcn.004bc0c0
mov edx, dword [ebp - 0x2cc0]
lea eax, [ebp - 0x3c8]
add esp, 8
push eax
push ecx
lea ecx, [ebp - 0x2cd8]
call fcn.004bc0c0
push 0x1a0
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x20], edi
xorps xmm0, xmm0
push edi
push eax
movlpd qword [ebp - 0x1c8], xmm0
call fcn.0050ba40
lea ecx, [ebp - 0x248]
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bc485
sub ecx, edx
je 0x4bc4a7
xor ecx, ecx
mov al, byte [ebp + ecx - 0x248]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x1a1], al
test al, al
jne 0x4bc492
lea ecx, [ebp - 0x2c8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bc4b0
sub ecx, edx
je 0x4bc4ee
lea edx, [ebp - 0x2c8]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4bc4c3
lea edi, [ebp - 0x1a0]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4bc4d3
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 - 8]
xor edi, edi
xor ecx, ecx
mov al, byte [ebp + ecx - 0x348]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0xa1], al
test al, al
jne 0x4bc4f0
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x3c8]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x121], al
test al, al
jne 0x4bc510
lea ecx, [ebp - 0x120]
call fcn.004bc230
lea ecx, [ebp - 0x1a0]
call fcn.004bc230
lea ecx, [ebp - 0xa0]
call fcn.004bc230
push 0x2710
lea eax, [ebp - 0x2cd8]
push 0
push eax
call fcn.0050ba40
add esp, 0xc
lea eax, [ebp - 4]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2cd8]
push eax
push 0
push 0
push 0x700a0
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4bc5dd
cmp dword [ebp - 0x2cd0], 0xc
mov eax, dword [ebp - 0x2cc0]
mov dword [ebp - 0x1c8], eax
mov eax, dword [ebp - 0x2cbc]
mov dword [ebp - 0x1c4], eax
jne 0x4bc5dd
lea edx, [ebp - 0x120]
mov dword [ebp - 0x20], 2
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4bc5b3
sub edx, ecx
xor ecx, ecx
test edx, edx
jle 0x4bc5d4
movsx ax, byte [ebp + ecx - 0x120]
mov word [ebx + ecx*2], ax
inc ecx
cmp ecx, edx
jl 0x4bc5c2
xor eax, eax
mov word [ebx + edx*2], ax
lea edi, [eax + 1]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret