Function at 0x410930
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461f89
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x49106c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ecx]
lea ecx, [ebp - 0x2b0]
call fcn.00406700
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 2
call fcn.004123b0
mov eax, dword [ebp - 0x2b0]
cmp dword [eax - 4], 1
jle 0x4109c3
push dword [eax - 0xc]
lea ecx, [ebp - 0x2b0]
call fcn.00407dc0
mov eax, dword [ebp - 0x2b0]
mov edx, eax
lea esi, [edx + 2]
nop dword [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4109d0
sub edx, esi
lea ecx, [ebp - 0x28]
sar edx, 1
push edx
push eax
call fcn.00406d60
push dword [ebp - 0x2b0]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
or edi, 0xffffffff
test eax, eax
jne 0x410a03
mov bl, 1
jmp 0x410e91
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsSystemFolderW]
test eax, eax
je 0x410a22
xor bl, bl
jmp 0x410e91
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x58]
push eax
call fcn.00406d60
push 3
push 0x476b3c
lea ecx, [ebp - 0x58]
call fcn.0040ecd0
push 0x250
lea eax, [ebp - 0x2a8]
push 0
push eax
call fcn.0043e860
add esp, 0xc
lea ecx, [ebp - 0x2a8]
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x2b8], esi
cmp esi, 0xffffffff
jne 0x410a8b
xor bl, bl
jmp 0x410e91
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 0x2c0], 0
mov byte [ebp - 4], 3
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [eax]
nop word [eax + eax]
mov ecx, 0x476b44
lea eax, [ebp - 0x27c]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410af6
test dx, dx
je 0x410af2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410af6
add eax, 4
add ecx, 4
test dx, dx
jne 0x410ad0
xor eax, eax
jmp 0x410afb
sbb eax, eax
or eax, 1
test eax, eax
je 0x410c2f
mov ecx, 0x476b48
lea eax, [ebp - 0x27c]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410b36
test dx, dx
je 0x410b32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410b36
add eax, 4
add ecx, 4
test dx, dx
jne 0x410b10
xor eax, eax
jmp 0x410b3b
sbb eax, eax
or eax, 1
test eax, eax
je 0x410c2f
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040ebf0
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 4
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410b60
sub ecx, edx
lea eax, [ebp - 0x27c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.0040ecd0
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0x2a8]
cmovae ecx, dword [ebp - 0x40]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 0x2a8], 0x10
je 0x410bc4
push 1
push 0x476b50
lea ecx, [ebp - 0x40]
call fcn.0040ecd0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.0040e9b0
jmp 0x410c23
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x2b4]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00406700
mov esi, eax
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410c00
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x410c00
push 4
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [ebp - 0x2b4]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410c1d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x2b8]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00406d00
lea eax, [ebp - 0x2a8]
push eax
push esi
call ebx
test eax, eax
jne 0x410ac0
mov edi, dword [ebp - 0x2c4]
mov eax, 0x2aaaaaab
mov ebx, dword [ebp - 0x2c8]
mov ecx, edi
sub ecx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x2bc], eax
je 0x410d40
mov esi, ebx
xor ebx, ebx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x410c7c
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x2b4]
call fcn.00406700
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 4], 5
call fcn.00410930
test al, al
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2b4]
sete byte [ebp - 0x2a9]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410cc2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x2a9], 0
je 0x410d24
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x410cd5
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x2cc]
call fcn.00406700
mov edi, eax
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410d06
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x410d06
push 4
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [ebp - 0x2cc]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410d24
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
add esi, 0x18
cmp ebx, dword [ebp - 0x2bc]
jb 0x410c72
mov ebx, dword [ebp - 0x2c8]
mov edi, dword [ebp - 0x2c4]
mov esi, ebx
cmp ebx, edi
je 0x410d54
mov ecx, esi
call fcn.00406d00
add esi, 0x18
cmp esi, edi
jne 0x410d46
mov dword [ebp - 0x2c4], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x410e1c
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x476b54
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x410ee1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x2bc]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00406700
mov esi, eax
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410dfe
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x410dfe
push 4
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [ebp - 0x2bc]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410e1c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
mov byte [ebp - 0x2a9], al
mov byte [ebp - 4], 2
test ebx, ebx
je 0x410e88
mov ecx, dword [ebp - 0x2c0]
mov eax, 0x2aaaaaab
sub ecx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0xaaaaaaa
ja 0x410eed
lea eax, [eax + eax*2]
shl eax, 3
cmp eax, 0x1000
jb 0x410e7f
test bl, 0x1f
jne 0x410eed
mov eax, dword [ebx - 4]
cmp eax, ebx
jae 0x410eed
sub ebx, eax
cmp ebx, 4
jb 0x410eed
cmp ebx, 0x23
ja 0x410eed
mov ebx, eax
push ebx
call fcn.0043c392
add esp, 4
mov bl, byte [ebp - 0x2a9]
or edi, 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406d00
lea ecx, [ebp - 0x58]
call fcn.00406d00
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2b0]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x410ec3
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043c397
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x2a9], 1
jmp 0x410e24
call fcn.004457b8
int3