Function at 0x40a8f0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Print debug messages
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1088
call fcn.00416680
mov eax, dword [0x42603c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x212]
push edx
mov dword [ebp - 0x107c], edi
mov dword [ebp - 0x1084], eax
mov dword [ebp - 0x1080], 0
mov byte [ebp - 0x1075], 0
mov byte [ebp - 0x1077], 0
mov byte [ebp - 0x1076], 0
mov byte [ebp - 0x1078], 0
mov word [ebp - 0x214], cx
call fcn.00414930
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x41a]
push ecx
mov word [ebp - 0x41c], ax
call fcn.00414930
add esp, 0xc
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0xe22]
push eax
mov word [ebp - 0xe24], dx
call fcn.00414930
add esp, 0xc
push 0x5c
push edi
call fcn.0040e5d4
add esp, 8
test eax, eax
je 0x40aa0e
push 0x5c
push edi
call fcn.0040e5d4
add eax, 2
lea edx, [ebp - 0x41c]
add esp, 8
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40a9c1
lea ecx, [ebp - 0x41c]
push str.ww2017cf
push ecx
call fcn.0040daf6
add esp, 8
test eax, eax
jne 0x40a9ef
mov byte [ebp - 0x1076], 1
lea edx, [ebp - 0x41c]
push str.system
push edx
call fcn.0040daf6
add esp, 8
test eax, eax
jne 0x40aa0e
mov byte [ebp - 0x1077], 1
push edi
lea eax, [ebp - 0x214]
push str._s.
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x1074]
push ecx
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x1088], eax
cmp eax, 0xffffffff
jne 0x40aa6f
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
call esi
push str._Delete_Tree_hand__INVALID_HANDLE_VALUE
call esi
lea eax, [ebp - 0x214]
push eax
call esi
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test byte [ebp - 0x1074], 0x10
je 0x40ac2c
mov ecx, 0x42217c
lea eax, [ebp - 0x1048]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40aab6
test dx, dx
je 0x40aab2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40aab6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40aa90
xor eax, eax
jmp 0x40aabb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40af07
mov ecx, 0x422180
lea eax, [ebp - 0x1048]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40aaf6
test dx, dx
je 0x40aaf2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40aaf6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40aad0
xor eax, eax
jmp 0x40aafb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40af07
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
jle 0x40ab42
lea esp, [esp]
mov ecx, dword [ebp - 0x1084]
mov edx, dword [ecx + esi*4]
push edx
lea eax, [ebp - 0x1048]
push eax
call fcn.0040daf6
add esp, 8
test eax, eax
je 0x40ab34
inc esi
cmp esi, edi
jl 0x40ab10
jmp 0x40ab42
push str.KeepList
mov byte [ebp - 0x1075], 1
call ebx
cmp byte [0x429f5b], 1
jne 0x40ab9d
lea ecx, [ebp - 0x1048]
push str.OfflineLog
push ecx
call fcn.0040daf6
add esp, 8
test eax, eax
je 0x40ab84
cmp byte [0x429f5b], 1
jne 0x40ab9d
lea edx, [ebp - 0x1048]
push str.Offline
push edx
call fcn.0040daf6
add esp, 8
test eax, eax
jne 0x40ab9d
push str.Keep_OfflineLog
call ebx
push str._t_t_DeleteWinetTree__DIRECTORY__OfflineLog___Keep_OfflineLog.
call fcn.004033d0
add esp, 4
jmp 0x40aefa
cmp byte [ebp - 0x1075], 0
jne 0x40aefa
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x82
lea edi, [ebp - 0x214]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x107c]
lea eax, [ebp - 0x1048]
push eax
push ecx
lea edx, [ebp - 0x214]
push 0x4218ec
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x80
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x1084]
push ecx
push edx
lea eax, [ebp - 0x214]
push eax
call fcn.0040a8f0
add esp, 0xc
test al, al
jne 0x40aefa
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40aefa
inc dword [ebp - 0x1080]
lea edx, [ebp - 0x1048]
push 0x2e
push edx
call fcn.0040e5d4
add esp, 8
test eax, eax
je 0x40acae
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x622]
push ecx
mov word [ebp - 0x624], ax
call fcn.00414930
add esp, 0xc
lea edx, [ebp - 0x1048]
push 0x2e
push edx
call fcn.0040e5d4
lea edx, [ebp - 0x624]
add esp, 8
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40ac80
lea eax, [ebp - 0x624]
push str..log
push eax
call fcn.0040daf6
add esp, 8
test eax, eax
jne 0x40acae
mov byte [ebp - 0x1078], 1
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
jle 0x40acf2
jmp 0x40acc0
mov ecx, dword [ebp - 0x1084]
mov edx, dword [ecx + esi*4]
push edx
lea eax, [ebp - 0x1048]
push eax
call fcn.0040daf6
add esp, 8
test eax, eax
je 0x40ace4
inc esi
cmp esi, edi
jl 0x40acc0
jmp 0x40acf2
push str.KeepList
mov byte [ebp - 0x1075], 1
call ebx
cmp byte [0x429f57], 1
jne 0x40ad37
cmp byte [ebp - 0x1076], 1
jne 0x40ad37
lea ecx, [ebp - 0x1048]
push str.Presto.opt
push ecx
call fcn.0040daf6
add esp, 8
test eax, eax
jne 0x40ad37
push str.Keep_RC_Presto.opt
mov byte [ebp - 0x1075], 1
call ebx
push str._t_t_DeleteWinetTree__File__opt___Keep_Presto.opt
call fcn.004033d0
add esp, 4
cmp byte [0x429f58], 1
jne 0x40ad7c
cmp byte [ebp - 0x1076], 1
jne 0x40ad7c
lea edx, [ebp - 0x1048]
push str.Presto.agn
push edx
call fcn.0040daf6
add esp, 8
test eax, eax
jne 0x40ad7c
push str.Keep_RC_Presto.agn
mov byte [ebp - 0x1075], 1
call ebx
push str._t_t_DeleteWinetTree__File__agn___Keep_Presto.agn
call fcn.004033d0
add esp, 4
cmp byte [0x429f5c], 1
jne 0x40adb2
cmp byte [ebp - 0x1076], 1
jne 0x40adb2
cmp byte [ebp - 0x1078], 1
jne 0x40adb2
push str.Keep_.Log
mov byte [ebp - 0x1075], 1
call ebx
push str._t_t_DeleteWinetTree__File__.log___Keep_.log
call fcn.004033d0
add esp, 4
cmp byte [0x429f57], 1
jne 0x40aded
cmp byte [ebp - 0x1077], 1
jne 0x40aded
lea esi, [ebp - 0x1048]
call fcn.0040c320
cmp al, 1
jne 0x40aded
push str.Keep_WM7_.opt
mov byte [ebp - 0x1075], al
call ebx
push str._t_t_DeleteWinetTree__File__opt___Keep_WM7_Policy_.opt
call fcn.004033d0
add esp, 4
cmp byte [0x429f58], 1
jne 0x40ae3f
cmp byte [ebp - 0x1077], 1
jne 0x40ae7f
lea eax, [ebp - 0x1048]
push str.ReplySystem.opt
push eax
call fcn.0040daf6
add esp, 8
test eax, eax
jne 0x40ae36
push str.Keep_WM7_ReplySystem.opt
mov byte [ebp - 0x1075], 1
call ebx
push str._t_t_DeleteWinetTree__File__agn___Keep_WM7_Policy_ReplySystem.opt
call fcn.004033d0
add esp, 4
cmp byte [0x429f58], 1
je 0x40ae51
cmp byte [0x429f57], 1
jne 0x40ae7f
cmp byte [ebp - 0x1077], 1
jne 0x40ae7f
lea ecx, [ebp - 0x1048]
push str.PolicyContainer.opt
push ecx
call fcn.0040daf6
add esp, 8
test eax, eax
jne 0x40ae7f
push str.Keep_WM7_PolicyContainer.opt
call ebx
push str._t_t_DeleteWinetTree__File__agn___Keep_WM7_Policy_PolicyContainer.opt
call fcn.004033d0
add esp, 4
jmp 0x40aef3
cmp byte [ebp - 0x1075], 0
jne 0x40aef3
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x82
lea edi, [ebp - 0x214]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x107c]
lea eax, [ebp - 0x1048]
push eax
push ecx
lea edx, [ebp - 0x214]
push 0x4218ec
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x80
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x214]
push edx
call ebx
push 0x42219c
call ebx
mov byte [ebp - 0x1078], 0
mov edi, dword [ebp - 0x107c]
mov byte [ebp - 0x1075], 0
mov ecx, dword [ebp - 0x1088]
lea eax, [ebp - 0x1074]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40aa75
mov edx, dword [ebp - 0x1080]
push edx
push edi
lea eax, [ebp - 0xe24]
push str._t_t_DeleteWinetTree__Delete___s___Counts:_u_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0xe24]
push ecx
call fcn.004033d0
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esp, 0x14
push edi
call esi
mov edx, dword [ebp - 0x1088]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret