Function at 0x41af30
Capabilities:
Delete directory
Delete file
Print debug messages
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c3caf
mov eax, dword fs:[0]
push eax
sub esp, 0xc94
mov eax, dword [0x624500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xc9c], edi
mov dword [ebp - 4], 0
mov eax, dword [0x5fd6e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd6e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.0058d810
push dword [edi]
lea eax, [ebp - 0x80a]
push str.DTLScriptEngine::DeleteDirectoriesEx
push str._s__s
push eax
call fcn.0040988e
add esp, 0x1c
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x464
lea eax, [ebp - 0xc7c]
push 0
push eax
call fcn.0058d810
mov eax, 0x5c
mov dword [ebp - 0x820], 0
add esp, 0xc
mov word [ebp - 0x824], ax
mov dword [ebp - 0x81c], 0
mov byte [ebp - 4], 2
call fcn.00405c3d
mov ecx, eax
test ecx, ecx
je 0x41b383
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x814], esi
mov byte [ebp - 4], 3
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
or ebx, 0xffffffff
mov dword [ebp - 0xc98], eax
test eax, eax
je 0x41b03e
push ecx
push dword [edi]
lea ecx, [ebp - 0x814]
call fcn.00429100
jmp 0x41b0a3
mov edx, dword [edi]
lea edi, [esi - 0x10]
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x41b0a9
mov eax, dword [edi + 0xc]
lea esi, [edi + 0xc]
shr eax, 0x1f
test al, al
jne 0x41b094
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x41b094
call fcn.00405dc6
mov dword [ebp - 0xc84], eax
mov byte [ebp - 4], 4
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x41b085
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0xc84]
lea esi, [eax + 0x10]
mov byte [ebp - 4], 3
mov dword [ebp - 0x814], esi
jmp 0x41b0a9
push dword [edx - 0xc]
lea ecx, [ebp - 0x814]
push edx
call fcn.00409b39
mov esi, dword [ebp - 0x814]
push esi
lea ecx, [ebp - 0xc7c]
call fcn.0042fb30
test eax, eax
jne 0x41b0d0
add esi, 0xfffffff0
mov byte [ebp - 4], 5
jmp 0x41b30c
cmp dword [ebp - 0x81c], 0
je 0x41b1cb
mov ecx, dword [ebp - 0xc7c]
mov eax, ecx
shr eax, 4
and eax, 1
je 0x41b11b
cmp word [ebp - 0xc50], 0x2e
jne 0x41b11b
mov dx, word [ebp - 0xc4e]
test dx, dx
je 0x41b282
cmp dx, 0x2e
jne 0x41b11b
cmp word [ebp - 0xc4c], 0
je 0x41b282
test eax, eax
je 0x41b182
lea eax, [ebp - 0xc88]
push eax
lea ecx, [ebp - 0xc7c]
call fcn.0042f710
mov dword [ebp - 0xc84], eax
sub esp, 0x28
mov edi, esp
mov dword [ebp - 0xca0], edi
mov dword [edi + 0x24], 0
mov byte [ebp - 4], 8
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x41b162
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0xc84]
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.0041af30
mov edx, dword [ebp - 0xc88]
add esp, 0x28
add edx, 0xfffffff0
mov byte [ebp - 4], 9
jmp 0x41b26a
and ecx, 1
je 0x41b1cb
lea eax, [ebp - 0xc8c]
push eax
lea ecx, [ebp - 0xc7c]
call fcn.0042f710
push 0x80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp - 0xc8c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xa
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41b1c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
lea eax, [ebp - 0xc90]
push eax
lea ecx, [ebp - 0xc7c]
call fcn.0042f710
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0xc90]
mov edi, eax
add edx, 0xfffffff0
mov byte [ebp - 4], 0xb
mov ecx, ebx
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x41b208
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
test edi, edi
jne 0x41b282
cmp dword [ebp + 0x2c], edi
je 0x41b282
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x818], eax
lea ecx, [ebp - 0xc7c]
lea eax, [ebp - 0xc94]
push eax
call fcn.0042f710
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0xc80], eax
test ecx, ecx
je 0x41b38d
mov eax, dword [ecx]
lea edx, [ebp - 0x818]
push edx
lea edx, [ebp - 0xc80]
push edx
call dword [eax + 8]
mov edx, dword [ebp - 0xc94]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xd
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41b27e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x820]
test eax, eax
je 0x41b2dd
cmp dword [ebp - 0x81c], 0
je 0x41b2b7
lea ecx, [ebp - 0xc7c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x81c], eax
test eax, eax
jne 0x41b0d0
mov eax, dword [ebp - 0x820]
mov dword [ebp - 0x81c], 0
test eax, eax
je 0x41b2e7
cmp eax, 0xffffffff
je 0x41b2e7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x820], 0
jmp 0x41b2e7
mov dword [ebp - 0x81c], 0
cmp dword [ebp - 0xc98], 0
je 0x41b305
mov edi, dword [ebp - 0xc9c]
mov ecx, dword [edi]
call fcn.0041aa10
push dword [edi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esi, 0xfffffff0
mov byte [ebp - 4], 0xe
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41b31e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x820]
mov dword [ebp - 0x81c], 0
test eax, eax
je 0x41b348
cmp eax, 0xffffffff
je 0x41b348
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x820], 0
mov dword [ebp - 4], 0xf
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x41b367
mov edx, dword [ecx]
lea eax, [ebp + 8]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00539e65
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00405d25
call fcn.0046b2e6
int3