Function at 0x4308e0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bad0b
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x6441a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x268], edi
push ecx
lea ecx, [ebp + 8]
mov dword [ebp - 4], 1
call fcn.00407000
movups xmm0, xmmword [0x628d68]
sub esp, 0x10
mov edx, eax
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
lea ecx, [edi + 2]
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 str.On_Delete_DIR_:__s
push str.Utils
push str.Utils::emptyDir
mov dword [eax + 8], edx
mov edx, str.D:Tools_agentworkspaceWeChatUpdateWechatUpdateutilsUtils.cpp
push 0x3c9
mov byte [eax], 2
call fcn.00403890
add esp, 0x70
mov dword [ebp - 0x288], edi
cmp dword [ebp + 0x20], edi
xorps xmm0, xmm0
movups xmmword [ebp - 0x298], xmm0
setg byte [ebp - 0x262]
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0xc]
cmp ecx, 1
jl 0x4309c8
mov eax, dword [ebp + 8]
push 1
push 0x6294f0
lea eax, [eax + ecx*2]
add eax, 0xfffffffe
push eax
call fcn.004d9259
add esp, 0xc
test eax, eax
je 0x4309d5
push 0x6294f0
lea ecx, [ebp + 8]
call fcn.00406cf0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4309e2
cmp word [eax], 0
jne 0x4309e7
mov eax, 0x628fa4
push eax
lea eax, [ebp - 0x298]
push str._s.
push eax
call fcn.00406ec0
mov esi, dword [ebp - 0x298]
add esp, 0xc
test esi, esi
je 0x430a0e
cmp word [esi], 0
mov eax, esi
jne 0x430a13
mov eax, 0x628fa4
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x26c], eax
cmp eax, 0xffffffff
je 0x430c9b
push 0xff
lea eax, [ebp - 0x234]
push 0x629df4
push eax
call fcn.004d9259
add esp, 0xc
test eax, eax
je 0x430c74
push 0xff
lea eax, [ebp - 0x234]
push 0x62c6c8
push eax
call fcn.004d9259
add esp, 0xc
test eax, eax
je 0x430c74
cmp byte [ebp - 0x262], 0
je 0x430ad9
push 0xffffffffffffffff
lea eax, [ebp - 0x234]
mov dword [ebp - 0x270], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x280]
push eax
movups xmmword [ebp - 0x280], xmm0
call fcn.00406c40
or edi, 1
mov dword [ebp - 0x268], edi
mov edi, dword [ebp - 0x280]
test edi, edi
je 0x430abe
cmp word [edi], 0
mov eax, edi
jne 0x430ac3
mov eax, 0x628fa4
push eax
lea ecx, [ebp + 0x1c]
call fcn.00406e30
test eax, eax
jne 0x430adf
mov byte [ebp - 0x261], 1
jmp 0x430ae6
mov edi, dword [ebp - 0x280]
mov byte [ebp - 0x261], 0
mov eax, dword [ebp - 0x268]
test al, 1
je 0x430b19
and eax, 0xfffffffe
mov dword [ebp - 0x268], eax
test edi, edi
je 0x430b06
push edi
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x274]
test eax, eax
je 0x430b19
push eax
call fcn.004d2e43
add esp, 4
cmp byte [ebp - 0x261], 0
jne 0x430c6e
test byte [ebp - 0x260], 0x10
je 0x430bfc
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x280]
call fcn.00406930
push 0x6294f0
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 3
call fcn.00406cf0
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x280]
call fcn.00406cf0
sub esp, 0x14
mov ecx, esp
push 0xffffffffffffffff
push 0x628fa4
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
call fcn.00406c40
sub esp, 0x14
lea eax, [ebp - 0x280]
mov ecx, esp
push eax
call fcn.00406930
call fcn.004308e0
mov edi, dword [ebp - 0x280]
add esp, 0x28
test edi, edi
je 0x430bc6
cmp word [edi], 0
mov eax, edi
jne 0x430bcb
mov eax, 0x628fa4
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 2
test edi, edi
je 0x430be3
push edi
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x274]
test eax, eax
je 0x430c6e
push eax
call fcn.004d2e43
add esp, 4
jmp 0x430c6e
mov eax, dword [ebp + 8]
test eax, eax
je 0x430c09
cmp word [eax], 0
jne 0x430c0e
mov eax, 0x628fa4
lea ecx, [ebp - 0x234]
push ecx
push eax
lea eax, [ebp - 0x298]
push 0x629b54
push eax
call fcn.00406ec0
mov eax, dword [ebp - 0x260]
add esp, 0x10
mov esi, dword [ebp - 0x298]
test al, 1
je 0x430c56
test esi, esi
je 0x430c46
cmp word [esi], 0
mov ecx, esi
jne 0x430c4b
mov ecx, 0x628fa4
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test esi, esi
je 0x430c62
cmp word [esi], 0
mov eax, esi
jne 0x430c67
mov eax, 0x628fa4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp - 0x268]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x430a30
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
je 0x430ca8
push esi
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x28c]
test eax, eax
je 0x430cbb
push eax
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp + 8]
test eax, eax
je 0x430cd2
push eax
call fcn.004d2e43
add esp, 4
mov dword [ebp + 8], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x10], 0
mov dword [ebp + 0xc], 0
test eax, eax
je 0x430cfe
push eax
call fcn.004d2e43
add esp, 4
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x430d15
push eax
call fcn.004d2e43
add esp, 4
mov dword [ebp + 0x1c], 0
mov eax, dword [ebp + 0x28]
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x20], 0
test eax, eax
je 0x430d33
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cdf5d
mov esp, ebp
pop ebp
ret