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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bb198
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
push esi
push edi
mov eax, dword [0x6441a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.004350c0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
cmp ecx, eax
je 0x4349fd
nop word [eax + eax]
push ecx
lea ecx, [ebp - 0x58]
call fcn.00406930
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x434716
cmp word [eax], 0
mov dword [ebp - 0x14], eax
jne 0x43471d
mov dword [ebp - 0x14], 0x628fa4
mov eax, dword [ebx + 8]
test eax, eax
je 0x43472a
cmp word [eax], 0
jne 0x43472f
mov eax, 0x628fa4
push eax
lea ecx, [ebp - 0x44]
call fcn.00406cf0
mov edi, eax
mov eax, dword [edi + 4]
mov esi, dword [edi + 8]
inc eax
cmp esi, eax
jg 0x43477b
mov esi, 2
cmp eax, esi
jle 0x434756
nop
add esi, esi
cmp esi, eax
jl 0x434750
lea eax, [esi*2 + 2]
push eax
push dword [edi]
call fcn.004d2e5e
add esp, 8
test eax, eax
je 0x43477a
mov ecx, dword [edi + 4]
xor edx, edx
mov dword [edi], eax
mov word [eax + ecx*2], dx
mov dword [edi + 8], esi
inc esi
push 0x6294f0
push esi
push dword [edi]
call fcn.004d8dd4
inc dword [edi + 4]
add esp, 0xc
mov ecx, edi
push dword [ebp - 0x14]
call fcn.00406cf0
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4347a5
cmp word [eax], 0
jne 0x4347aa
mov eax, 0x628fa4
push str._tmp
push eax
lea ecx, [ebp - 0x30]
call fcn.00406cf0
mov ecx, eax
call fcn.00406cf0
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4347cc
cmp word [eax], 0
jne 0x4347d1
mov eax, 0x628fa4
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
cmp eax, 1
jne 0x4347f8
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4347ec
cmp word [eax], 0
jne 0x4347f1
mov eax, 0x628fa4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x434805
cmp word [eax], 0
jne 0x43480a
mov eax, 0x628fa4
push eax
call esi
cmp eax, 1
jne 0x43494f
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x44]
call fcn.0042ff40
test al, al
jne 0x43494f
movups xmm0, xmmword [0x628d68]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
push ecx
lea ecx, [ebp - 0x44]
movups xmmword [eax], xmm0
call fcn.00407000
sub esp, 0x10
mov edi, eax
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004182c0
sub esp, 0x10
mov edx, str.D:Tools_agentworkspaceWeChatUpdateWechatUpdateutilsUtils.cpp
mov eax, esp
mov ecx, 4
push str.renameOldVersionFiles._renameFile_step1_faild._path_s__lastErr_d
push str.Utils
push str.Utils::renameOldVersionFiles
push 0x86b
mov byte [eax], 2
mov dword [eax + 8], edi
call fcn.00403890
mov eax, dword [ebp - 0x44]
add esp, 0x70
test eax, eax
je 0x4348ac
cmp word [eax], 0
jne 0x4348b1
mov eax, 0x628fa4
push dword [ebp - 0x40]
lea ecx, [ebp - 0x30]
push eax
call fcn.00406c40
push str._bak
lea ecx, [ebp - 0x30]
call fcn.00406cf0
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x44]
call fcn.0042ff40
test al, al
jne 0x43494f
movups xmm0, xmmword [0x628d68]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
push ecx
lea ecx, [ebp - 0x44]
movups xmmword [eax], xmm0
call fcn.00407000
sub esp, 0x10
mov edi, eax
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004182c0
sub esp, 0x10
mov edx, str.D:Tools_agentworkspaceWeChatUpdateWechatUpdateutilsUtils.cpp
mov eax, esp
mov ecx, 4
push str.renameOldVersionFiles._renameFile_step2_faild._path_s__lastErr_d
push str.Utils
push str.Utils::renameOldVersionFiles
push 0x872
mov byte [eax], 2
mov dword [eax + 8], edi
call fcn.00403890
add esp, 0x70
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x434966
push eax
call fcn.004d2e43
add esp, 4
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
test eax, eax
je 0x434992
push eax
call fcn.004d2e43
add esp, 4
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4349a9
push eax
call fcn.004d2e43
add esp, 4
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
test eax, eax
je 0x4349c7
push eax
call fcn.004d2e43
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x4349db
push eax
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4349eb
push eax
call fcn.004d2e43
add esp, 4
mov ecx, dword [ebp - 0x18]
add ecx, 0x14
mov dword [ebp - 0x18], ecx
cmp ecx, dword [ebp - 0x1c]
jne 0x4346e0
mov eax, dword [ebx + 8]
test eax, eax
je 0x434a14
push eax
call fcn.004d2e43
add esp, 4
mov dword [ebx + 8], 0
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0xc], 0
test eax, eax
je 0x434a32
push eax
call fcn.004d2e43
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret