Function at 0x438900
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x465100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004384e0
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x264], ecx
test al, 8
je 0x43894f
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x49cf48], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b634
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, eax
and ebx, 1
mov dword [ebp - 0x260], ebx
je 0x43896d
test ecx, ecx
je 0x438b08
test al, 2
je 0x438b08
push edi
push 0x2004
push esi
push 0x46afe0
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
test ebx, ebx
je 0x438997
push str..
push 0x46afe0
call edi
jmp 0x43899d
push esi
call fcn.004384a0
cmp word [esi], 0
jne 0x4389ad
cmp word [0x46afe0], 0x5c
jne 0x4389b5
push 0x45812c
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x254]
push ecx
lea eax, [esi + eax*2]
push 0x46afe0
mov dword [ebp - 0x258], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x25c], eax
cmp eax, 0xffffffff
je 0x438af7
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
lea esp, [esp]
mov cx, word [ebp - 0x228]
lea edi, [ebp - 0x228]
mov eax, edi
test cx, cx
je 0x438a2a
movzx ecx, cx
cmp cx, 0x3f
je 0x438a1a
push eax
call ebx
movzx ecx, word [eax]
test cx, cx
jne 0x438a07
jmp 0x438a2a
cmp word [eax], 0
je 0x438a2a
cmp word [ebp - 0x20], 0
je 0x438a2a
lea edi, [ebp - 0x20]
cmp word [edi], 0x2e
jne 0x438a49
movzx eax, word [edi + 2]
test ax, ax
je 0x438ac8
cmp eax, 0x2e
jne 0x438a49
cmp word [edi + 4], 0
je 0x438ac8
mov edx, dword [ebp - 0x258]
push 0x2004
push edi
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
test byte [ebp - 0x254], 0x10
je 0x438a7b
mov eax, dword [ebp + 0xc]
mov ecx, eax
and ecx, 3
cmp cl, 3
jne 0x438ac8
push eax
push esi
call fcn.00438900
jmp 0x438ac8
push esi
push str.Delete:_DeleteFile___s__
call fcn.00437ee0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x438aa0
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
test eax, eax
jne 0x438ac1
push str.Delete:_DeleteFile_failed___s__
call fcn.00437ee0
add esp, 8
inc dword [0x49cf48]
jmp 0x438ac8
push 0xfffffffffffffff2
call fcn.00438ce0
mov eax, dword [ebp - 0x25c]
lea edx, [ebp - 0x254]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4389f0
mov ecx, dword [ebp - 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x260]
pop edi
test ebx, ebx
je 0x438b0a
mov eax, dword [ebp - 0x258]
xor edx, edx
mov word [eax - 2], dx
test ebx, ebx
pop ebx
je 0x438bb9
cmp dword [ebp - 0x264], 0
jne 0x438b3f
push esi
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.00437ee0
add esp, 8
inc dword [0x49cf48]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b634
mov esp, ebp
pop ebp
ret 8
push 0x46ad90
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x438bb9
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call fcn.00438460
push esi
push str.RMDir:_RemoveDirectory___s__
call fcn.00437ee0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x438b82
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
test eax, eax
jne 0x438bb2
push str.RMDir:_RemoveDirectory_failed___s__
call fcn.00437ee0
add esp, 8
inc dword [0x49cf48]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b634
mov esp, ebp
pop ebp
ret 8
push 0xffffffffffffffe5
call fcn.00438ce0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043b634
mov esp, ebp
pop ebp
ret 8