Function at 0x100021a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x10069008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov di, dx
mov dword [ebp - 0x10], eax
mov esi, ecx
mov dword [ebp - 0x5c], esi
cmp di, 2
je 0x100021ea
cmp di, 3
je 0x100021ea
cmp di, 4
je 0x100021e3
cmp di, 5
je 0x100021e3
mov edx, 0x30
jmp 0x10002249
mov edx, 8
jmp 0x10002249
mov edx, dword [0x1006bb18]
mov ecx, edx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x10002214
nop dword [eax + eax]
cmp dword [eax + 0x10], ebx
jae 0x1000220a
mov eax, dword [eax + 8]
jmp 0x1000220e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x10002200
cmp byte [ecx + 0xd], 0
jne 0x1000221f
cmp ebx, dword [ecx + 0x10]
jae 0x10002221
mov ecx, edx
cmp ecx, edx
je 0x10002244
mov ecx, dword [ecx + 0x14]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002230
sub ecx, edx
sar ecx, 1
lea edx, [ecx + ecx]
jmp 0x10002249
mov edx, 0x4a
mov ecx, esi
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002250
sub ecx, esi
sar ecx, 1
add ecx, 0x10
lea eax, [edx + ecx*2]
push eax
mov dword [ebp - 0x58], eax
call fcn.10015565
mov ecx, dword [ebp - 0x10]
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x58]
push eax
push 0
push esi
mov dword [ecx], eax
call fcn.1002caf0
mov cx, word [ebp + 8]
add esp, 0xc
mov word [esi], di
mov word [esi + 2], cx
cmp di, 2
je 0x10002393
cmp di, 3
je 0x10002393
cmp di, 4
je 0x1000234a
cmp di, 5
je 0x1000234a
push 0x40
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.1002caf0
mov ebx, dword [ebp - 0x5c]
add esp, 0xc
movzx eax, word [ebx]
push eax
call fcn.1002f9d1
mov word [ebp - 0x10], ax
add esp, 4
mov ax, word [ebx + 2]
mov word [ebp - 0xe], ax
xor eax, eax
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x54]
push 0x20
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1000231c
lea eax, [ebx + 4]
push eax
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x58]
push 0x10061948
add eax, 0xfffffff8
push 0xffffffffffffffff
shr eax, 1
push eax
jmp 0x100023e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x66
push str.ConvertNtPathToDosPath
push str.__s__d_:__DLL__path_error___d_n
call fcn.10013380
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10015557
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x5c]
mov ecx, ebx
mov dword [esi + 8], 0x3f005c
mov dword [esi + 0xc], 0x5c003f
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002360
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [esi + 0x10]
push ebx
push eax
call fcn.1002cd60
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10015557
mov esp, ebp
pop ebp
ret
mov edx, dword [0x1006bb18]
mov ecx, edx
mov edi, dword [ebp - 0x58]
mov eax, dword [edx + 4]
lea edi, [edi - 8]
shr edi, 1
cmp byte [eax + 0xd], 0
jne 0x100023c4
nop dword [eax]
cmp dword [eax + 0x10], ebx
jae 0x100023ba
mov eax, dword [eax + 8]
jmp 0x100023be
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x100023b0
cmp byte [ecx + 0xd], 0
jne 0x100023ee
cmp ebx, dword [ecx + 0x10]
jb 0x100023ee
cmp ecx, edx
je 0x100023ee
mov ebx, dword [ebp - 0x5c]
push ebx
push dword [ecx + 0x14]
push str._s_s
push 0xffffffffffffffff
push edi
lea eax, [esi + 8]
push eax
call fcn.10002fd0
add esp, 0x18
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10015557
mov esp, ebp
pop ebp
ret