Function at 0x100416f10
Capabilities:
Get disk information

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rdx, [0x1004397d0]
lea rcx, str._etc_mtab
call sub.msys_2.0.dll_setmntent
mov r12, rax
test rax, rax
je 0x1004172a7
mov rcx, r12
lea rdi, [rsp + 0x20]
lea r13, str.autofs
call sub.msys_2.0.dll_getmntent
lea r14, str.proc
mov rbx, rax
test rax, rax
je 0x1004170b2
nop word cs:[rax + rax]
mov ecx, 0x30
mov ebp, 1
call fcn.10042b0c0
mov rcx, qword [rbx]
mov r15, rax
call fcn.10042b550
mov rcx, qword [rbx + 8]
mov qword [r15], rax
call fcn.10042b550
mov qword [r15 + 0x10], 0
mov rcx, qword [rbx + 0x10]
mov qword [r15 + 8], rax
call fcn.10042b550
or byte [r15 + 0x24], 4
mov rdx, r13
mov qword [r15 + 0x18], rax
mov rcx, rax
mov rsi, rax
call sub.msys_2.0.dll_strcmp
test eax, eax
je 0x100417000
mov rdx, r14
mov rcx, rsi
call sub.msys_2.0.dll_strcmp
test eax, eax
je 0x100417000
lea rdx, str.subfs
mov rcx, rsi
call sub.msys_2.0.dll_strcmp
test eax, eax
je 0x100417000
lea rdx, str.debugfs
mov rcx, rsi
call sub.msys_2.0.dll_strcmp
test eax, eax
jne 0x100417130
nop
movzx eax, byte [r15 + 0x24]
and eax, 0xfffffffe
or eax, ebp
mov byte [r15 + 0x24], al
mov rax, qword [r15]
movsx r8d, byte [rax]
test r8b, r8b
jne 0x1004170f0
mov edx, 1
movzx eax, byte [r15 + 0x24]
add edx, edx
and eax, 0xfffffffd
or eax, edx
lea rdx, str._dev
mov byte [r15 + 0x24], al
mov rcx, qword [rbx + 0x18]
call sub.msys_2.0.dll_strstr
test rax, rax
je 0x1004170e8
lea rbx, [rax + 5]
call sub.msys_2.0.dll___errno
lea rdx, [rsp + 0x28]
mov r8d, 0x10
mov rcx, rbx
mov dword [rax], 0
call sub.msys_2.0.dll_strtoul
mov rdx, qword [rsp + 0x28]
cmp rbx, rdx
je 0x1004170e8
movzx edx, byte [rdx]
test dl, dl
je 0x100417084
cmp dl, 0x2c
jne 0x1004170e8
cmp rax, 0xffffffffffffffff
je 0x1004170e0
mov rsi, rax
shr rsi, 0x20
jne 0x1004170e8
mov dword [r15 + 0x20], eax
mov rcx, r12
mov qword [rdi], r15
lea rdi, [r15 + 0x28]
call sub.msys_2.0.dll_getmntent
mov rbx, rax
test rax, rax
jne 0x100416f70
mov rcx, r12
call sub.msys_2.0.dll_endmntent
test eax, eax
je 0x100417238
mov qword [rdi], 0
mov rax, qword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call sub.msys_2.0.dll___errno
nop dword [rax]
mov eax, 0xffffffff
jmp 0x100417093
cmp byte [rax + 1], 0x3a
jne 0x10041701e
lea rsi, [rsp + 0x28]
lea rdx, str._c:_
mov rcx, rsi
call sub.msys_2.0.dll_sprintf
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
ja 0x100417220
cmp eax, 1
jbe 0x10041701e
xor edx, edx
jmp 0x100417023
lea rdx, str.devpts
mov rcx, rsi
call sub.msys_2.0.dll_strcmp
test eax, eax
je 0x100417000
lea rdx, str.fusectl
mov rcx, rsi
call sub.msys_2.0.dll_strcmp
test eax, eax
je 0x100417000
lea rdx, str.fuse.portal
mov rcx, rsi
call sub.msys_2.0.dll_strcmp
test eax, eax
je 0x100417000
lea rdx, str.mqueue
mov rcx, rsi
call sub.msys_2.0.dll_strcmp
test eax, eax
je 0x100417000
lea rdx, str.rpc_pipefs
mov rcx, rsi
call sub.msys_2.0.dll_strcmp
test eax, eax
je 0x100417000
lea rdx, str.sysfs
mov rcx, rsi
call sub.msys_2.0.dll_strcmp
test eax, eax
je 0x100417000
lea rdx, str.devfs
mov rcx, rsi
call sub.msys_2.0.dll_strcmp
test eax, eax
je 0x100417000
lea rdx, str.kernfs
mov rcx, rsi
call sub.msys_2.0.dll_strcmp
test eax, eax
je 0x100417000
lea rdx, str.ignore
mov rcx, rsi
call sub.msys_2.0.dll_strcmp
test eax, eax
je 0x100417000
lea rdx, str.none
mov rcx, rsi
call sub.msys_2.0.dll_strcmp
test eax, eax
sete bpl
jmp 0x100417000
sub eax, 5
cmp eax, 1
ja 0x10041701e
xor edx, edx
jmp 0x100417023
call sub.msys_2.0.dll___errno
mov ebp, dword [rax]
mov qword [rdi], 0
mov rsi, qword [rsp + 0x20]
test rsi, rsi
jne 0x10041726a
jmp 0x1004172a0
mov rcx, rbx
call fcn.100410780
mov qword [rsp + 0x20], rsi
test rsi, rsi
je 0x1004172a0
mov rbx, rsi
mov rsi, qword [rsi + 0x28]
mov rcx, qword [rbx]
call fcn.100410780
mov rcx, qword [rbx + 8]
call fcn.100410780
mov rcx, qword [rbx + 0x10]
call fcn.100410780
test byte [rbx + 0x24], 4
je 0x100417258
mov rcx, qword [rbx + 0x18]
call fcn.100410780
jmp 0x100417258
call sub.msys_2.0.dll___errno
mov dword [rax], ebp
xor eax, eax
jmp 0x1004170ce