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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x4652b0]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
push str.Delete_File__s
push 0x80
call fcn.004025a0
add esp, 0xc
push 0x103
lea eax, [esp + 0x155]
push 0
push eax
mov byte [esp + 0x15c], 0
call fcn.00443400
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x42a0fa
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0043defc
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x42a2c9
push 0x103
lea ecx, [esp + 0x154]
push ebx
push ecx
call fcn.0043e4cf
lea eax, [esp + 0x15c]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42a130
sub eax, edx
lea edx, [esp + 0x150]
push 0x5c
push edx
mov esi, eax
call fcn.0043e121
lea ecx, [esp + esi + 0x158]
add esp, 8
cmp eax, ecx
je 0x42a172
lea edi, [esp + 0x150]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42a160
mov dx, word [0x4581b8]
mov word [edi], dx
lea edi, [esp + 0x150]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42a180
mov eax, dword [0x457f00]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x154]
push edx
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [esp + 0xc], edi
cmp edi, 0xffffffff
je 0x42a2c9
push 0x103
lea eax, [esp + 0x154]
push ebx
push eax
call fcn.0043e4cf
lea eax, [esp + 0x48]
add esp, 0xc
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42a1d0
sub eax, edx
mov edx, eax
lea eax, [esp + 0x150]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42a1e5
sub eax, esi
add eax, edx
cmp eax, 0x103
ja 0x42a24c
lea edi, [esp + 0x150]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42a200
mov cx, word [0x4581b8]
lea eax, [esp + 0x3c]
mov word [edi], cx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42a218
lea edi, [esp + 0x150]
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x42a230
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0xc]
test byte [esp + 0x10], 0x10
je 0x42a27c
cmp byte [esp + 0x3c], 0x2e
je 0x42a2a3
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42a2a3
mov edx, dword [ebp + 0x10]
push edx
push eax
lea eax, [esp + 0x158]
push eax
call fcn.0042a070
add esp, 0xc
test eax, eax
je 0x42a2c9
jmp 0x42a2a3
push 0x80
lea ecx, [esp + 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp + 0x10], 0
jne 0x42a2a3
lea edx, [esp + 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42a1b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
cmp eax, 0x12
je 0x42a2e0
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0043defc
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x42a2c9
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043defc
mov esp, ebp
pop ebp
ret