Function at 0x40aeaa
Capabilities:
Get disk information via ioctl
Unmount volume via ioctl

Disassembly:
sub esp, 0x188
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
push ebp
push esi
push edi
mov edi, edx
mov ebx, str.os_lock_file
push edi
push str.path_s_n
push ebx
push 0x48
push str.e:work_netbar_smcli_srcliblibpaloswindows_os_file2.h
push 0x432f04
mov esi, ecx
xor ebp, ebp
push 8
push ebp
mov dword [esp + 0x38], esi
call fcn.0040f171
add esp, 0x20
cmp dword [esi + 0x38], 1
jne 0x40af9f
push edi
push str.__s__FSCTL_LOCK_VOLUME_n
push ebx
push 0x4b
push str.e:work_netbar_smcli_srcliblibpaloswindows_os_file2.h
push 0x432f04
push 8
push ebp
call fcn.0040f171
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea eax, [esp + 0x30]
add esp, 0x20
push ebp
push eax
push ebp
push ebp
push ebp
push ebp
push 0x90018
push dword [esi]
call edi
test eax, eax
jne 0x40b147
push str.DeviceIoControl_FSCTL_LOCK_VOLUME_error:
push ebx
push 0x4f
push str.e:work_netbar_smcli_srcliblibpaloswindows_os_file2.h
push 0x432f04
mov ebx, 0x107
mov dword [esi + 0x38], ebp
push ebx
push ebp
call fcn.0040f171
add esp, 0x1c
lea eax, [esp + 0x10]
push ebp
push eax
push ebp
push ebp
push ebp
push ebp
push 0x90020
push dword [esi]
call edi
test eax, eax
jne 0x40b147
push str.DeviceIoControl_FSCTL_DISMOUNT_VOLUME_error:
push str.os_lock_file
push 0x52
push str.e:work_netbar_smcli_srcliblibpaloswindows_os_file2.h
push 0x432f04
push ebx
push ebp
call fcn.0040f171
add esp, 0x1c
or eax, 0xffffffff
jmp 0x40b150
cmp dword [esi + 0x38], 2
jne 0x40b14e
lea eax, [edi + 0x11]
push eax
call fcn.00418b01
push eax
push str.dn_d_n
push ebx
push 0x5b
push str.e:work_netbar_smcli_srcliblibpaloswindows_os_file2.h
push 0x432f04
push 8
push 0
mov dword [esp + 0x38], eax
call fcn.0040f171
add esp, 0x24
mov ebx, 0x107
xor esi, esi
lea eax, [esi + 0x44]
push eax
lea eax, [esp + 0x8c]
push str.._c:
push eax
call fcn.0040a039
add esp, 0xc
lea eax, [esp + 0x88]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40b0e2
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push eax
push 0xc
lea eax, [esp + 0x28]
push eax
push ecx
push ecx
push 0x2d1080
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40b04d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b0e2
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x20]
jne 0x40b041
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push eax
push ecx
push ecx
push ecx
push ecx
push 0x90018
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40b0dd
lea eax, [esp + 0x88]
push eax
push str.DeviceIoControl___s__FSCTL_LOCK_VOLUME_error:
push str.os_lock_file
push 0x71
push str.e:work_netbar_smcli_srcliblibpaloswindows_os_file2.h
push 0x432f04
push ebx
push 0
call fcn.0040f171
add esp, 0x20
lea eax, [esp + 0x10]
xor ecx, ecx
push ecx
push eax
push ecx
push ecx
push ecx
push ecx
push 0x90020
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40b041
push str.DeviceIoControl_FSCTL_DISMOUNT_VOLUME_error:
push str.os_lock_file
push 0x73
push str.e:work_netbar_smcli_srcliblibpaloswindows_os_file2.h
push 0x432f04
push ebx
push eax
call fcn.0040f171
add esp, 0x1c
jmp 0x40b041
mov dword [esp + ebp*4 + 0x28], edi
inc ebp
inc esi
cmp esi, 0x17
jl 0x40afdc
push 8
pop ecx
call fcn.00408829
push ebp
push str.dc__count_d_n
push str.os_lock_file
push 0x7d
push str.e:work_netbar_smcli_srcliblibpaloswindows_os_file2.h
mov edi, eax
push 0x432f04
push 8
push 0
mov dword [edi], ebp
call fcn.0040f171
mov ecx, dword [edi]
add esp, 0x20
mov esi, dword [esp + 0x18]
test ecx, ecx
je 0x40b144
shl ecx, 2
call fcn.00408829
mov ecx, dword [edi]
shl ecx, 2
push ecx
lea ecx, [esp + 0x2c]
mov dword [edi + 4], eax
push ecx
push eax
call fcn.00410ef0
add esp, 0xc
mov dword [esi + 0x44], edi
mov dword [esi + 0x3c], 1
xor eax, eax
mov ecx, dword [esp + 0x194]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00410199
add esp, 0x188
ret