Function at 0x4f8519
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd48
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor bl, bl
mov dword [ebp - 0xd44], edx
push edi
mov dword [ebp - 0xd40], ecx
xor esi, esi
mov dword [ebp - 0xd48], eax
test bl, bl
jne 0x4f88bc
push 0x200
lea eax, [ebp - 0x50c]
push 0
push eax
call fcn.00548bf0
add esp, 0xc
lea eax, [ebp - 0x50c]
push esi
push str..PhysicalDrive_d
push 0xff
push eax
call fcn.004f90b6
add esp, 0x10
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push eax
lea eax, [ebp - 0x50c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4f88b2
xor eax, eax
push 0x800
push eax
mov dword [ebp - 0xd3c], eax
mov dword [ebp - 0xd28], eax
mov dword [ebp - 0xd30], eax
mov dword [ebp - 0xd2c], eax
lea eax, [ebp - 0xd0c]
push eax
call fcn.00548bf0
add esp, 0xc
lea eax, [ebp - 0xd3c]
push 0
push eax
push 0x800
lea eax, [ebp - 0xd0c]
push eax
push 0xc
lea eax, [ebp - 0xd30]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4f88a5
push 0x100
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.00548bf0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x100
push 0
push eax
call fcn.00548bf0
add esp, 0xc
lea eax, [ebp - 0x30c]
push 0x100
push 0
push eax
call fcn.00548bf0
mov edx, dword [ebp - 0xcfc]
lea eax, [ebp - 0x20c]
add esp, 0xc
lea ecx, [ebp - 0xd0c]
push eax
push 0
call fcn.004f7f14
mov edx, dword [ebp - 0xcf8]
lea eax, [ebp - 0x30c]
push eax
push 0
lea ecx, [ebp - 0xd0c]
call fcn.004f7f14
call fcn.00463137
mov edx, dword [ebp - 0xcf4]
mov ecx, eax
lea eax, [ebp - 0x10c]
push eax
xor eax, eax
cmp ecx, 0xb
lea ecx, [ebp - 0xd0c]
setl al
push eax
call fcn.004f7f14
movsx eax, byte [ebp - 0x10c]
push eax
call fcn.005697e0
add esp, 0x1c
test eax, eax
jne 0x4f86cb
movsx eax, byte [ebp - 0xf9]
push eax
call fcn.005697e0
pop ecx
test eax, eax
je 0x4f88ab
xor ebx, ebx
mov dword [ebp - 0xd10], 0xf
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0xd24], ebx
mov dword [ebp - 0xd14], ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f86ec
sub ecx, edx
lea eax, [ebp - 0x10c]
push ecx
push eax
lea ecx, [ebp - 0xd24]
call fcn.0043f8cc
mov ecx, dword [ebp - 0xd40]
lea eax, [ebp - 0xd24]
push eax
call fcn.00440dff
mov eax, dword [ebp - 0xd10]
cmp eax, 0x10
jb 0x4f8769
mov ecx, dword [ebp - 0xd24]
inc eax
mov dword [ebp - 0xd34], eax
mov dword [ebp - 0xd38], ecx
cmp eax, 0x1000
jb 0x4f8760
lea eax, [ebp - 0xd34]
push eax
lea eax, [ebp - 0xd38]
push eax
call fcn.00403fef
mov eax, dword [ebp - 0xd34]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xd38]
push eax
push ecx
call fcn.00541bf5
pop ecx
pop ecx
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0xd24], ebx
mov dword [ebp - 0xd14], ebx
lea edx, [ecx + 1]
mov dword [ebp - 0xd10], 0xf
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f8788
sub ecx, edx
lea eax, [ebp - 0x20c]
push ecx
push eax
lea ecx, [ebp - 0xd24]
call fcn.0043f8cc
mov ecx, dword [ebp - 0xd44]
lea eax, [ebp - 0xd24]
push eax
call fcn.00440dff
mov eax, dword [ebp - 0xd10]
cmp eax, 0x10
jb 0x4f8805
mov ecx, dword [ebp - 0xd24]
inc eax
mov dword [ebp - 0xd38], eax
mov dword [ebp - 0xd34], ecx
cmp eax, 0x1000
jb 0x4f87fc
lea eax, [ebp - 0xd38]
push eax
lea eax, [ebp - 0xd34]
push eax
call fcn.00403fef
mov eax, dword [ebp - 0xd38]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xd34]
push eax
push ecx
call fcn.00541bf5
pop ecx
pop ecx
lea ecx, [ebp - 0x30c]
mov dword [ebp - 0xd24], ebx
mov dword [ebp - 0xd14], ebx
lea edx, [ecx + 1]
mov dword [ebp - 0xd10], 0xf
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f8824
sub ecx, edx
lea eax, [ebp - 0x30c]
push ecx
push eax
lea ecx, [ebp - 0xd24]
call fcn.0043f8cc
mov ecx, dword [ebp - 0xd48]
lea eax, [ebp - 0xd24]
push eax
call fcn.00440dff
mov eax, dword [ebp - 0xd10]
cmp eax, 0x10
jb 0x4f88a1
mov ecx, dword [ebp - 0xd24]
inc eax
mov dword [ebp - 0xd38], eax
mov dword [ebp - 0xd34], ecx
cmp eax, 0x1000
jb 0x4f8898
lea eax, [ebp - 0xd38]
push eax
lea eax, [ebp - 0xd34]
push eax
call fcn.00403fef
mov eax, dword [ebp - 0xd38]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xd34]
push eax
push ecx
call fcn.00541bf5
pop ecx
pop ecx
mov bl, 1
jmp 0x4f88ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 0x10
jl 0x4f8548
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00542347
leave
ret