Function at 0x4fe2e0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c2588
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x7e500c]
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 dword [ebp - 0x44], ecx
push 0
push 0
push 3
push 0
push 3
push 0
push 0x73bee8
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4fe3bb
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push eax
push 8
lea eax, [ebp - 0x40]
mov dword [ebp - 0x38], 0
push eax
push 0xc
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], 0
push eax
push 0x2d1400
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
push ebx
movlpd qword [ebp - 0x40], xmm0
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x4fe3b4
mov esi, dword [ebp - 0x3c]
push esi
call fcn.00651294
push esi
mov edi, eax
push 0
push edi
call fcn.00663090
add esp, 0x10
lea eax, [ebp - 0x2c]
push 0
push eax
push esi
push edi
push 0xc
lea eax, [ebp - 0x38]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
jne 0x4fe3c2
push edi
call fcn.0065109f
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
jmp 0x4fe572
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
test eax, eax
je 0x4fe52e
cmp eax, dword [edi + 4]
jae 0x4fe52e
lea edx, [eax + edi]
mov dword [ebp - 0x4c], 0
mov ecx, edx
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4fe410
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.00427530
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x28]
call fcn.0043bcb0
mov edx, dword [ebp - 0x48]
cmp edx, 0x10
jb 0x4fe463
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4fe459
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fe593
push edx
push ecx
call fcn.0065106e
add esp, 8
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
test esi, esi
je 0x4fe48a
lea ecx, [esi + eax]
mov edx, eax
cmp eax, ecx
jae 0x4fe48a
nop
cmp byte [edx], 0x20
jne 0x4fe4e5
inc edx
cmp edx, ecx
jb 0x4fe480
or edx, 0xffffffff
cmp esi, edx
lea ecx, [ebp - 0x28]
cmovb edx, esi
cmp dword [ebp - 0x14], 0x10
cmovae ecx, dword [ebp - 0x28]
sub esi, edx
mov dword [ebp - 0x18], esi
lea eax, [esi + 1]
push eax
lea eax, [ecx + edx]
push eax
push ecx
call fcn.00663770
mov esi, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
add esp, 0xc
cmp dword [ebp - 0x14], 0x10
cmovae edx, dword [ebp - 0x28]
test esi, esi
je 0x4fe4e9
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x20
jne 0x4fe4e1
cmp ecx, edx
je 0x4fe4e9
dec ecx
cmp byte [ecx], 0x20
je 0x4fe4d7
sub ecx, edx
jmp 0x4fe4ec
sub edx, eax
jmp 0x4fe48d
or ecx, 0xffffffff
inc ecx
cmp esi, ecx
jb 0x4fe58e
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x44]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], ecx
mov byte [eax + ecx], 0
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae ecx, dword [ebp - 0x28]
call fcn.004ed3b0
push edi
call fcn.0065109f
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov bl, 1
jmp 0x4fe540
push edi
call fcn.0065109f
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor bl, bl
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4fe570
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4fe566
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fe593
push edx
push ecx
call fcn.0065106e
add esp, 8
mov al, bl
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.00650ddc
mov esp, ebp
pop ebp
ret
call fcn.0042f400
call fcn.0066bea5
int3