Function at 0x4174a0
Capabilities:
Create directory
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x47d7fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x280
mov eax, dword [0x4a8ae4]
xor eax, esp
push ebx
push ebp
push esi
mov ebx, ecx
mov dword [esp + 0x288], eax
push edi
mov dword [esp + 0x1c], ebx
mov eax, 1
mov dword [esp + 0x298], eax
mov dword [esp + 0x18], eax
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x298], 2
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x10], edi
mov byte [esp + 0x298], 3
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x24], esi
mov byte [esp + 0x298], 4
call fcn.00476002
mov eax, dword [eax + 4]
mov ebp, dword [esp + 0x2a0]
push ebp
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4176f5
mov esi, dword [esp + 0x2a4]
push 0x5c
push esi
call fcn.0044a56f
add esp, 8
test eax, eax
jne 0x417571
or eax, 0xffffffff
jmp 0x417575
sub eax, esi
sar eax, 1
inc eax
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x2ac]
call fcn.00405220
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [eax - 4]
sub eax, 0x10
cmp ecx, 1
mov byte [esp + 0x298], 5
jle 0x4175aa
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401300
mov ebx, dword [esi]
sub esp, 0x1c
mov esi, esp
xor eax, eax
mov dword [esp + 0x44], esp
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], eax
push ebx
mov word [esi + 4], ax
call fcn.00449da9
add esp, 4
push eax
push ebx
mov ecx, esi
call fcn.00402410
cmp dword [ebp - 4], 1
mov byte [esp + 0x2b4], 6
jle 0x4175fc
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [esp + 0x2c0]
call fcn.00401300
mov ebp, dword [esp + 0x2bc]
sub esp, 0x1c
mov esi, esp
xor ebx, ebx
mov dword [esp + 0x64], esp
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push ebp
mov word [esi + 4], bx
call fcn.00449da9
add esp, 4
push eax
push ebp
mov ecx, esi
call fcn.00402410
mov ecx, dword [esp + 0x54]
mov byte [esp + 0x2d0], 5
call fcn.00413de0
mov esi, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x298], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417660
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp esi, ebx
jne 0x4176bc
mov eax, dword [ebp - 4]
mov esi, 1
cmp eax, esi
jle 0x417687
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [esp + 0x2a4]
call fcn.00401300
mov ebp, dword [esp + 0x2a0]
push 0x80
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 4], esi
jle 0x4176af
mov ecx, dword [ebp - 0xc]
push ecx
lea ecx, [esp + 0x2a4]
call fcn.00401300
mov ebp, dword [esp + 0x2a0]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x18], esi
jmp 0x4176c0
mov dword [esp + 0x18], ebx
cmp ebp, ebx
jne 0x4176c8
xor eax, eax
jmp 0x4176d5
push ebp
call fcn.00449da9
add esp, 4
cmp eax, ebx
jl 0x4176eb
cmp eax, dword [ebp - 8]
jg 0x4176eb
mov dword [ebp - 0xc], eax
mov word [ebp + eax*2], bx
mov ebx, dword [esp + 0x1c]
jmp 0x41789d
push 0x80070057
call fcn.004010a0
mov edx, dword [esp + 0x2a4]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41770d
mov dword [esp + 0x18], eax
push 0x48a050
call fcn.00449da9
add esp, 4
push eax
push 0x48a050
lea ecx, [esp + 0x2a8]
call fcn.004082f0
push 0x48a050
call fcn.00449da9
add esp, 4
push eax
push 0x48a050
lea ecx, [esp + 0x2ac]
call fcn.004082f0
push 0x48a060
lea eax, [esp + 0x2a4]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00405530
add esp, 0xc
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x29c], 7
call fcn.00403cc0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x298], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41779d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebp, dword [esp + 0x20]
lea eax, [esp + 0x3c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x417883
mov ecx, ebx
call fcn.0040dca0
lea eax, [esi - 0x10]
mov byte [esp + 0x298], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4177e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add edi, 0xfffffff0
mov byte [esp + 0x298], 2
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417805
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x298], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417827
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2a0]
add eax, 0xfffffff0
mov byte [esp + 0x298], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417850
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2a4]
add eax, 0xfffffff0
mov dword [esp + 0x298], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41787c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x41798c
test eax, eax
jne 0x4179c0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [esp + 0x2a0]
mov ecx, dword [ebx + 0xdc]
xor esi, esi
cmp ecx, esi
je 0x4178cb
mov edx, dword [ecx]
mov dword [0x4a9a38], esi
call dword [edx + 0x60]
mov ecx, dword [ebx + 0xdc]
cmp ecx, esi
je 0x4178c5
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [ebx + 0xdc], esi
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x298], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4178f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add edi, 0xfffffff0
mov byte [esp + 0x298], 2
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417913
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x298], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417939
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebp, 0xfffffff0
mov byte [esp + 0x298], 0
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41795c
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov eax, dword [esp + 0x2a4]
add eax, 0xfffffff0
mov dword [esp + 0x298], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417988
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x290]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x284]
pop ebp
pop ebx
xor ecx, esp
call fcn.0044a318
add esp, 0x28c
ret 8
mov edi, dword [esp + 0x10]
lea esp, [esp]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x41788b
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x2a4]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00405530
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x29c], 8
call fcn.00403cc0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x298], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417a2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x2a8]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.00405530
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x29c], 9
call fcn.00403cc0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x298], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417a7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test byte [esp + 0x3c], 0x10
jne 0x417ba2
mov eax, dword [esp + 0x28]
mov cl, byte [eax + 0x160]
test cl, cl
jne 0x4179b5
mov ebp, dword [esp + 0x2a4]
cmp dword [ebp - 4], 1
jle 0x417abd
mov ecx, dword [ebp - 0xc]
push ecx
lea ecx, [esp + 0x2a8]
call fcn.00401300
mov ebp, dword [esp + 0x2a4]
sub esp, 0x1c
mov esi, esp
xor eax, eax
mov ebx, 7
mov dword [esp + 0x54], esp
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], eax
push ebp
mov word [esi + 4], ax
call fcn.00449da9
add esp, 4
push eax
push ebp
mov ecx, esi
call fcn.00402410
mov edi, dword [esp + 0x2c]
cmp dword [edi - 4], 1
mov byte [esp + 0x2b4], 0xa
jle 0x417b0c
mov edx, dword [edi - 0xc]
push edx
lea ecx, [esp + 0x30]
call fcn.00401300
mov edi, dword [esp + 0x2c]
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x18], ebx
xor ebx, ebx
mov dword [esp + 0x6c], esp
mov dword [esi + 0x14], ebx
push edi
mov word [esi + 4], bx
call fcn.00449da9
add esp, 4
push eax
push edi
mov ecx, esi
call fcn.00402410
mov ecx, dword [esp + 0x54]
mov byte [esp + 0x2d0], 4
call fcn.00413de0
cmp eax, ebx
jne 0x417b92
mov eax, dword [edi - 4]
mov esi, 1
cmp eax, esi
jle 0x417b65
mov eax, dword [edi - 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.00401300
mov edi, dword [esp + 0x10]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi - 4], esi
jle 0x417b87
mov ecx, dword [edi - 0xc]
push ecx
lea ecx, [esp + 0x14]
call fcn.00401300
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x18], esi
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, dword [esp + 0x1c]
jmp 0x4179c0
lea edx, [esp + 0x68]
push 0x48a07c
push edx
call fcn.0044a53d
add esp, 8
test eax, eax
je 0x4179b5
lea eax, [esp + 0x68]
push 0x48a0a0
push eax
call fcn.0044a53d
add esp, 8
test eax, eax
je 0x4179b5
mov edi, dword [esp + 0x24]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x38], esp
mov esi, esp
push eax
call fcn.00401570
add eax, 0x10
mov dword [esi], eax
mov edi, dword [esp + 0x18]
lea eax, [edi - 0x10]
mov dword [esp + 0x40], esp
mov esi, esp
push eax
mov byte [esp + 0x2a4], 0xb
call fcn.00401570
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov ecx, ebx
mov byte [esp + 0x2a0], 4
call fcn.004174a0
jmp 0x4179c0