Function at 0x40af40
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4197b1
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x424320]
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 edi, ecx
mov dword [ebp - 0x2cc], edi
xor ebx, ebx
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x2c8], ebx
xor eax, eax
push 0x18
push str.Before_Deleing_Directory
mov dword [ebp - 0x298], 7
mov dword [ebp - 0x29c], ebx
mov word [ebp - 0x2ac], ax
call fcn.00404f00
push edi
lea edx, [ebp - 0x2ac]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2c4]
call fcn.00406380
add esp, 4
xor dl, dl
mov byte [ebp - 4], 1
mov ecx, eax
call fcn.004030c0
cmp dword [ebp - 0x2b0], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x40afe8
push dword [ebp - 0x2c4]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x2b0], 7
cmp dword [ebp - 0x298], 8
mov dword [ebp - 0x2b4], 0
mov word [ebp - 0x2c4], ax
jb 0x40b019
push dword [ebp - 0x2ac]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
push 0xffffffffffffffff
push eax
push edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 2
call fcn.00404e00
push 2
push 0x41f424
lea ecx, [ebp - 0x40]
call fcn.00404820
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2d0], eax
cmp eax, 0xffffffff
jne 0x40b080
xor edi, edi
jmp 0x40b3b9
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push 0xffffffffffffffff
push eax
push edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00404e00
push 1
push 0x41e080
lea ecx, [ebp - 0x28]
call fcn.00404820
cmp word [ebp - 0x264], 0
jne 0x40b0c1
xor ecx, ecx
jmp 0x40b0df
lea ecx, [ebp - 0x264]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b0d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404820
test byte [ebp - 0x290], 0x10
je 0x40b3e5
xor eax, eax
mov dword [ebp - 0x298], 7
mov dword [ebp - 0x29c], 0
mov word [ebp - 0x2ac], ax
cmp word [ebp - 0x264], ax
jne 0x40b126
xor ecx, ecx
jmp 0x40b13f
lea ecx, [ebp - 0x264]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b130
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.00404f00
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2ac]
mov edi, dword [ebp - 0x29c]
or ebx, 1
cmp dword [ebp - 0x298], 8
mov esi, 1
mov dword [ebp - 0x2c8], ebx
cmovae ecx, dword [ebp - 0x2ac]
cmp edi, esi
cmovb esi, edi
test esi, esi
je 0x40b1a1
mov edx, 0x41e50c
lea esp, [esp]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x40b1e4
add ecx, 2
add edx, 2
dec esi
jne 0x40b190
xor eax, eax
test eax, eax
jne 0x40b1ba
cmp edi, 1
jb 0x40b1ba
cmp edi, 1
setne al
test eax, eax
je 0x40b256
xor eax, eax
mov dword [ebp - 0x2b0], 7
mov dword [ebp - 0x2b4], 0
mov word [ebp - 0x2c4], ax
cmp word [ebp - 0x264], ax
jne 0x40b1f2
xor ecx, ecx
jmp 0x40b20f
movzx eax, word [ecx]
cmp ax, word [edx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x40b1a3
lea ecx, [ebp - 0x264]
lea edx, [ecx + 2]
jmp 0x40b200
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b200
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x2c4]
call fcn.00404f00
push 2
push 0x41f42c
mov dword [ebp - 4], 5
or ebx, 2
push dword [ebp - 0x2b4]
mov dword [ebp - 0x2c8], ebx
push ecx
lea ecx, [ebp - 0x2c4]
call fcn.00406a50
mov byte [ebp - 0x291], 1
test eax, eax
jne 0x40b25d
mov byte [ebp - 0x291], 0
test bl, 2
je 0x40b29a
and ebx, 0xfffffffd
cmp dword [ebp - 0x2b0], 8
jb 0x40b27d
push dword [ebp - 0x2c4]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x2b0], 7
mov dword [ebp - 0x2b4], 0
mov word [ebp - 0x2c4], ax
mov dword [ebp - 4], 3
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test bl, 1
je 0x40b2c3
and ebx, 0xfffffffe
cmp dword [ebp - 0x298], 8
jb 0x40b2c3
push dword [ebp - 0x2ac]
call esi
add esp, 4
cmp byte [ebp - 0x291], 0
je 0x40b2d4
lea ecx, [ebp - 0x28]
call fcn.0040af40
mov edi, dword [ebp - 0x2cc]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], 8
jb 0x40b2ec
push dword [ebp - 0x28]
call esi
add esp, 4
lea eax, [ebp - 0x290]
push eax
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40b080
mov ecx, edi
call fcn.0040ae30
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x17
xor eax, eax
mov dword [ebp - 0x298], 7
push str.After_Deleing_Directory
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x29c], 0
mov word [ebp - 0x2ac], ax
call fcn.00404f00
push edi
lea edx, [ebp - 0x2ac]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2c4]
call fcn.00406380
add esp, 4
xor dl, dl
mov byte [ebp - 4], 0xa
mov ecx, eax
call fcn.004030c0
cmp dword [ebp - 0x2b0], 8
jb 0x40b383
push dword [ebp - 0x2c4]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x2b0], 7
cmp dword [ebp - 0x298], 8
mov dword [ebp - 0x2b4], 0
mov word [ebp - 0x2c4], ax
jb 0x40b3b4
push dword [ebp - 0x2ac]
call esi
add esp, 4
mov edi, 1
cmp dword [ebp - 0x2c], 8
jb 0x40b3c7
push dword [ebp - 0x40]
call esi
add esp, 4
mov eax, edi
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.004176f4
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xb
xor eax, eax
mov dword [ebp - 0x298], 7
push str.DELETE_FILE
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x29c], 0
mov word [ebp - 0x2ac], ax
call fcn.00404f00
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
lea edx, [ebp - 0x2ac]
lea ecx, [ebp - 0x2c4]
call fcn.00406380
add esp, 4
xor dl, dl
mov byte [ebp - 4], 7
mov ecx, eax
call fcn.004030c0
cmp dword [ebp - 0x2b0], 8
jb 0x40b463
push dword [ebp - 0x2c4]
call esi
add esp, 4
xor eax, eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x298], 8
mov dword [ebp - 0x2b0], 7
mov dword [ebp - 0x2b4], 0
mov word [ebp - 0x2c4], ax
jb 0x40b498
push dword [ebp - 0x2ac]
call esi
add esp, 4
push 0x1b
xor eax, eax
mov dword [ebp - 0x298], 7
push str.deletion_completed_with_::
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x29c], 0
mov word [ebp - 0x2ac], ax
call fcn.00404f00
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 8
call fcn.0040c510
cmp dword [ebp - 0x298], 8
jb 0x40b2da
push dword [ebp - 0x2ac]
call esi
add esp, 4
jmp 0x40b2da