Function at 0x1001e99
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push edi
mov dword [ebp - 0x624], edi
mov dword [ebp - 0x634], edi
mov dword [ebp - 0x628], edi
mov dword [ebp - 0x62c], edi
mov dword [ebp - 0x620], edi
mov dword [ebp - 0x630], edi
call dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
cmp eax, edi
jne 0x1001f0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01001391
xor eax, eax
inc eax
jmp 0x100204f
push ebx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp - 0x638]
push ecx
push eax
mov dword [0x100436c], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
cmp dword [ebp + 8], 2
mov dword [0x1004370], eax
mov ebx, 0x100116c
mov edi, 0x104
jle 0x1001f75
push dword [esi + 8]
lea eax, [ebp - 0x414]
push ebx
push edi
push eax
call fcn.01001baa
add esp, 0x10
test eax, eax
jl 0x1002245
lea eax, [ebp - 0x414]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1001f61
sub eax, edx
sar eax, 1
mov dword [ebp - 0x634], eax
xor ecx, ecx
inc ecx
cmp dword [ebp + 8], ecx
jle 0x1001fb9
push dword [esi + 4]
lea eax, [ebp - 0x20c]
push ebx
push edi
push eax
call fcn.01001baa
add esp, 0x10
test eax, eax
jl 0x1002245
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1001fa2
sub eax, edx
sar eax, 1
xor ecx, ecx
mov dword [ebp - 0x624], eax
inc ecx
cmp dword [ebp + 8], 3
je 0x100205d
cmp dword [ebp + 8], 2
jne 0x100200e
mov esi, dword [esi + 4]
cmp byte [esi], 0x2f
jne 0x100200e
mov al, byte [esi + 1]
test al, al
je 0x100200e
cmp byte [esi + 2], 0
jne 0x100200e
cmp al, 0x72
je 0x1002002
cmp al, 0x52
je 0x1002002
cmp al, 0x6e
je 0x1001ffe
cmp al, 0x4e
je 0x1001ffe
cmp al, 0x65
je 0x1001ff6
cmp al, 0x45
jne 0x100200e
push ecx
call fcn.01001660
jmp 0x1002007
push 0
jmp 0x1001ff7
call fcn.010016d6
test eax, eax
jmp 0x100229f
push ecx
call fcn.0100132d
pop ecx
call fcn.01001437
test eax, eax
je 0x1002026
push 2
call fcn.0100132d
pop ecx
push 3
call fcn.0100132d
pop ecx
call fcn.01001437
test eax, eax
je 0x100203f
push 4
call fcn.0100132d
pop ecx
push 5
call fcn.0100132d
pop ecx
call fcn.01001d54
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01002561
leave
ret
mov esi, dword [esi + 8]
cmp byte [esi], 0x2f
jne 0x10020ae
mov al, byte [esi + 1]
test al, al
je 0x10020ae
cmp byte [esi + 2], 0
jne 0x10020ae
cmp al, 0x64
je 0x10020a8
cmp al, 0x44
je 0x10020a8
cmp al, 0x6c
je 0x1002145
cmp al, 0x4c
je 0x1002145
cmp al, 0x70
je 0x10020a2
cmp al, 0x50
je 0x10020a2
cmp al, 0x73
je 0x100209a
cmp al, 0x53
jne 0x10020ae
mov dword [ebp - 0x620], ecx
jmp 0x10020ae
mov dword [ebp - 0x630], ecx
mov dword [ebp - 0x628], ecx
mov eax, dword [ebp - 0x624]
cmp word [ebp + eax*2 - 0x20e], 0x5c
mov esi, 0x100113c
je 0x10020e0
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01001b50
test eax, eax
jl 0x1002245
inc dword [ebp - 0x624]
mov eax, dword [ebp - 0x634]
cmp word [ebp + eax*2 - 0x416], 0x5c
je 0x1002107
push esi
push edi
lea eax, [ebp - 0x414]
push eax
call fcn.01001b50
test eax, eax
jl 0x1002245
xor ebx, ebx
cmp dword [ebp - 0x628], ebx
je 0x1002199
cmp dword [ebp - 0x630], ebx
je 0x1002150
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.010018f5
cmp eax, ebx
jne 0x1002150
cmp dword [ebp - 0x620], ebx
je 0x10022a5
jmp 0x10022b1
mov dword [ebp - 0x62c], ecx
jmp 0x10020ae
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
cmp eax, ebx
jne 0x100204c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10022a5
mov ecx, dword [ebp - 0x624]
xor eax, eax
mov word [ebp + ecx*2 - 0x20e], ax
push ebx
lea eax, [ebp - 0x20c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
jmp 0x100229b
cmp dword [ebp - 0x62c], ebx
je 0x10021d5
push edi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
mov esi, eax
cmp esi, ebx
je 0x10022a5
lea eax, [ebp - 0x414]
push eax
push 7
call fcn.0100132d
pop ecx
pop ecx
jmp 0x100229d
cmp dword [ebp - 0x620], ebx
je 0x1002249
call fcn.01001437
test eax, eax
je 0x1002245
lea edx, [ebp - 0x20c]
call fcn.010013e4
test eax, eax
je 0x1002245
xor eax, eax
mov word [ebp - 0x208], ax
push edi
lea eax, [ebp - 0x61c]
push eax
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov dword [ebp - 0x620], eax
cmp eax, ebx
jne 0x1002276
push 0x5c
pop eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x620]
push eax
call fcn.01001c96
cmp dword [ebp - 0x620], ebx
jne 0x1002245
lea eax, [ebp - 0x20c]
push eax
call fcn.01001e2c
jmp 0x100229b
push 0x57
jmp 0x10022ac
lea edx, [ebp - 0x20c]
call fcn.010013e4
test eax, eax
je 0x1002287
xor eax, eax
mov word [ebp - 0x208], ax
push edi
lea eax, [ebp - 0x61c]
push eax
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, ebx
je 0x100227d
push 0x91
jmp 0x10022ac
push 0x5c
pop eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
mov esi, eax
cmp esi, ebx
jne 0x100204c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01001391
xor eax, eax
inc eax
jmp 0x100204e