Function at 0x458410
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b9ac
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x5a4eec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
push 0x98
lea eax, [ebp - 0xc4]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xd4], 0
call fcn.00517500
add esp, 4
lea ecx, [ebp - 0xc4]
call fcn.0044bbc0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.004582c0
mov byte [ebp - 4], 2
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x4584b3
mov eax, dword [esi]
jmp 0x4584b5
mov eax, esi
mov byte [eax], 0
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push 0
push 3
push 0
push 3
push 0
push eax
mov dword [ebp - 0xd4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4585d3
push 0
lea eax, [ebp - 0x14]
push eax
push 0xc
lea eax, [ebp - 0xd0]
push eax
push 0
push 0
push 0x2d1080
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x45856f
mov edx, dword [ebp - 0xcc]
lea ecx, [ebp - 0xf0]
call fcn.00454080
push eax
mov edx, str..PhysicalDrive
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x108]
call fcn.00450310
add esp, 4
mov ecx, esi
push eax
call fcn.0044b900
lea ecx, [ebp - 0x108]
call fcn.0044b890
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 2
call fcn.0044b890
mov ecx, str.get_disk_path_ok
call fcn.004541e0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x458644
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, str.get_disk_path_DeviceIoControl_error:_error
lea ecx, [ebp - 0xc4]
call fcn.00450060
mov ecx, eax
call fcn.0044c2b0
push eax
call fcn.00453dc0
add esp, 4
lea eax, [ebp - 0xf0]
lea ecx, [ebp - 0xc4]
push eax
call fcn.0044bae0
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 0x10
jb 0x4585b4
mov eax, dword [eax]
mov ecx, eax
call fcn.004541e0
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 2
call fcn.0044b890
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x458644
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, str.get_disk_path_CreateFile_error:_path
lea ecx, [ebp - 0xc4]
call fcn.00450060
lea edx, [ebp - 0x2c]
mov ecx, eax
call fcn.00453b50
mov edx, str.__error
mov ecx, eax
call fcn.00450060
mov ecx, eax
call fcn.0044c2b0
push eax
call fcn.00453dc0
add esp, 4
lea eax, [ebp - 0xf0]
lea ecx, [ebp - 0xc4]
push eax
call fcn.0044bae0
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x45862e
mov eax, dword [eax]
mov ecx, eax
call fcn.004541e0
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 2
call fcn.0044b890
cmp dword [esi + 0x10], 0
jne 0x458658
push 0x12
push str..PhysicalDrive0
mov ecx, esi
call fcn.0044b730
lea ecx, [ebp - 0x2c]
call fcn.0044b890
lea ecx, [ebp - 0x74]
call fcn.0044bb00
lea eax, [ebp - 0x74]
mov dword [ebp - 4], 6
push eax
mov dword [ebp - 0x74], vtable.std::ios_base.0
call fcn.00513411
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00514739
mov esp, ebp
pop ebp
ret