Function at 0x421b51
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b959c
mov eax, dword fs:[0]
push eax
mov eax, 0x14c4
call fcn.0055bf80
mov eax, dword [0x630fe8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14c8], ebx
push 0x208
xor esi, esi
lea eax, [ebp - 0x628]
push esi
push eax
call fcn.00577630
push 0x200
lea eax, [ebp - 0xc38]
push esi
push eax
call fcn.00577630
push ebx
mov edi, 0x104
lea eax, [ebp - 0x628]
push edi
push eax
call fcn.0057e8b0
push 0x607ffc
lea eax, [ebp - 0x628]
push edi
push eax
call fcn.0057e8b0
add esp, 0x30
lea eax, [ebp - 0x14c0]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x14c4], eax
cmp eax, 0xffffffff
je 0x421e2f
mov ebx, eax
lea eax, [ebp - 0x1494]
push 0x607fe4
push eax
call fcn.005801f3
pop ecx
pop ecx
test eax, eax
je 0x421e12
lea eax, [ebp - 0x1494]
push 0x607fe8
push eax
call fcn.005801f3
pop ecx
pop ecx
test eax, eax
je 0x421e12
test byte [ebp - 0x14c0], 0x10
jne 0x421e12
lea eax, [ebp - 0xc38]
push eax
push esi
push esi
lea eax, [ebp - 0x1494]
push esi
push eax
call fcn.0058013f
add esp, 0x14
lea eax, [ebp - 0x1494]
lea ecx, [ebp - 0x1258]
push eax
call fcn.00406548
mov ebx, dword [0x642754]
mov edi, ebx
mov esi, dword [ebx + 4]
cmp byte [esi + 0xd], 0
jne 0x421cbc
lea eax, [ebp - 0x1258]
push eax
lea ecx, [esi + 0x10]
call fcn.0040cf7a
shr eax, 0x1f
test al, al
je 0x421c98
mov esi, dword [esi + 8]
jmp 0x421c9c
mov edi, esi
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
je 0x421c7d
cmp edi, ebx
je 0x421cbc
lea eax, [edi + 0x10]
push eax
lea ecx, [ebp - 0x1258]
call fcn.0040cf7a
shr eax, 0x1f
test al, al
je 0x421cbe
mov edi, ebx
xor esi, esi
lea ecx, [ebp - 0x1258]
push esi
push 1
call fcn.00406584
lea eax, [ebp - 0xc38]
push 0x607ff0
push eax
call fcn.005801f3
pop ecx
pop ecx
test eax, eax
jne 0x421e0c
cmp edi, dword [0x642754]
jne 0x421e0c
mov ebx, 0x208
lea eax, [ebp - 0x218]
push ebx
push esi
push eax
call fcn.00577630
push ebx
lea eax, [ebp - 0x420]
push esi
push eax
call fcn.00577630
push ebx
lea eax, [ebp - 0x1240]
push esi
push eax
call fcn.00577630
push dword [ebp - 0x14c8]
mov edi, 0x104
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0057fc53
push 0x607fe0
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0057e8b0
lea eax, [ebp - 0x1494]
push eax
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0057e8b0
add esp, 0x48
lea edx, [ebp - 0x420]
lea ecx, [ebp - 0x218]
call fcn.00421a0a
test eax, eax
js 0x421e0c
lea ecx, [ebp - 0x1240]
call fcn.004217b0
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x1258]
call fcn.00406548
push dword [0x642078]
mov edx, dword [0x641e70]
lea ecx, [ebp - 0x1258]
call fcn.00424fe5
pop ecx
push esi
push 1
lea ecx, [ebp - 0x1258]
mov bl, al
call fcn.00406584
test bl, bl
jne 0x421e4d
lea eax, [ebp - 0x1494]
push eax
lea ecx, [ebp - 0x1270]
call fcn.00406548
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1270]
push dword [ebp - 0x14c8]
push eax
push ecx
lea eax, [ebp - 0x14d0]
push eax
call fcn.0042227d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1270]
push esi
push 1
call fcn.00406584
mov ebx, dword [ebp - 0x14c4]
lea eax, [ebp - 0x14c0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x421bfe
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055b830
mov esp, ebp
pop ebp
ret
test byte [0x6418ac], 0x40
lea eax, [ebp - 0x218]
je 0x421e67
push 3
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x421e80
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, 0x200
lea eax, [ebp - 0xe38]
push ebx
push esi
push eax
call fcn.00577630
push ebx
lea eax, [ebp - 0x1038]
push esi
push eax
call fcn.00577630
push 0x208
lea eax, [ebp - 0x830]
push esi
push eax
call fcn.00577630
push esi
push esi
lea eax, [ebp - 0x1038]
push eax
lea eax, [ebp - 0xe38]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0058013f
lea eax, [ebp - 0xe38]
push eax
lea eax, [ebp - 0x830]
push edi
push eax
call fcn.0057fc53
add esp, 0x44
lea eax, [ebp - 0x1038]
push eax
lea eax, [ebp - 0x830]
push edi
push eax
call fcn.0057e8b0
mov edx, dword [0x641ca8]
lea ecx, [ebp - 0x1258]
add esp, 0xc
call fcn.00421795
cmp dword [eax + 0x14], 8
jb 0x421f16
mov eax, dword [eax]
lea ecx, [ebp - 0x830]
mov edx, eax
push ecx
call fcn.00422dae
pop ecx
xor ebx, ebx
lea ecx, [ebp - 0x1258]
push esi
inc ebx
push ebx
call fcn.00406584
push esi
lea eax, [ebp - 0x218]
push eax
push 0x1005
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
cmp dword [0x6418b8], esi
jne 0x421fae
push 0x208
lea eax, [ebp - 0xa38]
mov dword [0x6418b8], ebx
push esi
push eax
call fcn.00577630
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xa38]
push edi
push eax
call fcn.0057fc53
add esp, 0x18
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x421fae
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push edi
push 0x6418bc
call fcn.0057fc53
add esp, 0xc
push dword [ebp - 0x14c4]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
jmp 0x421e31