Function at 0x434610
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.00435040
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
cmp ecx, eax
je 0x43498d
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 0x4346a6
cmp word [eax], 0
mov dword [ebp - 0x14], eax
jne 0x4346ad
mov dword [ebp - 0x14], 0x628fa4
mov eax, dword [ebx + 8]
test eax, eax
je 0x4346ba
cmp word [eax], 0
jne 0x4346bf
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 0x43470b
mov esi, 2
cmp eax, esi
jle 0x4346e6
nop
add esi, esi
cmp esi, eax
jl 0x4346e0
lea eax, [esi*2 + 2]
push eax
push dword [edi]
call fcn.004d2e2e
add esp, 8
test eax, eax
je 0x43470a
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.004d8da4
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 0x434735
cmp word [eax], 0
jne 0x43473a
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 0x43475c
cmp word [eax], 0
jne 0x434761
mov eax, 0x628fa4
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
cmp eax, 1
jne 0x434788
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x43477c
cmp word [eax], 0
jne 0x434781
mov eax, 0x628fa4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x434795
cmp word [eax], 0
jne 0x43479a
mov eax, 0x628fa4
push eax
call esi
cmp eax, 1
jne 0x4348df
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x44]
call fcn.0042fed0
test al, al
jne 0x4348df
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 0x43483c
cmp word [eax], 0
jne 0x434841
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.0042fed0
test al, al
jne 0x4348df
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 0x4348f6
push eax
call fcn.004d2e13
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 0x434922
push eax
call fcn.004d2e13
add esp, 4
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x434939
push eax
call fcn.004d2e13
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 0x434957
push eax
call fcn.004d2e13
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x43496b
push eax
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x43497b
push eax
call fcn.004d2e13
add esp, 4
mov ecx, dword [ebp - 0x18]
add ecx, 0x14
mov dword [ebp - 0x18], ecx
cmp ecx, dword [ebp - 0x1c]
jne 0x434670
mov eax, dword [ebx + 8]
test eax, eax
je 0x4349a4
push eax
call fcn.004d2e13
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 0x4349c2
push eax
call fcn.004d2e13
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