Function at 0x1001468
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [0x1002014], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
cmp dword [ebp + 8], 3
mov dword [0x1002018], eax
je 0x10014c3
push 1
call fcn.010011f5
push 3
call fcn.010011f5
push 5
call fcn.010011f5
add esp, 0xc
call fcn.010013a6
xor eax, eax
jmp 0x10016e9
push ebx
push edi
push 1
call esi
mov esi, dword [ebp + 0xc]
push dword [esi + 4]
mov edi, dword [sym.imp.msvcrt.dll_swprintf]
mov ebx, 0x100112c
lea eax, [ebp - 0x218]
push ebx
push eax
call edi
push dword [esi + 8]
lea eax, [ebp - 0x420]
push ebx
push eax
call edi
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp - 0x218]
push eax
call edi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x420]
push eax
call edi
mov esi, dword [esi + 8]
add esp, 0x20
cmp byte [esi], 0x2f
mov dword [ebp - 0xc], eax
jne 0x1001558
mov al, byte [esi + 1]
test al, al
je 0x1001558
cmp byte [esi + 2], 0
jne 0x1001558
cmp al, 0x64
je 0x1001550
cmp al, 0x44
je 0x1001550
cmp al, 0x6c
je 0x100154a
cmp al, 0x4c
je 0x100154a
cmp al, 0x73
je 0x100153f
cmp al, 0x53
jne 0x1001558
xor bl, bl
and byte [ebp + 0xb], bl
mov byte [ebp - 1], 1
jmp 0x1001562
mov byte [ebp + 0xb], 1
jmp 0x100155c
and byte [ebp + 0xb], 0
mov bl, 1
jmp 0x100155e
and byte [ebp + 0xb], 0
xor bl, bl
and byte [ebp - 1], 0
mov eax, dword [ebp - 8]
cmp word [ebp + eax*2 - 0x21a], 0x5c
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
mov edi, 0x1001128
je 0x100158a
lea eax, [ebp - 0x218]
push edi
push eax
call esi
inc dword [ebp - 8]
pop ecx
pop ecx
mov eax, dword [ebp - 0xc]
cmp word [ebp + eax*2 - 0x422], 0x5c
je 0x10015a4
lea eax, [ebp - 0x420]
push edi
push eax
call esi
pop ecx
pop ecx
test bl, bl
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0x104
je 0x10015f5
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
test eax, eax
jne 0x10016e5
call ebx
cmp eax, 0x57
jne 0x10016d4
mov eax, dword [ebp - 8]
and word [ebp + eax*2 - 0x21a], 0
push 0
lea eax, [ebp - 0x218]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
jmp 0x10016ce
cmp byte [ebp + 0xb], 0
je 0x100162f
push esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
mov edi, eax
test edi, edi
je 0x10016d4
lea eax, [ebp - 0x420]
push eax
push 7
call fcn.010011f5
pop ecx
pop ecx
jmp 0x10016d0
cmp byte [ebp - 1], 0
je 0x1001646
lea eax, [ebp - 0x218]
push eax
call fcn.01001422
jmp 0x10016ce
cmp word [ebp - 0x216], 0x3a
jne 0x10016ba
cmp word [ebp - 0x214], 0x5c
jne 0x10016ba
xor edi, edi
cmp word [ebp - 0x212], di
jne 0x10016ba
push esi
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push eax
mov word [ebp - 0x214], di
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x10016b1
push edi
push esi
lea eax, [ebp - 0x628]
push eax
push edi
push 0x91
push edi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
lea eax, [ebp - 0x628]
push eax
call fcn.01001170
xor eax, eax
inc eax
jmp 0x10016e7
mov word [ebp - 0x214], 0x5c
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
mov edi, eax
test edi, edi
jne 0x10016e5
xor edi, edi
push edi
push esi
lea eax, [ebp - 0x628]
push eax
push edi
call ebx
push eax
jmp 0x1001694
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret