Function at 0x1001d4a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c8
mov eax, dword [0x100b1330]
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 0x1001d701
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 0x1001d51c
mov eax, dword [0x100b12e8]
lea ecx, [ebp - 4]
push ecx
push 0x210
push esi
push 0x1b
push ebx
call eax
test eax, eax
js 0x1001d515
movzx eax, word [esi]
add eax, 2
push eax
push dword [esi + 4]
lea eax, [ebp - 0x2e0]
push eax
call fcn.10066560
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 4], 0
je 0x1001d682
test edi, edi
je 0x1001d682
mov eax, dword [0x100b12f4]
lea ecx, [ebp - 0x6c8]
push ecx
push 0x3e8
call eax
test eax, eax
je 0x1001d668
cmp word [ebp - 0x6c8], 0
mov dword [ebp - 4], 0
je 0x1001d668
lea esi, [ebp - 0x6c8]
xor ebx, ebx
mov ecx, 0x1009f190
mov eax, esi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001d596
test dx, dx
je 0x1001d592
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001d596
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001d570
xor eax, eax
jmp 0x1001d59b
sbb eax, eax
or eax, 1
test eax, eax
je 0x1001d64a
mov ecx, 0x1009f198
mov eax, esi
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001d5d6
test dx, dx
je 0x1001d5d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001d5d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001d5b0
xor eax, eax
jmp 0x1001d5db
sbb eax, eax
or eax, 1
test eax, eax
je 0x1001d64a
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 0x1001d682
lea esi, [ebp - 0xd8]
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1001d620
sub esi, ecx
lea eax, [ebp - 0xd8]
sar esi, 1
push esi
push eax
lea eax, [ebp - 0x2e0]
push eax
call fcn.10073c67
add esp, 0xc
test eax, eax
je 0x1001d696
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 0x1001d566
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 0x1001d672
push dword [ebp - 0x10]
xor esi, esi
call dword [0x100b1314]
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 0x1001d6a0
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 0x1001d6c0
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1001d6d0
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 [0x100b1314]
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