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

Disassembly:
push 0xffffffffffffffff
push 0x4a92e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xab4
push ebx
xor ebx, ebx
push ebp
push esi
mov dword [esp + 0x14], ecx
mov word [esp + 0x474], 0x5c
mov dword [esp + 0x478], ebx
mov dword [esp + 0x47c], ebx
mov ebp, dword [esp + 0xad0]
lea eax, [esp + 0x480]
push ebp
push str._s.
push eax
mov dword [esp + 0xad4], ebx
call dword [sym.imp.MSVCRT.dll_swprintf]
mov eax, dword [esp + 0x484]
add esp, 0xc
cmp eax, ebx
lea esi, [esp + 0x480]
mov dword [esp + 0x47c], ebx
je 0x40299d
cmp eax, 0xffffffff
je 0x40299d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x478], ebx
lea ecx, [esp + 0x480]
test ecx, ecx
jne 0x4029af
mov esi, 0x4c0160
jmp 0x4029c8
lea edx, [esp + 0x480]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x402c2b
push esi
lea eax, [esp + 0x4c]
push 0x104
push eax
call fcn.004039d0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x478], eax
je 0x402c2b
lea edx, [esp + 0x26c]
push ebx
push edx
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
setne al
test al, al
jne 0x402a2b
lea ecx, [esp + 0x1c]
call fcn.00404d20
push 0x7b
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x402c2b
push edi
mov edi, dword [sym.imp.MSVCRT.dll_wcsrchr]
lea eax, [esp + 0x270]
push 0x5c
push eax
call edi
lea ecx, [esp + 0x278]
push 0x2f
push ecx
mov esi, eax
call edi
add esp, 0x10
cmp eax, ebx
jne 0x402a5e
cmp esi, ebx
je 0x402a75
lea eax, [esp + 0x270]
cmp esi, ebx
jne 0x402a69
lea esi, [esp + 0x270]
cmp eax, esi
jb 0x402a72
mov word [eax], bx
jmp 0x402a75
mov word [esi], bx
mov eax, 1
mov dword [esp + 0x480], eax
mov ecx, dword [esp + 0x47c]
cmp ecx, ebx
jne 0x402a92
mov dword [esp + 0x10], ebx
jmp 0x402ab3
cmp eax, ebx
jne 0x402a9c
mov dword [esp + 0x10], ebx
jmp 0x402aee
lea edx, [esp + 0x20]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [esp + 0x480], eax
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x402aee
mov ecx, dword [esp + 0x20]
shr ecx, 4
and ecx, 1
mov dword [esp + 0x1c], ecx
je 0x402aee
cmp word [esp + 0x4c], 0x2e
jne 0x402aee
mov cx, word [esp + 0x4e]
cmp cx, bx
je 0x402c20
cmp cx, 0x2e
jne 0x402aee
cmp word [esp + 0x50], bx
je 0x402c20
lea edx, [esp + 0x14]
lea ecx, [esp + 0x20]
push edx
mov ebx, 0xc8
call fcn.00404b90
mov esi, eax
mov eax, dword [esi]
mov byte [esp + 0xacc], 1
mov ecx, dword [eax - 0xc]
lea edi, [eax - 0xc]
cmp ecx, 1
jg 0x402b1d
cmp dword [eax - 4], ebx
jge 0x402b6c
mov ebp, dword [eax - 8]
cmp ebp, 0xc8
jle 0x402b2a
mov ebx, ebp
push ebx
mov ecx, esi
call fcn.00404720
test eax, eax
jne 0x402b41
mov ebp, dword [esp + 0xad4]
xor esi, esi
jmp 0x402b6e
lea eax, [ebp + ebp + 2]
lea ecx, [edi + 0xc]
push eax
mov eax, dword [esi]
lea edx, [ebx + ebx + 2]
push ecx
push edx
push eax
call fcn.004039f0
mov ecx, dword [esi]
add esp, 0x10
push edi
mov dword [ecx - 8], ebp
call fcn.00404b00
mov ebp, dword [esp + 0xad4]
mov esi, dword [esi]
lea edx, [esp + 0x614]
push esi
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov eax, dword [esp + 0x1c]
mov edx, dword [0x4c0084]
add esp, 8
mov byte [esp + 0xacc], 0
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x402bb7
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x402bb7
mov edx, dword [esp + 0x14]
lea eax, [edx - 0xc]
push eax
call fcn.0049c000
add esp, 4
push 0x10
lea ecx, [esp + 0x24]
call fcn.00404d00
test eax, eax
lea eax, [esp + 0x614]
push eax
push ebp
push str._s_s
je 0x402bf8
lea ecx, [esp + 0x940]
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
mov ecx, dword [esp + 0x28]
add esp, 0x10
lea edx, [esp + 0x934]
push edx
call fcn.00402910
jmp 0x402c17
lea ecx, [esp + 0x7b0]
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
lea edx, [esp + 0x7a4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x480]
xor ebx, ebx
cmp dword [esp + 0x10], ebx
jne 0x402a81
pop edi
lea ecx, [esp + 0x1c]
call fcn.00404d20
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0x1c]
mov dword [esp + 0xac8], 0xffffffff
call fcn.00404d20
mov ecx, dword [esp + 0xac0]
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0xac0
ret 4