Function at 0x418df0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37f0
call fcn.00464c10
mov eax, dword [0x4efa64]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x37c4], 0
mov dword [ebp - 0x37c4], 0
jmp 0x418e2c
mov eax, dword [ebp - 0x37c4]
add eax, 1
mov dword [ebp - 0x37c4], eax
cmp dword [ebp - 0x37c4], 0x10
jge 0x41915c
mov dword [ebp - 0x37c8], 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
cmp edx, dword [ebp + 0xc]
jl 0x418e52
jmp 0x41915c
mov eax, dword [ebp - 0x37c4]
push eax
push str..PhysicalDrive_d
lea ecx, [ebp - 0x104]
push ecx
call fcn.00404080
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x37c8], eax
cmp dword [ebp - 0x37c8], 0xffffffff
jne 0x418e9a
jmp 0x419157
mov dword [ebp - 0x37d8], 0
push 0xc
push 0
lea eax, [ebp - 0x37c0]
push eax
call fcn.00465af0
add esp, 0xc
mov dword [ebp - 0x37c0], 0
mov dword [ebp - 0x37bc], 0
push 0x2710
push 0
lea ecx, [ebp - 0x37b4]
push ecx
call fcn.00465af0
add esp, 0xc
push 0
lea edx, [ebp - 0x37d8]
push edx
push 0x2710
lea eax, [ebp - 0x37b4]
push eax
push 0xc
lea ecx, [ebp - 0x37c0]
push ecx
push 0x2d1400
mov edx, dword [ebp - 0x37c8]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41913e
lea eax, [ebp - 0x37b4]
mov dword [ebp - 0x37cc], eax
lea ecx, [ebp - 0xcbc]
push ecx
push 0
mov edx, dword [ebp - 0x37cc]
mov eax, dword [edx + 0xc]
push eax
lea ecx, [ebp - 0x37b4]
push ecx
call fcn.00418ad0
add esp, 0x10
lea edx, [ebp - 0x8d4]
push edx
push 0
mov eax, dword [ebp - 0x37cc]
mov ecx, dword [eax + 0x10]
push ecx
lea edx, [ebp - 0x37b4]
push edx
call fcn.00418ad0
add esp, 0x10
lea eax, [ebp - 0x10a4]
push eax
push 0
mov ecx, dword [ebp - 0x37cc]
mov edx, dword [ecx + 0x14]
push edx
lea eax, [ebp - 0x37b4]
push eax
call fcn.00418ad0
add esp, 0x10
lea ecx, [ebp - 0x4ec]
push ecx
push 1
mov edx, dword [ebp - 0x37cc]
mov eax, dword [edx + 0x18]
push eax
lea ecx, [ebp - 0x37b4]
push ecx
call fcn.00418ad0
add esp, 0x10
lea edx, [ebp - 0x4ec]
push edx
call fcn.004822f0
add esp, 4
mov dword [ebp - 0x37d0], eax
cmp dword [ebp - 0x37d0], 0
je 0x419034
mov eax, 1
imul ecx, eax, 0
movsx edx, byte [ebp + ecx - 0x4ec]
and edx, 0xff
push edx
call fcn.004821d0
add esp, 4
test eax, eax
jne 0x419034
cmp dword [ebp - 0x37d0], 0x14
jl 0x419003
mov dword [ebp - 0x37d4], 1
jmp 0x41900d
mov dword [ebp - 0x37d4], 0
mov eax, 1
imul ecx, eax, 0x13
movsx edx, byte [ebp + ecx - 0x4ec]
and edx, 0xff
push edx
call fcn.004821d0
add esp, 4
and eax, dword [ebp - 0x37d4]
je 0x4190a3
lea eax, [ebp - 0x4ec]
push eax
mov ecx, dword [ebp + 0x10]
imul edx, dword [ecx], 0xc0c
add edx, dword [ebp + 8]
push edx
call fcn.004789e0
add esp, 8
lea eax, [ebp - 0x8d4]
push eax
mov ecx, dword [ebp + 0x10]
imul edx, dword [ecx], 0xc0c
mov eax, dword [ebp + 8]
lea ecx, [eax + edx + 0x401]
push ecx
call fcn.004789e0
add esp, 8
lea edx, [ebp - 0xcbc]
push edx
mov eax, dword [ebp + 0x10]
imul ecx, dword [eax], 0xc0c
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x802]
push eax
call fcn.004789e0
add esp, 8
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
add edx, 1
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
push 0x2710
push 0
lea ecx, [ebp - 0x37b4]
push ecx
call fcn.00465af0
add esp, 0xc
push 0
lea edx, [ebp - 0x37d8]
push edx
push 0x2710
lea eax, [ebp - 0x37b4]
push eax
push 0
push 0
push 0x700a0
mov ecx, dword [ebp - 0x37c8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4190ea
jmp 0x41913c
lea edx, [ebp - 0x37b4]
mov dword [ebp - 0x37e0], edx
mov eax, dword [ebp - 0x37e0]
cmp dword [eax + 8], 0xc
jne 0x41910e
mov dword [ebp - 0x37dc], 1
jmp 0x419118
mov dword [ebp - 0x37dc], 0
mov ecx, dword [ebp - 0x37dc]
mov dword [ebp - 0x37e4], ecx
mov edx, dword [ebp - 0x37e0]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x1c]
mov dword [ebp - 0x37f0], eax
mov dword [ebp - 0x37ec], ecx
jmp 0x41914a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x37e8], eax
mov edx, dword [ebp - 0x37c8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x418e1d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464bf6
mov esp, ebp
pop ebp
ret