Function at 0x4eb8b0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], edi
cmp ebx, edi
jne 0x4eb8da
cmp byte [esi + 0xd0], 0
jne 0x4eb8da
mov byte [esi + 0xd0], 1
lea eax, [esi + 0xa0]
push eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp ebx, edi
mov edi, dword [ebp + 8]
je 0x4eb91a
push edi
lea ecx, [ebp - 0x14]
call fcn.00464b60
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi + 0x44]
mov dword [ebp - 8], 1
call fcn.004eb220
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
sar ecx, 2
test ecx, ecx
jbe 0x4eb92e
push str.UPDATE_TASK_ID_PACKAGE_MANUAL_CHECK
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov byte [ebp - 1], 1
test eax, eax
jne 0x4eb932
mov byte [ebp - 1], 0
test byte [ebp - 8], 1
je 0x4eb95b
mov eax, dword [ebp - 0x14]
and dword [ebp - 8], 0xfffffffe
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4eb95b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 1], 0
je 0x4eb968
mov dword [ebp - 0x10], 1
test ebx, ebx
jne 0x4eba33
mov ecx, edi
push ecx
lea ecx, [ebp - 0x14]
call fcn.00464b60
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x20]
sub esi, 0xffffff80
push eax
mov ecx, esi
call fcn.004e4b20
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4eb9ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x20]
mov ebx, dword [esi + 0x18]
mov esi, dword [esi]
test edi, edi
je 0x4eb9bc
cmp edi, esi
je 0x4eb9c1
call fcn.0051f89a
mov esi, dword [ebp - 0x1c]
cmp esi, ebx
je 0x4eba33
test edi, edi
jne 0x4eba94
call fcn.0051f89a
cmp esi, dword [edi + 0x18]
jne 0x4eb9df
call fcn.0051f89a
cmp dword [esi + 0x10], 2
je 0x4eb9f3
lea ecx, [ebp - 0x20]
call fcn.004e3830
cmp dword [eax + 4], 3
jne 0x4eba33
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.TASK_UPDATE_PACKAGE
push edi
call esi
test eax, eax
je 0x4eba2c
push str.TASK_UPDATE_MODULE
push edi
call esi
test eax, eax
je 0x4eba2c
push str.TASK_UPDATE_WLIST
push edi
call esi
test eax, eax
je 0x4eba2c
push str.TASK_UPDATE_FORCE_MODULE
push edi
call esi
test eax, eax
jne 0x4eba33
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp - 0xc]
lea eax, [ebx + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x10], 0
mov edi, dword [ebp + 8]
je 0x4eba58
mov ecx, dword [ebp + 0xc]
push ecx
push edi
mov ecx, ebx
call fcn.004e7150
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.TASK_UPDATE_PACKAGE
push edi
call esi
test eax, eax
jne 0x4ebb49
cmp dword [ebp + 0xc], eax
je 0x4eba9b
or dword [ebp - 8], 2
lea edx, [ebp - 0x14]
push edx
call fcn.004e6490
mov eax, dword [eax]
add esp, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4eba9b
mov bl, 1
jmp 0x4eba9d
mov edi, dword [edi]
jmp 0x4eb9d5
xor bl, bl
test byte [ebp - 8], 2
je 0x4ebac6
mov eax, dword [ebp - 0x14]
and dword [ebp - 8], 0xfffffffd
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ebac6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
mov ebx, dword [ebp - 0xc]
je 0x4ebb26
mov ecx, ebx
call fcn.004e73c0
test eax, eax
je 0x4ebaf2
push 0
push 0
push 0
push 0x474
push str.Q360SafeMonClass
call fcn.004b1c00
add esp, 0x14
jmp 0x4ebb26
lea ecx, [ebp - 0x14]
push ecx
call fcn.004e6490
mov edx, dword [eax]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ebb26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebx + 0x7c], 0
jne 0x4ebb46
mov ecx, dword [ebx + 0x10]
mov dword [ebx + 0x70], 1
test ecx, ecx
je 0x4ebb46
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
push str.TASK_UPDATE_MODULE
call eax
mov ebx, dword [ebp - 0xc]
push str.TASK_UPDATE_MODULE
push edi
call esi
test eax, eax
jne 0x4ebb74
cmp dword [ebx + 0x7c], eax
jne 0x4ebb74
mov ecx, dword [ebx + 0x10]
mov dword [ebx + 0x78], 1
test ecx, ecx
je 0x4ebb74
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
push str.TASK_UPDATE_WLIST
call eax
mov ecx, str.TASK_UPDATE_KUNPENG_FULL
mov eax, edi
jmp 0x4ebb80
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4ebba6
test dx, dx
je 0x4ebba2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4ebba6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4ebb80
xor eax, eax
jmp 0x4ebbab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4ec023
mov ecx, str.TASK_UPDATE_KUNPENG_INCREMENTAL
mov eax, edi
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4ebbe6
test dx, dx
je 0x4ebbe2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4ebbe6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4ebbc0
xor eax, eax
jmp 0x4ebbeb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4ec023
lea eax, [ebx + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 0xc], 0
je 0x4ebc30
push edi
lea ecx, [ebp + 0x10]
call fcn.00464b60
or dword [ebp - 8], 4
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [ebx + 0x44]
call fcn.004eb220
mov edx, dword [eax + 0x10]
sub edx, dword [eax + 0xc]
sar edx, 2
test edx, edx
jbe 0x4ebc30
mov bl, 1
jmp 0x4ebc32
xor bl, bl
test byte [ebp - 8], 4
je 0x4ebc57
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ebc57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4ebcf5
push 0
call fcn.0051ef0a
add esp, 4
push str._Y__m__d
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
call fcn.004c7dd0
push 0
push ecx
mov ecx, esp
push str.LastUpdateTime
call fcn.00464b60
push ecx
mov ecx, esp
push str.SOFTWARE360TotalSecurityUpdate
call fcn.00464b60
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x28]
call fcn.00448da0
mov esi, dword [ebp + 0x10]
mov ecx, esi
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4ebcb1
sub ecx, edi
sar ecx, 1
lea edx, [ecx + ecx + 2]
push edx
push esi
push 1
push eax
call fcn.00438180
add esp, 0x10
lea ecx, [ebp - 0x28]
call fcn.00448540
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ebcf5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
call fcn.0051ef0a
add esp, 4
push 8
lea ecx, [ebp - 0x18]
push ecx
push 0xb
push 0
push ecx
mov ecx, esp
push str.LastUpdateTime2
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
call fcn.00464b60
push ecx
mov ecx, esp
push str.SOFTWARE360TotalSecurityUpdate
call fcn.00464b60
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x28]
call fcn.00448da0
push eax
call fcn.00438180
add esp, 0x10
lea ecx, [ebp - 0x28]
call fcn.00448540
mov ebx, dword [ebp + 8]
push ebx
lea ecx, [ebp + 0x10]
call fcn.00464b60
mov edi, dword [ebp - 0xc]
lea edx, [ebp + 0x10]
push edx
lea ecx, [edi + 0x44]
call fcn.004eb220
mov ecx, eax
call fcn.0047fdc0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ebd88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
je 0x4ebe26
push str.TASK_UPDATE_PACKAGE
push ebx
call esi
test eax, eax
je 0x4ebdbd
push str.TASK_UPDATE_MODULE
push ebx
call esi
test eax, eax
jne 0x4ebdd3
cmp dword [edi + 0x68], 3
je 0x4ebdd3
lea ecx, [edi + 8]
call fcn.004392b0
xor eax, eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x68], eax
cmp dword [edi + 0x7c], 0
jne 0x4ebe26
push str.TASK_UPDATE_MODULE_MANUAL
push ebx
call esi
test eax, eax
jne 0x4ebe26
cmp dword [edi + 0x10], eax
je 0x4ebe02
cmp dword [edi + 0x2c], eax
jne 0x4ebe02
mov ecx, dword [edi + 0x24]
push 3
mov dword [edi + 0x2c], 1
call fcn.004ecbe0
jmp 0x4ebe0e
push str.TASK_UPDATE_WLIST_MANUAL
mov ecx, edi
call fcn.004e0ed0
push 0
push 0
push 0
push 0x4f0
push str.Q360SafeMonClass
call fcn.004b1c00
add esp, 0x14
push str.TASK_UPDATE_KUNPENG_INCREMENTAL_MANUAL
push ebx
call esi
test eax, eax
jne 0x4ebe62
mov dword [edi + 0x2c], eax
cmp dword [ebp + 0xc], eax
je 0x4ebe86
push eax
push eax
push 3
push 0x47d
push str.Q360SafeMonClass
call fcn.004b1c00
add esp, 0x14
cmp dword [edi + 0x7c], 0
jne 0x4ebe62
push str.TASK_UPDATE_WLIST_MANUAL
mov ecx, edi
call fcn.004e0ed0
cmp dword [ebp + 0xc], 0
je 0x4ebe86
cmp dword [edi + 0x7c], 0
jne 0x4ebe86
push str.TASK_UPDATE_WLIST_MANUAL
push ebx
call esi
test eax, eax
jne 0x4ebe86
push str.TASK_UPDATE_PACKAGE_MANUAL
mov ecx, edi
call fcn.004e0ed0
push str.TASK_UPDATE_PACKAGE_MANUAL
push ebx
call esi
test eax, eax
je 0x4ebebc
cmp dword [ebp + 0xc], 0
jne 0x4ebec3
push str.TASK_UPDATE_MODULE_MANUAL
push ebx
call esi
test eax, eax
je 0x4ebebc
push str.TASK_UPDATE_WLIST_MANUAL
push ebx
call esi
test eax, eax
je 0x4ebebc
push str.TASK_UPDATE_KUNPENG_INCREMENTAL_MANUAL
push ebx
call esi
test eax, eax
jne 0x4ebec3
mov dword [edi + 0x64], 0
cmp dword [edi + 0x7c], 0
je 0x4ebf12
push str.TASK_UPDATE_PACKAGE_MANUAL
push ebx
call esi
test eax, eax
je 0x4ebf0b
cmp dword [edi + 0x7c], 0
je 0x4ebf12
push str.TASK_UPDATE_MODULE_MANUAL
push ebx
call esi
test eax, eax
je 0x4ebf0b
cmp dword [edi + 0x7c], 0
je 0x4ebf12
push str.TASK_UPDATE_WLIST_MANUAL
push ebx
call esi
test eax, eax
je 0x4ebf0b
cmp dword [edi + 0x7c], 0
je 0x4ebf12
push str.TASK_UPDATE_KUNPENG_INCREMENTAL_MANUAL
push ebx
call esi
test eax, eax
jne 0x4ebf12
mov dword [edi + 0x64], 0
cmp dword [ebp + 0xc], 0
je 0x4ebf1f
mov ecx, edi
call fcn.004e8340
mov ecx, str.TASK_UPDATE_PACKAGE
mov eax, ebx
xor esi, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4ebf4e
cmp dx, si
je 0x4ebf4a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4ebf4e
add eax, 4
add ecx, 4
cmp dx, si
jne 0x4ebf28
xor eax, eax
jmp 0x4ebf53
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x4ebf5f
mov dword [edi + 0x6c], esi
jmp 0x4ec1c4
mov ecx, str.TASK_UPDATE_MODULE
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4ebf8c
cmp dx, si
je 0x4ebf88
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4ebf8c
add eax, 4
add ecx, 4
cmp dx, si
jne 0x4ebf66
xor eax, eax
jmp 0x4ebf91
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x4ebf9d
mov dword [edi + 0x70], esi
jmp 0x4ec1c4
mov ecx, str.TASK_UPDATE_FORCE_MODULE
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4ebfca
cmp dx, si
je 0x4ebfc6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4ebfca
add eax, 4
add ecx, 4
cmp dx, si
jne 0x4ebfa4
xor eax, eax
jmp 0x4ebfcf
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x4ebfdb
mov dword [edi + 0x74], esi
jmp 0x4ec1c4
mov ecx, str.TASK_UPDATE_WLIST
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4ec008
cmp dx, si
je 0x4ec004
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4ec008
add eax, 4
add ecx, 4
cmp dx, si
jne 0x4ebfe2
xor eax, eax
jmp 0x4ec00d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x4ec1c4
mov ecx, edi
mov dword [ecx + 0x78], 0
jmp 0x4ec1c4
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x24]
mov esi, dword [ebp + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
push eax
push esi
push edi
call edx
mov ecx, str.TASK_UPDATE_KUNPENG_FULL
mov eax, edi
test esi, esi
je 0x4ec0d8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4ec06b
test dx, dx
je 0x4ec067
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4ec06b
add eax, 4
add ecx, 4
test dx, dx
jne 0x4ec045
xor eax, eax
jmp 0x4ec070
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4ec08a
push eax
push eax
push 3
push 0x470
push str.Q360SafeMonClass
call fcn.004b1c00
add esp, 0x14
mov ecx, str.TASK_UPDATE_KUNPENG_INCREMENTAL
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4ec0b7
test dx, dx
je 0x4ec0b3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4ec0b7
add eax, 4
add ecx, 4
test dx, dx
jne 0x4ec091
xor eax, eax
jmp 0x4ec0bc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4ec117
push eax
push eax
push 3
push 0x47d
push str.Q360SafeMonClass
call fcn.004b1c00
add esp, 0x14
jmp 0x4ec117
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4ec0fe
test dx, dx
je 0x4ec0fa
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4ec0fe
add eax, 4
add ecx, 4
test dx, dx
jne 0x4ec0d8
xor eax, eax
jmp 0x4ec103
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4ec117
push 1
push 3
call fcn.004e1e60
mov ecx, eax
call fcn.004b55e0
mov dword [ebx + 0x2c], 0
test esi, esi
je 0x4ec1c4
push 0
call fcn.0051ef0a
add esp, 4
mov dword [ebp - 0x20], eax
push str._Y__m__d
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], edx
call fcn.004c7dd0
push 0
push ecx
mov ecx, esp
push str.LastAvBdUpdateTime
call fcn.00464b60
push ecx
mov ecx, esp
push str.SOFTWARE360TotalSecurityUpdate
call fcn.00464b60
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x28]
call fcn.00448da0
mov esi, dword [ebp + 0x10]
mov ecx, esi
lea edi, [ecx + 2]
jmp 0x4ec180
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4ec180
sub ecx, edi
sar ecx, 1
lea ecx, [ecx + ecx + 2]
push ecx
push esi
push 1
push eax
call fcn.00438180
add esp, 0x10
lea ecx, [ebp - 0x28]
call fcn.00448540
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4ec1c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp + 8]
push str.UPDATE_TASK_ID_PACKAGE_MANUAL_CHECK
push ebx
mov esi, 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, dword [ebp - 0xc]
test eax, eax
jne 0x4ec1e6
cmp dword [edi + 0x34], esi
jne 0x4ec1e6
xor esi, esi
cmp dword [ebp + 0xc], 0
jne 0x4ec1fb
cmp esi, 1
jne 0x4ec1fb
push 0
push ebx
mov ecx, edi
call fcn.004e75c0
push 1
push 0x576bd0
push 0
push ebx
mov ecx, edi
call fcn.004e74f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc