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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
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 - 0x468], eax
mov word [ebp - 0x214], cx
call fcn.00413700
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push edi
lea eax, [ebp - 0x214]
push str._s.
push eax
call esi
add esp, 0xc
lea ecx, [ebp - 0x464]
push ecx
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x46c], eax
cmp eax, 0xffffffff
je 0x40268b
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x402499
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
test byte [ebp - 0x464], 0x10
je 0x402594
mov ecx, 0x41c7e0
lea eax, [ebp - 0x438]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4024d7
test dx, dx
je 0x4024d3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4024d7
add eax, 4
add ecx, 4
test dx, dx
jne 0x4024b1
xor eax, eax
jmp 0x4024dc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402661
mov ecx, 0x41c7e4
lea eax, [ebp - 0x438]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402516
test dx, dx
je 0x402512
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402516
add eax, 4
add ecx, 4
test dx, dx
jne 0x4024f0
xor eax, eax
jmp 0x40251b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402661
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.00413700
add esp, 0xc
lea ecx, [ebp - 0x438]
push ecx
push edi
lea edx, [ebp - 0x214]
push 0x41c7ec
push edx
call esi
add esp, 0x10
push 0x80
lea eax, [ebp - 0x214]
push eax
call ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x468]
push ecx
push edx
lea eax, [ebp - 0x214]
push eax
call fcn.00402410
add esp, 0xc
test eax, eax
jne 0x402661
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x402661
cmp dword [ebp - 0x468], 0
jne 0x4025e6
push 0x208
lea edx, [ebp - 0x214]
push 0
push edx
call fcn.00413700
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
push edi
lea ecx, [ebp - 0x214]
push 0x41c7ec
push ecx
call esi
add esp, 0x10
push 0x80
lea edx, [ebp - 0x214]
push edx
call ebx
lea eax, [ebp - 0x214]
push eax
jmp 0x40265b
xor esi, esi
cmp dword [ebp + 0x10], esi
jbe 0x402613
lea ecx, [ecx]
mov ecx, dword [ebp - 0x468]
mov edx, dword [ecx + esi*4]
push edx
lea eax, [ebp - 0x438]
push eax
call fcn.0040f6de
add esp, 8
test eax, eax
je 0x402661
inc esi
cmp esi, dword [ebp + 0x10]
jb 0x4025f0
push 0x208
lea ecx, [ebp - 0x214]
push 0
push ecx
call fcn.00413700
add esp, 0xc
lea edx, [ebp - 0x438]
push edx
push edi
lea eax, [ebp - 0x214]
push 0x41c7ec
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x80
lea ecx, [ebp - 0x214]
push ecx
call ebx
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp - 0x46c]
lea eax, [ebp - 0x464]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402493
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040f51e
mov esp, ebp
pop ebp
ret