Function at 0x411340
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 0x465469
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x49806c]
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.00406ad0
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.00413030
mov eax, dword [ebp - 0x2b0]
cmp dword [eax - 4], 1
jle 0x4113d3
push dword [eax - 0xc]
lea ecx, [ebp - 0x2b0]
call fcn.00408150
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 0x4113e0
sub edx, esi
lea ecx, [ebp - 0x28]
sar edx, 1
push edx
push eax
call fcn.00407090
push dword [ebp - 0x2b0]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
or edi, 0xffffffff
test eax, eax
jne 0x411413
mov bl, 1
jmp 0x4118a1
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 0x411432
xor bl, bl
jmp 0x4118a1
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.00407090
push 3
push 0x47ac94
lea ecx, [ebp - 0x58]
call fcn.0040f070
push 0x250
lea eax, [ebp - 0x2a8]
push 0
push eax
call fcn.00441bb0
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 0x41149b
xor bl, bl
jmp 0x4118a1
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, 0x47ac9c
lea eax, [ebp - 0x27c]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411506
test dx, dx
je 0x411502
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411506
add eax, 4
add ecx, 4
test dx, dx
jne 0x4114e0
xor eax, eax
jmp 0x41150b
sbb eax, eax
or eax, 1
test eax, eax
je 0x41163f
mov ecx, 0x47aca0
lea eax, [ebp - 0x27c]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411546
test dx, dx
je 0x411542
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411546
add eax, 4
add ecx, 4
test dx, dx
jne 0x411520
xor eax, eax
jmp 0x41154b
sbb eax, eax
or eax, 1
test eax, eax
je 0x41163f
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040ef90
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 0x411570
sub ecx, edx
lea eax, [ebp - 0x27c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.0040f070
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 0x4115d4
push 1
push 0x47aca8
lea ecx, [ebp - 0x40]
call fcn.0040f070
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.0040ed50
jmp 0x411633
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x2b4]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00406ad0
mov esi, eax
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411610
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x411610
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 0x41162d
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.00407030
lea eax, [ebp - 0x2a8]
push eax
push esi
call ebx
test eax, eax
jne 0x4114d0
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 0x411750
mov esi, ebx
xor ebx, ebx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41168c
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x2b4]
call fcn.00406ad0
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 4], 5
call fcn.00411340
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 0x4116d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x2a9], 0
je 0x411734
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4116e5
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x2cc]
call fcn.00406ad0
mov edi, eax
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411716
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x411716
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 0x411734
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 0x411682
mov ebx, dword [ebp - 0x2c8]
mov edi, dword [ebp - 0x2c4]
mov esi, ebx
cmp ebx, edi
je 0x411764
mov ecx, esi
call fcn.00407030
add esi, 0x18
cmp esi, edi
jne 0x411756
mov dword [ebp - 0x2c4], ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x12
jne 0x41182c
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 0x47acac
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 0x4118f1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x2bc]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00406ad0
mov esi, eax
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41180e
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x41180e
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 0x41182c
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 0x411898
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 0x4118fd
lea eax, [eax + eax*2]
shl eax, 3
cmp eax, 0x1000
jb 0x41188f
test bl, 0x1f
jne 0x4118fd
mov eax, dword [ebx - 4]
cmp eax, ebx
jae 0x4118fd
sub ebx, eax
cmp ebx, 4
jb 0x4118fd
cmp ebx, 0x23
ja 0x4118fd
mov ebx, eax
push ebx
call fcn.0043f6bc
add esp, 4
mov bl, byte [ebp - 0x2a9]
or edi, 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407030
lea ecx, [ebp - 0x58]
call fcn.00407030
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 0x4118d3
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.0043f6c1
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x2a9], 1
jmp 0x411834
call fcn.00448ab6
int3