Function at 0x45acde
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
push esi
push edi
mov eax, 0x4c9c14
push eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [ebp + 0xc]
and eax, 0x10000
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
and eax, 0x20000
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
and word [ebp + 0xe], 0xc000
and eax, 0x200000
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor ebx, ebx
mov word [eax], bx
push 0x100000
lea ecx, [ebp - 0x18]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x14], ebx
call fcn.0043fc43
push 0x800
lea ecx, [ebp - 0x1c]
call fcn.0043fdb8
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
cmp eax, ebx
lea esi, [edi + 0x800]
mov word [edi], 0x20
mov word [edi + 2], bx
mov dword [ebp - 0x34], esi
mov word [esi], 0x20
mov word [esi + 2], bx
jl 0x45ad74
mov dword [ebp - 8], eax
jmp 0x45ad84
mov dword [ebp - 8], ebx
cmp dword [ebp - 8], 0x3e80
jge 0x45b061
push dword [ebp - 8]
lea eax, [ebp - 0x1d0]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp dword [ebp - 0x2c], ebx
je 0x45adc0
cmp dword [ebp + 0xc], ebx
jl 0x45adc0
push 0x4afdbc
push 0x13
lea eax, [edi + 2]
push eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.00444214
add esp, 0x10
cmp dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
je 0x45add4
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x10], 1
jge 0x45add7
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x10]
push ebx
push 0x20000000
neg eax
push 3
sbb eax, eax
push ebx
and eax, 0x40000000
push 3
add eax, 0x80000000
push eax
lea eax, [ebp - 0x1d0]
push eax
lea ecx, [ebp - 4]
call fcn.004054c4
cmp dword [ebp - 0x10], ebx
je 0x45ae1a
lea eax, [esi + 2]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0043d835
add esp, 0xc
cmp dword [ebp + 0xc], ebx
jge 0x45ae70
cmp dword [ebp - 4], ebx
je 0x45ae53
push dword [ebp - 8]
lea eax, [ebp - 0x1d0]
push 0x4b17cc
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x1d0]
push eax
call fcn.0043fe06
inc dword [ebp - 0xc]
jmp 0x45ae60
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x20
jge 0x45b059
lea ecx, [ebp - 4]
call fcn.00402c5b
inc dword [ebp - 8]
jmp 0x45ad77
cmp dword [ebp - 4], ebx
je 0x45b059
push ebx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov esi, dword [ebp - 0x18]
push 0xc0
push ebx
push esi
call fcn.0049a7e0
add esp, 0xc
push ebx
lea eax, [ebp - 0x30]
push eax
push 0x100000
push esi
push ebx
push ebx
push 0x70050
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
mov edx, dword [esi]
cmp edx, ebx
mov dword [ebp - 0x10], 0x4b7a18
jne 0x45aec1
mov dword [ebp - 0x10], 0x4b7a10
cmp edx, 1
jne 0x45aecd
mov dword [ebp - 0x10], 0x4b7a08
mov esi, 0x4b7434
lea edi, [ebp - 0x108]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x27
xor eax, eax
cmp edx, ebx
pop ecx
lea edi, [ebp - 0x102]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jne 0x45af08
mov eax, dword [ebp - 0x18]
push dword [eax + 8]
lea eax, [ebp - 0x108]
push str._08lX
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
jmp 0x45af21
cmp edx, 1
jne 0x45af24
mov eax, dword [ebp - 0x18]
add eax, 8
push ebx
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0043d724
add esp, 0xc
push 9
pop ecx
xor eax, eax
mov dword [ebp - 0x64], ebx
lea edi, [ebp - 0x60]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 4]
push edi
lea esi, [ebp - 0x64]
call fcn.0043d6a4
push edi
push ebx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
call fcn.00441ac6
mov esi, dword [ebp + 8]
add esp, 0xc
push 0xc8
mov ecx, esi
mov dword [ebp - 0x14], eax
call fcn.0043fddf
push 0x800
push 1
push ebx
push edi
call fcn.00444888
add esp, 0x10
cmp eax, 0xc
mov byte [ebp + 0xf], 0x3f
jne 0x45af7f
mov byte [ebp + 0xf], 0x46
jmp 0x45af88
cmp eax, 0xb
jne 0x45af88
mov byte [ebp + 0xf], 0x52
cmp dword [ebp - 0x20], ebx
mov word [ebp - 0x250], bx
je 0x45afcd
or dword [ebp - 0x24], 0xffffffff
or dword [ebp - 0x20], 0xffffffff
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
mov dword [ebp - 0xc], ebx
call fcn.0044cd2e
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0xc]
push edx
push eax
lea eax, [ebp - 0x250]
push str.__I64d__u__I64d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x28
push dword [ebp - 0x38]
lea eax, [ebp - 0x348]
push dword [ebp - 0x3c]
push eax
call fcn.0048ca08
push dword [ebp - 0x60]
lea eax, [ebp - 0x2cc]
push dword [ebp - 0x64]
push eax
call fcn.0048ca08
lea ecx, [ebp - 0x250]
push ecx
movsx ecx, byte [ebp + 0xf]
push ecx
push dword [ebp - 0x10]
mov eax, dword [esi]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x108]
push ecx
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x2cc]
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x348]
push ecx
push dword [ebp - 8]
push str._2d__14s__14s__6lu__4lu__4lu__4lu__s__2d__s__c_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x50
cmp dword [ebp - 0x2c], ebx
mov dword [ebp - 0xc], eax
je 0x45b04a
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0043fe06
cmp dword [ebp - 0x28], ebx
je 0x45b059
push dword [ebp - 0x34]
mov ecx, esi
call fcn.0043fe06
lea ecx, [ebp - 4]
call fcn.00402c5b
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0040fed5
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.00439cfd
lea ecx, [ebp - 0x18]
call fcn.00439cfd
pop edi
mov eax, 0x4c9c14
pop esi
cmp eax, ebx
pop ebx
je 0x45b08f
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [ebp - 0xc]
leave
ret