Function at 0x424cd0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ea3c
mov eax, dword fs:[0]
push eax
sub esp, 0x1f4
mov eax, dword [0x4c6374]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x100
lea eax, [ebp - 0x110]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004793f0
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push 0x4b9aa8
lea eax, [ebp - 0x110]
push 0x80
push eax
call fcn.0040edf0
add esp, 0x1c
lea eax, [ebp - 0x110]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x424f05
push 0x98
lea eax, [ebp - 0x1b8]
push 0
push eax
call fcn.004793f0
add esp, 4
lea ecx, [ebp - 0x1b8]
call fcn.00408c30
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, str.CreateFile___Error:
lea ecx, [ebp - 0x1b8]
call fcn.0040b820
mov ecx, eax
call fcn.00409350
push 0x34
push str.CWindowsVersion::GetPhysicalDriveFromPartitionLetter
lea ecx, [ebp - 0x1e8]
mov dword [ebp - 0x1d4], 0xf
mov dword [ebp - 0x1d8], 0
mov byte [ebp - 0x1e8], 0
call fcn.0040f450
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1d0]
push 0xc
push str.OsHelper.cpp
mov dword [ebp - 0x1bc], 0xf
mov dword [ebp - 0x1c0], 0
mov byte [ebp - 0x1d0], 0
call fcn.0040f450
lea eax, [ebp - 0x200]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x1b8]
call fcn.00408b50
push eax
lea eax, [ebp - 0x1e8]
mov byte [ebp - 4], 4
push eax
push 0x120
lea eax, [ebp - 0x1d0]
push eax
push ecx
call fcn.0041f440
mov ecx, eax
call fcn.0041f910
mov eax, dword [ebp - 0x1ec]
cmp eax, 8
jb 0x424e5f
inc eax
lea ecx, [ebp - 0x200]
push eax
push dword [ebp - 0x200]
call fcn.0040f5b0
xor eax, eax
mov dword [ebp - 0x1ec], 7
mov word [ebp - 0x200], ax
mov eax, dword [ebp - 0x1bc]
mov dword [ebp - 0x1f0], 0
cmp eax, 0x10
jb 0x424e9a
inc eax
lea ecx, [ebp - 0x1d0]
push eax
push dword [ebp - 0x1d0]
call fcn.0040f330
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0x1bc], 0xf
mov dword [ebp - 0x1c0], 0
mov byte [ebp - 0x1d0], 0
cmp eax, 0x10
jb 0x424ed3
inc eax
lea ecx, [ebp - 0x1e8]
push eax
push dword [ebp - 0x1e8]
call fcn.0040f330
lea ecx, [ebp - 0x168]
call fcn.00408b70
lea eax, [ebp - 0x168]
mov byte [ebp - 4], 5
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0042f0f8
add esp, 4
mov esi, 0x29a
jmp 0x4250e8
push 0
lea eax, [ebp - 0x114]
push eax
push 0xc
lea eax, [ebp - 0x120]
push eax
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4250d2
push 0x98
push eax
lea eax, [ebp - 0x1b8]
push eax
call fcn.004793f0
add esp, 4
lea ecx, [ebp - 0x1b8]
call fcn.00408c30
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, str.IOCTL_STORAGE_GET_DEVICE_NUMBER_Error:
lea ecx, [ebp - 0x1b8]
call fcn.0040b820
mov ecx, eax
call fcn.00409350
push 0x34
push str.CWindowsVersion::GetPhysicalDriveFromPartitionLetter
lea ecx, [ebp - 0x1e8]
mov dword [ebp - 0x1d4], 0xf
mov dword [ebp - 0x1d8], 0
mov byte [ebp - 0x1e8], 0
call fcn.0040f450
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1d0]
push 0xc
push str.OsHelper.cpp
mov dword [ebp - 0x1bc], 0xf
mov dword [ebp - 0x1c0], 0
mov byte [ebp - 0x1d0], 0
call fcn.0040f450
lea eax, [ebp - 0x200]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x1b8]
call fcn.00408b50
push eax
lea eax, [ebp - 0x1e8]
mov byte [ebp - 4], 9
push eax
push 0x131
lea eax, [ebp - 0x1d0]
push eax
push ecx
call fcn.0041f440
mov ecx, eax
call fcn.0041f910
mov eax, dword [ebp - 0x1ec]
cmp eax, 8
jb 0x425028
inc eax
lea ecx, [ebp - 0x200]
push eax
push dword [ebp - 0x200]
call fcn.0040f5b0
xor eax, eax
mov dword [ebp - 0x1ec], 7
mov word [ebp - 0x200], ax
mov eax, dword [ebp - 0x1bc]
mov dword [ebp - 0x1f0], 0
cmp eax, 0x10
jb 0x425063
inc eax
lea ecx, [ebp - 0x1d0]
push eax
push dword [ebp - 0x1d0]
call fcn.0040f330
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0x1bc], 0xf
mov dword [ebp - 0x1c0], 0
mov byte [ebp - 0x1d0], 0
cmp eax, 0x10
jb 0x42509c
inc eax
lea ecx, [ebp - 0x1e8]
push eax
push dword [ebp - 0x1e8]
call fcn.0040f330
lea ecx, [ebp - 0x168]
call fcn.00408b70
lea eax, [ebp - 0x168]
mov byte [ebp - 4], 0xa
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0042f0f8
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x29a
jmp 0x4250e8
mov eax, dword [ebp - 0x118]
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x11c]
inc esi
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x4250fd
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.0040f5b0
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.00475cda
mov esp, ebp
pop ebp
ret