Function at 0x101f708
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
push 0x1004078
mov edi, ecx
xor esi, esi
call fcn.0101d677
test al, al
je 0x101fa4f
mov eax, dword [edi + 0x28]
xor ecx, ecx
cmp eax, esi
je 0x101f737
cmp word [eax], si
setne cl
test cl, cl
je 0x101fa4f
push ebx
push eax
call fcn.0103e10a
mov ebx, eax
test ebx, ebx
je 0x101f89a
push 0x100440c
push ebx
call fcn.01019366
test al, al
jne 0x101f772
push 0x1004404
push ebx
call fcn.01019366
test al, al
je 0x101f89a
lea ecx, [ebp - 0x14]
call fcn.01019631
mov eax, dword [edi + 0x28]
movzx ebx, word [eax]
cmp bx, 0x5c
jne 0x101f789
push 0x42
pop ebx
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.0101d43c
mov esi, eax
test esi, esi
jl 0x101f892
push 0x100203c
mov ecx, edi
call fcn.0101f042
mov esi, eax
test esi, esi
jl 0x101f892
lea ecx, [ebp - 0x2c]
call fcn.01019631
lea eax, [ebp - 0x2c]
push eax
push 0
mov ecx, edi
call fcn.0101ef8b
mov esi, eax
test esi, esi
jl 0x101f88a
push 4
push 0x10043f8
lea ecx, [ebp - 0x14]
or esi, 0xffffffff
call fcn.0101998a
test eax, eax
jne 0x101f82a
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 8]
push eax
call dword [sym.imp.msvcrt.dll_iswdigit]
test eax, eax
pop ecx
je 0x101f82a
lea ecx, [ebp - 0x38]
call fcn.01019631
mov eax, dword [ebp - 0x14]
add eax, 8
push esi
push eax
lea ecx, [ebp - 0x38]
call fcn.01019f85
test eax, eax
jl 0x101f822
lea ecx, [ebp - 0x38]
call fcn.01019a9c
mov esi, eax
lea ecx, [ebp - 0x38]
call fcn.01019f33
lea ecx, [ebp - 0x20]
call fcn.01019631
cmp esi, 0xffffffff
push dword [ebp - 0x2c]
movzx eax, bx
je 0x101f857
push esi
push eax
push 0x10040cc
lea eax, [ebp - 0x20]
push 0x10043c4
push eax
call fcn.0101a365
add esp, 0x18
jmp 0x101f86e
push eax
push 0x10040cc
lea eax, [ebp - 0x20]
push 0x1004398
push eax
call fcn.0101a365
add esp, 0x14
mov esi, eax
test esi, esi
jl 0x101f882
push dword [ebp - 0x20]
mov ecx, edi
push 1
call fcn.0101f5c6
mov esi, eax
lea ecx, [ebp - 0x20]
call fcn.01019f33
lea ecx, [ebp - 0x2c]
call fcn.01019f33
lea ecx, [ebp - 0x14]
jmp 0x101fa49
mov ecx, edi
call fcn.0101e178
cmp eax, 4
jne 0x101f9d4
push dword [edi + 0x28]
call fcn.0103d6f1
test al, al
je 0x101f9d4
lea ecx, [ebp - 0x20]
call fcn.01019631
lea ecx, [ebp - 0x14]
call fcn.01019631
mov eax, dword [edi + 0x28]
push 2
push eax
lea ecx, [ebp - 0x20]
call fcn.01019f85
mov esi, eax
test esi, esi
jl 0x101f9c7
mov ebx, 0x104
push ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.01019f3d
mov esi, eax
test esi, esi
jl 0x101f9c7
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call sub.MPR.dll_WNetGetConnectionW
cmp eax, 0xea
jne 0x101f939
push dword [ebp - 4]
lea ecx, [ebp - 0x14]
call fcn.01019f3d
mov esi, eax
test esi, esi
jl 0x101f9c7
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call sub.MPR.dll_WNetGetConnectionW
jmp 0x101f95e
test eax, eax
je 0x101f9a0
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 4], ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x101f96e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x101f960
push 0x57
pop eax
test eax, eax
jle 0x101f997
and eax, 0xffff
or eax, 0x80070000
jmp 0x101f997
push 0x1004388
lea ecx, [ebp - 0x14]
call fcn.010197f7
test eax, eax
jne 0x101f99b
mov eax, dword [ebp - 0x14]
add eax, 0xe
push eax
lea eax, [ebp - 0x14]
push 0x1004380
push eax
call fcn.0101a365
add esp, 0xc
mov esi, eax
jmp 0x101f9a0
mov esi, 0xc00d1327
test esi, esi
jl 0x101f9c7
mov eax, dword [edi + 0x28]
add eax, 4
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x14]
call fcn.0101a1b9
mov esi, eax
test esi, esi
jl 0x101f9c7
push dword [ebp - 0x14]
mov ecx, edi
call fcn.0101e3e7
mov esi, eax
lea ecx, [ebp - 0x14]
call fcn.01019f33
lea ecx, [ebp - 0x20]
test ebx, ebx
je 0x101fa4e
push 0x1004378
push ebx
call fcn.01019366
test al, al
je 0x101fa4e
mov eax, dword [edi + 0x28]
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
mov ecx, edi
call fcn.0101d159
mov esi, eax
test esi, esi
jl 0x101fa4e
push 0xffffffffffffffff
push 0x10040a4
lea ecx, [edi + 0x1c]
call fcn.01019f85
mov esi, eax
test esi, esi
jl 0x101fa4e
lea ecx, [ebp - 0x38]
call fcn.01019631
push dword [ebp - 4]
lea eax, [ebp - 0x38]
push dword [ebp - 8]
push 0x100436c
push eax
call fcn.0101a365
mov esi, eax
add esp, 0x10
test esi, esi
jl 0x101fa46
push dword [ebp - 0x38]
mov ecx, edi
call fcn.0101e3e7
mov esi, eax
lea ecx, [ebp - 0x38]