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

Disassembly:
push 0xffffffffffffffff
push 0x42afb7
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x4340a0]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4340a0]
xor eax, esp
push eax
lea eax, [esp + 0x170]
mov dword fs:[0], eax
mov dword [esp + 0x178], 1
mov edi, dword [esp + 0x180]
mov ebx, 0x42e76c
lea esi, [esp + 0x1c]
call fcn.00415120
xor ebx, ebx
push 0x13c
lea eax, [esp + 0x34]
push ebx
mov byte [esp + 0x180], 2
push eax
mov dword [esp + 0x38], ebx
call fcn.0041e4d0
mov edx, dword [esp + 0x28]
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40e23d
mov byte [esp + 0x178], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e1de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x178], bl
mov eax, dword [esp + 0x180]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e208
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x178], 0xffffffff
mov eax, dword [esp + 0x184]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e236
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40e3cd
lea ecx, [esp + 0x2c]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40e32f
lea edx, [esp + 0x58]
push 0x42e770
push edx
call fcn.0041d01c
add esp, 8
test eax, eax
je 0x40e529
lea eax, [esp + 0x58]
push 0x42e444
push eax
call fcn.0041d01c
add esp, 8
test eax, eax
je 0x40e529
mov edi, dword [esp + 0x180]
lea ebx, [esp + 0x58]
lea esi, [esp + 0x14]
call fcn.00415120
mov bl, 3
mov byte [esp + 0x178], bl
test byte [esp + 0x2c], 0x10
je 0x40e3f5
mov eax, dword [esp + 0x184]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
call fcn.004031e0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x17c], 4
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
call fcn.004031e0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x180], bl
call fcn.0040e120
add esp, 8
test eax, eax
jne 0x40e501
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esp + 0x178], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e32f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ecx, ecx
cmp esi, 0x12
sete cl
mov byte [esp + 0x178], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov esi, ecx
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e372
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x178], 0
mov eax, dword [esp + 0x180]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e39d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x178], 0xffffffff
mov eax, dword [esp + 0x184]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e3cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.0041c227
add esp, 0x168
ret
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x5c]
call fcn.00401cb0
mov byte [esp + 0x178], 5
mov edx, dword [esp + 0x18]
push 0x2e
push edx
call fcn.0041d870
add esp, 8
test eax, eax
je 0x40e4d9
sub eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x40e4d9
lea ecx, [eax + 1]
lea esi, [esp + 0x20]
lea edx, [esp + 0x18]
call fcn.0040a550
lea ebx, [esp + 0x18]
mov byte [esp + 0x178], 6
call fcn.00403250
mov byte [esp + 0x178], 5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e478
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x184]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40e542
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.0041d6ca
add esp, 8
test eax, eax
jne 0x40e4d9
mov edx, dword [esp + 0x14]
push edx
push str.DELTMP:__s
mov ecx, 0x4366d8
call fcn.00404800
add esp, 8
test byte [esp + 0x2c], 1
je 0x40e4ce
mov eax, dword [esp + 0x14]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [esp + 0x178], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e501
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x178], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e529
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40e251
jmp 0x40e32f
push 0x80004005
call fcn.00401720
int3