Function at 0x45ee30
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ac21
mov eax, dword fs:[0]
push eax
sub esp, 0xd70
mov eax, dword [0x543720]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov ebx, dword [ebp + 8]
xor al, al
mov byte [ebp - 0xd25], al
mov dword [ebp - 0xd30], 0
test al, al
jne 0x45f1fb
push 0x200
lea eax, [ebp - 0x514]
push 0
push eax
call fcn.004e4b60
push dword [ebp - 0xd30]
lea eax, [ebp - 0x514]
push str..PhysicalDrive_d
push 0xffffffffffffffff
push 0xff
push eax
call fcn.004e1eee
add esp, 0x20
lea eax, [ebp - 0x514]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xd34], eax
cmp eax, 0xffffffff
je 0x45f1df
push 0x800
xorps xmm0, xmm0
mov dword [ebp - 0xd18], 0
lea eax, [ebp - 0xd14]
movq qword [ebp - 0xd24], xmm0
push 0
push eax
mov dword [ebp - 0xd1c], 0
mov dword [ebp - 0xd24], 0
mov dword [ebp - 0xd20], 0
call fcn.004e4b60
add esp, 0xc
lea eax, [ebp - 0xd18]
push 0
push eax
push 0x800
lea eax, [ebp - 0xd14]
push eax
push 0xc
lea eax, [ebp - 0xd24]
push eax
push 0x2d1400
push dword [ebp - 0xd34]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x45f1cd
push 0xff
lea eax, [ebp - 0x113]
mov byte [ebp - 0x114], 0
push 0
push eax
call fcn.004e4b60
push 0xff
lea eax, [ebp - 0x313]
mov byte [ebp - 0x314], 0
push 0
push eax
call fcn.004e4b60
push 0xff
lea eax, [ebp - 0x213]
mov byte [ebp - 0x214], 0
push 0
push eax
call fcn.004e4b60
mov edx, dword [ebp - 0xd04]
lea eax, [ebp - 0x314]
push eax
push 0
lea ecx, [ebp - 0xd14]
call fcn.0045e7c0
mov edx, dword [ebp - 0xd00]
lea eax, [ebp - 0x214]
push eax
push 0
lea ecx, [ebp - 0xd14]
call fcn.0045e7c0
mov edx, dword [ebp - 0xcfc]
lea eax, [ebp - 0x114]
push eax
push 1
lea ecx, [ebp - 0xd14]
call fcn.0045e7c0
movsx eax, byte [ebp - 0x114]
push eax
call fcn.004e562b
add esp, 0x40
test eax, eax
jne 0x45f023
movsx eax, byte [ebp - 0x101]
push eax
call fcn.004e562b
add esp, 4
test eax, eax
je 0x45f1d3
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0xd4c]
call fcn.00401d30
mov dword [ebp - 0xd2c], eax
mov dword [ebp - 4], 0
cmp esi, eax
je 0x45f075
cmp dword [esi + 0x14], 0x10
jb 0x45f05c
push dword [esi]
call fcn.004e03e4
mov eax, dword [ebp - 0xd2c]
add esp, 4
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push eax
mov byte [esi], 0
call fcn.004032b0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xd38], 0x10
jb 0x45f093
push dword [ebp - 0xd4c]
call fcn.004e03e4
add esp, 4
lea eax, [ebp - 0x314]
mov dword [ebp - 0xd38], 0xf
push eax
lea ecx, [ebp - 0xd7c]
mov dword [ebp - 0xd3c], 0
mov byte [ebp - 0xd4c], 0
call fcn.00401d30
mov dword [ebp - 0xd2c], eax
mov dword [ebp - 4], 1
cmp edi, eax
je 0x45f100
cmp dword [edi + 0x14], 0x10
jb 0x45f0e7
push dword [edi]
call fcn.004e03e4
mov eax, dword [ebp - 0xd2c]
add esp, 4
mov dword [edi + 0x14], 0xf
mov ecx, edi
mov dword [edi + 0x10], 0
push eax
mov byte [edi], 0
call fcn.004032b0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xd68], 0x10
jb 0x45f11e
push dword [ebp - 0xd7c]
call fcn.004e03e4
add esp, 4
lea eax, [ebp - 0x214]
mov dword [ebp - 0xd68], 0xf
push eax
lea ecx, [ebp - 0xd64]
mov dword [ebp - 0xd6c], 0
mov byte [ebp - 0xd7c], 0
call fcn.00401d30
mov dword [ebp - 0xd2c], eax
mov dword [ebp - 4], 2
cmp ebx, eax
je 0x45f18b
cmp dword [ebx + 0x14], 0x10
jb 0x45f172
push dword [ebx]
call fcn.004e03e4
mov eax, dword [ebp - 0xd2c]
add esp, 4
mov dword [ebx + 0x14], 0xf
mov ecx, ebx
mov dword [ebx + 0x10], 0
push eax
mov byte [ebx], 0
call fcn.004032b0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xd50], 0x10
jb 0x45f1a9
push dword [ebp - 0xd64]
call fcn.004e03e4
add esp, 4
mov dword [ebp - 0xd50], 0xf
mov dword [ebp - 0xd54], 0
mov byte [ebp - 0xd64], 0
mov byte [ebp - 0xd25], 1
jmp 0x45f1d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0xd34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xd30]
mov al, byte [ebp - 0xd25]
inc ecx
mov dword [ebp - 0xd30], ecx
cmp ecx, 0x10
jl 0x45ee77
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e03e9
mov esp, ebp
pop ebp
ret