Function at 0x40abaa
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37d4
call fcn.004e6f40
mov eax, dword [0x5a3604]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, ecx
xor ebx, ebx
push ebx
push str..PhysicalDrive_d
mov dword [ebp - 0x37c8], eax
mov esi, 0x100
lea edi, [eax + 0x800]
mov dword [ebp - 0x37d0], ebx
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0040a69c
add esp, 0x10
lea eax, [ebp - 0x108]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40ac3e
mov ecx, esi
mov eax, edi
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x40ac15
lea eax, [ebp - 0x108]
push eax
push 0x143
push str._d_ReadPhysicalDriveInNTWithZeroRights_ERROR_CreateFileA__s__returned_INVALID_HANDLE_VALUE
push esi
push edi
call fcn.0040a69c
add esp, 0x14
jmp 0x40ae0a
and dword [ebp - 0x37cc], 0
lea eax, [ebp - 0x37c4]
push 0xc
push 0
push eax
call fcn.004f5300
xor eax, eax
push 0x2710
push eax
mov dword [ebp - 0x37c4], eax
mov dword [ebp - 0x37c0], eax
lea eax, [ebp - 0x37b8]
push eax
call fcn.004f5300
add esp, 0x18
lea eax, [ebp - 0x37cc]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x37b8]
push eax
push 0xc
lea eax, [ebp - 0x37c4]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40ade1
lea eax, [ebp - 0xcc0]
push eax
lea eax, [ebp - 0x37b8]
push eax
push ecx
push dword [ebp - 0x37ac]
call fcn.0040aa6b
lea eax, [ebp - 0x8d8]
push eax
lea eax, [ebp - 0x37b8]
push eax
push ecx
push dword [ebp - 0x37a8]
call fcn.0040aa6b
lea eax, [ebp - 0x10a8]
push eax
lea eax, [ebp - 0x37b8]
push eax
push ecx
push dword [ebp - 0x37a4]
call fcn.0040aa6b
lea eax, [ebp - 0x4f0]
push eax
lea eax, [ebp - 0x37b8]
push eax
push ecx
push dword [ebp - 0x37a0]
call fcn.0040aa6b
mov eax, dword [ebp - 0x37c8]
cmp byte [eax], 0
jne 0x40ad8a
movsx ax, byte [ebp - 0x4f0]
movzx eax, ax
push eax
call fcn.00509d18
pop ecx
test eax, eax
jne 0x40ad49
movsx ax, byte [ebp - 0x4dd]
movzx eax, ax
push eax
call fcn.00509d18
pop ecx
test eax, eax
je 0x40ad8a
lea eax, [ebp - 0x4f0]
push eax
push 0x400
push dword [ebp - 0x37c8]
call fcn.00509c44
lea eax, [ebp - 0x8d8]
push eax
mov eax, dword [ebp - 0x37c8]
add eax, 0x400
push 0x400
push eax
call fcn.00509c44
add esp, 0x18
mov dword [ebp - 0x37d0], 1
push 0x2710
lea eax, [ebp - 0x37b8]
push 0
push eax
call fcn.004f5300
add esp, 0xc
lea eax, [ebp - 0x37cc]
xor ecx, ecx
push ecx
push eax
push 0x2710
lea eax, [ebp - 0x37b8]
push eax
push ecx
push ecx
push 0x700a0
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40ae03
mov eax, edi
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x40adca
lea eax, [ebp - 0x108]
push eax
push str._s_ReadPhysicalDriveInNTWithZeroRights_ERROR_DeviceIoControl____IOCTL_DISK_GET_DRIVE_GEOMETRY_EX__returned_0
jmp 0x40adfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, edi
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x40adeb
push ecx
push str.DeviceIOControl_IOCTL_STORAGE_QUERY_PROPERTY_error___d_n
push edi
call fcn.0040b468
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x37d0]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004e5fe9
leave
ret