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

Disassembly:
push 0x2b4
mov eax, 0x43cee9
call fcn.0043815a
mov edx, ecx
mov dword [ebp - 0x2bc], edx
mov esi, dword [ebp + 8]
xor eax, eax
mov bl, byte [ebp + 0xc]
mov ecx, esi
mov dword [ebp - 0x2c0], eax
mov byte [ebp - 0x2ad], bl
cmp dword [esi + 0x14], 7
mov dword [ebp - 0x2b4], eax
jbe 0x427136
mov ecx, dword [esi]
movzx eax, bl
push eax
push ecx
lea eax, [edx + 0x150]
push str.deleteDirectory__S_childrenOnly_d
push eax
call fcn.004026dd
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
xor ecx, ecx
push 7
pop edx
mov bl, cl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], ecx
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
mov word [ebp - 0x44], ax
inc eax
lea ecx, [ebp - 0x5c]
push 0x44ad58
mov edx, esi
mov byte [ebp - 4], al
call fcn.0042a140
add esp, 0x14
lea ecx, [ebp - 0x44]
push eax
call fcn.0040bbb5
lea ecx, [ebp - 0x5c]
call fcn.00402ab8
cmp dword [ebp - 0x30], 7
lea ecx, [ebp - 0x2ac]
lea eax, [ebp - 0x44]
cmova eax, dword [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2b8], eax
cmp eax, 0xffffffff
je 0x427334
mov edi, dword [ebp - 0x2bc]
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00428798
xor eax, eax
inc eax
mov dword [ebp - 4], eax
cmp word [ebp - 0x280], 0x2e
je 0x4272d7
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 7
mov edx, esi
cmova eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0042a140
pop ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040bbb5
lea ecx, [ebp - 0x5c]
call fcn.00402ab8
test byte [ebp - 0x2ac], 0x10
je 0x42729a
push 0x4444a8
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
call fcn.0042a140
pop ecx
mov byte [ebp - 4], 4
xor edx, edx
mov ecx, dword [ebp - 0x2b4]
inc edx
or ecx, edx
push 0
mov dword [ebp - 0x2b4], ecx
mov dword [ebp - 0x2c0], ecx
mov ecx, edi
push eax
call fcn.004270fb
test al, al
jne 0x427275
test bl, bl
jne 0x427275
xor ecx, ecx
inc ecx
jmp 0x42727a
xor ecx, ecx
inc ecx
mov bl, cl
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x2b4]
test cl, al
je 0x4272d7
and eax, 0xfffffffe
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x2b4], eax
call fcn.00402ab8
jmp 0x4272d7
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push 0x80
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4272ba
lea ebx, [eax + 1]
jmp 0x4272d7
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
movzx ebx, bl
push 1
pop eax
cmove ebx, eax
lea eax, [ebp - 0x2ac]
push eax
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor edx, edx
inc edx
cmp eax, edx
je 0x4271d3
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x42732f
cmp byte [ebp - 0x2ad], 0
jne 0x427334
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x42731f
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x42737a
xor eax, eax
lea ebx, [eax + 1]
mov edx, dword [ebp - 0x30]
push 7
pop esi
cmp edx, esi
jbe 0x42734d
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
call fcn.00403293
and dword [ebp - 0x34], 0
xor eax, eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x30], esi
mov word [ebp - 0x44], ax
cmp edx, esi
jbe 0x427370
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
call fcn.00403293
mov al, bl
call fcn.004380ac
ret 8
cmp dword [esi + 0x14], 7
jbe 0x427382
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x427334
jmp 0x42732f