Function at 0x449466
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 0x44949f
test cl, 8
je 0x44949f
and dword [ebp + 0x10], 0xfffffff7
mov dword [ebp - 0x14], 8
cmp dword [ebp + 0xc], eax
mov dword [ebp - 0x18], eax
jne 0x4494ba
push 0x200
lea ecx, [ebp - 0x18]
call fcn.0043d2c0
mov eax, dword [ebp - 0x18]
mov dword [ebp + 0xc], eax
push 5
pop ecx
xor eax, eax
mov esi, 0x4abfec
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 0x4494da
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
cmp bx, 0x61
mov dword [ebp - 0x28], eax
jb 0x449510
cmp bx, 0x7a
ja 0x449510
add ebx, 0xffe0
xor eax, eax
cmp bx, 0x41
mov dword [ebp - 0x10], 0x19
jb 0x44952e
cmp bx, 0x5a
ja 0x44952e
movzx eax, bx
sub eax, 0x41
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
movsx ebx, ax
jmp 0x44978e
xor eax, eax
inc eax
mov ecx, ebx
shl eax, cl
mov ecx, dword [ebp - 0x28]
test ecx, eax
je 0x449787
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 0x4495a1
cmp edi, 2
je 0x4495a1
and dword [esi], 0
xor al, al
or byte [esi + 0x11], 0xc0
cmp edi, 1
je 0x449787
mov ecx, dword [ebp + 0x10]
cmp ecx, 8
je 0x4495b8
cmp ecx, 0x10
jne 0x4495a5
cmp edi, 2
jmp 0x4495bb
mov al, 1
jmp 0x449586
cmp ecx, 4
je 0x4495c1
test al, al
jne 0x4495c1
cmp dword [ebp - 0x14], 0
je 0x449787
cmp edi, 5
jne 0x449787
or dword [ebp - 8], 0xffffffff
cmp edi, 2
jne 0x449605
cmp word [ebp - 0xc], 1
jg 0x449605
lea eax, [ebx*4 + 0x4be2d8]
cmp dword [eax], 0
je 0x449605
cmp ecx, 0x10
movsx eax, word [eax]
mov dword [ebp - 8], eax
jne 0x4495f1
cmp eax, 0xb
je 0x449787
cmp ecx, 4
je 0x449605
cmp ecx, 0x10
je 0x449605
cmp dword [ebp - 8], 0xb
jne 0x449787
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.004050ca
xor eax, eax
cmp dword [ebp - 4], eax
je 0x44977f
cmp dword [ebp - 8], eax
jge 0x449648
push ebx
push 1
push eax
push dword [ebp - 4]
call fcn.00441acc
add esp, 0x10
mov dword [ebp - 8], eax
cmp edi, 2
jne 0x44966e
cmp dword [ebp + 0x10], 0x10
jne 0x44965e
cmp dword [ebp - 8], 0xb
jne 0x44966e
jmp 0x44977f
cmp dword [ebp + 0x10], 4
je 0x44966e
cmp dword [ebp - 8], 0xb
jne 0x44977f
mov ebx, dword [ebp + 0xc]
and dword [ebp - 0x208], 0
mov edi, 0x90
push edi
push 0
push ebx
call fcn.0048f710
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 0x4496be
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 0x44972d
cmp dword [ebp - 0x24], 5
jne 0x44972d
cmp dword [ebp - 0x20], edi
je 0x44977f
push 0x4a4bd4
push edi
lea eax, [ebp - 0x78]
push eax
movzx eax, word [ebx + 4]
push eax
mov word [ebp - 0x78], di
call fcn.0044154d
add esp, 0x10
cmp word [ebp - 0x78], di
je 0x44977f
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 0x449740
movsx eax, word [ebx + 4]
mov dword [esi + 4], eax
cmp dword [ebp + 0x10], 4
jne 0x449755
push dword [ebp - 4]
push 0
call fcn.0043efe7
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.0040f209
add esp, 0x1c
lea ecx, [ebp - 4]
call fcn.00402b8a
inc dword [ebp - 0xc]
movsx ebx, word [ebp - 0xc]
cmp ebx, dword [ebp - 0x10]
jle 0x449539
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea ecx, [ebp - 0x18]
call fcn.00437884
pop edi
pop esi
pop ebx
leave
ret