Function at 0x1800062b0
Capabilities:
Unmount volume via ioctl

Disassembly:
push rbx
push rsi
sub rsp, 0x98
mov ebx, r8d
mov rsi, rcx
cmp qword [rcx + 0x10], rdx
je 0x1800062d5
mov eax, 0x80070057
add rsp, 0x98
pop rsi
pop rbx
ret
mov r8, qword [rcx + 0x38]
mov rdx, qword [rcx + 0x30]
mov r9, rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0xb8], rbp
mov qword [rsp + 0xc0], rdi
call fcn.180004970
cmp ebx, 1
jne 0x1800065f7
mov rax, qword [rsp + 0x78]
mov dword [rax], 0x20015
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov rcx, qword [rsp + 0x78]
xor ebp, ebp
mov qword [rcx + 0x10], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rsp + 0x78]
mov r9d, ebx
mov qword [rcx + 8], rax
mov r8, qword [rsp + 0x78]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x54
mov qword [rsp + 0x20], r8
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x180006399
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x180006399
mov ecx, eax
call fcn.180004900
mov edi, eax
test eax, eax
jne 0x1800063b5
mov rcx, qword [rsp + 0x88]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1800063c0
call fcn.1800048e0
mov edi, eax
test edi, edi
je 0x1800063c0
mov rax, qword [rsp + 0x78]
jmp 0x1800063cf
mov rax, qword [rsp + 0x78]
cmp dword [rax + 4], ebp
je 0x18000640e
mov edi, 0x80004005
test rax, rax
je 0x1800063e8
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1800063e8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x180006400
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x180006702
jmp 0x1800066f9
mov rdi, qword [rax + 0x28]
mov dword [rax], 0x20017
mov rax, qword [rsp + 0x78]
mov qword [rax + 0x28], rdi
mov rax, qword [rsp + 0x78]
mov dword [rax + 0x30], 0x90020
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov rcx, qword [rsp + 0x78]
xor r9d, r9d
mov qword [rcx + 0x10], rbp
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rsp + 0x78]
mov r9d, ebx
mov qword [rcx + 8], rax
mov r8, qword [rsp + 0x78]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x54
mov qword [rsp + 0x20], r8
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1800064b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1800064b4
mov ecx, eax
call fcn.180004900
test eax, eax
jne 0x1800064ce
mov rcx, qword [rsp + 0x88]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1800064ce
call fcn.1800048e0
mov rax, qword [rsp + 0x78]
mov dword [rax], 0x20016
mov rax, qword [rsp + 0x78]
mov qword [rax + 0x28], rdi
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov rcx, qword [rsp + 0x78]
xor r9d, r9d
mov qword [rcx + 0x10], rbp
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rsp + 0x78]
mov r9d, ebx
mov qword [rcx + 8], rax
mov r8, qword [rsp + 0x78]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x54
mov qword [rsp + 0x20], r8
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x180006569
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x180006569
mov ecx, eax
call fcn.180004900
test eax, eax
jne 0x180006583
mov rcx, qword [rsp + 0x88]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180006583
call fcn.1800048e0
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x180006596
mov qword [rsi + 0x10], rbp
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1800065b7
mov rax, qword [rcx + 8]
test rax, rax
je 0x1800065b7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x1800065d2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1800065dd
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1800065f0
mov rax, qword [rcx]
call qword [rax + 0x10]
xor eax, eax
jmp 0x180006ce5
mov rax, qword [rsp + 0x78]
mov dword [rax], 0x20015
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov rcx, qword [rsp + 0x78]
xor ebp, ebp
mov qword [rcx + 0x10], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rsp + 0x78]
mov r9d, ebx
mov qword [rcx + 8], rax
mov r8, qword [rsp + 0x78]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x54
mov qword [rsp + 0x20], r8
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x18000668d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x18000668d
mov ecx, eax
call fcn.180004900
mov edi, eax
test eax, eax
jne 0x1800066a9
mov rcx, qword [rsp + 0x88]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1800066b4
call fcn.1800048e0
mov edi, eax
test edi, edi
je 0x1800066b4
mov rax, qword [rsp + 0x78]
jmp 0x1800066c3
mov rax, qword [rsp + 0x78]
cmp dword [rax + 4], ebp
je 0x18000671c
mov edi, 0x80004005
test rax, rax
je 0x1800066dc
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1800066dc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x1800066f4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x180006702
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x180006715
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, edi
jmp 0x180006ce5
mov qword [rsp + 0x90], r12
mov r12, qword [rax + 0x28]
mov dword [rax], 0x20017
mov rax, qword [rsp + 0x78]
mov qword [rax + 0x28], r12
mov rax, qword [rsp + 0x78]
mov dword [rax + 0x30], 0x90018
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov rcx, qword [rsp + 0x78]
xor r9d, r9d
mov qword [rcx + 0x10], rbp
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rsp + 0x78]
mov r9d, ebx
mov qword [rcx + 8], rax
mov r8, qword [rsp + 0x78]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x54
mov qword [rsp + 0x20], r8
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1800067cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1800067cc
mov ecx, eax
call fcn.180004900
mov edi, eax
test eax, eax
jne 0x1800067e8
mov rcx, qword [rsp + 0x88]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1800067f3
call fcn.1800048e0
mov edi, eax
test edi, edi
je 0x1800067f3
mov rax, qword [rsp + 0x78]
jmp 0x180006806
mov rax, qword [rsp + 0x78]
cmp dword [rax + 4], ebp
je 0x180006900
mov edi, 0x80004005
mov dword [rax], 0x20016
mov rax, qword [rsp + 0x78]
mov qword [rax + 0x28], r12
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov rcx, qword [rsp + 0x78]
xor r9d, r9d
mov qword [rcx + 0x10], rbp
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rsp + 0x78]
mov r9d, ebx
mov qword [rcx + 8], rax
mov r8, qword [rsp + 0x78]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x54
mov qword [rsp + 0x20], r8
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x18000689c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x18000689c
mov ecx, eax
call fcn.180004900
test eax, eax
jne 0x1800068b6
mov rcx, qword [rsp + 0x88]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1800068b6
call fcn.1800048e0
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1800068d7
mov rax, qword [rcx + 8]
test rax, rax
je 0x1800068d7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x1800068f2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x180006b4a
jmp 0x180006b44
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x180006918
mov qword [rsi + 0x10], rbp
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [rsp + 0x78]
mov dword [rax], 0x20017
mov rax, qword [rsp + 0x78]
mov qword [rax + 0x28], r12
mov rax, qword [rsp + 0x78]
mov dword [rax + 0x30], 0x90020
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov rcx, qword [rsp + 0x78]
xor r9d, r9d
mov qword [rcx + 0x10], rbp
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rsp + 0x78]
mov r9d, ebx
mov qword [rcx + 8], rax
mov r8, qword [rsp + 0x78]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x54
mov qword [rsp + 0x20], r8
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1800069bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1800069bc
mov ecx, eax
call fcn.180004900
mov edi, eax
test eax, eax
jne 0x1800069d8
mov rcx, qword [rsp + 0x88]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1800069e3
call fcn.1800048e0
mov edi, eax
test edi, edi
je 0x1800069e3
mov rax, qword [rsp + 0x78]
jmp 0x1800069f2
mov rax, qword [rsp + 0x78]
cmp dword [rax + 4], ebp
je 0x180006a31
mov edi, 0x80004005
test rax, rax
je 0x180006a0b
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x180006a0b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x180006a23
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x180006b4a
jmp 0x180006b41
mov dword [rax], 0x20017
mov rax, qword [rsp + 0x78]
mov qword [rax + 0x28], r12
mov rax, qword [rsp + 0x78]
mov dword [rax + 0x30], 0x9001c
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov rcx, qword [rsp + 0x78]
xor r9d, r9d
mov qword [rcx + 0x10], rbp
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rsp + 0x78]
mov r9d, ebx
mov qword [rcx + 8], rax
mov r8, qword [rsp + 0x78]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x54
mov qword [rsp + 0x20], r8
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x180006ad5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x180006ad5
mov ecx, eax
call fcn.180004900
mov edi, eax
test eax, eax
jne 0x180006af1
mov rcx, qword [rsp + 0x88]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180006afc
call fcn.1800048e0
mov edi, eax
test edi, edi
je 0x180006afc
mov rax, qword [rsp + 0x78]
jmp 0x180006b0b
mov rax, qword [rsp + 0x78]
cmp dword [rax + 4], ebp
je 0x180006b64
mov edi, 0x80004005
test rax, rax
je 0x180006b24
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x180006b24
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x180006b3c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x180006b4a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x180006b5d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, edi
jmp 0x180006cdd
mov dword [rax], 0x20016
mov rax, qword [rsp + 0x78]
mov qword [rax + 0x28], r12
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov rcx, qword [rsp + 0x78]
xor r9d, r9d
mov qword [rcx + 0x10], rbp
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rsp + 0x78]
mov r9d, ebx
mov qword [rcx + 8], rax
mov r8, qword [rsp + 0x78]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x54
mov qword [rsp + 0x20], r8
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x180006bfc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x180006bfc
mov ecx, eax
call fcn.180004900
mov edi, eax
test eax, eax
jne 0x180006c18
mov rcx, qword [rsp + 0x88]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180006c23
call fcn.1800048e0
mov edi, eax
test edi, edi
je 0x180006c23
mov rcx, qword [rsp + 0x78]
jmp 0x180006c32
mov rcx, qword [rsp + 0x78]
cmp dword [rcx + 4], ebp
je 0x180006c8b
mov edi, 0x80004005
test rcx, rcx
je 0x180006c4e
mov rax, qword [rcx + 8]
test rax, rax
je 0x180006c4e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x180006c69
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x180006c74
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x180006c87
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov eax, edi
jmp 0x180006cdd
mov rax, qword [rcx + 8]
test rax, rax
je 0x180006ca2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x180006cbd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x180006cc8
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x180006cdb
mov rax, qword [rcx]
call qword [rax + 0x10]
xor eax, eax
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xc0]
add rsp, 0x98
pop rsi
pop rbx
ret