Function at 0x53a940
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a3276
mov eax, dword fs:[0]
push eax
mov eax, 0x302c
call fcn.00618710
mov eax, dword [0x75868c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push str..PhysicalDrive_d
lea eax, [ebp - 0x110]
xor bl, bl
push 0x100
push eax
call fcn.004751d0
add esp, 0x10
lea eax, [ebp - 0x110]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x53abfe
push 0x2710
lea eax, [ebp - 0x2ff0]
mov dword [ebp - 0x3030], 0
push 0
push eax
mov dword [ebp - 0x2ff4], 0
mov dword [ebp - 0x2ffc], 0
mov dword [ebp - 0x2ff8], 0
call fcn.00645e00
add esp, 0xc
lea eax, [ebp - 0x3030]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2ff0]
push eax
push 0xc
lea eax, [ebp - 0x2ffc]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x53abfe
lea eax, [ebp - 0x4f8]
push eax
push 0
push dword [ebp - 0x2fd8]
lea eax, [ebp - 0x2ff0]
push eax
call fcn.0053b2c0
lea eax, [ebp - 0x8e0]
push eax
push 0
push dword [ebp - 0x2fe0]
lea eax, [ebp - 0x2ff0]
push eax
call fcn.0053b2c0
cmp dword [0x7e4b38], 0x10
mov eax, 0x7e4b24
cmovae eax, dword [0x7e4b24]
cmp byte [eax], bl
jne 0x53abf3
movsx eax, byte [ebp - 0x4f8]
push eax
call fcn.0065b260
add esp, 4
test eax, eax
jne 0x53aa9f
movsx eax, byte [ebp - 0x4e5]
push eax
call fcn.0065b260
add esp, 4
test eax, eax
je 0x53abf3
mov dword [ebp - 0x302c], 0
lea ecx, [ebp - 0x4f8]
mov dword [ebp - 0x301c], 0
mov dword [ebp - 0x3018], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x302c], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ecx]
inc ecx
test al, al
jne 0x53aad4
sub ecx, edx
lea eax, [ebp - 0x4f8]
push ecx
push eax
lea ecx, [ebp - 0x302c]
call fcn.00479ba0
mov dword [ebp - 4], 1
mov dword [ebp - 0x3014], 0
lea ecx, [ebp - 0x8e0]
mov dword [ebp - 0x3004], 0
mov dword [ebp - 0x3000], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x3014], 0
mov byte [ebp - 4], 1
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x53ab30
sub ecx, edx
lea eax, [ebp - 0x8e0]
push ecx
push eax
lea ecx, [ebp - 0x3014]
call fcn.00479ba0
sub esp, 0x18
mov byte [ebp - 4], 3
lea eax, [ebp - 0x302c]
mov dword [ebp - 0x3034], esp
mov ecx, esp
push eax
call fcn.00478b10
sub esp, 0x18
mov byte [ebp - 4], 4
lea eax, [ebp - 0x3014]
mov ecx, esp
push eax
call fcn.00478b10
mov byte [ebp - 4], 3
call fcn.0053afb0
mov edx, dword [ebp - 0x3000]
mov bl, 1
cmp edx, 0x10
jb 0x53abbd
mov ecx, dword [ebp - 0x3014]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x53abb3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x53ac1b
push edx
push ecx
call fcn.00617a75
add esp, 8
mov edx, dword [ebp - 0x3018]
cmp edx, 0x10
jb 0x53abf3
mov ecx, dword [ebp - 0x302c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x53abe9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x53ac1b
push edx
push ecx
call fcn.00617a75
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x53ac00
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00617a25
mov esp, ebp
pop ebp
ret
call fcn.006533c4
int3