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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fa6b
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x42a010]
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 esi, edx
mov dword [ebp - 0x2fc], esi
mov ebx, ecx
mov dword [ebp - 0x2ec], ebx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40b1e6
lea eax, [esi - 1]
cmp eax, 0x63
ja 0x40b1e6
push ebx
lea ecx, [ebp - 0x64]
call fcn.00401930
push 1
push 0x427064
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0
call fcn.004012b0
cmp dword [ebp - 0x50], 8
lea ecx, [ebp - 0x2e8]
lea eax, [ebp - 0x64]
cmovae eax, dword [ebp - 0x64]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2f0], eax
cmp eax, 0xffffffff
je 0x40b1d5
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
xor ebx, ebx
movq qword [ebp - 0x1c], xmm0
xor esi, esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], ebx
push 0x427068
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00401930
push str..BAK
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.00401930
mov byte [ebp - 4], 3
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
jmp 0x40af50
xor eax, eax
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
cmp word [ebp - 0x2bc], ax
je 0x40af85
lea eax, [ebp - 0x2bc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40af76
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x34]
call fcn.00401830
mov byte [ebp - 4], 4
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 8
cmovae eax, dword [ebp - 0x34]
push eax
call edi
mov edx, eax
cmp word [edx], 0
jne 0x40afb3
xor ecx, ecx
jmp 0x40afd5
mov ecx, edx
lea edi, [ecx + 2]
jmp 0x40afc0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40afc0
sub ecx, edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
sar ecx, 1
push ecx
push edx
push dword [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x94]
call fcn.004013e0
test eax, eax
je 0x40b03b
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
call edi
mov edx, eax
cmp word [edx], 0
jne 0x40b007
xor ecx, ecx
jmp 0x40b025
mov ecx, edx
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b010
sub ecx, edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
sar ecx, 1
push ecx
push edx
push dword [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x7c]
call fcn.004013e0
test eax, eax
jne 0x40b17e
mov ecx, ebx
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x2fc]
jae 0x40b09e
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040c2e0
mov ebx, dword [ebp - 0x18]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x1c]
mov ecx, ebx
sub ecx, esi
mov byte [ebp - 0x2f8], 0
push dword [ebp - 0x2f8]
imul ecx
mov ecx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ebx
push eax
call fcn.0040c4d0
add esp, 8
jmp 0x40b17e
cmp dword [esi + 0x14], 8
jb 0x40b0a8
mov eax, dword [esi]
jmp 0x40b0aa
mov eax, esi
push dword [esi + 0x10]
push eax
push dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x34]
call fcn.004013e0
lea ecx, [ebp - 0x4c]
push dword [ebp - 0x2ec]
test eax, eax
jle 0x40b142
call fcn.00401930
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.004011a0
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
lea eax, [ebp - 0x300]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040c3c0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040c2e0
mov ebx, dword [ebp - 0x18]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x1c]
mov ecx, ebx
sub ecx, esi
mov byte [ebp - 0x2f4], 0
push dword [ebp - 0x2f4]
imul ecx
mov ecx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ebx
push eax
call fcn.0040c4d0
add esp, 8
jmp 0x40b16d
call fcn.00401930
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x4c]
call fcn.004011a0
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x38], 8
jb 0x40b17e
push dword [ebp - 0x4c]
call fcn.0040ed3b
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x20], 8
jb 0x40b193
push dword [ebp - 0x34]
call fcn.0040ed3b
add esp, 4
lea eax, [ebp - 0x2e8]
push eax
push dword [ebp - 0x2f0]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40af50
push dword [ebp - 0x2f0]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x7c]
call fcn.00401460
lea ecx, [ebp - 0x94]
call fcn.00401460
lea ecx, [ebp - 0x1c]
call fcn.00404d50
cmp dword [ebp - 0x50], 8
jb 0x40b1e6
push dword [ebp - 0x64]
call fcn.0040ed3b
add esp, 4
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.0040ed40
mov esp, ebp
pop ebp
ret