Function at 0x4bbf70
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 0x5c779d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
mov eax, dword [0x623ec0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0x6c], 0
movq qword [ecx], xmm0
mov dword [ecx + 8], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ebp - 4], 0
mov esi, 1
xor eax, eax
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x80], eax
nop word [eax + eax]
mov dword [ebp - 4], 1
mov edx, eax
lea ecx, [ebp - 0xa0]
call fcn.0045d2c0
lea eax, [ebp - 0xa0]
or esi, 2
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x6c], esi
call fcn.0045ccf0
add esp, 4
mov byte [ebp - 4], 2
and esi, 0xfffffffd
mov dword [ebp - 0x6c], esi
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x8c]
cmp eax, 7
jbe 0x4bc06b
push eax
push dword [ebp - 0xa0]
lea eax, [ebp - 0xa0]
push eax
call fcn.0045c470
add esp, 0xc
push 0
push 0
push 3
xor eax, eax
mov dword [ebp - 0x90], 0
cmp dword [ebp - 0x34], 7
push 0
mov word [ebp - 0xa0], ax
lea eax, [ebp - 0x48]
cmova eax, dword [ebp - 0x48]
push 3
push 0
push eax
mov dword [ebp - 0x8c], 7
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x88], edi
cmp edi, 0xffffffff
je 0x4bc2ca
xorps xmm0, xmm0
movlpd qword [ebp - 0x60], xmm0
mov dword [ebp - 0x60], 0x4bbf50
mov dword [ebp - 0x5c], edi
mov byte [ebp - 4], 4
lea eax, [ebp - 0x30]
push 0
push eax
push 8
lea eax, [ebp - 0x68]
mov dword [ebp - 0x50], 0
push eax
push 0xc
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0
push eax
push 0x2d1400
push edi
mov dword [ebp - 0x54], 0
movlpd qword [ebp - 0x68], xmm0
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4bc2bb
mov esi, dword [ebp - 0x64]
push esi
mov dword [ebp - 0x4c], 0
call fcn.00466c2c
push esi
push 0
push eax
mov dword [ebp - 0x7c], eax
call fcn.00468b40
mov eax, dword [ebp - 0x7c]
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x30]
push 0
push eax
push esi
mov esi, dword [ebp - 0x7c]
lea eax, [ebp - 0x58]
push esi
push 0xc
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4bc2ab
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4bc2ab
lea edx, [eax + esi]
mov dword [ebp - 0x1c], 0
mov ecx, edx
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bc190
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.0044b2d0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0xf
lea esi, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
lea edi, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
add eax, ecx
mov dword [ebp - 0x78], ecx
cmp dword [ebp - 0x18], 0xf
mov dword [ebp - 0x74], eax
cmova esi, dword [ebp - 0x2c]
cmova edi, dword [ebp - 0x2c]
lea esi, [ecx + esi]
cmp edi, esi
je 0x4bc229
movsx eax, byte [edi]
push eax
call fcn.0047ade0
add esp, 4
test eax, eax
jne 0x4bc1eb
inc edi
cmp edi, esi
jne 0x4bc1d6
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x78], ecx
cmp edi, esi
je 0x4bc229
lea eax, [edi + 1]
mov dword [ebp - 0x70], eax
cmp eax, esi
je 0x4bc229
nop
movsx eax, byte [eax]
push eax
call fcn.0047ade0
add esp, 4
test eax, eax
jne 0x4bc218
mov eax, dword [ebp - 0x70]
mov al, byte [eax]
mov byte [edi], al
inc edi
mov eax, dword [ebp - 0x70]
inc eax
mov dword [ebp - 0x70], eax
cmp eax, esi
jne 0x4bc200
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x78], ecx
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x78]
mov edx, edi
cmova eax, dword [ebp - 0x2c]
sub dword [ebp - 0x74], edi
sub edx, eax
mov edi, dword [ebp - 0x74]
mov eax, ecx
sub eax, edx
lea ecx, [ebp - 0x2c]
cmp eax, edi
cmovb edi, eax
cmp dword [ebp - 0x18], 0xf
cmova ecx, dword [ebp - 0x2c]
sub esi, edi
add ecx, edx
mov eax, esi
sub eax, edx
inc eax
push eax
lea eax, [ecx + edi]
push eax
push ecx
call fcn.004684b0
mov dword [ebp - 0x1c], esi
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x84]
add esp, 0xc
mov eax, dword [esi + 4]
push ecx
cmp eax, dword [esi + 8]
je 0x4bc28e
mov ecx, eax
call fcn.00448bb0
add dword [esi + 4], 0x18
jmp 0x4bc296
push eax
mov ecx, esi
call fcn.0045cdc0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.0044b910
mov edi, dword [ebp - 0x88]
mov esi, dword [ebp - 0x7c]
mov byte [ebp - 4], 4
push esi
call fcn.00466dcc
mov esi, dword [ebp - 0x6c]
add esp, 4
mov byte [ebp - 4], 3
test edi, edi
je 0x4bc2ca
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x34]
cmp eax, 7
jbe 0x4bc2e6
push eax
push dword [ebp - 0x48]
lea eax, [ebp - 0x48]
push eax
call fcn.0045c470
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
mov eax, dword [ebp - 0x80]
inc eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x80], eax
cmp eax, 0xa
jl 0x4bc010
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046676f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret