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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
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 0x44219d
test cl, 8
je 0x44219d
and dword [ebp + 0x10], 0xfffffff7
mov dword [ebp - 0x14], 8
cmp dword [ebp + 0xc], eax
mov dword [ebp - 0xc], eax
jne 0x4421b8
push 0x100000
lea ecx, [ebp - 0xc]
call fcn.00432b85
mov eax, dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
push 5
pop ecx
xor eax, eax
mov esi, 0x4953cc
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x38]
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, 4
pop edx
and word [eax + 4], 0
or ecx, 0xffffffff
mov word [eax + 2], cx
mov word [eax], cx
mov word [eax - 4], cx
mov word [eax - 2], cx
add eax, 0xa
dec edx
jne 0x4421d8
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
cmp bx, 0x61
mov dword [ebp - 0x20], eax
jb 0x442210
cmp bx, 0x7a
ja 0x442210
add ebx, 0xffe0
xor edi, edi
xor eax, eax
cmp bx, 0x41
mov dword [ebp - 0x10], 0x19
jb 0x442230
cmp bx, 0x5a
ja 0x442230
movzx eax, bx
sub eax, 0x41
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
movsx esi, ax
jmp 0x44245c
xor eax, eax
inc eax
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x20]
test ecx, eax
je 0x442455
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
add eax, 0x41
lea ecx, [esi + esi*4]
lea ebx, [edx + ecx*2]
mov word [ebp - 0x44], ax
mov word [ebx + 8], ax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
mov dword [ebp - 0x18], eax
je 0x44229c
cmp eax, 2
je 0x44229c
xor dl, dl
or word [ebx + 8], 0xc000
mov word [ebx], di
cmp eax, 1
je 0x442455
mov ecx, dword [ebp + 0x10]
cmp ecx, 8
jne 0x4422a0
cmp eax, 5
jmp 0x4422f8
mov dl, 1
jmp 0x442286
cmp ecx, 0x10
jne 0x4422b0
cmp eax, 2
jne 0x442455
jmp 0x4422d0
cmp ecx, 4
je 0x4422cb
test dl, dl
jne 0x4422cb
cmp dword [ebp - 0x14], edi
je 0x442455
cmp eax, 5
jne 0x442455
cmp eax, 2
jne 0x4422fe
cmp word [ebp - 8], 1
jg 0x4422fe
lea eax, [esi*4 + 0x4a620c]
cmp dword [eax], edi
je 0x4422fe
cmp ecx, 0x10
movsx eax, word [eax]
jne 0x4422f5
cmp eax, 0xb
je 0x442455
jmp 0x4422fe
cmp eax, 0xb
jne 0x442455
push edi
push 0x20000000
push 3
push edi
push 3
push 0x80000000
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 4], edi
call fcn.004041da
cmp dword [ebp - 4], edi
je 0x44244d
cmp dword [ebp - 0x18], 2
jne 0x442354
push esi
push 1
push edi
push dword [ebp - 4]
call fcn.00437400
add esp, 0x10
cmp dword [ebp + 0x10], 0x10
jne 0x44234b
cmp eax, 0xb
jne 0x442354
jmp 0x44244d
cmp eax, 0xb
jne 0x44244d
mov esi, dword [ebp + 0xc]
push 0x90
push edi
push esi
mov dword [ebp - 0x204], edi
call fcn.00479cf0
or dword [esi + 0x18], 0xffffffff
add esp, 0xc
push edi
lea eax, [ebp - 0x204]
push eax
push 0x90
push esi
push edi
push edi
push 0x70048
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp dword [ebp + 0x10], 0x10
jne 0x4423a2
cmp eax, edi
je 0x4423a2
cmp word [esi + 0x18], di
jge 0x44244d
cmp eax, edi
mov cx, word [ebx]
mov word [ebp - 0x1c], cx
je 0x4423b5
mov ax, word [esi + 0x18]
mov word [ebp - 0x1c], ax
push edi
mov dword [ebp - 0x204], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [esi + 4], 0xffffffff
push edi
lea eax, [ebp - 0x204]
push eax
push 0xc
push esi
push edi
push edi
push 0x2d1080
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x24], eax
je 0x44241c
cmp dword [ebp - 0x18], 5
jne 0x44241c
cmp eax, edi
je 0x44244d
push 0x48f708
push edi
lea eax, [ebp - 0x74]
push eax
movzx eax, word [esi + 4]
push eax
mov word [ebp - 0x74], di
call fcn.00436d81
add esp, 0x10
cmp word [ebp - 0x74], di
je 0x44244d
mov ax, word [ebp - 0x44]
mov word [ebx + 8], ax
cmp dword [ebp - 0x24], edi
mov ax, word [ebp - 0x1c]
mov word [ebx], ax
je 0x442430
mov ax, word [esi + 4]
mov word [ebx + 2], ax
cmp dword [ebp + 0x10], 4
jne 0x442445
push dword [ebp - 4]
push edi
call fcn.004347a9
pop ecx
pop ecx
mov word [ebx + 6], ax
mov ax, word [ebp - 0x18]
mov word [ebx + 4], ax
lea ecx, [ebp - 4]
call fcn.00402ad9
inc dword [ebp - 8]
movsx esi, word [ebp - 8]
cmp esi, dword [ebp - 0x10]
jle 0x44223b
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0xc]
call fcn.0042dd2d
pop edi
pop esi
pop ebx
leave
ret