Function at 0x402e10
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41a54c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x101fc
call fcn.00415d80
mov eax, dword [0x4213d4]
xor eax, esp
mov dword [esp + 0x101f8], eax
push ebx
push esi
push edi
mov eax, dword [0x4213d4]
xor eax, esp
push eax
lea eax, [esp + 0x10210]
mov dword fs:[0], eax
push str.DDSystemUpdateStarted
xor ebx, ebx
push ebx
push 0x100000
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [0x423660], eax
cmp eax, ebx
je 0x402e86
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x403616
lea eax, [esp + 0x30]
push 1
mov ecx, eax
push ecx
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.DDSystemUpdateStarted
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x423660], eax
cmp eax, ebx
je 0x402e7c
call fcn.00401dd0
test al, al
je 0x402e7c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x204]
push ecx
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebx
je 0x402e7c
xor edx, edx
push eax
lea eax, [esp + 0x208]
lea esi, [esp + 0x1d0]
mov dword [esp + 0x1e4], 7
mov dword [esp + 0x1e0], ebx
mov word [esp + 0x1d0], dx
call fcn.00405150
mov edi, esi
mov esi, 0x4223e0
mov dword [esp + 0x10218], ebx
call fcn.00404fe0
mov dword [esp + 0x10218], 0xffffffff
cmp dword [esp + 0x1e0], 8
jb 0x402f62
mov eax, dword [esp + 0x1cc]
push eax
call fcn.00409f88
add esp, 4
xor ecx, ecx
xor edi, edi
push 8
mov eax, 0x41e280
lea esi, [esp + 0x198]
mov dword [esp + 0x1ac], 7
mov dword [esp + 0x1a8], edi
mov word [esp + 0x198], cx
call fcn.00405150
mov edx, esi
mov dword [esp + 0x10218], 1
or ebx, 1
push edx
mov dword [esp + 0x18], ebx
call fcn.004023a0
add esp, 4
test al, al
jne 0x403009
xor eax, eax
mov word [esp + 0x1cc], ax
push 0xa
mov eax, str.AVTray.exe
lea esi, [esp + 0x1d0]
mov dword [esp + 0x1e4], 7
mov dword [esp + 0x1e0], edi
call fcn.00405150
mov ecx, esi
mov dword [esp + 0x10218], 2
or ebx, 2
push ecx
mov dword [esp + 0x18], ebx
call fcn.004023a0
add esp, 4
mov byte [esp + 0x13], 0
test al, al
je 0x40300e
mov byte [esp + 0x13], 1
mov esi, 8
test bl, 2
je 0x403050
and ebx, 0xfffffffd
cmp dword [esp + 0x1e0], esi
jb 0x403034
mov edx, dword [esp + 0x1cc]
push edx
call fcn.00409f88
add esp, 4
xor eax, eax
mov dword [esp + 0x1e0], 7
mov dword [esp + 0x1dc], edi
mov word [esp + 0x1cc], ax
mov dword [esp + 0x10218], 0xffffffff
test bl, 1
je 0x40307c
and ebx, 0xfffffffe
cmp dword [esp + 0x1a8], esi
jb 0x40307c
mov ecx, dword [esp + 0x194]
push ecx
call fcn.00409f88
add esp, 4
cmp byte [esp + 0x13], 0
je 0x403093
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402f62
mov eax, str.AVScanningService.exe__p
lea ecx, [esp + 0x194]
call fcn.00404470
lea eax, [esp + 0x194]
call fcn.00402530
cmp dword [esp + 0x1a8], esi
jb 0x4030d0
mov edx, dword [esp + 0x194]
push edx
call fcn.00409f88
add esp, 4
lea esp, [esp]
xor eax, eax
mov word [esp + 0x194], ax
push 0x15
mov eax, str.AVScanningService.exe
lea esi, [esp + 0x198]
mov dword [esp + 0x1ac], 7
mov dword [esp + 0x1a8], edi
call fcn.00405150
mov ecx, esi
push ecx
mov dword [esp + 0x1021c], 3
call fcn.004023a0
mov esi, 8
add esp, 4
mov dword [esp + 0x10218], 0xffffffff
mov bl, al
cmp dword [esp + 0x1a8], esi
jb 0x403140
mov edx, dword [esp + 0x194]
push edx
call fcn.00409f88
add esp, 4
test bl, bl
je 0x403154
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4030d0
mov eax, str.AVAssistant.exe__p
lea ecx, [esp + 0x194]
call fcn.00404470
lea eax, [esp + 0x194]
call fcn.00402530
cmp dword [esp + 0x1a8], esi
jb 0x403190
mov eax, dword [esp + 0x194]
push eax
call fcn.00409f88
add esp, 4
lea ebx, [ebx]
xor ecx, ecx
push 0xf
mov eax, str.AVAssistant.exe
lea esi, [esp + 0x198]
mov dword [esp + 0x1ac], 7
mov dword [esp + 0x1a8], edi
mov word [esp + 0x198], cx
call fcn.00405150
mov edx, esi
push edx
mov dword [esp + 0x1021c], 4
call fcn.004023a0
mov esi, 8
add esp, 4
mov dword [esp + 0x10218], 0xffffffff
mov bl, al
cmp dword [esp + 0x1a8], esi
jb 0x403200
mov eax, dword [esp + 0x194]
push eax
call fcn.00409f88
add esp, 4
test bl, bl
je 0x403214
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403190
mov eax, str.AVScanningService.exe__u
lea ecx, [esp + 0x194]
call fcn.00404470
lea eax, [esp + 0x194]
call fcn.00402530
cmp dword [esp + 0x1a8], esi
jb 0x403250
mov ecx, dword [esp + 0x194]
push ecx
call fcn.00409f88
add esp, 4
lea ebx, [ebx]
xor edx, edx
push 0x15
mov eax, str.AVScanningService.exe
lea esi, [esp + 0x198]
mov dword [esp + 0x1ac], 7
mov dword [esp + 0x1a8], edi
mov word [esp + 0x198], dx
call fcn.00405150
mov eax, esi
push eax
mov dword [esp + 0x1021c], 5
call fcn.004023a0
mov esi, 8
add esp, 4
mov dword [esp + 0x10218], 0xffffffff
mov bl, al
cmp dword [esp + 0x1a8], esi
jb 0x4032c0
mov ecx, dword [esp + 0x194]
push ecx
call fcn.00409f88
add esp, 4
test bl, bl
je 0x4032d4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403250
sub esp, 0x1c
mov edx, esp
mov dword [esp + 0x30], esp
push str._backup
push 0x4223e0
push edx
call fcn.00407c30
add esp, 0xc
call fcn.004025c0
lea eax, [esp + 0x40]
add esp, 0x1c
push eax
call fcn.0040a037
add esp, 4
lea ecx, [esp + 0xec]
push ecx
call fcn.00404590
mov dword [esp + 0x10218], 6
mov eax, dword [0x4223e0]
cmp dword [0x4223f4], esi
jae 0x40332f
mov eax, 0x4223e0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push edx
push ecx
push str._backup_
push ecx
push eax
lea edx, [esp + 0x110]
push edx
call fcn.00407d60
add esp, 0xc
push eax
call fcn.00407d60
add esp, 8
push eax
call fcn.00403e80
lea ecx, [esp + 0x1e8]
lea eax, [esp + 0xec]
call fcn.00404630
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x10234], 7
mov dword [esp + 0x30], esp
xor eax, eax
mov ebx, 7
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x10], edi
push edi
lea edx, [esp + 0x208]
mov word [ecx], ax
push edx
or eax, 0xffffffff
call fcn.00405050
call fcn.004025c0
add esp, 0x1c
push str.updates
lea eax, [esp + 0x1b4]
push 0x4223e0
push eax
call fcn.00407c30
add esp, 0xc
push 1
lea ecx, [esp + 0x1ec]
push ecx
push 0x4223e0
push eax
mov byte [esp + 0x10228], 8
call fcn.00402630
add esp, 0x10
mov byte [esp + 0x10218], bl
cmp dword [esp + 0x1c4], esi
jb 0x403406
mov edx, dword [esp + 0x1b0]
push edx
call fcn.00409f88
add esp, 4
mov eax, str.AVScanningService.exe__i
lea ecx, [esp + 0x1b0]
call fcn.00404470
lea eax, [esp + 0x1b0]
call fcn.00402530
cmp dword [esp + 0x1c4], esi
jb 0x40343c
mov eax, dword [esp + 0x1b0]
push eax
call fcn.00409f88
add esp, 4
mov eax, str.net_start_netfilter
lea ecx, [esp + 0x1b0]
call fcn.00404470
lea eax, [esp + 0x1b0]
call fcn.00402530
cmp dword [esp + 0x1c4], esi
jb 0x403472
mov ecx, dword [esp + 0x1b0]
push ecx
call fcn.00409f88
add esp, 4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x423670], edi
je 0x40353d
lea edx, [esp + 0x44]
push edx
call fcn.00404590
mov byte [esp + 0x10218], 9
cmp dword [0x423670], 0x800
push str.__qn_SET_SHUTDOWN_MODE_FALSE_
push ecx
jbe 0x4034e5
lea eax, [esp + 0x5c]
push str.msiexec.exe__i
push eax
call fcn.00407d60
push eax
call fcn.00408030
add esp, 0x10
push eax
call fcn.00407d60
add esp, 8
lea ecx, [esp + 0x1b0]
lea eax, [esp + 0x44]
call fcn.00404630
call fcn.00402530
jmp 0x40351b
lea ecx, [esp + 0x5c]
push str.msiexec.exe__fv
push ecx
call fcn.00407d60
push eax
call fcn.00408030
add esp, 0x10
push eax
call fcn.00407d60
add esp, 8
lea ecx, [esp + 0x1b0]
lea eax, [esp + 0x44]
call fcn.00404630
call fcn.004024c0
lea esi, [esp + 0x1b0]
call fcn.004044b0
lea ecx, [esp + 0x44]
mov byte [esp + 0x10218], 7
call fcn.00403640
mov esi, 8
mov eax, str.AVScanningService.exe__s
lea ecx, [esp + 0x1b0]
call fcn.00404470
lea eax, [esp + 0x1b0]
call fcn.00402530
cmp dword [esp + 0x1c4], esi
jb 0x403573
mov edx, dword [esp + 0x1b0]
push edx
call fcn.00409f88
add esp, 4
mov eax, str.AVAssistant.exe__s
lea ecx, [esp + 0x1b0]
call fcn.00404470
lea eax, [esp + 0x1b0]
call fcn.00402530
cmp dword [esp + 0x1c4], esi
jb 0x4035a9
mov eax, dword [esp + 0x1b0]
push eax
call fcn.00409f88
add esp, 4
xor ecx, ecx
push 0x41dfcc
mov dword [esp + 0x1c8], ebx
mov dword [esp + 0x1c4], edi
mov word [esp + 0x1b4], cx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x1fc], esi
jb 0x4035e5
mov edx, dword [esp + 0x1e8]
push edx
call fcn.00409f88
add esp, 4
xor eax, eax
lea ecx, [esp + 0xec]
mov dword [esp + 0x1fc], ebx
mov dword [esp + 0x1f8], edi
mov word [esp + 0x1e8], ax
mov dword [esp + 0x10218], 0xffffffff
call fcn.00403640
xor eax, eax
mov ecx, dword [esp + 0x10210]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x101f8]
xor ecx, esp
call fcn.004097da
mov esp, ebp
pop ebp
ret