Function at 0x1001c6d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c8
mov eax, dword [0x100ac2b8]
push ebx
push edi
push ecx
push 0
push 0x400
mov edi, edx
call eax
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x1001c931
push esi
push 0x210
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1001c74c
mov eax, dword [0x100ac270]
lea ecx, [ebp - 4]
push ecx
push 0x210
push esi
push 0x1b
push ebx
call eax
test eax, eax
js 0x1001c745
movzx eax, word [esi]
add eax, 2
push eax
push dword [esi + 4]
lea eax, [ebp - 0x2e0]
push eax
call fcn.100632b0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 4], 0
je 0x1001c8b2
test edi, edi
je 0x1001c8b2
mov eax, dword [0x100ac27c]
lea ecx, [ebp - 0x6c8]
push ecx
push 0x3e8
call eax
test eax, eax
je 0x1001c898
cmp word [ebp - 0x6c8], 0
mov dword [ebp - 4], 0
je 0x1001c898
lea esi, [ebp - 0x6c8]
xor ebx, ebx
mov ecx, 0x1009b1a0
mov eax, esi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001c7c6
test dx, dx
je 0x1001c7c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001c7c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001c7a0
xor eax, eax
jmp 0x1001c7cb
sbb eax, eax
or eax, 1
test eax, eax
je 0x1001c87a
mov ecx, 0x1009b1a8
mov eax, esi
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001c806
test dx, dx
je 0x1001c802
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001c806
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001c7e0
xor eax, eax
jmp 0x1001c80b
sbb eax, eax
or eax, 1
test eax, eax
je 0x1001c87a
movzx eax, word [esi]
mov word [ebp - 0xc], ax
movzx eax, word [ebp + ebx - 0x6c6]
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xd8]
push 0x64
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1001c8b2
lea esi, [ebp - 0xd8]
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1001c850
sub esi, ecx
lea eax, [ebp - 0xd8]
sar esi, 1
push esi
push eax
lea eax, [ebp - 0x2e0]
push eax
call fcn.100709b7
add esp, 0xc
test eax, eax
je 0x1001c8c6
mov edx, dword [ebp - 4]
lea esi, [ebp - 0x6c8]
add edx, 4
mov dword [ebp - 4], edx
lea ebx, [edx + edx]
add esi, ebx
cmp word [esi], 0
jne 0x1001c796
lea edx, [ebp - 0x2e0]
mov eax, edx
sub edi, eax
movzx ecx, word [edx]
lea edx, [edx + 2]
mov word [edi + edx - 2], cx
test cx, cx
jne 0x1001c8a2
push dword [ebp - 0x10]
xor esi, esi
call dword [0x100ac29c]
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0xc]
mov edx, edi
mov eax, ecx
sub edx, eax
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x1001c8d0
lea edx, [ebp - 0x2e0]
lea edx, [edx + esi*2]
mov esi, edx
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1001c8f0
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1001c900
mov ecx, edx
shr ecx, 2
push dword [ebp - 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 1
call dword [0x100ac29c]
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret