Function at 0x401ee0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4393ae
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x44a5f0]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44a5f0]
xor eax, esp
push eax
lea eax, [esp + 0x26c]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
xor ebx, ebx
push 0xff
lea eax, [esp + 0x169]
push ebx
mov dword [esp + 0x27c], ebx
push eax
mov byte [esp + 0x170], bl
call fcn.004265c0
mov edi, dword [esp + 0x288]
add esp, 0xc
push edi
lea ecx, [esp + 0x168]
push str._s.
push ecx
call fcn.004244a2
add esp, 0xc
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x18], eax
lea esp, [esp]
lea ecx, [esp + 0x50]
push 0x43f67c
push ecx
call fcn.00424674
add esp, 8
test eax, eax
je 0x40205e
lea edx, [esp + 0x50]
push 0x43f680
push edx
call fcn.00424674
add esp, 8
test eax, eax
je 0x40205e
test byte [esp + 0x24], 0x10
je 0x4020ce
lea eax, [edi - 0x10]
push eax
call fcn.00401580
add eax, 0x10
add esp, 4
mov dword [esp + 0x14], eax
push 1
push 0x43f684
lea ecx, [esp + 0x1c]
mov byte [esp + 0x27c], 1
call fcn.004023b0
lea eax, [esp + 0x50]
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x401ff1
sub eax, ecx
push eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x1c]
call fcn.004023b0
mov ebp, dword [esp + 0x14]
push ecx
lea esi, [ebp - 0x10]
mov dword [esp + 0x24], esp
mov edi, esp
push esi
call fcn.00401580
mov ecx, dword [esp + 0x24]
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00401ee0
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov byte [esp + 0x274], bl
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402057
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov edi, dword [esp + 0x27c]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401f80
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [edi - 0x10]
mov dword [esp + 0x274], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4020a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x26c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.00424180
add esp, 0x264
ret 4
lea eax, [esp + 0x50]
push eax
push edi
lea ecx, [esp + 0x16c]
push str._s_s
push ecx
call fcn.004244a2
add esp, 0x10
lea edx, [esp + 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40205e
call fcn.0040cc1f
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x40217f
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x274], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x168]
push ecx
lea edx, [esp + 0x1c]
push str.___DeleteFile_fail._:_FileName__s___ErrCode__d_
push edx
call fcn.00402590
mov esi, dword [esp + 0x24]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esi - 0x10]
mov byte [esp + 0x274], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40205e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40205e
push 0x80004005
call fcn.00401340
int3