Function at 0x414610
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37f8
call fcn.0047f5a0
mov eax, dword [0x4b666c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x37f8], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
jmp 0x41464d
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
jge 0x4149a9
mov dword [ebp - 0x114], 0
mov ecx, dword [ebp - 4]
push ecx
push str..PhysicalDrive_d
push 0x100
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.MSVCR90.dll_sprintf_s]
add esp, 0x10
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xffffffff
jne 0x4146f1
push 0x100
mov ecx, dword [ebp - 0x37f8]
add ecx, 0x800
push ecx
call fcn.00415a20
add esp, 8
lea edx, [ebp - 0x110]
push edx
push 0x247
push str._d_ReadPhysicalDriveInNTWithZeroRights_ERROR_CreateFileA__s__returned_INVALID_HANDLE_VALUE
push 0x100
mov eax, dword [ebp - 0x37f8]
add eax, 0x800
push eax
call dword [sym.imp.MSVCR90.dll_sprintf_s]
add esp, 0x14
jmp 0x4149a4
mov dword [ebp - 0x282c], 0
push 0xc
push 0
lea ecx, [ebp - 0x2838]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x2838], 0
mov dword [ebp - 0x2834], 0
push 0x2710
push 0
lea edx, [ebp - 0x2828]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 0x282c]
push eax
push 0x2710
lea ecx, [ebp - 0x2828]
push ecx
push 0xc
lea edx, [ebp - 0x2838]
push edx
push 0x2d1400
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x414950
lea ecx, [ebp - 0x2828]
mov dword [ebp - 0x2c24], ecx
lea edx, [ebp - 0x2c20]
push edx
lea eax, [ebp - 0x2828]
push eax
push 0
mov ecx, dword [ebp - 0x2c24]
mov edx, dword [ecx + 0xc]
push edx
mov ecx, dword [ebp - 0x37f8]
call fcn.00414300
lea eax, [ebp - 0x37e0]
push eax
lea ecx, [ebp - 0x2828]
push ecx
push 0
mov edx, dword [ebp - 0x2c24]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x37f8]
call fcn.00414300
lea ecx, [ebp - 0x3010]
push ecx
lea edx, [ebp - 0x2828]
push edx
push 0
mov eax, dword [ebp - 0x2c24]
mov ecx, dword [eax + 0x14]
push ecx
mov ecx, dword [ebp - 0x37f8]
call fcn.00414300
lea edx, [ebp - 0x33f8]
push edx
lea eax, [ebp - 0x2828]
push eax
push 1
mov ecx, dword [ebp - 0x2c24]
mov edx, dword [ecx + 0x18]
push edx
mov ecx, dword [ebp - 0x37f8]
call fcn.00414300
mov eax, dword [ebp - 0x37f8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x414893
movsx dx, byte [ebp - 0x33f8]
movzx eax, dx
push eax
call dword [sym.imp.MSVCR90.dll_iswalnum]
add esp, 4
test eax, eax
jne 0x41484f
movsx cx, byte [ebp - 0x33e5]
movzx edx, cx
push edx
call dword [sym.imp.MSVCR90.dll_iswalnum]
add esp, 4
test eax, eax
je 0x414893
lea eax, [ebp - 0x33f8]
push eax
push 0x400
mov ecx, dword [ebp - 0x37f8]
push ecx
call dword [sym.imp.MSVCR90.dll_strcpy_s]
add esp, 0xc
lea edx, [ebp - 0x37e0]
push edx
push 0x400
mov eax, dword [ebp - 0x37f8]
add eax, 0x400
push eax
call dword [sym.imp.MSVCR90.dll_strcpy_s]
add esp, 0xc
mov dword [ebp - 8], 1
push 0x2710
push 0
lea ecx, [ebp - 0x2828]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0
lea edx, [ebp - 0x282c]
push edx
push 0x2710
lea eax, [ebp - 0x2828]
push eax
push 0
push 0
push 0x700a0
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x414915
push 0x100
mov edx, dword [ebp - 0x37f8]
add edx, 0x800
push edx
call fcn.00415a20
add esp, 8
lea eax, [ebp - 0x110]
push eax
push str._s_ReadPhysicalDriveInNTWithZeroRights_ERROR_DeviceIoControl____IOCTL_DISK_GET_DRIVE_GEOMETRY_EX__returned_0
mov ecx, dword [ebp - 0x37f8]
add ecx, 0x800
push ecx
call fcn.004167d0
add esp, 0xc
jmp 0x41494e
lea edx, [ebp - 0x2828]
mov dword [ebp - 0x37e8], edx
mov eax, dword [ebp - 0x37e8]
xor ecx, ecx
cmp dword [eax + 8], 0xc
sete cl
mov dword [ebp - 0x37e4], ecx
mov edx, dword [ebp - 0x37e8]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x37f0], eax
mov ecx, dword [edx + 0x1c]
mov dword [ebp - 0x37ec], ecx
jmp 0x414997
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x37f4], eax
push 0x100
mov edx, dword [ebp - 0x37f8]
add edx, 0x800
push edx
call fcn.00415a20
add esp, 8
mov eax, dword [ebp - 0x37f4]
push eax
push str.DeviceIOControl_IOCTL_STORAGE_QUERY_PROPERTY_error___d_n
mov ecx, dword [ebp - 0x37f8]
add ecx, 0x800
push ecx
call fcn.004167d0
add esp, 0xc
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x414644
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0047f406
mov esp, ebp
pop ebp
ret