Function at 0x40ef90
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37f0
call fcn.00536770
mov eax, dword [0x5cd480]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x37c4], ecx
mov dword [ebp - 0x37e0], 0
mov dword [ebp - 0x37c8], 0
mov dword [ebp - 0x37c8], 0
jmp 0x40efdc
mov eax, dword [ebp - 0x37c8]
add eax, 1
mov dword [ebp - 0x37c8], eax
cmp dword [ebp - 0x37c8], 1
jge 0x40f373
mov dword [ebp - 0x37cc], 0
mov ecx, dword [ebp - 0x37c8]
push ecx
push str..PhysicalDrive_d
push 0x100
lea edx, [ebp - 0x104]
push edx
call fcn.00408360
add esp, 0x10
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x37cc], eax
cmp dword [ebp - 0x37cc], 0xffffffff
jne 0x40f084
push 0x100
mov ecx, dword [ebp - 0x37c4]
add ecx, 0x800
push ecx
call fcn.0040e5e0
add esp, 8
lea edx, [ebp - 0x104]
push edx
push 0x143
push str._d_ReadPhysicalDriveInNTWithZeroRights_ERROR_CreateFileA__s__returned_INVALID_HANDLE_VALUE
push 0x100
mov eax, dword [ebp - 0x37c4]
add eax, 0x800
push eax
call fcn.00408360
add esp, 0x14
jmp 0x40f36e
mov dword [ebp - 0x37d4], 0
push 0xc
push 0
lea ecx, [ebp - 0x37c0]
push ecx
call fcn.005385c0
add esp, 0xc
mov dword [ebp - 0x37c0], 0
mov dword [ebp - 0x37bc], 0
push 0x2710
push 0
lea edx, [ebp - 0x37b4]
push edx
call fcn.005385c0
add esp, 0xc
push 0
lea eax, [ebp - 0x37d4]
push eax
push 0x2710
lea ecx, [ebp - 0x37b4]
push ecx
push 0xc
lea edx, [ebp - 0x37c0]
push edx
push 0x2d1400
mov eax, dword [ebp - 0x37cc]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40f31a
lea ecx, [ebp - 0x37b4]
mov dword [ebp - 0x37d0], ecx
lea edx, [ebp - 0xcbc]
push edx
lea eax, [ebp - 0x37b4]
push eax
push 0
mov ecx, dword [ebp - 0x37d0]
mov edx, dword [ecx + 0xc]
push edx
mov ecx, dword [ebp - 0x37c4]
call fcn.0040ec80
lea eax, [ebp - 0x8d4]
push eax
lea ecx, [ebp - 0x37b4]
push ecx
push 0
mov edx, dword [ebp - 0x37d0]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x37c4]
call fcn.0040ec80
lea ecx, [ebp - 0x10a4]
push ecx
lea edx, [ebp - 0x37b4]
push edx
push 0
mov eax, dword [ebp - 0x37d0]
mov ecx, dword [eax + 0x14]
push ecx
mov ecx, dword [ebp - 0x37c4]
call fcn.0040ec80
lea edx, [ebp - 0x4ec]
push edx
lea eax, [ebp - 0x37b4]
push eax
push 0
mov ecx, dword [ebp - 0x37d0]
mov edx, dword [ecx + 0x18]
push edx
mov ecx, dword [ebp - 0x37c4]
call fcn.0040ec80
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 0x37c4]
movsx eax, byte [edx + ecx]
test eax, eax
jne 0x40f244
mov ecx, 1
imul edx, ecx, 0
movsx ax, byte [ebp + edx - 0x4ec]
movzx ecx, ax
push ecx
call fcn.00546708
add esp, 4
test eax, eax
jne 0x40f1ff
mov edx, 1
imul eax, edx, 0x13
movsx cx, byte [ebp + eax - 0x4ec]
movzx edx, cx
push edx
call fcn.00546708
add esp, 4
test eax, eax
je 0x40f244
lea eax, [ebp - 0x4ec]
push eax
push 0x400
mov ecx, dword [ebp - 0x37c4]
push ecx
call fcn.00546674
add esp, 0xc
lea edx, [ebp - 0x8d4]
push edx
push 0x400
mov eax, dword [ebp - 0x37c4]
add eax, 0x400
push eax
call fcn.00546674
add esp, 0xc
mov dword [ebp - 0x37e0], 1
push 0x2710
push 0
lea ecx, [ebp - 0x37b4]
push ecx
call fcn.005385c0
add esp, 0xc
push 0
lea edx, [ebp - 0x37d4]
push edx
push 0x2710
lea eax, [ebp - 0x37b4]
push eax
push 0
push 0
push 0x700a0
mov ecx, dword [ebp - 0x37cc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40f2c6
push 0x100
mov edx, dword [ebp - 0x37c4]
add edx, 0x800
push edx
call fcn.0040e5e0
add esp, 8
lea eax, [ebp - 0x104]
push eax
push str._s_ReadPhysicalDriveInNTWithZeroRights_ERROR_DeviceIoControl____IOCTL_DISK_GET_DRIVE_GEOMETRY_EX__returned_0
mov ecx, dword [ebp - 0x37c4]
add ecx, 0x800
push ecx
call fcn.004102e0
add esp, 0xc
jmp 0x40f318
lea edx, [ebp - 0x37b4]
mov dword [ebp - 0x37dc], edx
mov eax, dword [ebp - 0x37dc]
cmp dword [eax + 8], 0xc
jne 0x40f2ea
mov dword [ebp - 0x37d8], 1
jmp 0x40f2f4
mov dword [ebp - 0x37d8], 0
mov ecx, dword [ebp - 0x37d8]
mov dword [ebp - 0x37e8], ecx
mov edx, dword [ebp - 0x37dc]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x1c]
mov dword [ebp - 0x37f0], eax
mov dword [ebp - 0x37ec], ecx
jmp 0x40f361
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x37e4], eax
push 0x100
mov edx, dword [ebp - 0x37c4]
add edx, 0x800
push edx
call fcn.0040e5e0
add esp, 8
mov eax, dword [ebp - 0x37e4]
push eax
push str.DeviceIOControl_IOCTL_STORAGE_QUERY_PROPERTY_error___d_n
mov ecx, dword [ebp - 0x37c4]
add ecx, 0x800
push ecx
call fcn.004102e0
add esp, 0xc
mov edx, dword [ebp - 0x37cc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40efcd
mov eax, dword [ebp - 0x37e0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00535cb4
mov esp, ebp
pop ebp
ret