Function at 0x44a371
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
movzx ecx, word [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x10]
sar ebx, 0x10
xor eax, eax
push esi
and ebx, 0xffdf
test cl, 1
push edi
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x14], eax
je 0x44a3aa
test cl, 8
je 0x44a3aa
and dword [ebp + 0x10], 0xfffffff7
mov dword [ebp - 0x14], 8
cmp dword [ebp + 0xc], eax
mov dword [ebp - 0x18], eax
jne 0x44a3c5
push 0x200
lea ecx, [ebp - 0x18]
call fcn.0043dc99
mov eax, dword [ebp - 0x18]
mov dword [ebp + 0xc], eax
push 5
pop ecx
xor eax, eax
mov esi, 0x4aeadc
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push 0x1b
add eax, 0xc
pop edx
and dword [eax + 4], 0
or ecx, 0xffffffff
mov dword [eax + 8], ecx
mov dword [eax], ecx
mov dword [eax - 4], ecx
mov dword [eax - 0xc], ecx
mov dword [eax - 8], ecx
add eax, 0x18
dec edx
jne 0x44a3e5
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
cmp bx, 0x61
mov dword [ebp - 0x28], eax
jb 0x44a41b
cmp bx, 0x7a
ja 0x44a41b
add ebx, 0xffe0
xor eax, eax
cmp bx, 0x41
mov dword [ebp - 0x10], 0x19
jb 0x44a439
cmp bx, 0x5a
ja 0x44a439
movzx eax, bx
sub eax, 0x41
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
movsx ebx, ax
jmp 0x44a699
xor eax, eax
inc eax
mov ecx, ebx
shl eax, cl
mov ecx, dword [ebp - 0x28]
test ecx, eax
je 0x44a692
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add eax, 0x41
mov word [ebp - 0x48], ax
lea eax, [ebx + ebx*2]
lea esi, [ecx + eax*8]
lea eax, [ebx + 0x41]
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
mov edi, eax
cmp edi, 3
mov dword [ebp - 0x24], edi
je 0x44a4ac
cmp edi, 2
je 0x44a4ac
and dword [esi], 0
xor al, al
or byte [esi + 0x11], 0xc0
cmp edi, 1
je 0x44a692
mov ecx, dword [ebp + 0x10]
cmp ecx, 8
je 0x44a4c3
cmp ecx, 0x10
jne 0x44a4b0
cmp edi, 2
jmp 0x44a4c6
mov al, 1
jmp 0x44a491
cmp ecx, 4
je 0x44a4cc
test al, al
jne 0x44a4cc
cmp dword [ebp - 0x14], 0
je 0x44a692
cmp edi, 5
jne 0x44a692
or dword [ebp - 8], 0xffffffff
cmp edi, 2
jne 0x44a510
cmp word [ebp - 0xc], 1
jg 0x44a510
lea eax, [ebx*4 + 0x4c1300]
cmp dword [eax], 0
je 0x44a510
cmp ecx, 0x10
movsx eax, word [eax]
mov dword [ebp - 8], eax
jne 0x44a4fc
cmp eax, 0xb
je 0x44a692
cmp ecx, 4
je 0x44a510
cmp ecx, 0x10
je 0x44a510
cmp dword [ebp - 8], 0xb
jne 0x44a692
xor eax, eax
push eax
push 0x20000000
push 3
push eax
push 3
mov dword [ebp - 4], eax
push 0x80000000
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 4]
call fcn.004051d2
xor eax, eax
cmp dword [ebp - 4], eax
je 0x44a68a
cmp dword [ebp - 8], eax
jge 0x44a553
push ebx
push 1
push eax
push dword [ebp - 4]
call fcn.0044271e
add esp, 0x10
mov dword [ebp - 8], eax
cmp edi, 2
jne 0x44a579
cmp dword [ebp + 0x10], 0x10
jne 0x44a569
cmp dword [ebp - 8], 0xb
jne 0x44a579
jmp 0x44a68a
cmp dword [ebp + 0x10], 4
je 0x44a579
cmp dword [ebp - 8], 0xb
jne 0x44a68a
mov ebx, dword [ebp + 0xc]
and dword [ebp - 0x208], 0
mov edi, 0x90
push edi
push 0
push ebx
call fcn.00492e00
or dword [ebx + 0x18], 0xffffffff
add esp, 0xc
xor eax, eax
push eax
lea ecx, [ebp - 0x208]
push ecx
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push ebx
push eax
push eax
push 0x70048
push dword [ebp - 4]
call edi
test eax, eax
mov cx, word [esi]
mov word [ebp - 0x1c], cx
je 0x44a5c9
mov ax, word [ebx + 0x18]
mov word [ebp - 0x1c], ax
and dword [ebp - 0x208], 0
push 0
call dword [sym.imp.KERNEL32.DLL_SetLastError]
or dword [ebx + 4], 0xffffffff
xor eax, eax
push eax
lea ecx, [ebp - 0x208]
push ecx
push 0xc
push ebx
push eax
push eax
push 0x2d1080
push dword [ebp - 4]
call edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor edi, edi
cmp dword [ebp - 0x14], edi
je 0x44a638
cmp dword [ebp - 0x24], 5
jne 0x44a638
cmp dword [ebp - 0x20], edi
je 0x44a68a
push 0x4a7ce0
push edi
lea eax, [ebp - 0x78]
push eax
movzx eax, word [ebx + 4]
push eax
mov word [ebp - 0x78], di
call fcn.004420c2
add esp, 0x10
cmp word [ebp - 0x78], di
je 0x44a68a
movzx eax, word [ebp - 0x48]
mov dword [esi + 0x10], eax
cmp dword [ebp - 0x20], 0
movsx edi, word [ebp - 0x1c]
mov dword [esi], edi
je 0x44a64b
movsx eax, word [ebx + 4]
mov dword [esi + 4], eax
cmp dword [ebp + 0x10], 4
jne 0x44a660
push dword [ebp - 4]
push 0
call fcn.0043faff
pop ecx
pop ecx
mov dword [esi + 0xc], eax
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
mov dword [esi + 0x14], eax
mov dword [esi + 8], ecx
movsx edx, word [ebx + 4]
push edx
push edi
push ecx
push eax
lea eax, [ebp - 0x50]
push eax
push str._s:__tpx__d___tp__d__iPartition_d_iDisk_d_r_n
push 0x4c0fb8
call fcn.0040f70e
add esp, 0x1c
lea ecx, [ebp - 4]
call fcn.00402b5a
inc dword [ebp - 0xc]
movsx ebx, word [ebp - 0xc]
cmp ebx, dword [ebp - 0x10]
jle 0x44a444
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea ecx, [ebp - 0x18]
call fcn.00437e1a
pop edi
pop esi
pop ebx
leave
ret