Function at 0x10021e84
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x100221d7
cmp byte [ebx], 0
je 0x100221d7
cmp dword [ebp + 8], 0
jne 0x10021ed5
push 0x104
call fcn.1001f4f3
add esp, 4
mov esi, eax
test esi, esi
jne 0x10021ece
mov dword [0x10030a40], 0xc
xor eax, eax
jmp 0x100221e5
mov edi, 0x104
jmp 0x10021ef1
mov edi, dword [ebp + 0x10]
cmp edi, 4
jae 0x10021eee
mov dword [0x10030a40], 0x22
xor eax, eax
jmp 0x100221e5
mov esi, dword [ebp + 8]
lea eax, [edi + esi - 1]
mov cl, byte [ebx + 1]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], eax
cmp cl, 0x5c
je 0x10021f08
cmp cl, 0x2f
jne 0x10021f1a
mov al, byte [ebx]
cmp al, 0x5c
je 0x10021ffb
cmp al, 0x2f
je 0x10021ffb
cmp cl, 0x3a
jne 0x10021f67
movzx eax, byte [ebx]
push eax
call fcn.100264f5
add esp, 4
test eax, eax
je 0x10021f67
mov al, byte [ebx]
add ebx, 2
mov byte [esi], al
and eax, 0x1f
inc esi
push eax
mov dword [ebp - 0x10], eax
mov byte [esi], 0x3a
inc esi
call fcn.100222f2
add esp, 4
test eax, eax
jne 0x10021f6e
mov dword [0x10030a40], 0xd
mov dword [0x10030a44], 0xf
jmp 0x100221c2
mov dword [ebp - 0x10], 0
mov al, byte [ebx]
cmp al, 0x5c
je 0x10021fdb
cmp al, 0x2f
je 0x10021fdb
cmp dword [ebp - 0x10], 0
je 0x10021f84
mov al, byte [ebx - 2]
mov byte [ebp - 4], al
push edi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.100221ff
add esp, 0xc
test eax, eax
je 0x100221c2
mov edi, dword [ebp - 0xc]
mov ecx, 0xffffffff
sub eax, eax
mov edx, dword [ebp - 0xc]
repne scasb al, byte es:[edi]
not ecx
cmp dword [ebp - 0x10], 0
lea esi, [ecx + edx - 1]
je 0x10021fbb
mov al, byte [ebp - 4]
mov byte [edx], al
movzx eax, byte [esi - 2]
test byte [eax + 0x100316a1], 4
jne 0x10021ff0
lea eax, [esi - 1]
mov cl, byte [eax]
cmp cl, 0x5c
je 0x10021fd7
cmp cl, 0x2f
jne 0x10021ff0
mov esi, eax
jmp 0x10021ff0
cmp dword [ebp - 0x10], 0
jne 0x10021fef
call fcn.1001f8a1
add al, 0x40
mov byte [esi], al
inc esi
mov byte [esi], 0x3a
inc esi
inc ebx
mov edi, dword [ebp - 0xc]
mov byte [esi], 0x5c
add edi, 2
jmp 0x10022054
xor ecx, ecx
test al, al
je 0x1002204f
inc ebx
mov byte [esi], al
cmp dword [ebp - 8], esi
jbe 0x100221b8
movzx edx, byte [esi - 2]
test byte [edx + 0x100316a1], 4
jne 0x10022048
cmp al, 0x5c
je 0x10022022
cmp al, 0x2f
jne 0x10022048
inc ecx
mov byte [esi], 0x5c
cmp ecx, 2
jne 0x10022034
cmp byte [ebx], 0
je 0x100220c3
cmp ecx, 3
jl 0x10022043
cmp byte [esi - 1], 0x5c
je 0x100220d2
cmp ecx, 4
je 0x1002204f
inc esi
mov al, byte [ebx]
test al, al
jne 0x10022001
mov edi, esi
mov byte [esi], 0x5c
cmp byte [ebx], 0
je 0x10022175
mov cl, byte [ebx]
cmp cl, 0x2e
jne 0x10022102
cmp byte [ebx + 1], 0x2e
jne 0x100220e1
lea eax, [ebx + 2]
mov dword [ebp - 4], eax
mov al, byte [eax]
cmp al, 0x5c
je 0x10022082
cmp al, 0x2f
je 0x10022082
test al, al
jne 0x100220e1
dec esi
mov al, byte [esi]
cmp al, 0x5c
je 0x1002208d
cmp al, 0x2f
jne 0x1002209c
push esi
push edi
call fcn.100264af
add esp, 8
test eax, eax
je 0x1002209c
dec esi
mov al, byte [esi]
cmp al, 0x5c
je 0x100220aa
cmp al, 0x2f
je 0x100220aa
cmp edi, esi
jb 0x10022082
cmp edi, esi
ja 0x10022194
mov ebx, dword [ebp - 4]
cmp byte [ebx], 0
je 0x10022175
jmp 0x1002216b
mov dword [0x10030a40], 0x16
jmp 0x100221c2
mov dword [0x10030a40], 0x16
jmp 0x100221c2
cmp cl, 0x2e
jne 0x10022102
lea edx, [ebx + 1]
mov al, byte [edx]
cmp al, 0x5c
je 0x100220f7
cmp al, 0x2f
je 0x100220f7
test al, al
jne 0x10022102
mov ebx, edx
test al, al
je 0x1002216c
lea ebx, [edx + 1]
jmp 0x1002216c
mov edx, esi
test cl, cl
je 0x10022144
mov ecx, 4
mov al, byte [ebx]
cmp al, 0x5c
je 0x10022144
cmp al, 0x2f
je 0x10022144
cmp dword [ebp - 8], esi
jbe 0x100221b8
inc esi
inc ebx
mov byte [esi], al
movzx eax, byte [ebx - 1]
test byte [eax + 0x100316a1], cl
je 0x1002213f
mov al, byte [ebx]
test al, al
je 0x100221a0
cmp dword [ebp - 8], esi
jbe 0x100221a0
inc esi
inc ebx
mov byte [esi], al
cmp byte [ebx], 0
jne 0x1002210d
cmp dword [ebp - 8], esi
jbe 0x100221b8
cmp edx, esi
je 0x100221ac
inc esi
mov byte [esi], 0x5c
mov al, byte [ebx]
cmp al, 0x5c
je 0x1002215b
cmp al, 0x2f
jne 0x1002216c
push ebx
push dword [ebp - 0x14]
call fcn.100264af
add esp, 8
test eax, eax
jne 0x1002216c
inc ebx
cmp byte [ebx], 0
jne 0x1002205d
lea eax, [esi - 1]
cmp byte [eax], 0x3a
jne 0x1002218c
push eax
push edi
call fcn.100264af
add esp, 8
test eax, eax
jne 0x1002218c
inc esi
mov eax, dword [ebp - 0xc]
mov byte [esi], 0
jmp 0x100221e5
mov dword [0x10030a40], 0xd
jmp 0x100221c2
mov dword [0x10030a40], 0x16
jmp 0x100221c2
mov dword [0x10030a40], 0x16
jmp 0x100221c2
mov dword [0x10030a40], 0x22
cmp dword [ebp + 8], 0
jne 0x100221d3
push dword [ebp - 0xc]
call fcn.1001f43e
add esp, 4
xor eax, eax
jmp 0x100221e5
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.100221ec
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret