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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0x104
call fcn.300291ac
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x30007726
push str.could_not_allocate_MAX_PATH_buffer
call fcn.30006aa5
add esp, 4
jmp 0x300079cc
push 0x140
call fcn.300291ac
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x3000774e
push str.could_not_allocate_WIN32_FIND_DATA
call fcn.30006aa5
add esp, 4
jmp 0x300079ca
mov eax, dword [ebp - 8]
push eax
push 0x3003b440
mov ecx, dword [ebp + 8]
push ecx
call fcn.30006ef3
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x3000777f
jmp 0x300079c8
push 0x3003b444
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
push ecx
call fcn.3001a890
add esp, 8
test eax, eax
je 0x300077af
push 0x3003b448
mov edx, dword [ebp - 0x10]
add edx, 0x2c
push edx
call fcn.3001a890
add esp, 8
test eax, eax
jne 0x300077b4
jmp 0x300079c3
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.30006ef3
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
and ecx, 0x10
test ecx, ecx
je 0x300077dc
jmp 0x300079be
push pe_nt_image_headers32
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x30007812
call fcn.30006d2a
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0x12
call fcn.30006a18
add esp, 0xc
jmp 0x300079bc
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x3000784b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x30007831
jmp 0x30007850
call fcn.30006d2a
push eax
push 0x3003b44c
push 0x1a
call fcn.30006a18
add esp, 0xc
jmp 0x300079ba
jmp 0x3000777f
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 8]
push edx
push 0x3003b45c
mov eax, dword [ebp + 8]
push eax
call fcn.30006ef3
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x30007892
jmp 0x300079b8
push 0x3003b460
mov eax, dword [ebp - 0x10]
add eax, 0x2c
push eax
call fcn.3001a890
add esp, 8
test eax, eax
jne 0x300078af
jmp 0x300079b3
push 0x3003b464
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
push ecx
call fcn.3001a890
add esp, 8
test eax, eax
jne 0x300078cc
jmp 0x300079ae
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x2c
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.30006ef3
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
and eax, 0x10
test eax, eax
jne 0x300078f4
jmp 0x300079a9
mov ecx, dword [ebp - 8]
push ecx
call fcn.300076dc
add esp, 4
test eax, eax
jne 0x30007909
jmp 0x300079a7
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x3000793f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x30007928
jmp 0x30007944
call fcn.30006d2a
push eax
push str.FindNextFile
push 0x1a
call fcn.30006a18
add esp, 0xc
jmp 0x300079a5
jmp 0x30007892
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0xc], 1
cmp dword [ebp - 4], 0xffffffff
je 0x3000796c
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0xc], 0
je 0x3000797c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.300291e8
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.300291e8
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x300079ce
jmp 0x3000795c
jmp 0x3000795c
jmp 0x30007909
jmp 0x30007909
jmp 0x30007909
jmp 0x3000795c
jmp 0x3000795c
jmp 0x3000795c
jmp 0x30007812
jmp 0x30007812
jmp 0x3000795c
jmp 0x3000795c
jmp 0x3000795c
mov esp, ebp
pop ebp
ret