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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e6ea1
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x512054]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
push edi
mov eax, dword [0x512054]
xor eax, esp
push eax
lea eax, [esp + 0x488]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [0x5195ac]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x5195ac
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push ebx
push str._s.
lea edi, [esp + 0x20]
mov dword [esp + 0x498], 0
call fcn.00406e20
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebx
call fcn.00406bd0
lea edx, [esp + 0x24]
mov byte [esp + 0x490], 1
mov esi, dword [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
jne 0x42a7f1
mov byte [esp + 0x490], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a7c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x490], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a7ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x42a9d1
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x54]
call fcn.00406bd0
mov byte [esp + 0x490], 2
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ecx]
mov eax, dword [esp + 0x10]
mov ecx, 0x4f669c
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42a846
test dx, dx
je 0x42a842
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42a846
add eax, 4
add ecx, 4
test dx, dx
jne 0x42a820
xor eax, eax
jmp 0x42a84b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x42a8ee
lea esi, [esp + 0x10]
call fcn.004327e0
test al, al
je 0x42a8ee
push 0x208
lea edx, [esp + 0x278]
push 0
push edx
call fcn.004cc620
add esp, 0xc
push ebx
lea eax, [esp + 0x278]
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x278]
push edx
call edi
test byte [esp + 0x24], 0x10
je 0x42a8c6
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x278]
push ecx
call fcn.0042a6f0
add esp, 8
lea edx, [esp + 0x274]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x42a8ee
lea eax, [esp + 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42a8ee
cmp dword [esp + 0x14], eax
je 0x42a8ee
push eax
lea ecx, [esp + 0x278]
push ecx
call dword [esp + 0x1c]
add esp, 8
mov esi, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov byte [esp + 0x490], 1
test eax, eax
mov eax, dword [esp + 0x10]
je 0x42a945
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a92a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x54]
call fcn.00406bd0
mov byte [esp + 0x490], 2
jmp 0x42a810
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42a961
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x42a979
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esp + 0x490], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a9a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x490], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a9cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x488]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.004c961b
mov esp, ebp
pop ebp
ret