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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x412cb1
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x260
test eax, eax
je 0x404ade
push eax
lea ecx, [esp + 4]
call sub.MFC42u.DLL_CString::CString_3
mov ecx, dword [esp]
mov dword [esp + 0x268], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x404aca
mov ax, word [ecx + eax*2 - 2]
cmp ax, 0x5c
je 0x404851
push 0x5c
lea ecx, [esp + 4]
call sub.MFC42u.DLL_CString::operator
lea eax, [esp]
lea ecx, [esp + 8]
push eax
call sub.MFC42u.DLL_CString::CString_2
push 0x4190b0
lea ecx, [esp + 0xc]
mov byte [esp + 0x26c], 1
call sub.MFC42u.DLL_CString::operator_1
mov edx, dword [esp + 8]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x404ab9
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 2
cmp word [esp + 0x4c], 0x2e
jne 0x4048de
mov ax, word [esp + 0x4e]
test ax, ax
je 0x4048c7
cmp ax, 0x2e
jne 0x4048de
cmp word [esp + 0x50], 0
jne 0x4048de
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
jmp 0x404a95
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42u.DLL_CString::CString_2
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x27c], bl
call sub.MFC42u.DLL_CString::operator_1
test byte [esp + 0x20], 0x10
je 0x40491a
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004047f0
add esp, 4
jmp 0x404a72
mov edx, dword [esp + 0x14]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x404a72
mov eax, dword [0x41a8dc]
mov esi, dword [esp + 0x14]
test eax, eax
jne 0x4049b0
push eax
push 1
push 0x41a8d0
call ebp
test eax, eax
jne 0x404990
mov al, byte [0x41ab49]
test al, 1
jne 0x404983
mov dl, al
mov ecx, 0x41ab60
or dl, 1
mov byte [0x41ab49], dl
call fcn.00404b40
push 0x404be0
call fcn.0041223c
add esp, 4
mov dword [0x41a8d0], ebx
mov eax, 0x41ab60
jmp 0x4049ab
mov eax, dword [0x41a8d0]
cmp eax, ebx
je 0x4049a6
push 1
call edi
mov eax, dword [0x41a8d0]
cmp eax, ebx
jne 0x404999
call fcn.00404b80
mov dword [0x41a8dc], eax
mov ecx, dword [eax + 0x11c]
test ecx, ecx
je 0x404a61
test eax, eax
jne 0x404a52
push eax
push 1
push 0x41a8d0
call ebp
test eax, eax
jne 0x404a07
mov al, byte [0x41ab49]
test al, 1
jne 0x4049ff
mov dl, al
mov ecx, 0x41ab60
or dl, 1
mov byte [0x41ab49], dl
call fcn.00404b40
push 0x404be0
call fcn.0041223c
add esp, 4
mov dword [0x41a8d0], ebx
jmp 0x404a48
mov eax, dword [0x41a8d0]
cmp eax, ebx
je 0x404a1d
push 1
call edi
mov eax, dword [0x41a8d0]
cmp eax, ebx
jne 0x404a10
mov al, byte [0x41ab49]
test al, 1
jne 0x404a48
mov dl, al
mov ecx, 0x41ab60
or dl, 1
mov byte [0x41ab49], dl
call fcn.00404b40
push 0x404be0
call fcn.0041223c
add esp, 4
mov eax, 0x41ab60
mov dword [0x41a8dc], eax
mov ecx, dword [eax + 0x11c]
test ecx, ecx
je 0x404a61
mov eax, dword [eax + 0x50]
jmp 0x404a63
xor eax, eax
test eax, eax
push esi
je 0x404a6c
call eax
jmp 0x404a72
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x278], 1
call sub.MFC42u.DLL_CString::CString
test esi, esi
jne 0x4048a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
cmp esi, 0x12
pop esi
pop ebp
pop ebx
je 0x404af5
lea ecx, [esp + 8]
mov byte [esp + 0x268], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp]
mov dword [esp + 0x268], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
add esp, 0x26c
ret
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 8]
mov byte [esp + 0x268], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp]
mov dword [esp + 0x268], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x260]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x26c
ret