Function at 0x449516
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 0x44954f
test cl, 8
je 0x44954f
and dword [ebp + 0x10], 0xfffffff7
mov dword [ebp - 0x14], 8
cmp dword [ebp + 0xc], eax
mov dword [ebp - 0x18], eax
jne 0x44956a
push 0x200
lea ecx, [ebp - 0x18]
call fcn.0043d398
mov eax, dword [ebp - 0x18]
mov dword [ebp + 0xc], eax
push 5
pop ecx
xor eax, eax
mov esi, 0x4ac03c
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 0x44958a
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
cmp bx, 0x61
mov dword [ebp - 0x28], eax
jb 0x4495c0
cmp bx, 0x7a
ja 0x4495c0
add ebx, 0xffe0
xor eax, eax
cmp bx, 0x41
mov dword [ebp - 0x10], 0x19
jb 0x4495de
cmp bx, 0x5a
ja 0x4495de
movzx eax, bx
sub eax, 0x41
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
movsx ebx, ax
jmp 0x44983e
xor eax, eax
inc eax
mov ecx, ebx
shl eax, cl
mov ecx, dword [ebp - 0x28]
test ecx, eax
je 0x449837
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 0x449651
cmp edi, 2
je 0x449651
and dword [esi], 0
xor al, al
or byte [esi + 0x11], 0xc0
cmp edi, 1
je 0x449837
mov ecx, dword [ebp + 0x10]
cmp ecx, 8
je 0x449668
cmp ecx, 0x10
jne 0x449655
cmp edi, 2
jmp 0x44966b
mov al, 1
jmp 0x449636
cmp ecx, 4
je 0x449671
test al, al
jne 0x449671
cmp dword [ebp - 0x14], 0
je 0x449837
cmp edi, 5
jne 0x449837
or dword [ebp - 8], 0xffffffff
cmp edi, 2
jne 0x4496b5
cmp word [ebp - 0xc], 1
jg 0x4496b5
lea eax, [ebx*4 + 0x4be2d8]
cmp dword [eax], 0
je 0x4496b5
cmp ecx, 0x10
movsx eax, word [eax]
mov dword [ebp - 8], eax
jne 0x4496a1
cmp eax, 0xb
je 0x449837
cmp ecx, 4
je 0x4496b5
cmp ecx, 0x10
je 0x4496b5
cmp dword [ebp - 8], 0xb
jne 0x449837
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.0040511c
xor eax, eax
cmp dword [ebp - 4], eax
je 0x44982f
cmp dword [ebp - 8], eax
jge 0x4496f8
push ebx
push 1
push eax
push dword [ebp - 4]
call fcn.00441ba4
add esp, 0x10
mov dword [ebp - 8], eax
cmp edi, 2
jne 0x44971e
cmp dword [ebp + 0x10], 0x10
jne 0x44970e
cmp dword [ebp - 8], 0xb
jne 0x44971e
jmp 0x44982f
cmp dword [ebp + 0x10], 4
je 0x44971e
cmp dword [ebp - 8], 0xb
jne 0x44982f
mov ebx, dword [ebp + 0xc]
and dword [ebp - 0x208], 0
mov edi, 0x90
push edi
push 0
push ebx
call fcn.0048f7a0
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 0x44976e
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 0x4497dd
cmp dword [ebp - 0x24], 5
jne 0x4497dd
cmp dword [ebp - 0x20], edi
je 0x44982f
push 0x4a4c24
push edi
lea eax, [ebp - 0x78]
push eax
movzx eax, word [ebx + 4]
push eax
mov word [ebp - 0x78], di
call fcn.00441625
add esp, 0x10
cmp word [ebp - 0x78], di
je 0x44982f
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 0x4497f0
movsx eax, word [ebx + 4]
mov dword [esi + 4], eax
cmp dword [ebp + 0x10], 4
jne 0x449805
push dword [ebp - 4]
push 0
call fcn.0043f0bf
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 0x4bdfa0
call fcn.0040f2bd
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 0x4495e9
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea ecx, [ebp - 0x18]
call fcn.00437960
pop edi
pop esi
pop ebx
leave
ret