Function at 0x404690
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc94
mov eax, dword [0x57aa54]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0xc90], ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 4], eax
push 0x208
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.0049ce00
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x40491d
push 0x208
push 0
lea edx, [ebp - 0x418]
push edx
call fcn.0049ce00
add esp, 0xc
push 0x104
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea ecx, [ebp - 0x810]
push ecx
push 0xf6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebp - 0x810]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push 0x104
lea eax, [ebp - 0x620]
push eax
lea ecx, [ebp - 0x810]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea edx, [ebp - 0x620]
push edx
call fcn.0049ca64
add esp, 4
push eax
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x620]
push ecx
call fcn.0049d0d4
add esp, 0xc
test eax, eax
jne 0x40491d
lea edx, [ebp - 0xc68]
push edx
push 0x4bdf7c
lea eax, [ebp - 0x418]
push eax
push 0x208
push 0
lea ecx, [ebp - 0xa18]
push ecx
call fcn.0049ce00
add esp, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xc6c], eax
cmp dword [ebp - 0xc6c], 0xffffffff
je 0x40491d
lea edx, [ebp - 0xc3c]
push edx
lea eax, [ebp - 0x418]
push eax
push 0x208
push 0
lea ecx, [ebp - 0xa18]
push ecx
call fcn.0049ce00
add esp, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edx, dword [ebp - 0xc68]
and edx, 0x10
je 0x4048e7
push 0x4bdf84
lea eax, [ebp - 0xc3c]
push eax
call fcn.0049cdbc
add esp, 8
test eax, eax
je 0x4048e5
push 0x4bdf88
lea ecx, [ebp - 0xc3c]
push ecx
call fcn.0049cdbc
add esp, 8
test eax, eax
je 0x4048e5
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc8c], edx
mov dword [ebp - 0xc88], 3
mov eax, 0x20c
call fcn.0049ce80
mov dword [ebp - 0xc94], esp
lea eax, [ebp - 0xa18]
push eax
push 0x20c
push 0
mov ecx, dword [ebp - 0xc94]
push ecx
call fcn.0049ce00
add esp, 0xc
push eax
call fcn.0049cd9d
add esp, 8
mov dword [ebp - 0xc84], eax
mov dword [ebp - 0xc80], 0
mov edx, 0x410
mov word [ebp - 0xc7c], dx
mov dword [ebp - 0xc7a], 0
mov dword [ebp - 0xc76], 0
mov dword [ebp - 0xc72], 0
lea eax, [ebp - 0xc8c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
jmp 0x4048f4
lea ecx, [ebp - 0xa18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0xc68]
push edx
mov eax, dword [ebp - 0xc6c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4047e3
mov ecx, dword [ebp - 0xc6c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc90]
call fcn.0047fac3
lea esp, [ebp - 0xc94]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0049c63c
mov esp, ebp
pop ebp
ret