Function at 0x424800
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e99c
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x4c6374]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x100
lea eax, [ebp - 0x210]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004793f0
add esp, 0xc
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
push 0x4b9aa8
lea eax, [ebp - 0x210]
push 0x80
push eax
call fcn.0040edf0
add esp, 0x10
lea eax, [ebp - 0x210]
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 0x424a3f
push 0x98
lea eax, [ebp - 0x2b8]
push 0
push eax
call fcn.004793f0
add esp, 4
lea ecx, [ebp - 0x2b8]
call fcn.00408c30
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, str.CreateFile___Error:
lea ecx, [ebp - 0x2b8]
call fcn.0040b820
add esp, 4
mov ecx, eax
call fcn.00409350
push 0x34
push str.CWindowsVersion::GetPhysicalDriveFromPartitionLetter
lea ecx, [ebp - 0x2e8]
mov dword [ebp - 0x2d4], 0xf
mov dword [ebp - 0x2d8], 0
mov byte [ebp - 0x2e8], 0
call fcn.0040f450
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2d0]
push 0xc
push str.OsHelper.cpp
mov dword [ebp - 0x2bc], 0xf
mov dword [ebp - 0x2c0], 0
mov byte [ebp - 0x2d0], 0
call fcn.0040f450
lea eax, [ebp - 0x300]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x2b8]
call fcn.00408b50
push eax
lea eax, [ebp - 0x2e8]
mov byte [ebp - 4], 4
push eax
push 0xe0
lea eax, [ebp - 0x2d0]
push eax
sub esp, 8
call fcn.0041f440
add esp, 4
mov ecx, eax
call fcn.0041f910
mov eax, dword [ebp - 0x2ec]
cmp eax, 8
jb 0x42499c
inc eax
lea ecx, [ebp - 0x300]
push eax
push dword [ebp - 0x300]
call fcn.0040f5b0
xor eax, eax
mov dword [ebp - 0x2ec], 7
mov word [ebp - 0x300], ax
mov eax, dword [ebp - 0x2bc]
mov dword [ebp - 0x2f0], 0
cmp eax, 0x10
jb 0x4249d7
inc eax
lea ecx, [ebp - 0x2d0]
push eax
push dword [ebp - 0x2d0]
call fcn.0040f330
mov eax, dword [ebp - 0x2d4]
mov dword [ebp - 0x2bc], 0xf
mov dword [ebp - 0x2c0], 0
mov byte [ebp - 0x2d0], 0
cmp eax, 0x10
jb 0x424a10
inc eax
lea ecx, [ebp - 0x2e8]
push eax
push dword [ebp - 0x2e8]
call fcn.0040f330
lea ecx, [ebp - 0x268]
call fcn.00408b70
lea eax, [ebp - 0x268]
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
xor bl, bl
jmp 0x424c97
push 0
lea eax, [ebp - 0x214]
push eax
push 0xc
lea eax, [ebp - 0x220]
push eax
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x424c15
push 0x98
push eax
lea eax, [ebp - 0x2b8]
push eax
call fcn.004793f0
add esp, 4
lea ecx, [ebp - 0x2b8]
call fcn.00408c30
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, str.IOCTL_STORAGE_GET_DEVICE_NUMBER_Error:
lea ecx, [ebp - 0x2b8]
call fcn.0040b820
add esp, 4
mov ecx, eax
call fcn.00409350
push 0x34
push str.CWindowsVersion::GetPhysicalDriveFromPartitionLetter
lea ecx, [ebp - 0x2e8]
mov dword [ebp - 0x2d4], 0xf
mov dword [ebp - 0x2d8], 0
mov byte [ebp - 0x2e8], 0
call fcn.0040f450
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2d0]
push 0xc
push str.OsHelper.cpp
mov dword [ebp - 0x2bc], 0xf
mov dword [ebp - 0x2c0], 0
mov byte [ebp - 0x2d0], 0
call fcn.0040f450
lea eax, [ebp - 0x300]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x2b8]
call fcn.00408b50
push eax
lea eax, [ebp - 0x2e8]
mov byte [ebp - 4], 9
push eax
push 0xf1
lea eax, [ebp - 0x2d0]
push eax
sub esp, 8
call fcn.0041f440
add esp, 4
mov ecx, eax
call fcn.0041f910
mov eax, dword [ebp - 0x2ec]
cmp eax, 8
jb 0x424b6b
inc eax
lea ecx, [ebp - 0x300]
push eax
push dword [ebp - 0x300]
call fcn.0040f5b0
xor eax, eax
mov dword [ebp - 0x2ec], 7
mov word [ebp - 0x300], ax
mov eax, dword [ebp - 0x2bc]
mov dword [ebp - 0x2f0], 0
cmp eax, 0x10
jb 0x424ba6
inc eax
lea ecx, [ebp - 0x2d0]
push eax
push dword [ebp - 0x2d0]
call fcn.0040f330
mov eax, dword [ebp - 0x2d4]
mov dword [ebp - 0x2bc], 0xf
mov dword [ebp - 0x2c0], 0
mov byte [ebp - 0x2d0], 0
cmp eax, 0x10
jb 0x424bdf
inc eax
lea ecx, [ebp - 0x2e8]
push eax
push dword [ebp - 0x2e8]
call fcn.0040f330
lea ecx, [ebp - 0x268]
call fcn.00408b70
lea eax, [ebp - 0x268]
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]
xor bl, bl
jmp 0x424c97
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004793f0
mov eax, dword [ebp - 0x21c]
add esp, 0xc
inc eax
push dword [ebp - 0x218]
push eax
push str._d:_d
lea eax, [ebp - 0x110]
push 0x80
push eax
call fcn.0040edf0
add esp, 0x14
cmp word [ebp - 0x110], 0
jne 0x424c60
xor ecx, ecx
jmp 0x424c7f
lea ecx, [ebp - 0x110]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x424c70
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x110]
mov ecx, edi
push eax
call fcn.0040e610
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x424cac
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.0040f5b0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475cda
mov esp, ebp
pop ebp
ret