Function at 0x180051680
Capabilities:
Unload minifilter driver

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x308
mov rax, qword [0x1801060b8]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov dword [rsp + 0x2e0], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x2e8], 0
mov dword [rsp + 0x40], 0x80004005
call fcn.180067190
mov rcx, rax
call fcn.1800632b0
mov rax, qword [rsp + 0x320]
add rax, 0x418
xor edx, edx
mov rcx, rax
call fcn.18000ea90
movzx eax, al
test eax, eax
je 0x1800517ef
mov rax, qword [rsp + 0x320]
add rax, 0x418
mov rcx, rax
call fcn.18000ea80
mov qword [rsp + 0xa8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x98], rax
lea rdx, str.eppwfp_stop_result:_.
mov rcx, qword [rsp + 0x98]
call fcn.18000a5f0
lea rax, [rsp + 0x128]
mov rdi, rax
mov rsi, qword [rsp + 0x68]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x140]
lea rcx, [rsp + 0x128]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x60]
call fcn.180056f20
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0x150]
lea rcx, [rsp + 0x140]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x160]
lea rcx, [rsp + 0x150]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov r9, qword [rsp + 0xa0]
lea r8, [rsp + 0x160]
mov edx, 2
mov rcx, qword [rsp + 0xa8]
call fcn.180058110
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x1800d8308]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x180051974
mov rax, qword [rsp + 0x320]
add rax, 0x418
xor edx, edx
mov rcx, rax
call fcn.18000ea90
movzx eax, al
test eax, eax
je 0x180051974
mov rax, qword [rsp + 0x320]
add rax, 0x418
mov rcx, rax
call fcn.18000ea80
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x2b0]
mov qword [rsp + 0x90], rax
lea rdx, str.CreateFile__Failed:_:x
mov rcx, qword [rsp + 0x90]
call fcn.180055220
lea rcx, [rsp + 0x170]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x180]
lea rcx, [rsp + 0x170]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x2e0]
call fcn.1800035a0
mov qword [rsp + 0xc0], rax
lea rcx, [0x1800d8318]
call fcn.180056f20
mov qword [rsp + 0xc8], rax
lea rax, [rsp + 0x190]
lea rcx, [rsp + 0x180]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x1a0]
lea rcx, [rsp + 0x190]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x1b0]
lea rcx, [rsp + 0x1a0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xc8]
lea r8, [rsp + 0x1b0]
mov edx, 4
mov rcx, qword [rsp + 0xd0]
call fcn.180058bb0
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x180051986
mov eax, 0x37
jmp 0x180051dca
lea rax, [rsp + 0x2e4]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov dword [rsp + 0x2e4], 1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x2e8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 4
lea r8, [rsp + 0x2e4]
mov edx, 0x222410
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x180051b14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x2e0], eax
mov rax, qword [rsp + 0x320]
add rax, 0x418
xor edx, edx
mov rcx, rax
call fcn.18000ea90
movzx eax, al
test eax, eax
je 0x180051b14
mov rax, qword [rsp + 0x320]
add rax, 0x418
mov rcx, rax
call fcn.18000ea80
mov qword [rsp + 0xe8], rax
lea rax, [rsp + 0x2c0]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xd8], rax
lea rdx, str.DeviceIoControl_EPP_UNLOAD_PERM_error:_
mov rcx, qword [rsp + 0xd8]
call fcn.18000a5f0
lea rax, [rsp + 0x1c0]
mov rdi, rax
mov rsi, qword [rsp + 0x70]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x1d0]
lea rcx, [rsp + 0x1c0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x2e0]
call fcn.1800035a0
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0x1e0]
lea rcx, [rsp + 0x1d0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x1f0]
lea rcx, [rsp + 0x1e0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov r9, qword [rsp + 0xe0]
lea r8, [rsp + 0x1f0]
mov edx, 4
mov rcx, qword [rsp + 0xe8]
call fcn.180058110
nop
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x180051b3a
cmp dword [rsp + 0x2e0], 0
jne 0x180051b3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x2e0], eax
cmp dword [rsp + 0x2e0], 0
jne 0x180051c83
lea rcx, [0x1800d8390]
call sub.FLTLIB.DLL_FilterUnload
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x180051c83
mov rax, qword [rsp + 0x320]
add rax, 0x418
xor edx, edx
mov rcx, rax
call fcn.18000ea90
movzx eax, al
test eax, eax
je 0x180051c78
mov rax, qword [rsp + 0x320]
add rax, 0x418
mov rcx, rax
call fcn.18000ea80
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
lea rax, [rsp + 0x220]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x100], rax
lea rdx, str.FilterUnload_Failed:_
mov rcx, qword [rsp + 0x100]
call fcn.18000a5f0
lea rax, [rsp + 0x80]
mov rdi, rax
mov rsi, qword [rsp + 0x50]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xb0]
lea rcx, [rsp + 0x80]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x44]
call fcn.180056f20
mov qword [rsp + 0x108], rax
lea rax, [rsp + 0x230]
lea rcx, [rsp + 0xb0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x240]
lea rcx, [rsp + 0x230]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov r9, qword [rsp + 0x108]
lea r8, [rsp + 0x240]
mov edx, 4
mov rcx, qword [rsp + 0x58]
call fcn.180058110
mov dword [rsp + 0x2e0], 0x1f
mov rax, qword [rsp + 0x320]
add rax, 0x418
xor edx, edx
mov rcx, rax
call fcn.18000ea90
movzx eax, al
test eax, eax
je 0x180051dc3
mov rax, qword [rsp + 0x320]
add rax, 0x418
mov rcx, rax
call fcn.18000ea80
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x2d0]
mov qword [rsp + 0x110], rax
lea rdx, [0x1800d83e8]
mov rcx, qword [rsp + 0x110]
call fcn.180055220
lea rcx, [rsp + 0x250]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x260]
lea rcx, [rsp + 0x250]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x2e0]
call fcn.1800035a0
mov qword [rsp + 0x118], rax
lea rcx, str.EppLibClass::EppStopDriver
call fcn.180056f20
mov qword [rsp + 0x120], rax
lea rax, [rsp + 0x270]
lea rcx, [rsp + 0x260]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x280]
lea rcx, [rsp + 0x270]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x290]
lea rcx, [rsp + 0x280]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x120]
lea r8, [rsp + 0x290]
mov edx, 2
mov rcx, qword [rsp + 0x78]
call fcn.180058bb0
mov eax, dword [rsp + 0x2e0]
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.180099a00
add rsp, 0x308
pop rdi
pop rsi
ret