Function at 0x445ad0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa64
mov eax, dword [0x4920c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.0040b470
mov edx, 0xa00
lea eax, [ebp - 0xa08]
mov byte [eax], 0
lea eax, [eax + 1]
dec edx
jne 0x445af8
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xa08]
push 0x500
push eax
call fcn.004513ee
add esp, 0xc
cmp word [ebp - 0xa08], 0x5c
jne 0x445e1d
cmp word [ebp - 0xa06], 0x5c
jne 0x445e1d
cmp word [ebp - 0xa04], 0x3f
jne 0x445e1d
cmp word [ebp - 0xa02], 0x5c
jne 0x445e1d
lea ecx, [ebp - 0xa08]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x445b62
sub ecx, edx
sar ecx, 1
cmp ecx, 7
jb 0x445d07
cmp word [ebp + ecx*2 - 0xa0a], 0x5c
jne 0x445ba2
lea ecx, [ecx*2 - 2]
cmp ecx, 0xa00
jae 0x445e41
xor eax, eax
mov word [ebp + ecx - 0xa08], ax
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [ebp - 0xa08]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x445d07
push 0
lea eax, [ebp - 0xa0c]
push eax
push 0x20
lea eax, [ebp - 0xa30]
push eax
push 0
push 0
push 0x560000
push ebx
mov dword [ebp - 0xa0c], 0
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test esi, esi
je 0x445d07
cmp dword [ebp - 0xa30], 1
ja 0x445d07
mov eax, dword [ebp - 0xa20]
mov ecx, dword [ebp - 0xa28]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0xa1c]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0xa18]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0xa14]
push ecx
mov dword [edi + 0x1c], eax
lea eax, [ebp - 0xa08]
push str..PhysicalDrive_d
push eax
mov dword [edi + 4], ecx
call fcn.00409980
add esp, 0xc
lea eax, [ebp - 0xa08]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
mov dword [ebp - 0xa5c], esi
cmp esi, 0xffffffff
je 0x445d07
push 0x49e0
mov dword [ebp - 0xa0c], 0
call fcn.00451565
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x445d07
mov ecx, 0x49e0
mov edi, edi
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x445ca0
push ecx
lea eax, [ebp - 0xa0c]
push eax
push 0x49e0
push ebx
push ecx
push ecx
push 0x70050
push esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test esi, esi
jne 0x445d22
push eax
push str.Error:_Unable_to_get_drive_layout_for_volume___d_
push 0x494648
call fcn.00409980
add esp, 0xc
lea edx, [esi + 1]
mov ecx, 0x494648
call fcn.0040da30
push dword [ebp - 0xa5c]
mov eax, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call eax
push ebx
call fcn.0045152d
add esp, 4
lea ecx, [ebp + 8]
call fcn.00401f20
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044fdac
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0xa0c]
push eax
push 0x28
lea eax, [ebp - 0xa58]
push eax
push 0
push 0
push 0x700a0
push dword [ebp - 0xa5c]
mov dword [ebp - 0xa0c], 0
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 0xa5c]
mov dword [ebp - 0xa60], eax
mov eax, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call eax
test esi, esi
jne 0x445d9c
push dword [ebp - 0xa60]
push str.Error:_Unable_to_get_drive_geometry___d_
push 0x494648
call fcn.00409980
add esp, 0xc
lea edx, [esi + 1]
mov ecx, 0x494648
call fcn.0040da30
jmp 0x445cfe
mov eax, dword [ebx]
test eax, eax
jne 0x445db0
mov dword [edi], 1
mov eax, dword [ebx + 8]
mov dword [edi + 0x20], eax
jmp 0x445ddc
cmp eax, 1
jne 0x445dd1
mov dword [edi], 2
movq xmm0, qword [ebx + 8]
movq qword [edi + 0x24], xmm0
movq xmm0, qword [ebx + 0x10]
movq qword [edi + 0x2c], xmm0
jmp 0x445ddc
cmp eax, 2
jne 0x445ddc
mov dword [edi], 3
mov eax, dword [ebp - 0xa44]
push 0
push eax
push dword [edi + 0xc]
mov dword [edi + 0x34], eax
push dword [edi + 8]
call fcn.0045dfb0
push ebx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
call fcn.0045152d
add esp, 4
lea ecx, [ebp + 8]
call fcn.00401f20
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044fdac
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x1c], 8
jb 0x445e2e
push dword [ebp + 8]
call fcn.00450920
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0044fdac
mov esp, ebp
pop ebp
ret
call fcn.0045119a
int3