Function at 0x412750
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get common file path
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x4ea080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor eax, eax
push 0x206
mov dword [ebp - 0x668], ecx
push eax
lea ecx, [ebp - 0x412]
push ecx
mov dword [ebp - 0x66c], ebx
mov word [ebp - 0x414], ax
call fcn.0048f070
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov word [ebp - 0x20c], dx
call fcn.0048f070
push ebx
lea ecx, [ebp - 0x414]
push 0x104
push ecx
call fcn.0048f4e8
lea eax, [ebp - 0x414]
add esp, 0x24
lea edx, [eax + 2]
jmp 0x4127d0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4127d0
sub eax, edx
lea edx, [ebp - 0x414]
sar eax, 1
push 0x5c
push edx
mov esi, eax
call fcn.0048f54b
add esp, 8
cmp esi, 4
jl 0x4129f7
test eax, eax
je 0x4129f7
lea ecx, [ebp - 0x414]
sub eax, ecx
sar eax, 1
inc eax
cmp eax, esi
je 0x412827
push 0x4b1930
mov edx, ecx
push 0x104
push edx
call fcn.0048f473
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x4b1930
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.0048f473
add esp, 0xc
lea ecx, [ebp - 0x20c]
lea eax, [ebp - 0x414]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x412886
test dx, dx
je 0x412882
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x412886
add eax, 4
add ecx, 4
test dx, dx
jne 0x412860
xor eax, eax
jmp 0x41288b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4128b5
push 0x4b1ab4
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.0048f473
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push edi
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.0048f4e8
push 0x4b1aac
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0048f473
add esp, 0x18
lea ecx, [ebp - 0x664]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4129c3
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp word [ebp - 0x638], 0x2e
je 0x4129a0
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.0048f4e8
lea edx, [ebp - 0x638]
push edx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0048f473
add esp, 0x18
test byte [ebp - 0x664], 0x10
je 0x412989
push 0x4b1930
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.0048f473
mov ecx, dword [ebp - 0x668]
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
call fcn.00412750
jmp 0x4129a0
push 0x80
lea eax, [ebp - 0x20c]
push eax
call edi
lea ecx, [ebp - 0x20c]
push ecx
call ebx
lea edx, [ebp - 0x664]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x412912
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x66c]
push 0x80
push ebx
call edi
push 0
push ebx
push 5
push 0x10
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ef91
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0048ef91
mov esp, ebp
pop ebp
ret 4