Function at 0x447808
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 0x447841
test cl, 8
je 0x447841
and dword [ebp + 0x10], 0xfffffff7
mov dword [ebp - 0x14], 8
cmp dword [ebp + 0xc], eax
mov dword [ebp - 0x18], eax
jne 0x44785c
push 0x200
lea ecx, [ebp - 0x18]
call fcn.00437099
mov eax, dword [ebp - 0x18]
mov dword [ebp + 0xc], eax
push 5
pop ecx
xor eax, eax
mov esi, 0x49ee54
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 0x44787c
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
cmp bx, 0x61
mov dword [ebp - 0x28], eax
jb 0x4478b2
cmp bx, 0x7a
ja 0x4478b2
add ebx, 0xffe0
xor eax, eax
cmp bx, 0x41
mov dword [ebp - 0x10], 0x19
jb 0x4478d0
cmp bx, 0x5a
ja 0x4478d0
movzx eax, bx
sub eax, 0x41
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
movsx ebx, ax
jmp 0x447b30
xor eax, eax
inc eax
mov ecx, ebx
shl eax, cl
mov ecx, dword [ebp - 0x28]
test ecx, eax
je 0x447b29
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 0x447943
cmp edi, 2
je 0x447943
and dword [esi], 0
xor al, al
or byte [esi + 0x11], 0xc0
cmp edi, 1
je 0x447b29
mov ecx, dword [ebp + 0x10]
cmp ecx, 8
je 0x44795a
cmp ecx, 0x10
jne 0x447947
cmp edi, 2
jmp 0x44795d
mov al, 1
jmp 0x447928
cmp ecx, 4
je 0x447963
test al, al
jne 0x447963
cmp dword [ebp - 0x14], 0
je 0x447b29
cmp edi, 5
jne 0x447b29
or dword [ebp - 8], 0xffffffff
cmp edi, 2
jne 0x4479a7
cmp word [ebp - 0xc], 1
jg 0x4479a7
lea eax, [ebx*4 + 0x4b0238]
cmp dword [eax], 0
je 0x4479a7
cmp ecx, 0x10
movsx eax, word [eax]
mov dword [ebp - 8], eax
jne 0x447993
cmp eax, 0xb
je 0x447b29
cmp ecx, 4
je 0x4479a7
cmp ecx, 0x10
je 0x4479a7
cmp dword [ebp - 8], 0xb
jne 0x447b29
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.00404863
xor eax, eax
cmp dword [ebp - 4], eax
je 0x447b21
cmp dword [ebp - 8], eax
jge 0x4479ea
push ebx
push 1
push eax
push dword [ebp - 4]
call fcn.0043beaa
add esp, 0x10
mov dword [ebp - 8], eax
cmp edi, 2
jne 0x447a10
cmp dword [ebp + 0x10], 0x10
jne 0x447a00
cmp dword [ebp - 8], 0xb
jne 0x447a10
jmp 0x447b21
cmp dword [ebp + 0x10], 4
je 0x447a10
cmp dword [ebp - 8], 0xb
jne 0x447b21
mov ebx, dword [ebp + 0xc]
and dword [ebp - 0x208], 0
mov edi, 0x90
push edi
push 0
push ebx
call fcn.004832e0
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 0x447a60
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 0x447acf
cmp dword [ebp - 0x24], 5
jne 0x447acf
cmp dword [ebp - 0x20], edi
je 0x447b21
push 0x4989a8
push edi
lea eax, [ebp - 0x78]
push eax
movzx eax, word [ebx + 4]
push eax
mov word [ebp - 0x78], di
call fcn.0043b817
add esp, 0x10
cmp word [ebp - 0x78], di
je 0x447b21
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 0x447ae2
movsx eax, word [ebx + 4]
mov dword [esi + 4], eax
cmp dword [ebp + 0x10], 4
jne 0x447af7
push dword [ebp - 4]
push 0
call fcn.00438c9f
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 0x49edf8
push 0x4aff28
call fcn.0040d391
add esp, 0x1c
lea ecx, [ebp - 4]
call fcn.00402b75
inc dword [ebp - 0xc]
movsx ebx, word [ebp - 0xc]
cmp ebx, dword [ebp - 0x10]
jle 0x4478db
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x18]
call fcn.00431c4c
pop edi
pop esi
pop ebx
leave
ret