Function at 0x4518f0
Capabilities:
Check if file exists
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563167
mov eax, dword fs:[0]
push eax
sub esp, 0xa68
mov eax, dword [0x5c9c4c]
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 eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
test esi, esi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xa64], eax
mov eax, 0x57aa4c
cmovne eax, esi
push eax
push ebx
push str.OnInstallEnd_callback__success___d__errmsg___s
call fcn.0044c0c0
add esp, 0xc
call fcn.0040cd20
mov ecx, eax
test ecx, ecx
je 0x451fa5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xa58], eax
push esi
push ebx
lea eax, [ebp - 0xa58]
mov dword [ebp - 4], 0
push str.ex3_dinfo_s
push eax
call fcn.0040b090
add esp, 0x10
push 0
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0xa68], esp
mov dword [eax + 0x24], 0
mov edi, dword [ebp - 0xa58]
push 0
push edi
push str.inst_end_progress
mov byte [ebp - 4], 1
call fcn.004345f0
mov ecx, eax
mov byte [ebp - 4], 0
call fcn.004307a0
call fcn.00444160
mov ecx, eax
call fcn.0043d840
test eax, eax
je 0x4519d8
push 0x400
push ebx
push 0x8c8c
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push str._ProgressPage__try_to_remove_lsp
call fcn.0044c0c0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00506df0
add esp, 0x10
call fcn.0046ebb0
push 0x104
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
push str._net_netload.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x451a4b
lea eax, [ebp - 0x218]
push eax
push str.file__s__is_not_exist.
call fcn.0044c0c0
add esp, 8
jmp 0x451ade
call fcn.0040cd20
mov ecx, eax
test ecx, ecx
je 0x451faf
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xa54], eax
mov eax, 0x57a2f8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa54]
test eax, 0xffff0000
jne 0x451a89
movzx eax, ax
push eax
call fcn.0040d6b0
jmp 0x451a95
push 7
push 0x57a2f8
call fcn.0040d860
mov esi, dword [ebp - 0xa54]
lea eax, [ebp - 0x218]
push 1
push esi
push str.RemoveProvider
push eax
mov byte [ebp - 4], 3
call fcn.00436e90
lea eax, [ebp - 0x218]
push eax
call fcn.00410080
add esp, 0x14
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x451ade
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
mov dword [ebp - 0xa74], esi
mov dword [ebp - 0xa70], esi
mov dword [ebp - 0xa6c], esi
lea eax, [ebp - 0xa50]
mov byte [ebp - 4], 4
push 0x1c
push eax
call fcn.004385e0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x451b0f
mov eax, dword [eax]
lea ecx, [ebp - 0xa54]
mov dword [ebp - 0xa54], 0
push ecx
push 0xf013f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x451b4f
mov esi, dword [ebp - 0xa54]
mov dword [ebp - 0xa74], esi
mov dword [ebp - 0xa70], 0x100
mov edx, dword [ebp - 0xa3c]
cmp edx, 8
jb 0x451b8f
mov ecx, dword [ebp - 0xa50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x451b85
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x451fb9
push edx
push ecx
call fcn.004a975e
add esp, 8
test ebx, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x451bbb
push str.Delete_reg_LdsTray
call fcn.0044c0c0
add esp, 4
push str.LdsTray
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test esi, esi
je 0x451bbb
push esi
call ebx
xor esi, esi
mov byte [ebp - 4], 0
test esi, esi
je 0x451bc6
push esi
call ebx
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00506df0
add esp, 0xc
call fcn.0046ebb0
push 0x104
lea edx, [ebp - 0x420]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
call fcn.0040d600
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x451cdb
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00506df0
add esp, 0xc
lea eax, [ebp - 0x420]
push str.HardwareProtectSlim.sys
push eax
lea eax, [ebp - 0x628]
push eax
call esi
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00506df0
add esp, 0xc
lea eax, [ebp - 0x420]
push str.HardwareProtect.sys
push eax
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.00452720
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.00506df0
add esp, 0x14
lea eax, [ebp - 0x420]
push str.HardwareProtectSlim_x64.sys
push eax
lea eax, [ebp - 0xa38]
push eax
call esi
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.00506df0
add esp, 0xc
lea eax, [ebp - 0x420]
push str.HardwareProtect_x64.sys
push eax
lea eax, [ebp - 0x830]
push eax
call esi
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0xa38]
push eax
call fcn.00452720
add esp, 8
mov ebx, dword [ebp - 0xa64]
add ebx, 0xffffffb0
mov ecx, ebx
mov dword [ebp - 0xa68], ebx
call fcn.004511c0
cmp dword [0x5c9750], 0
je 0x451daa
push str.ntdll.dll
mov dword [ebp - 0xa5c], 0
xor ebx, ebx
mov dword [ebp - 0xa60], 0
mov dword [ebp - 0xa54], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x451d94
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x451d68
lea ecx, [ebp - 0xa54]
push ecx
lea ecx, [ebp - 0xa60]
push ecx
lea ecx, [ebp - 0xa5c]
push ecx
call eax
movzx eax, word [ebp - 0xa54]
mov ebx, 1
mov dword [ebp - 0xa54], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x451d94
cmp dword [ebp - 0xa5c], 6
jne 0x451d94
mov eax, dword [0x5d0c30]
mov ecx, 1
cmp dword [ebp - 0xa60], ecx
cmove eax, ecx
mov dword [0x5d0c30], eax
mov ebx, dword [ebp - 0xa68]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov dword [0x5c9750], 0
cmp dword [0x5d0c30], 0
jne 0x451eaa
call fcn.0040d600
test eax, eax
jne 0x451eaa
lea eax, [ebp - 0x420]
push eax
push str.UpdateProtectExToProtect_path:_s
call fcn.0044c0c0
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.00506df0
add esp, 0x14
lea eax, [ebp - 0x420]
push str.HardwareProtectEx.sys
push eax
lea eax, [ebp - 0x830]
push eax
call esi
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.00506df0
add esp, 0xc
lea eax, [ebp - 0x420]
push str.HardwareProtect.sys
push eax
lea eax, [ebp - 0xa38]
push eax
call esi
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.00452720
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00506df0
add esp, 0x14
lea eax, [ebp - 0x420]
push str.HardwareProtectEx_x64.sys
push eax
lea eax, [ebp - 0x218]
push eax
call esi
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00506df0
add esp, 0xc
lea eax, [ebp - 0x420]
push str.HardwareProtect_x64.sys
push eax
lea eax, [ebp - 0x628]
push eax
call esi
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00452720
add esp, 8
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00506df0
add esp, 0xc
call fcn.0046ebb0
push 0x104
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
push 0x57e10c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x451f10
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push str.installbridge
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
call fcn.00444160
mov ecx, eax
call fcn.0043f420
test eax, eax
jne 0x451f29
call fcn.004395d0
test eax, eax
jne 0x451f4f
call fcn.00444160
cmp dword [eax + 0x18], 0
jne 0x451f48
call fcn.0046ebb0
push 0
push str.UtilsLdsHelper.exe
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x451f4f
mov ecx, ebx
call fcn.004523a0
mov eax, dword [ebp + 0xc]
mov dword [0x5d0b78], eax
mov eax, dword [ebp - 0xa64]
push 3
mov eax, dword [eax - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x451f87
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
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.004a9748
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.0040ad60
push 0x80004005
call fcn.0040ad60
call fcn.005241f3
int3