Function at 0x408fb0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x625c
call fcn.0041fc00
push ebx
push esi
push edi
push 8
mov edi, ecx
call fcn.0040ba54
add esp, 4
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
call fcn.0040ba54
add esp, 4
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [ebx], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov dword [ebx + 4], 0
test ebx, ebx
je 0x409035
mov esi, ebx
lea eax, [ebp - 0x2258]
mov ebx, dword [ebx + 4]
push dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [esi]
call fcn.0040ba6a
add esp, 4
push esi
call fcn.0040ba6a
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
add esp, 4
lea eax, [ebp - 0x2258]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x2258]
push 0x42721c
push eax
call edi
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x2258]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x409291
push 0x427220
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40926a
push 0x427224
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40926a
mov eax, dword [ebp - 8]
xor ecx, ecx
mov word [ebp + eax*2 - 0x2258], cx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x2258]
push eax
call edi
test byte [ebp - 0x258], 0x10
je 0x409159
push str.windows
lea eax, [ebp - 0x22c]
push eax
call esi
test eax, eax
je 0x409159
push str.virtualstore
lea eax, [ebp - 0x22c]
push eax
call esi
test eax, eax
je 0x409159
push 0x427258
lea eax, [ebp - 0x2258]
push eax
call edi
push 8
call fcn.0040ba54
add esp, 4
mov esi, eax
lea eax, [ebp - 0x2258]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
call fcn.0040ba54
add esp, 4
mov edi, eax
lea eax, [ebp - 0x2258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [esi], edi
mov dword [esi + 4], 0
test ebx, ebx
je 0x40914c
mov dword [esi + 4], ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ebx, esi
jmp 0x40926a
xor esi, esi
cmp dword [0x42c618], esi
jne 0x40916a
xor edx, edx
jmp 0x4091ef
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [0x42c618]
cmp eax, ecx
jle 0x4091fc
push dword [0x42c4fc]
sub eax, ecx
lea ecx, [ebp - 0x22c]
lea eax, [ecx + eax*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
sbb eax, eax
add eax, 1
je 0x4091fc
push 0x2000
lea eax, [ebp - 0x6258]
push 0
push eax
call fcn.0040a690
add esp, 0xc
lea eax, [ebp - 0x2258]
push eax
lea eax, [ebp - 0x6258]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x6258]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
sub eax, dword [0x42c618]
lea edx, [ebp - 0x6258]
xor ecx, ecx
mov word [ebp + eax*2 - 0x6258], cx
lea ecx, [ebp - 0x2258]
call fcn.004082b0
mov esi, eax
test esi, esi
je 0x40926a
push 0x42725c
call fcn.00408160
add esp, 4
lea eax, [ebp - 0x4258]
push 0x2000
push 0
push eax
call fcn.0040a690
add esp, 0xc
lea eax, [ebp - 0x2258]
push eax
lea eax, [ebp - 0x4258]
push eax
call edi
lea eax, [ebp - 0x4258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x427258
lea eax, [ebp - 0x4258]
push eax
call edi
push dword [0x42c61c]
lea eax, [ebp - 0x4258]
push eax
call edi
lea eax, [ebp - 0x4258]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x409073
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test ebx, ebx
jne 0x409008
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret