Function at 0x493960
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509fb4
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x567e00]
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
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x20]
imul ecx, eax, 0x64
movzx eax, word [ebp - 0x1e]
push 0
mov dword [ebp - 0x2bc], 0
add ecx, eax
movzx eax, word [ebp - 0x1a]
imul esi, ecx, 0x64
add esi, eax
lea eax, [ebp - 0x2bc]
push eax
push str.HKCUSoftwareKingsoftOffice6.0CommonupdateinfoRemoveChangeLogDate
call fcn.0044cd70
add esp, 0xc
cmp esi, dword [ebp - 0x2bc]
jne 0x493a04
push str.current_date_already_check_remove
push str._anonymous_namespace::isNeedToRemove
push 0x1c
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcmisckmanagechangelog.cpp
push 7
call fcn.00412230
add esp, 0x14
jmp 0x494041
push 0
push esi
push str.HKCUSoftwareKingsoftOffice6.0CommonupdateinfoRemoveChangeLogDate
call fcn.0044d470
lea eax, [ebp - 0x88]
push 0x10
push eax
call fcn.00417040
add esp, 0x14
mov edi, dword [ebp - 0x78]
mov dword [ebp - 4], 0
test edi, edi
jne 0x493a4f
push 0x52b124
push str.kupdate::kManageChangeLog::removeExpireChangeLog
push 0x49
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcmisckmanagechangelog.cpp
push edi
call fcn.00412230
add esp, 0x14
jmp 0x494002
mov eax, 0x7ffffffe
sub eax, edi
cmp eax, 2
jb 0x49405d
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
mov esi, 7
mov dword [ebp - 0x28], 0
cmovae eax, dword [ebp - 0x88]
lea ebx, [ebp - 0x28]
mov dword [ebp - 0x2bc], eax
lea eax, [edi + 2]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp eax, esi
jbe 0x493acc
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x493aae
mov esi, 0x7ffffffe
jmp 0x493ab8
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403890
mov ebx, eax
lea eax, [edi + 2]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x14], esi
lea esi, [edi + edi]
push esi
push dword [ebp - 0x2bc]
mov dword [ebp - 0x18], eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
xor eax, eax
mov dword [esi + ebx], 0x2a005c
add esp, 0xc
mov word [ebx + edi*2 + 4], ax
push 0xa
push str..changelog
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004038f0
mov edx, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov ecx, dword [edx]
mov dword [ebp - 0x58], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x54], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x50], ecx
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x493b93
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x493b89
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x493b89
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x2b8]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfindfirst64i32]
add esp, 8
mov dword [ebp - 0x2c0], eax
cmp eax, 0xffffffff
je 0x493fb8
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov ebx, 7
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x28], ax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ebx
mov word [ebp - 0x70], ax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x56d69c]
mov byte [ebp - 4], 6
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x56c48c]
cmp eax, dword [ecx + 4]
jg 0x494062
lea eax, [ebp - 0x70]
push eax
mov eax, dword [0x56bad0]
push 0x56bad0
call dword [eax + 0x20]
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov ebx, dword [ebp - 0x2c0]
add esp, 4
sub eax, 0x278d00
mov dword [ebp - 0x2cc], eax
lea esp, [esp]
test byte [ebp - 0x2b8], 0x10
jne 0x493eb7
cmp dword [ebp - 0x2ac], 0
jg 0x493eb7
jl 0x493c78
cmp dword [ebp - 0x2b0], eax
ja 0x493eb7
lea ecx, [ebp - 0x294]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x493c81
sub ecx, edx
lea eax, [ebp - 0x294]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00403a70
cmp dword [ebp - 0x5c], 8
lea ebx, [ebp - 0x70]
mov edi, dword [ebp - 0x60]
lea edx, [ebp - 0x28]
cmovae ebx, dword [ebp - 0x70]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
mov dword [ebp - 0x2bc], ebx
mov dword [ebp - 0x2c8], edx
cmp edi, eax
ja 0x493d6b
test edi, edi
je 0x493eb1
sub eax, edi
inc eax
lea ecx, [edx + eax*2]
mov eax, edx
mov dword [ebp - 0x2c4], ecx
movzx edx, word [ebx]
sub ecx, eax
sar ecx, 1
mov esi, 0
movzx edx, dx
je 0x493d10
cmp word [eax], dx
je 0x493d0e
lea esp, [esp]
cmp ecx, 1
je 0x493d10
add eax, 2
dec ecx
cmp word [eax], dx
jne 0x493d00
mov esi, eax
mov eax, esi
test eax, eax
je 0x493d6b
movzx edx, word [eax]
mov ecx, ebx
movzx esi, word [ebx]
cmp dx, si
jb 0x493d4c
mov ebx, eax
sub ebx, dword [ebp - 0x2bc]
cmp dx, si
ja 0x493d46
cmp edi, 1
je 0x493d5a
movzx edx, word [ebx + ecx + 2]
add ecx, 2
dec edi
movzx esi, word [ecx]
cmp dx, si
jae 0x493d2e
mov ebx, dword [ebp - 0x2bc]
mov edi, dword [ebp - 0x60]
add eax, 2
mov ecx, dword [ebp - 0x2c4]
jmp 0x493ce6
sub eax, dword [ebp - 0x2c8]
sar eax, 1
cmp eax, 0xffffffff
jne 0x493eb1
cmp dword [ebp - 0x74], 8
lea ecx, [ebp - 0x88]
mov eax, dword [ebp - 0x78]
cmovae ecx, dword [ebp - 0x88]
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x2c8], eax
mov dword [ebp - 0x2c4], ecx
cmp eax, ebx
ja 0x493db8
lea esi, [eax + eax]
mov dword [ebp - 0x30], eax
cmp ebx, 8
lea edi, [ebp - 0x40]
push esi
cmovae edi, dword [ebp - 0x40]
push ecx
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
jmp 0x493e62
cmp eax, 0x7ffffffe
ja 0x49405d
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x493dd7
mov esi, 0x7ffffffe
jmp 0x493df5
mov ecx, ebx
mov eax, 0x7ffffffe
shr ecx, 1
sub eax, ecx
cmp ebx, eax
jbe 0x493ded
mov esi, 0x7ffffffe
jmp 0x493df5
lea eax, [ecx + ebx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x40]
call fcn.00403890
mov ecx, dword [ebp - 0x2c8]
mov edi, eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], ecx
lea esi, [ecx + ecx]
push esi
push dword [ebp - 0x2c4]
push edi
call sub.VCRUNTIME140.dll_memcpy
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
cmp ebx, 8
jb 0x493e5f
mov ecx, dword [ebp - 0x40]
lea ebx, [ebx*2 + 2]
mov eax, ecx
cmp ebx, 0x1000
jb 0x493e55
mov ecx, dword [ecx - 4]
add ebx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x494031
push ebx
push ecx
call fcn.004c6f6f
add esp, 8
mov dword [ebp - 0x40], edi
push 1
push 0x516d0c
lea ecx, [ebp - 0x40]
call fcn.004038f0
lea ecx, [ebp - 0x294]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x493e80
sub ecx, edx
lea eax, [ebp - 0x294]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.004038f0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [ebp - 0x2c0]
lea eax, [ebp - 0x2b8]
push eax
push ebx
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfindnext64i32]
add esp, 8
cmp eax, 0xffffffff
je 0x493ed8
mov eax, dword [ebp - 0x2cc]
jmp 0x493c50
push ebx
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__findclose]
mov edx, dword [ebp - 0x5c]
add esp, 4
cmp edx, 8
jb 0x493f1c
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x493f12
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x494031
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov ebx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp ebx, 8
jb 0x493f6a
mov esi, dword [ebp - 0x28]
lea ecx, [ebx*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x493f60
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x494031
push ecx
push esi
call fcn.004c6f6f
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x493fa4
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x493f9a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x494031
push edx
push ecx
call fcn.004c6f6f
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x493fee
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x493fe4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x494031
push edx
push ecx
call fcn.004c6f6f
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov edx, dword [ebp - 0x74]
cmp edx, 8
jb 0x494041
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x494037
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x494037
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
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.004c6f8b
mov esp, ebp
pop ebp
ret
call fcn.00403870
push 0x56c48c
call fcn.004c7345
add esp, 4
cmp dword [0x56c48c], 0xffffffff
jne 0x493c1c
mov ecx, 0x56bad0
mov byte [ebp - 4], 7
call fcn.0043e410
push 0x511320
call fcn.004c71fd
push 0x56c48c
mov byte [ebp - 4], 6
call fcn.004c72fb
add esp, 8
jmp 0x493c1c