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

Disassembly:
sub esp, 0x354
push ebx
push esi
mov esi, dword [esp + 0x360]
xor ebx, ebx
test esi, esi
je 0x439fc5
cmp byte [esi], bl
je 0x439fc5
push ebp
mov ebp, 0x104
lea eax, [esp + 0x10]
push ebp
push esi
push eax
call sub.MSVCRT.dll_strncpy
push esi
mov byte [esp + 0x124], bl
call sub.MSVCRT.dll_strlen
add esp, 0x10
test eax, eax
je 0x439d57
cmp eax, ebp
jge 0x439d57
cmp byte [eax + esi - 1], 0x5c
je 0x439d57
lea eax, [esp + 0x10]
push 0x4892f8
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push edi
push ebp
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x264]
push eax
call sub.MSVCRT.dll_strncpy
mov edi, dword [esp + 0x378]
add esp, 0xc
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, 0x489348
mov byte [esp + 0x360], bl
test edi, edi
je 0x439e8b
cmp byte [edi], bl
je 0x439e8b
push esi
push edi
call sub.MSVCRT.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x439e8b
test byte [esp + 0x370], 1
je 0x439e85
lea eax, [esp + 0x25c]
push eax
push str._s.
lea eax, [esp + 0x1c]
push 0x104
push eax
call sub.MSVCRT.dll__snprintf
add esp, 0x10
lea eax, [esp + 0x11c]
push eax
lea eax, [esp + 0x18]
push eax
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x439e80
lea eax, [esp + 0x148]
push eax
lea eax, [esp + 0x260]
push eax
push str._s_s
lea eax, [esp + 0x20]
push 0x104
push eax
call sub.MSVCRT.dll__snprintf
add esp, 0x14
test byte [esp + 0x11c], 0x10
je 0x439e62
lea eax, [esp + 0x148]
push 0x48935c
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x439e62
lea eax, [esp + 0x148]
push 0x489360
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x439e62
push dword [esp + 0x370]
lea eax, [esp + 0x18]
push edi
push eax
call fcn.00439cf4
lea eax, [esp + 0x11c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x439def
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
inc esi
jmp 0x439e8f
mov esi, dword [esp + 0x10]
jmp 0x439e8f
mov edi, esi
mov esi, ebx
push edi
lea eax, [esp + 0x260]
push eax
push str._s_s
lea eax, [esp + 0x20]
push 0x104
push eax
call sub.MSVCRT.dll__snprintf
add esp, 0x14
lea eax, [esp + 0x11c]
push eax
lea eax, [esp + 0x18]
push eax
call ebp
mov ebp, eax
cmp ebp, 0xffffffff
je 0x439fc3
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x148]
push eax
lea eax, [esp + 0x260]
push eax
push str._s_s
lea eax, [esp + 0x20]
push 0x104
push eax
call sub.MSVCRT.dll__snprintf
add esp, 0x14
test byte [esp + 0x11c], 0x10
je 0x439f52
test esi, esi
jne 0x439f73
test byte [esp + 0x370], 1
je 0x439f73
lea eax, [esp + 0x148]
push 0x48935c
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x439f73
lea eax, [esp + 0x148]
push 0x489360
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x439f73
push dword [esp + 0x370]
lea eax, [esp + 0x18]
push edi
push eax
call fcn.00439cf4
jmp 0x439f73
test byte [esp + 0x370], 2
je 0x439f68
push pe_nt_image_headers32
lea eax, [esp + 0x18]
push eax
call ebx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x11c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x439ecf
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [esp + 0x370], 2
je 0x439faa
push pe_nt_image_headers32
lea eax, [esp + 0x260]
push eax
call ebx
test esi, esi
je 0x439fb3
xor ebx, ebx
inc ebx
jmp 0x439fc3
lea eax, [esp + 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ebx, eax
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0x354
ret 0xc