Function at 0x408990
Capabilities:
Check if file exists
Delete registry key
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3c82
mov eax, dword fs:[0]
push eax
mov eax, 0x28
call fcn.00596bf0
mov eax, dword [0x616930]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ebx
call fcn.004081c0
mov eax, dword [0x616414]
mov edx, dword [eax + 0xc]
mov ecx, 0x616414
call edx
add eax, 0x10
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
mov byte [ebp - 4], 1
mov ecx, dword [ebx]
cmp ecx, eax
je 0x408a0b
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408a02
sub eax, esi
push ecx
mov edi, eax
lea ecx, [ebp - 0x30]
call fcn.00401cc0
push str.EDR
lea eax, [ebp - 0x30]
push eax
mov ecx, 4
call fcn.00401de0
mov esi, dword [ebp - 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x408a78
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408a40
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040b380
push 4
push str._bin
lea ecx, [ebp - 0x2c]
call fcn.0040b260
cmp dword [ebp - 0x18], 0x10
mov edx, dword [ebp - 0x2c]
jae 0x408a6e
lea edx, [ebp - 0x2c]
mov ecx, str.MEARWSetup.exe__uninstall
call fcn.00408cc0
mov ecx, str.MEARWService
call fcn.00407b20
test eax, eax
jne 0x408ab0
push str.SYSTEMCurrentControlSetServicesMEARWService
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
test eax, eax
jne 0x408aa2
push eax
push str.deleteRegistryKeyEx:__Key_successfull_deleted_:__d_n
jmp 0x408aa8
push eax
push str.deleteRegistryKeyEx:__Key_deletion_failure_:__d_n
call fcn.00402b00
add esp, 8
mov ecx, str.MEARWFltDriver
call fcn.00407b20
test eax, eax
jne 0x408ae8
push str.SYSTEMCurrentControlSetServicesMEARWFltDriver
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
test eax, eax
jne 0x408ada
push eax
push str.deleteRegistryKeyEx:__Key_successfull_deleted_:__d_n
jmp 0x408ae0
push eax
push str.deleteRegistryKeyEx:__Key_deletion_failure_:__d_n
call fcn.00402b00
add esp, 8
lea ecx, [ebp - 0x34]
push ecx
push 0xf013f
push 0
push str.SOFTWAREAdventNetManageengine_
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408b16
mov edx, dword [ebp - 0x34]
push 0x5ae898
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, str.ManageEngine_Unified_Endpoint_Security___Agent
call fcn.00407b20
mov edx, dword [ebx]
test edx, edx
jne 0x408b2a
xor eax, eax
jmp 0x408b39
mov eax, edx
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408b30
sub eax, esi
push edx
mov edi, eax
lea ecx, [ebp - 0x30]
call fcn.00401cc0
push str.EndpointDLP
lea eax, [ebp - 0x30]
push eax
mov ecx, 0xc
call fcn.00401de0
mov esi, dword [ebp - 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x408ba8
mov eax, esi
lea edx, [eax + 1]
jmp 0x408b70
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408b70
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040b380
push 4
push str._bin
lea ecx, [ebp - 0x2c]
call fcn.0040b260
cmp dword [ebp - 0x18], 0x10
mov edx, dword [ebp - 0x2c]
jae 0x408b9e
lea edx, [ebp - 0x2c]
mov ecx, str.dlpuninstall.exe__full
call fcn.00408cc0
mov edi, str.MEDLP.exe
call fcn.00407cc0
mov ecx, str.FaceDrv
call fcn.00407b20
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
test eax, eax
jne 0x408bec
push str.SYSTEMCurrentControlSetServicesFaceDrv
push closesocket
call edi
test eax, eax
jne 0x408bde
push eax
push str.deleteRegistryKeyEx:__Key_successfull_deleted_:__d_n
jmp 0x408be4
push eax
push str.deleteRegistryKeyEx:__Key_deletion_failure_:__d_n
call fcn.00402b00
add esp, 8
mov ecx, str.uemspktsft
call fcn.00407b20
test eax, eax
jne 0x408c20
push str.SYSTEMCurrentControlSetServicesuemspktsft
push closesocket
call edi
test eax, eax
jne 0x408c12
push eax
push str.deleteRegistryKeyEx:__Key_successfull_deleted_:__d_n
jmp 0x408c18
push eax
push str.deleteRegistryKeyEx:__Key_deletion_failure_:__d_n
call fcn.00402b00
add esp, 8
mov ecx, str.NotifDriver
call fcn.00407b20
test eax, eax
jne 0x408c54
push str.SYSTEMCurrentControlSetServicesNotifDriver
push closesocket
call edi
test eax, eax
jne 0x408c46
push eax
push str.deleteRegistryKeyEx:__Key_successfull_deleted_:__d_n
jmp 0x408c4c
push eax
push str.deleteRegistryKeyEx:__Key_deletion_failure_:__d_n
call fcn.00402b00
add esp, 8
cmp dword [ebp - 0x18], 0x10
jb 0x408c66
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0057af7f
add esp, 4
lea eax, [esi - 0x10]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408c9b
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057af8a
mov esp, ebp
pop ebp
ret 4