Function at 0x4fbf80
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x605f57
mov eax, dword fs:[0]
push eax
mov eax, 0x1024
call fcn.005ddc60
mov eax, dword [0x6b000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x102c], edi
mov dword [ebp - 0x1028], 0
call fcn.0040bf10
mov ecx, eax
test ecx, ecx
je 0x4fc29b
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
lea eax, [esi + 0x10]
mov dword [ebp - 0x1020], eax
mov dword [ebp - 4], 2
test ebx, ebx
jne 0x4fc030
lea esi, [eax - 0x10]
mov ecx, esi
call fcn.0040c950
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x1028], 1
mov dword [ebp - 4], ebx
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4fc27b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x4fc27b
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push ebx
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x1014], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4fc0ae
mov ecx, esi
call fcn.0040c950
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x1028], 1
mov dword [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x1020]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4fc27b
mov ecx, dword [edx]
push edx
jmp 0x4fc276
push 0
lea eax, [ebp - 0x1030]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push 0xc
lea eax, [ebp - 0x101c]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4fc0ff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0040c950
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x1028], 1
jmp 0x4fc085
mov eax, dword [ebp - 0x1004]
test eax, eax
je 0x4fc12a
lea ecx, [ebp - 0x1010]
add eax, ecx
lea ecx, [ebp - 0x1020]
push eax
call fcn.004fc410
push 0x20
lea ecx, [ebp - 0x1020]
call fcn.004d1400
mov eax, dword [ebp - 0x1000]
test eax, eax
je 0x4fc1a0
lea ecx, [ebp - 0x1010]
add eax, ecx
lea ecx, [ebp - 0x1024]
push eax
call fcn.0040c2f0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1024]
push 0x20
call fcn.004d1400
push 0x643ee4
lea ecx, [ebp - 0x1020]
call fcn.004fc410
mov eax, dword [ebp - 0x1024]
lea ecx, [ebp - 0x1020]
push dword [eax - 0xc]
push eax
call fcn.0040ceb0
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x1024]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4fc1a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xffc]
test eax, eax
je 0x4fc235
lea esi, [ebp - 0x1010]
add esi, eax
call fcn.0040bf10
mov ecx, eax
test ecx, ecx
je 0x4fc2a5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1024], eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1024]
push esi
call fcn.0040c670
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x1024]
push 0x20
call fcn.004d1400
push 0x643ee4
lea ecx, [ebp - 0x1020]
call fcn.004fc410
mov esi, dword [ebp - 0x1024]
lea ecx, [ebp - 0x1020]
push dword [esi - 0xc]
push esi
call fcn.0040ceb0
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4fc235
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x1020]
add esi, 0xfffffff0
mov ecx, esi
call fcn.0040c950
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x1028], 1
mov dword [ebp - 4], 0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4fc27b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.0040b250
push 0x80004005
call fcn.0040b250
int3