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

Disassembly:
sub esp, 0x194
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x190], eax
push ebx
push ebp
push esi
push edi
mov edi, edx
xor ebx, ebx
push edi
push str.path_s_n
push str.os_lock_file
push 0x48
push str.E:work_netbar_smcli_srcliblibpaloswindows_os_file2.h
push 0x5a9534
mov esi, ecx
mov ebp, ebx
push 8
push ebx
mov dword [esp + 0x38], esi
call fcn.004e8a0a
add esp, 0x20
cmp dword [esi + 0x38], 1
jne 0x4f597e
push edi
push str.__s__FSCTL_LOCK_VOLUME_n
mov ebp, str.os_lock_file
push ebp
push 0x4b
push str.E:work_netbar_smcli_srcliblibpaloswindows_os_file2.h
push 0x5a9534
push 8
push ebx
call fcn.004e8a0a
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea eax, [esp + 0x30]
add esp, 0x20
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push 0x90018
push dword [esi]
call edi
test eax, eax
jne 0x4f5b40
push str.DeviceIoControl_FSCTL_LOCK_VOLUME_error:
push ebp
push 0x4f
push str.E:work_netbar_smcli_srcliblibpaloswindows_os_file2.h
mov dword [esi + 0x38], ebx
xor ebp, ebp
push 0x5a9534
mov ebx, 0x107
push ebx
push ebp
call fcn.004e8a0a
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 0x4f5b40
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 0x5a9534
push ebx
push ebp
call fcn.004e8a0a
add esp, 0x1c
or eax, 0xffffffff
jmp 0x4f5b49
cmp dword [esi + 0x38], 2
jne 0x4f5b47
lea eax, [edi + 0x11]
mov dword [esp + 0x1c], 0xc
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call fcn.00527fa0
pop ecx
push eax
push str.dn_d_n
push str.os_lock_file
push 0x61
push str.E:work_netbar_smcli_srcliblibpaloswindows_os_file2.h
push 0x5a9534
push 8
push ebx
mov dword [esp + 0x34], eax
call fcn.004e8a0a
mov esi, ebx
add esp, 0x20
mov ebx, 0x107
lea eax, [esi + 0x44]
push eax
lea eax, [esp + 0x98]
push str.._c:
push eax
call fcn.0041ffbd
add esp, 0xc
lea eax, [esp + 0x1c]
push 0
push 0x80
push 3
push eax
push 3
push 0xc0000000
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4f5ad8
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push eax
push 0xc
lea eax, [esp + 0x34]
push eax
push ecx
push ecx
push 0x2d1080
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4f5a43
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4f5ad8
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x2c]
jne 0x4f5a37
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 0x4f5ad3
lea eax, [esp + 0x94]
push eax
push str.DeviceIoControl___s__FSCTL_LOCK_VOLUME_error:
push str.os_lock_file
push 0x77
push str.E:work_netbar_smcli_srcliblibpaloswindows_os_file2.h
push 0x5a9534
push ebx
push 0
call fcn.004e8a0a
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 0x4f5a37
push str.DeviceIoControl_FSCTL_DISMOUNT_VOLUME_error:
push str.os_lock_file
push 0x79
push str.E:work_netbar_smcli_srcliblibpaloswindows_os_file2.h
push 0x5a9534
push ebx
push eax
call fcn.004e8a0a
add esp, 0x1c
jmp 0x4f5a37
mov dword [esp + ebp*4 + 0x34], edi
inc ebp
inc esi
cmp esi, 0x17
jl 0x4f59cf
push 8
pop ecx
call fcn.004ebeae
push ebp
push str.dc__count_d_n
push str.os_lock_file
push 0x83
push str.E:work_netbar_smcli_srcliblibpaloswindows_os_file2.h
mov edi, eax
push 0x5a9534
push 8
push 0
mov dword [edi], ebp
call fcn.004e8a0a
mov ecx, dword [edi]
add esp, 0x20
mov esi, dword [esp + 0x18]
test ecx, ecx
je 0x4f5b3d
shl ecx, 2
call fcn.004ebeae
mov ecx, dword [edi]
shl ecx, 2
push ecx
lea ecx, [esp + 0x38]
mov dword [edi + 4], eax
push ecx
push eax
call fcn.0051c650
add esp, 0xc
mov dword [esi + 0x44], edi
mov dword [esi + 0x3c], 1
xor eax, eax
mov ecx, dword [esp + 0x1a0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051b034
add esp, 0x194
ret