Function at 0x49d750
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60f1c2
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x18]
lea ecx, [esp + 0x2c]
push esi
push ecx
mov ebx, 0x6d0648
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], edi
call fcn.0041e2b0
add esp, 8
mov dword [esp + 0x2a0], 0
mov eax, dword [eax]
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2a0], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.0040ba40
cmp ebx, 0xffffffff
je 0x49da53
mov ecx, 0x6d0bfc
lea eax, [esp + 0x68]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49d826
test dx, dx
je 0x49d822
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49d826
add eax, 4
add ecx, 4
test dx, dx
jne 0x49d800
xor eax, eax
jmp 0x49d82b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x49da38
mov ecx, 0x6d0c00
lea eax, [esp + 0x68]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49d866
test dx, dx
je 0x49d862
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49d866
add eax, 4
add ecx, 4
test dx, dx
jne 0x49d840
xor eax, eax
jmp 0x49d86b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x49da38
lea eax, [esp + 0x34]
push esi
push eax
mov ebx, 0x6ca140
call fcn.0041e2b0
mov dword [esp + 0x2a8], 1
push eax
lea ecx, [esp + 0x20]
push ecx
lea ebx, [esp + 0x78]
call fcn.0041e2b0
add esp, 0x10
mov byte [esp + 0x2a0], 3
lea ecx, [esp + 0x34]
call fcn.0040ba40
test byte [esp + 0x3c], 0x10
je 0x49d8e3
mov edx, dword [ebp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0xc]
push edi
push edx
push eax
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.0049d750
mov eax, dword [esp + 0x28]
add esp, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x49da1c
mov ecx, dword [esp + 0x14]
call fcn.00435640
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
push ecx
call esi
mov edx, dword [esp + 0x14]
mov ecx, 0x80
call fcn.00439f10
mov edx, dword [esp + 0x14]
push 0x80
push edx
call esi
cmp byte [ebp + 0x14], 0
je 0x49d9b6
mov eax, dword [edi]
push 1
sub esp, 0x1c
mov esi, esp
xor edi, edi
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov word [esi + 4], cx
mov ecx, eax
mov dword [esp + 0x58], esp
lea ebx, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x49d946
sub ecx, ebx
sar ecx, 1
push ecx
call fcn.0040d7f0
mov byte [esp + 0x2c0], 4
mov eax, dword [esp + 0x34]
sub esp, 0x1c
mov esi, esp
xor edx, edx
mov ecx, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov dword [esp + 0x6c], esp
mov word [esi + 4], dx
lea ebx, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x49d985
sub ecx, ebx
sar ecx, 1
push ecx
call fcn.0040d7f0
mov byte [esp + 0x2dc], 5
mov byte [esp + 0x2dc], 3
call fcn.004948d0
mov edi, dword [esp + 0x64]
add esp, 0x3c
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49da1c
push ecx
mov edx, esp
mov dword [esp + 0x34], esp
lea eax, [esp + 0x18]
push eax
push edx
call fcn.0040b930
mov byte [esp + 0x2a4], 6
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x2a8], 3
call fcn.00493f30
add esp, 8
lea ecx, [esp + 0x1c]
call fcn.0040ba40
mov edx, dword [esp + 0x14]
push edx
call esi
test eax, eax
je 0x49da1c
mov eax, dword [esp + 0x18]
mov byte [eax], 1
mov dword [esp + 0x2a0], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0040ba40
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
lea ecx, [esp + 0x3c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x49d7f4
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0xc], 0
je 0x49da62
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.005c397a
mov esp, ebp
pop ebp
ret