Function at 0x4bc1d0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2cdc
call fcn.004c2fa0
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 0x4bc4b4
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.0050b930
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 0x4bc4ad
push 0x80
lea eax, [ebp - 0x3c8]
push edi
push eax
call fcn.0050b930
push 0x80
lea eax, [ebp - 0x2c8]
push edi
push eax
call fcn.0050b930
push 0x80
lea eax, [ebp - 0x248]
push edi
push eax
call fcn.0050b930
push 0x80
lea eax, [ebp - 0x348]
push edi
push eax
call fcn.0050b930
mov edx, dword [ebp - 0x2ccc]
lea eax, [ebp - 0x248]
add esp, 0x30
push eax
push ecx
lea ecx, [ebp - 0x2cd8]
call fcn.004bbf90
mov edx, dword [ebp - 0x2cc8]
lea eax, [ebp - 0x2c8]
add esp, 8
push eax
push ecx
lea ecx, [ebp - 0x2cd8]
call fcn.004bbf90
mov edx, dword [ebp - 0x2cc4]
lea eax, [ebp - 0x348]
add esp, 8
push eax
push ecx
lea ecx, [ebp - 0x2cd8]
call fcn.004bbf90
mov edx, dword [ebp - 0x2cc0]
lea eax, [ebp - 0x3c8]
add esp, 8
push eax
push ecx
lea ecx, [ebp - 0x2cd8]
call fcn.004bbf90
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.0050b930
lea ecx, [ebp - 0x248]
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bc355
sub ecx, edx
je 0x4bc377
xor ecx, ecx
mov al, byte [ebp + ecx - 0x248]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x1a1], al
test al, al
jne 0x4bc362
lea ecx, [ebp - 0x2c8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bc380
sub ecx, edx
je 0x4bc3be
lea edx, [ebp - 0x2c8]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4bc393
lea edi, [ebp - 0x1a0]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4bc3a3
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 0x4bc3c0
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 0x4bc3e0
lea ecx, [ebp - 0x120]
call fcn.004bc100
lea ecx, [ebp - 0x1a0]
call fcn.004bc100
lea ecx, [ebp - 0xa0]
call fcn.004bc100
push 0x2710
lea eax, [ebp - 0x2cd8]
push 0
push eax
call fcn.0050b930
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 0x4bc4ad
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 0x4bc4ad
lea edx, [ebp - 0x120]
mov dword [ebp - 0x20], 2
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4bc483
sub edx, ecx
xor ecx, ecx
test edx, edx
jle 0x4bc4a4
movsx ax, byte [ebp + ecx - 0x120]
mov word [ebx + ecx*2], ax
inc ecx
cmp ecx, edx
jl 0x4bc492
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