Function at 0x523067
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd48
mov eax, dword [0x63d284]
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 0x52340a
push 0x200
lea eax, [ebp - 0x50c]
push 0
push eax
call fcn.00573610
add esp, 0xc
lea eax, [ebp - 0x50c]
push esi
push str..PhysicalDrive_d
push 0xff
push eax
call fcn.00523c04
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 0x523400
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.00573610
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 0x5233f3
push 0x100
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.00573610
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x100
push 0
push eax
call fcn.00573610
add esp, 0xc
lea eax, [ebp - 0x30c]
push 0x100
push 0
push eax
call fcn.00573610
mov edx, dword [ebp - 0xcfc]
lea eax, [ebp - 0x20c]
add esp, 0xc
lea ecx, [ebp - 0xd0c]
push eax
push 0
call fcn.00522a62
mov edx, dword [ebp - 0xcf8]
lea eax, [ebp - 0x30c]
push eax
push 0
lea ecx, [ebp - 0xd0c]
call fcn.00522a62
call fcn.00462e8e
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.00522a62
movsx eax, byte [ebp - 0x10c]
push eax
call fcn.00594200
add esp, 0x1c
test eax, eax
jne 0x523219
movsx eax, byte [ebp - 0xf9]
push eax
call fcn.00594200
pop ecx
test eax, eax
je 0x5233f9
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 0x52323a
sub ecx, edx
lea eax, [ebp - 0x10c]
push ecx
push eax
lea ecx, [ebp - 0xd24]
call fcn.0043f664
mov ecx, dword [ebp - 0xd40]
lea eax, [ebp - 0xd24]
push eax
call fcn.00440b97
mov eax, dword [ebp - 0xd10]
cmp eax, 0x10
jb 0x5232b7
mov ecx, dword [ebp - 0xd24]
inc eax
mov dword [ebp - 0xd34], eax
mov dword [ebp - 0xd38], ecx
cmp eax, 0x1000
jb 0x5232ae
lea eax, [ebp - 0xd34]
push eax
lea eax, [ebp - 0xd38]
push eax
call fcn.00403daf
mov eax, dword [ebp - 0xd34]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xd38]
push eax
push ecx
call fcn.0056c61e
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 0x5232d6
sub ecx, edx
lea eax, [ebp - 0x20c]
push ecx
push eax
lea ecx, [ebp - 0xd24]
call fcn.0043f664
mov ecx, dword [ebp - 0xd44]
lea eax, [ebp - 0xd24]
push eax
call fcn.00440b97
mov eax, dword [ebp - 0xd10]
cmp eax, 0x10
jb 0x523353
mov ecx, dword [ebp - 0xd24]
inc eax
mov dword [ebp - 0xd38], eax
mov dword [ebp - 0xd34], ecx
cmp eax, 0x1000
jb 0x52334a
lea eax, [ebp - 0xd38]
push eax
lea eax, [ebp - 0xd34]
push eax
call fcn.00403daf
mov eax, dword [ebp - 0xd38]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xd34]
push eax
push ecx
call fcn.0056c61e
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 0x523372
sub ecx, edx
lea eax, [ebp - 0x30c]
push ecx
push eax
lea ecx, [ebp - 0xd24]
call fcn.0043f664
mov ecx, dword [ebp - 0xd48]
lea eax, [ebp - 0xd24]
push eax
call fcn.00440b97
mov eax, dword [ebp - 0xd10]
cmp eax, 0x10
jb 0x5233ef
mov ecx, dword [ebp - 0xd24]
inc eax
mov dword [ebp - 0xd38], eax
mov dword [ebp - 0xd34], ecx
cmp eax, 0x1000
jb 0x5233e6
lea eax, [ebp - 0xd38]
push eax
lea eax, [ebp - 0xd34]
push eax
call fcn.00403daf
mov eax, dword [ebp - 0xd38]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xd34]
push eax
push ecx
call fcn.0056c61e
pop ecx
pop ecx
mov bl, 1
jmp 0x5233f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 0x10
jl 0x523096
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056cd75
leave
ret