Function at 0x4349e0
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.00431270
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 0x434d21
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 0x434c90
test edi, edi
je 0x434a84
cmp word [edi], 0
mov eax, edi
jne 0x434a89
mov eax, 0x628fa4
push eax
mov ecx, esi
call fcn.00406e30
test eax, eax
je 0x434a9d
add esi, 0x14
cmp esi, dword [ebx + 0xc]
jne 0x434a78
cmp esi, dword [ebx + 0xc]
je 0x434c90
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 0x434ad0
cmp word [edi], 0
mov dword [ebp - 0x20], edi
jne 0x434ad7
mov dword [ebp - 0x20], 0x628fa4
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x434ae4
cmp word [eax], 0
jne 0x434ae9
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 0x434b43
mov esi, 2
cmp eax, esi
jle 0x434b16
nop dword [eax + eax]
add esi, esi
cmp esi, eax
jl 0x434b10
lea eax, [esi*2 + 2]
push eax
push dword [ecx]
call fcn.004d2e2e
mov ecx, dword [ebp - 0x18]
mov edx, eax
add esp, 8
test edx, edx
je 0x434b42
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.004d8da4
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 0x434b6e
cmp word [eax], 0
jne 0x434b73
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 0x434b95
cmp word [eax], 0
jne 0x434b9a
mov eax, 0x628fa4
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
cmp eax, 1
jne 0x434bc1
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x434bb5
cmp word [eax], 0
jne 0x434bba
mov eax, 0x628fa4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x434bce
cmp word [eax], 0
jne 0x434bd3
mov eax, 0x628fa4
push eax
call esi
cmp eax, 1
jne 0x434c18
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x68]
call fcn.0042fed0
test al, al
je 0x434dec
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x54]
push eax
cmp esi, dword [ebp - 0x1c]
je 0x434c09
mov ecx, esi
call fcn.00406930
add esi, 0x14
mov dword [ebp - 0x30], esi
jmp 0x434c18
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 0x434c2f
push eax
call fcn.004d2e13
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 0x434c5b
push eax
call fcn.004d2e13
add esp, 4
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x434c72
push eax
call fcn.004d2e13
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 0x434c90
push eax
call fcn.004d2e13
add esp, 4
mov byte [ebp - 4], 3
test edi, edi
je 0x434ca1
push edi
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x434cb1
push eax
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x24]
add eax, 0x14
mov dword [ebp - 0x24], eax
cmp eax, dword [ebp - 0x28]
jne 0x434a60
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x434d1e
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 0x434d14
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x435031
push ecx
push esi
call fcn.004ce396
add esp, 8
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x434d8f
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 0x434d70
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x435031
push ecx
push esi
call fcn.004ce396
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 0x434fe5
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 0x434fc6
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x435031
jmp 0x434fc6
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 0x434e7d
push eax
call fcn.004d2e13
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 0x434ea9
push eax
call fcn.004d2e13
add esp, 4
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x434ec0
push eax
call fcn.004d2e13
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 0x434eec
push eax
call fcn.004d2e13
add esp, 4
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x434efc
push eax
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x434f0c
push eax
call fcn.004d2e13
add esp, 4
mov esi, dword [ebp - 0x34]
mov edi, esi
mov eax, dword [ebp - 0x30]
cmp edi, eax
je 0x434cc9
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 0x434f38
lea eax, [ecx - 1]
xor esi, esi
test eax, eax
cmovns esi, eax
lea eax, [esi + edx]
cmp eax, ecx
jle 0x434f4a
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.0042fed0
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x434f83
push eax
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x434f93
push eax
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x434fa3
push eax
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x434fb3
push eax
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x30]
add edi, 0x14
cmp edi, eax
jne 0x434f20
jmp 0x434cc6
push ecx
push esi
call fcn.004ce396
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 0x434ffc
push eax
call fcn.004d2e13
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 0x43501a
push ecx
call fcn.004d2e13
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.004d85d5
int3