Function at 0x402a50
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
push esi
push edi
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x25c], eax
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x260], ecx
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x264], edx
mov eax, dword [ebp - 0x25c]
mov cl, byte [eax]
mov byte [ebp - 0x265], cl
mov edx, dword [ebp - 0x260]
mov al, byte [ebp - 0x265]
mov byte [edx], al
mov ecx, dword [ebp - 0x25c]
add ecx, 1
mov dword [ebp - 0x25c], ecx
mov edx, dword [ebp - 0x260]
add edx, 1
mov dword [ebp - 0x260], edx
cmp byte [ebp - 0x265], 0
jne 0x402a83
mov dword [ebp - 0x26c], 0x413ba4
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x270], eax
mov ecx, dword [ebp - 0x26c]
mov dl, byte [ecx]
mov byte [ebp - 0x271], dl
inc dword [ebp - 0x26c]
cmp byte [ebp - 0x271], 0
jne 0x402adc
mov eax, dword [ebp - 0x26c]
sub eax, dword [ebp - 0x270]
mov ecx, dword [ebp - 0x270]
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x27c], eax
lea edx, [ebp - 0x110]
add edx, 0xffffffff
mov dword [ebp - 0x280], edx
mov eax, dword [ebp - 0x280]
mov cl, byte [eax + 1]
mov byte [ebp - 0x281], cl
inc dword [ebp - 0x280]
cmp byte [ebp - 0x281], 0
jne 0x402b26
mov edi, dword [ebp - 0x280]
mov esi, dword [ebp - 0x278]
mov edx, dword [ebp - 0x27c]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x110]
mov dword [ebp - 0x288], eax
mov ecx, dword [ebp - 0x288]
inc ecx
mov dword [ebp - 0x28c], ecx
mov edx, dword [ebp - 0x288]
mov al, byte [edx]
mov byte [ebp - 0x28d], al
inc dword [ebp - 0x288]
cmp byte [ebp - 0x28d], 0
jne 0x402b7d
mov ecx, dword [ebp - 0x288]
sub ecx, dword [ebp - 0x28c]
mov dword [ebp - 0x294], ecx
mov edx, dword [ebp - 0x294]
lea eax, [ebp + edx - 0x110]
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp - 0x254]
mov dx, word [0x413ba8]
mov word [ecx], dx
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0xffffffff
je 0x402ea9
lea edx, [ebp - 0x224]
mov dword [ebp - 0x298], edx
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x29c], eax
mov ecx, dword [ebp - 0x29c]
mov dword [ebp - 0x2a0], ecx
mov edx, dword [ebp - 0x298]
mov al, byte [edx]
mov byte [ebp - 0x2a1], al
mov ecx, dword [ebp - 0x29c]
mov dl, byte [ebp - 0x2a1]
mov byte [ecx], dl
mov eax, dword [ebp - 0x298]
add eax, 1
mov dword [ebp - 0x298], eax
mov ecx, dword [ebp - 0x29c]
add ecx, 1
mov dword [ebp - 0x29c], ecx
cmp byte [ebp - 0x2a1], 0
jne 0x402c1a
mov edx, dword [ebp - 0x250]
and edx, 0x10
test edx, edx
je 0x402db5
mov dword [ebp - 0x2a8], 0x413bac
lea eax, [ebp - 0x224]
mov dword [ebp - 0x2ac], eax
mov ecx, dword [ebp - 0x2ac]
mov dl, byte [ecx]
mov byte [ebp - 0x2ad], dl
mov eax, dword [ebp - 0x2a8]
cmp dl, byte [eax]
jne 0x402ce2
cmp byte [ebp - 0x2ad], 0
je 0x402cd6
mov ecx, dword [ebp - 0x2ac]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x2ae], dl
mov eax, dword [ebp - 0x2a8]
cmp dl, byte [eax + 1]
jne 0x402ce2
add dword [ebp - 0x2ac], 2
add dword [ebp - 0x2a8], 2
cmp byte [ebp - 0x2ae], 0
jne 0x402c84
mov dword [ebp - 0x2b4], 0
jmp 0x402ced
sbb ecx, ecx
sbb ecx, 0xffffffff
mov dword [ebp - 0x2b4], ecx
mov edx, dword [ebp - 0x2b4]
mov dword [ebp - 0x2b8], edx
cmp dword [ebp - 0x2b8], 0
je 0x402db0
mov dword [ebp - 0x2bc], 0x413bb0
lea eax, [ebp - 0x224]
mov dword [ebp - 0x2c0], eax
mov ecx, dword [ebp - 0x2c0]
mov dl, byte [ecx]
mov byte [ebp - 0x2c1], dl
mov eax, dword [ebp - 0x2bc]
cmp dl, byte [eax]
jne 0x402d7a
cmp byte [ebp - 0x2c1], 0
je 0x402d6e
mov ecx, dword [ebp - 0x2c0]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x2c2], dl
mov eax, dword [ebp - 0x2bc]
cmp dl, byte [eax + 1]
jne 0x402d7a
add dword [ebp - 0x2c0], 2
add dword [ebp - 0x2bc], 2
cmp byte [ebp - 0x2c2], 0
jne 0x402d1c
mov dword [ebp - 0x2c8], 0
jmp 0x402d85
sbb ecx, ecx
sbb ecx, 0xffffffff
mov dword [ebp - 0x2c8], ecx
mov edx, dword [ebp - 0x2c8]
mov dword [ebp - 0x2cc], edx
cmp dword [ebp - 0x2cc], 0
je 0x402db0
mov eax, dword [ebp + 0xc]
or eax, 1
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.00402a50
add esp, 8
jmp 0x402e75
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402e75
mov eax, dword [ebp + 0xc]
and eax, 2
test eax, eax
je 0x402de5
lea ecx, [ebp - 0x110]
push ecx
call fcn.004027d0
add esp, 4
jmp 0x402dec
mov dword [ebp - 4], 1
push 0x413bb4
call fcn.00402a10
add esp, 4
push 0x413bc0
call fcn.00402a10
add esp, 4
push 0x413bc4
call fcn.00402a10
add esp, 4
push 0x413bc8
call fcn.00402a10
add esp, 4
push 0x413bd0
call fcn.00402a10
add esp, 4
push 0x413be8
call fcn.00402a10
add esp, 4
mov edx, dword [ebp + 0xc]
and edx, 2
test edx, edx
je 0x402e50
mov dword [ebp - 0x2d0], 0x413bf0
jmp 0x402e5a
mov dword [ebp - 0x2d0], 0x414c6c
mov eax, dword [ebp - 0x2d0]
push eax
lea ecx, [ebp - 0x110]
push ecx
push str.failed_to_delete__s_s__n
call fcn.00402a10
add esp, 0xc
lea edx, [ebp - 0x250]
push edx
mov eax, dword [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402ea4
mov ecx, dword [ebp - 0x258]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x258], 0xffffffff
jmp 0x402be9
mov edx, dword [ebp + 0xc]
and edx, 1
test edx, edx
je 0x402f6e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x402f6e
mov ecx, dword [ebp + 0xc]
and ecx, 2
test ecx, ecx
je 0x402ee1
mov edx, dword [ebp + 8]
push edx
call fcn.00402a20
add esp, 4
jmp 0x402ee8
mov dword [ebp - 4], 1
push str..ufile.c
call fcn.00402a10
add esp, 4
push 0x413c20
call fcn.00402a10
add esp, 4
push 0x413c24
call fcn.00402a10
add esp, 4
push 0x413c28
call fcn.00402a10
add esp, 4
push str.xUtilDeleteDirRecursive
call fcn.00402a10
add esp, 4
push 0x413c48
call fcn.00402a10
add esp, 4
mov eax, dword [ebp + 0xc]
and eax, 2
test eax, eax
je 0x402f4c
mov dword [ebp - 0x2d4], str.__delaying
jmp 0x402f56
mov dword [ebp - 0x2d4], 0x414c6d
mov ecx, dword [ebp - 0x2d4]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.failed_to_remove__s_s__n
call fcn.00402a10
add esp, 0xc
xor eax, eax
cmp dword [ebp - 4], 0
sete al
pop edi
pop esi
mov esp, ebp
pop ebp
ret