Function at 0x4085b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a39aa
mov eax, dword fs:[0]
push eax
mov eax, 0xc
call fcn.00596bf0
push ebx
push esi
push edi
mov eax, dword [0x616930]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x616414]
mov edx, dword [eax + 0xc]
xor ebx, ebx
mov ecx, 0x616414
mov dword [ebp - 0x18], ebx
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x14], ebx
call fcn.004010d0
add esp, 4
cmp dword [ebp - 0x14], ebx
je 0x408784
push str.DriverCleanupNeeded_so_making_entry_in_Registry_for_cleanup_n
call fcn.0057b33c
add esp, 4
push str.SYSTEMCurrentControlSetServicesDFMFilter
call fcn.00401250
add esp, 4
push str.SYSTEMCurrentControlSetServicesDRMFilter
call fcn.00401250
add esp, 4
push str.Calling_Unload_of_Driver_n
call fcn.00402b00
mov ecx, dword [esi]
add esp, 4
push ecx
mov ecx, dword [esi + 0x1c]
call fcn.004017e0
add esp, 4
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x40867f
push str.Wow64DisableWow64FsRedirection
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40867f
lea edx, [ebp - 0x18]
push edx
call eax
push str.C:WindowsSystem32drivers_
mov edi, 0x1c
lea ecx, [ebp - 0x10]
call fcn.00401cc0
push str.DFMFilter.sys
lea eax, [ebp - 0x10]
push eax
lea ecx, [edi - 0xf]
call fcn.00401de0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x4086bb
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.00401c40
mov eax, dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call ebx
test eax, eax
jne 0x4086dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_while_deleting_the_DFMFilter_driver_file__ld__n
call fcn.00402b00
add esp, 8
push str.C:WindowsSystem32drivers_
lea ecx, [ebp - 0x10]
call fcn.00401cc0
push str.DRMFilter.sys
lea eax, [ebp - 0x10]
push eax
mov ecx, 0xd
call fcn.00401de0
mov edi, dword [ebp - 0x10]
cmp dword [edi - 4], 1
jle 0x408715
mov ecx, dword [edi - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.00401c40
mov edi, dword [ebp - 0x10]
push edi
call ebx
test eax, eax
jne 0x408730
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_while_deleting_the_DRMFilter_driver_file__ld__n
call fcn.00402b00
add esp, 8
test esi, esi
je 0x40874a
push str.Wow64RevertWow64FsRedirection
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40874a
lea ecx, [ebp - 0x18]
push ecx
call eax
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40876d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Driver_Cleanup_is_not_required__So_skipping_the_driver_cleanup__n
call fcn.00402b00
lea eax, [edi - 0x10]
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x408761