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

Disassembly:
sub esp, 0xab0
mov eax, dword [esp + 0xab4]
push esi
mov dword [esp + 0xc], ecx
push edi
push eax
lea ecx, [esp + 0x47c]
xor edi, edi
push str._s.
push ecx
mov word [esp + 0x478], 0x5c
mov dword [esp + 0x47c], edi
mov dword [esp + 0x480], edi
call fcn.0044b699
mov eax, dword [esp + 0x47c]
add esp, 0xc
cmp eax, edi
lea esi, [esp + 0x478]
mov dword [esp + 0x474], edi
je 0x401faf
cmp eax, 0xffffffff
je 0x401faf
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x470], edi
lea edx, [esp + 0x478]
test edx, edx
jne 0x401fc1
mov esi, 0x488238
jmp 0x401fda
lea eax, [esp + 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x402240
push esi
lea ecx, [esp + 0x44]
push 0x104
push ecx
call fcn.004029c0
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x470], eax
je 0x402240
lea eax, [esp + 0x264]
push edi
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x402038
lea ecx, [esp + 0x14]
call fcn.00403a60
push 0x7b
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x402240
lea ecx, [esp + 0x264]
push 0x5c
push ecx
call fcn.0044b659
lea edx, [esp + 0x26c]
push 0x2f
push edx
mov esi, eax
call fcn.0044b659
add esp, 0x10
cmp eax, edi
jne 0x40206a
cmp esi, edi
je 0x402081
lea eax, [esp + 0x264]
cmp esi, edi
jne 0x402075
lea esi, [esp + 0x264]
cmp eax, esi
jb 0x40207e
mov word [eax], di
jmp 0x402081
mov word [esi], di
mov eax, 1
push ebx
push ebp
mov dword [esp + 0x47c], eax
mov ecx, dword [esp + 0x478]
cmp ecx, edi
jne 0x40209e
xor ebp, ebp
jmp 0x4020bb
cmp eax, edi
jne 0x4020a6
xor ebp, ebp
jmp 0x4020f6
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [esp + 0x47c], eax
mov ebp, eax
cmp eax, edi
je 0x4020f6
mov ecx, dword [esp + 0x1c]
shr ecx, 4
and ecx, 1
mov dword [esp + 0x14], ecx
je 0x4020f6
cmp word [esp + 0x48], 0x2e
jne 0x4020f6
mov cx, word [esp + 0x4a]
cmp cx, di
je 0x402234
cmp cx, 0x2e
jne 0x4020f6
cmp word [esp + 0x4c], di
je 0x402234
mov edx, dword [0x4881a0]
cmp eax, edi
mov dword [esp + 0x14], edx
je 0x402126
lea eax, [esp + 0x48]
test eax, eax
je 0x402117
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x48]
lea ecx, [esp + 0x14]
push edx
push eax
call fcn.00403710
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
call fcn.00402ba0
lea ecx, [esp + 0x14]
call fcn.00403680
mov eax, dword [esp + 0x10]
mov ebx, 0xc8
mov ecx, dword [eax - 0xc]
lea edi, [eax - 0xc]
cmp ecx, 1
jg 0x402156
cmp dword [eax - 4], ebx
jge 0x402199
mov esi, dword [eax - 8]
cmp esi, ebx
jle 0x40215f
mov ebx, esi
push ebx
lea ecx, [esp + 0x14]
call fcn.004036b0
test eax, eax
je 0x402199
lea ecx, [esi + esi + 2]
lea edx, [edi + 0xc]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [ebx + ebx + 2]
push edx
push eax
push ecx
call fcn.004029e0
mov edx, dword [esp + 0x20]
add esp, 0x10
push edi
mov dword [edx - 8], esi
call fcn.004039e0
mov eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x614]
push eax
call fcn.0044b634
add esp, 8
lea ecx, [esp + 0x10]
call fcn.00403680
push 0x10
lea ecx, [esp + 0x20]
call fcn.00403a40
test eax, eax
je 0x4021fa
mov edx, dword [esp + 0xac4]
lea ecx, [esp + 0x610]
push ecx
push edx
lea eax, [esp + 0x938]
push str._s_s
push eax
call fcn.0044b699
add esp, 0x10
lea ecx, [esp + 0x930]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00401f40
jmp 0x40222d
mov eax, dword [esp + 0xac4]
lea edx, [esp + 0x610]
push edx
push eax
lea ecx, [esp + 0x7a8]
push str._s_s
push ecx
call fcn.0044b699
add esp, 0x10
lea edx, [esp + 0x7a0]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x47c]
xor edi, edi
cmp ebp, edi
jne 0x40208f
pop ebp
pop ebx
lea ecx, [esp + 0x14]
call fcn.00403a60
mov eax, dword [esp + 0xabc]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0x14]
call fcn.00403a60
pop edi
mov eax, 1
pop esi
add esp, 0xab0
ret 4