Function at 0x412ae0
Capabilities:
Delete file
Enumerate files on windows
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
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x668], ecx
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x412]
push edx
mov dword [ebp - 0x66c], eax
mov word [ebp - 0x414], cx
call fcn.0048f070
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0048f070
push esi
lea edx, [ebp - 0x414]
push 0x104
push edx
call fcn.0048f4e8
lea eax, [ebp - 0x414]
add esp, 0x24
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412b60
sub eax, edx
sar eax, 1
mov esi, eax
lea eax, [ebp - 0x414]
push 0x5c
push eax
call fcn.0048f54b
add esp, 8
cmp esi, 4
jl 0x412d90
test eax, eax
je 0x412d90
lea ecx, [ebp - 0x414]
sub eax, ecx
sar eax, 1
inc eax
cmp eax, esi
je 0x412bb7
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 0x412c16
test dx, dx
je 0x412c12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x412c16
add eax, 4
add ecx, 4
test dx, dx
jne 0x412bf0
xor eax, eax
jmp 0x412c1b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x412c45
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]
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 esi, eax
cmp esi, 0xffffffff
je 0x412d7a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x412cb0
cmp word [ebp - 0x638], 0x2e
je 0x412d5b
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 0x412d44
mov ecx, dword [ebp - 0x66c]
push ecx
mov ecx, dword [ebp - 0x668]
lea edx, [ebp - 0x638]
push edx
call fcn.00412a10
test eax, eax
je 0x412d5b
push 0x4b1930
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0048f473
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp - 0x668]
call fcn.00412750
jmp 0x412d5b
push 0x80
lea edx, [ebp - 0x20c]
push edx
call edi
lea eax, [ebp - 0x20c]
push eax
call ebx
lea ecx, [ebp - 0x664]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x412cb0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop ebx
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ef91
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0048ef91
mov esp, ebp
pop ebp
ret 8