Function at 0x10017960
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10131b96
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x101ba518]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x94], edx
mov ebx, ecx
push 0x400
lea ecx, [ebp - 0x84]
call fcn.10014df0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x84]
mov esi, dword [ebp - 0x80]
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
sub esi, eax
push eax
sar esi, 1
push esi
call edi
cmp eax, esi
jbe 0x100179e7
push eax
lea ecx, [ebp - 0x84]
call fcn.10018960
mov eax, dword [ebp - 0x80]
mov esi, dword [ebp - 0x84]
sub eax, esi
sar eax, 1
push esi
push eax
call edi
jmp 0x100179ed
mov esi, dword [ebp - 0x84]
test eax, eax
jne 0x100179f8
xor bl, bl
jmp 0x10017c69
mov eax, dword [0x10172234]
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x18], eax
mov ax, word [0x10172238]
push 0x400
mov word [ebp - 0x14], ax
call fcn.10014df0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x84]
mov edi, dword [ebp - 0x90]
cmp word [eax], 0
je 0x10017c38
mov ecx, dword [ebp - 0x8c]
sub ecx, edi
sar ecx, 1
mov dword [ebp - 0x98], ecx
mov ax, word [esi]
push ecx
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x18]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x10017b00
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
cmp word [edi], ax
jne 0x10017a8a
xor ecx, ecx
jmp 0x10017a9f
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10017a90
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x30]
call fcn.10009290
mov byte [ebp - 4], 2
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
cmovae eax, dword [ebp - 0x30]
cmp dword [ebx + 0x14], 8
jb 0x10017ac2
mov ecx, dword [ebx]
jmp 0x10017ac4
mov ecx, ebx
push dword [ebp - 0x20]
push eax
push ecx
call fcn.10115dcc
add esp, 0xc
test eax, eax
je 0x10017b21
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 8
jb 0x10017aea
push dword [ebp - 0x30]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
mov edi, edi
add esi, 2
cmp word [esi], 0
jne 0x10017b00
add esi, 2
cmp word [esi], 0
je 0x10017c38
mov ecx, dword [ebp - 0x98]
jmp 0x10017a44
push 0xffffffffffffffff
push dword [ebp - 0x20]
lea eax, [ebp - 0x48]
mov ecx, ebx
push eax
call fcn.10018810
mov esi, eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x60]
call fcn.100062a0
mov byte [ebp - 4], 4
mov edx, eax
push esi
lea ecx, [ebp - 0x78]
call fcn.100194d0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 5
mov ebx, dword [ebp - 0x94]
cmp ebx, esi
je 0x10017b90
cmp dword [ebx + 0x14], 8
jb 0x10017b75
push dword [ebx]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov ecx, ebx
push esi
mov word [ebx], ax
call fcn.10008f20
mov byte [ebp - 4], 4
cmp dword [ebp - 0x64], 8
jb 0x10017ba5
push dword [ebp - 0x78]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [ebp - 0x64], 7
mov dword [ebp - 0x68], 0
mov word [ebp - 0x78], ax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x4c], 8
jb 0x10017bce
push dword [ebp - 0x60]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [ebp - 0x4c], 7
mov dword [ebp - 0x50], 0
mov word [ebp - 0x60], ax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], 8
jb 0x10017bf7
push dword [ebp - 0x48]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 8
jb 0x10017c20
push dword [ebp - 0x30]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov bl, 1
mov word [ebp - 0x30], ax
jmp 0x10017c3a
xor bl, bl
mov byte [ebp - 4], 0
test edi, edi
je 0x10017c69
push edi
call fcn.10115284
add esp, 4
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x10017c9b
push eax
call fcn.10115284
add esp, 4
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10115289
mov esp, ebp
pop ebp
ret