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

Disassembly:
sub esp, 0x354
mov eax, dword [0x49e058]
xor eax, esp
mov dword [esp + 0x350], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x364]
push edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x42c7d8
xor eax, 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x104
xor ebx, ebx
lea eax, [esp + 0x25c]
push ebx
push eax
call fcn.0044dd90
lea eax, [esp + 0x264]
add esp, 0xc
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42c800
sub eax, edx
mov edx, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42c812
mov ecx, 0x103
sub eax, esi
sub ecx, edx
cmp ecx, eax
jae 0x42c848
lea eax, [esp + 0x258]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42c832
sub eax, edx
mov ecx, eax
mov eax, 0x103
sub eax, ecx
jmp 0x42c85b
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42c850
sub eax, edx
push eax
lea edx, [esp + 0x25c]
push edi
push edx
call fcn.0044f12f
lea eax, [esp + 0x264]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42c877
sub eax, edx
cmp eax, 0x103
jae 0x42c8a0
lea eax, [esp + 0x258]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42c893
sub eax, edx
jmp 0x42c8a5
mov eax, 0x103
mov byte [esp + eax + 0x258], bl
lea eax, [esp + 0x258]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42c8b6
sub eax, edx
mov ecx, 0x103
sub ecx, eax
cmp ecx, 1
jae 0x42c8eb
lea eax, [esp + 0x258]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42c8d7
sub eax, edx
mov edx, 0x103
sub edx, eax
jmp 0x42c8f0
mov edx, 1
lea eax, [esp + 0x258]
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42c900
sub eax, esi
je 0x42c989
lea eax, [esp + 0x258]
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42c917
sub eax, esi
cmp byte [esp + eax + 0x257], 0x5c
je 0x42c989
push edx
lea edx, [esp + 0x25c]
push 0x48bc24
push edx
call fcn.0044f12f
lea eax, [esp + 0x264]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42c950
sub eax, edx
cmp eax, 0x103
jae 0x42c97d
lea eax, [esp + 0x258]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42c970
sub eax, edx
jmp 0x42c982
mov eax, 0x103
mov byte [esp + eax + 0x258], bl
lea eax, [esp + 0x258]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42c993
sub eax, edx
mov ecx, 0x103
sub ecx, eax
cmp ecx, 3
jae 0x42c9c8
lea eax, [esp + 0x258]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42c9b4
sub eax, edx
mov ecx, 0x103
sub ecx, eax
jmp 0x42c9cd
mov ecx, 3
push ecx
lea edx, [esp + 0x25c]
push 0x48bc20
push edx
call fcn.0044f12f
lea eax, [esp + 0x264]
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42c9f0
sub eax, edx
cmp eax, 0x103
jae 0x42ca1d
lea eax, [esp + 0x258]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42ca10
sub eax, edx
jmp 0x42ca22
mov eax, 0x103
mov byte [esp + eax + 0x258], bl
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42ca5d
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x350]
xor ecx, esp
call fcn.0044d7a0
add esp, 0x354
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x18], 0x10
je 0x42ccfc
push 0x104
lea edx, [esp + 0x15c]
push ebx
push edx
call fcn.0044dd90
lea eax, [esp + 0x164]
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42ca90
sub eax, edx
mov edx, eax
mov eax, dword [esp + 0x10]
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42caa4
mov ecx, 0x103
sub eax, esi
sub ecx, edx
cmp ecx, eax
jae 0x42cada
lea eax, [esp + 0x158]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cac4
sub eax, edx
mov ecx, eax
mov eax, 0x103
sub eax, ecx
jmp 0x42caec
mov eax, dword [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cae1
sub eax, edx
mov edx, dword [esp + 0x10]
push eax
push edx
lea eax, [esp + 0x160]
push eax
call fcn.0044f12f
lea eax, [esp + 0x164]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cb10
sub eax, edx
cmp eax, 0x103
jae 0x42cb3d
lea eax, [esp + 0x158]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cb30
sub eax, edx
jmp 0x42cb42
mov eax, 0x103
mov byte [esp + eax + 0x158], bl
lea eax, [esp + 0x158]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cb53
sub eax, edx
mov ecx, 0x103
sub ecx, eax
cmp ecx, 1
jae 0x42cb88
lea eax, [esp + 0x158]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cb74
sub eax, edx
mov edx, 0x103
sub edx, eax
jmp 0x42cb8d
mov edx, 1
lea eax, [esp + 0x158]
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cb97
sub eax, esi
je 0x42cc1a
lea eax, [esp + 0x158]
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cbb0
sub eax, esi
cmp byte [esp + eax + 0x157], 0x5c
je 0x42cc1a
push edx
lea edx, [esp + 0x15c]
push 0x48bc24
push edx
call fcn.0044f12f
lea eax, [esp + 0x164]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cbe5
sub eax, edx
cmp eax, 0x103
jae 0x42cc0e
lea eax, [esp + 0x158]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cc01
sub eax, edx
jmp 0x42cc13
mov eax, 0x103
mov byte [esp + eax + 0x158], bl
lea eax, [esp + 0x158]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cc24
sub eax, edx
mov edx, eax
lea eax, [esp + 0x44]
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cc38
mov ecx, 0x103
sub eax, esi
sub ecx, edx
cmp ecx, eax
jae 0x42cc6e
lea eax, [esp + 0x158]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cc58
sub eax, edx
mov ecx, eax
mov eax, 0x103
sub eax, ecx
jmp 0x42cc80
lea eax, [esp + 0x44]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cc75
sub eax, edx
push eax
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x160]
push eax
call fcn.0044f12f
lea eax, [esp + 0x164]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cca0
sub eax, edx
cmp eax, 0x103
jae 0x42cce1
lea eax, [esp + 0x158]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42ccc0
lea ecx, [esp + 0x158]
sub eax, edx
push ecx
mov byte [esp + eax + 0x15c], bl
call ebp
jmp 0x42cfa9
lea ecx, [esp + 0x158]
mov eax, 0x103
push ecx
mov byte [esp + eax + 0x15c], bl
call ebp
jmp 0x42cfa9
lea edx, [esp + 0x44]
push 0x48bc1c
push edx
call fcn.0044f458
add esp, 8
test eax, eax
je 0x42cfa9
lea eax, [esp + 0x44]
push 0x48bc18
push eax
call fcn.0044f458
add esp, 8
test eax, eax
je 0x42cfa9
push 0x104
lea ecx, [esp + 0x15c]
push ebx
push ecx
call fcn.0044dd90
lea eax, [esp + 0x164]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cd50
sub eax, edx
mov edx, eax
mov eax, dword [esp + 0x10]
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cd64
mov ecx, 0x103
sub eax, esi
sub ecx, edx
cmp ecx, eax
jae 0x42cd9a
lea eax, [esp + 0x158]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cd84
sub eax, edx
mov ecx, eax
mov eax, 0x103
sub eax, ecx
jmp 0x42cdac
mov eax, dword [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cda1
sub eax, edx
mov edx, dword [esp + 0x10]
push eax
push edx
lea eax, [esp + 0x160]
push eax
call fcn.0044f12f
lea eax, [esp + 0x164]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cdd0
sub eax, edx
cmp eax, 0x103
jae 0x42cdfd
lea eax, [esp + 0x158]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cdf0
sub eax, edx
jmp 0x42ce02
mov eax, 0x103
mov byte [esp + eax + 0x158], bl
lea eax, [esp + 0x158]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42ce13
sub eax, edx
mov ecx, 0x103
sub ecx, eax
cmp ecx, 1
jae 0x42ce48
lea eax, [esp + 0x158]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42ce34
sub eax, edx
mov edx, 0x103
sub edx, eax
jmp 0x42ce4d
mov edx, 1
lea eax, [esp + 0x158]
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42ce57
sub eax, esi
je 0x42ceda
lea eax, [esp + 0x158]
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42ce70
sub eax, esi
cmp byte [esp + eax + 0x157], 0x5c
je 0x42ceda
push edx
lea edx, [esp + 0x15c]
push 0x48bc24
push edx
call fcn.0044f12f
lea eax, [esp + 0x164]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cea5
sub eax, edx
cmp eax, 0x103
jae 0x42cece
lea eax, [esp + 0x158]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cec1
sub eax, edx
jmp 0x42ced3
mov eax, 0x103
mov byte [esp + eax + 0x158], bl
lea eax, [esp + 0x158]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cee4
sub eax, edx
mov edx, eax
lea eax, [esp + 0x44]
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cef8
mov ecx, 0x103
sub eax, esi
sub ecx, edx
cmp ecx, eax
jae 0x42cf2e
lea eax, [esp + 0x158]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cf18
sub eax, edx
mov ecx, eax
mov eax, 0x103
sub eax, ecx
jmp 0x42cf40
lea eax, [esp + 0x44]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cf35
sub eax, edx
push eax
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x160]
push eax
call fcn.0044f12f
lea eax, [esp + 0x164]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cf60
sub eax, edx
cmp eax, 0x103
jae 0x42cf8d
lea eax, [esp + 0x158]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42cf80
sub eax, edx
jmp 0x42cf92
mov eax, 0x103
lea ecx, [esp + 0x158]
push ecx
mov byte [esp + eax + 0x15c], bl
call fcn.0042c7a0
add esp, 4
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42ca64
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x360]
pop ebp
pop edi
neg eax
pop esi
sbb eax, eax
pop ebx
xor ecx, esp
neg eax
call fcn.0044d7a0
add esp, 0x354
ret