Function at 0x434a50
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 0x5bb203
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
push esi
push edi
mov eax, dword [0x6441a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea edx, [ebx + 0x14]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004312e0
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov byte [ebp - 0x11], 1
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
cmp eax, ecx
je 0x434d91
nop
push eax
lea ecx, [ebp - 0x7c]
call fcn.00406930
mov esi, dword [ebx + 8]
mov edi, dword [ebp - 0x7c]
cmp esi, dword [ebx + 0xc]
je 0x434d00
test edi, edi
je 0x434af4
cmp word [edi], 0
mov eax, edi
jne 0x434af9
mov eax, 0x628fa4
push eax
mov ecx, esi
call fcn.00406e30
test eax, eax
je 0x434b0d
add esi, 0x14
cmp esi, dword [ebx + 0xc]
jne 0x434ae8
cmp esi, dword [ebx + 0xc]
je 0x434d00
xorps xmm0, xmm0
mov dword [ebp - 0x58], 0
movups xmmword [ebp - 0x68], xmm0
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 6
test edi, edi
je 0x434b40
cmp word [edi], 0
mov dword [ebp - 0x20], edi
jne 0x434b47
mov dword [ebp - 0x20], 0x628fa4
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x434b54
cmp word [eax], 0
jne 0x434b59
mov eax, 0x628fa4
push eax
lea ecx, [ebp - 0x68]
call fcn.00406cf0
mov ecx, eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ecx + 4]
mov esi, dword [ecx + 8]
inc eax
cmp esi, eax
jg 0x434bb3
mov esi, 2
cmp eax, esi
jle 0x434b86
nop dword [eax + eax]
add esi, esi
cmp esi, eax
jl 0x434b80
lea eax, [esi*2 + 2]
push eax
push dword [ecx]
call fcn.004d2e5e
mov ecx, dword [ebp - 0x18]
mov edx, eax
add esp, 8
test edx, edx
je 0x434bb2
mov eax, dword [ecx + 4]
xor edi, edi
mov dword [ecx], edx
mov word [edx + eax*2], di
mov edi, dword [ebp - 0x7c]
mov dword [ecx + 8], esi
inc esi
push 0x6294f0
push esi
push dword [ecx]
call fcn.004d8dd4
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push dword [ebp - 0x20]
inc dword [ecx + 4]
call fcn.00406cf0
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x434bde
cmp word [eax], 0
jne 0x434be3
mov eax, 0x628fa4
push str._tmp
push eax
lea ecx, [ebp - 0x54]
call fcn.00406cf0
mov ecx, eax
call fcn.00406cf0
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x434c05
cmp word [eax], 0
jne 0x434c0a
mov eax, 0x628fa4
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
cmp eax, 1
jne 0x434c31
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x434c25
cmp word [eax], 0
jne 0x434c2a
mov eax, 0x628fa4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x434c3e
cmp word [eax], 0
jne 0x434c43
mov eax, 0x628fa4
push eax
call esi
cmp eax, 1
jne 0x434c88
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x68]
call fcn.0042ff40
test al, al
je 0x434e5c
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x54]
push eax
cmp esi, dword [ebp - 0x1c]
je 0x434c79
mov ecx, esi
call fcn.00406930
add esi, 0x14
mov dword [ebp - 0x30], esi
jmp 0x434c88
push esi
lea ecx, [ebp - 0x34]
call fcn.00418360
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x434c9f
push eax
call fcn.004d2e43
add esp, 4
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
test eax, eax
je 0x434ccb
push eax
call fcn.004d2e43
add esp, 4
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x434ce2
push eax
call fcn.004d2e43
add esp, 4
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
test eax, eax
je 0x434d00
push eax
call fcn.004d2e43
add esp, 4
mov byte [ebp - 4], 3
test edi, edi
je 0x434d11
push edi
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x434d21
push eax
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x24]
add eax, 0x14
mov dword [ebp - 0x24], eax
cmp eax, dword [ebp - 0x28]
jne 0x434ad0
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x434d8e
push ecx
mov edx, eax
mov ecx, esi
call fcn.00418530
mov ecx, dword [ebp - 0x1c]
mov eax, 0x66666667
sub ecx, esi
add esp, 4
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x434d84
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4350a1
push ecx
push esi
call fcn.004ce3c6
add esp, 8
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x434dff
mov edx, dword [ebp - 0x3c]
push ecx
mov ecx, eax
call fcn.00418530
mov ecx, dword [ebp - 0x38]
mov eax, 0x66666667
mov esi, dword [ebp - 0x40]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x434de0
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4350a1
push ecx
push esi
call fcn.004ce3c6
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x435055
mov edx, dword [ebx + 0xc]
push ecx
call fcn.00418530
mov ecx, dword [ebx + 0x10]
mov eax, 0x66666667
mov esi, dword [ebx + 8]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x435036
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4350a1
jmp 0x435036
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 - 0x68]
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.renameOldDll._renameFile_faild._path_s__lastErr_d
push str.Utils
push str.Utils::renameOldDlls
push 0x895
mov byte [eax], 2
mov dword [eax + 8], edi
call fcn.00403890
mov eax, dword [ebp - 0x54]
add esp, 0x70
mov byte [ebp - 0x11], 0
test eax, eax
je 0x434eed
push eax
call fcn.004d2e43
add esp, 4
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
test eax, eax
je 0x434f19
push eax
call fcn.004d2e43
add esp, 4
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x434f30
push eax
call fcn.004d2e43
add esp, 4
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
test eax, eax
je 0x434f5c
push eax
call fcn.004d2e43
add esp, 4
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x434f6c
push eax
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x434f7c
push eax
call fcn.004d2e43
add esp, 4
mov esi, dword [ebp - 0x34]
mov edi, esi
mov eax, dword [ebp - 0x30]
cmp edi, eax
je 0x434d39
nop dword [eax]
push edi
lea ecx, [ebp - 0x68]
call fcn.00406930
mov ecx, dword [ebp - 0x64]
xor eax, eax
lea edx, [ecx - 4]
test ecx, ecx
jg 0x434fa8
lea eax, [ecx - 1]
xor esi, esi
test eax, eax
cmovns esi, eax
lea eax, [esi + edx]
cmp eax, ecx
jle 0x434fba
mov edx, ecx
sub edx, esi
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x7c]
push edx
xorps xmm0, xmm0
mov dword [ebp - 0x6c], 0
movups xmmword [ebp - 0x7c], xmm0
lea eax, [eax + esi*2]
push eax
call fcn.00406c40
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x68]
call fcn.0042ff40
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x434ff3
push eax
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x435003
push eax
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x435013
push eax
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x435023
push eax
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x30]
add edi, 0x14
cmp edi, eax
jne 0x434f90
jmp 0x434d36
push ecx
push esi
call fcn.004ce3c6
add esp, 8
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x43506c
push eax
call fcn.004d2e43
add esp, 4
mov dword [ebx + 0x14], 0
mov ecx, dword [ebx + 0x20]
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x18], 0
test ecx, ecx
je 0x43508a
push ecx
call fcn.004d2e43
add esp, 4
mov al, byte [ebp - 0x11]
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
call fcn.004d8605
int3