Function at 0x40fae0
Capabilities:
Delete directory
Set current directory
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x47924d
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x4921bc]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4921bc]
xor eax, esp
push eax
lea eax, [esp + 0x31c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x32c]
xor edi, edi
push 0xffffffffffffffff
push edi
push eax
mov esi, 7
lea eax, [esp + 0x50]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], edi
mov word [esp + 0x54], di
call fcn.00401790
push 0x10
lea ecx, [esp + 0x48]
mov dword [esp + 0x328], edi
call fcn.004091a0
add esp, 4
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], edi
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb8], edi
mov word [esp + 0xa8], di
push 4
mov byte [esp + 0x328], 1
call fcn.00462098
add esp, 4
cmp eax, edi
je 0x40fbb3
mov ebx, eax
mov dword [eax], 0xffffffff
mov dword [esp + 0x20], ebx
jmp 0x40fbb9
mov dword [esp + 0x20], edi
mov ebx, edi
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x44]
push 0x47d594
push eax
lea esi, [esp + 0x30]
mov byte [esp + 0x32c], 2
call fcn.00401ce0
add esp, 8
push eax
lea ecx, [esp + 0x80]
mov esi, ebx
mov byte [esp + 0x328], 3
call fcn.0041d8d0
mov ebp, 8
mov byte [esp + 0x324], 2
cmp dword [esp + 0x40], ebp
mov bl, al
jb 0x40fc14
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0046207a
add esp, 4
test bl, bl
je 0x40fe22
lea esi, [esp + 0x7c]
call fcn.0041d870
test al, al
jne 0x40fc9c
mov eax, dword [esp + 0x9c]
and eax, 0x10
xor ecx, ecx
lea edx, [esp + 0xa4]
or eax, ecx
push edx
lea eax, [esp + 0x48]
lea edi, [esp + 0x2c]
push eax
je 0x40fc6a
call fcn.00404ab0
push eax
mov byte [esp + 0x330], 4
call fcn.0040fae0
add esp, 0xc
mov byte [esp + 0x324], 2
jmp 0x40fc7f
call fcn.00404ab0
add esp, 8
lea edi, [esp + 0x28]
call fcn.0040fa90
movzx eax, al
cdq
cmp dword [esp + 0x40], ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
jb 0x40fc9a
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0046207a
add esp, 4
xor edi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40fcb2
call fcn.0046207a
add esp, 4
lea esp, [esp]
xor edi, edi
mov esi, dword [esp + 0x20]
mov eax, dword [esi]
lea edx, [esp + 0xc4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
setne al
test al, al
je 0x40fe26
lea edi, [esp + 0x7c]
lea ecx, [esp + 0xc4]
call fcn.0041d950
mov edx, dword [esp + 0x9c]
mov eax, edx
and eax, 0x10
xor ecx, ecx
or eax, ecx
je 0x40fd5f
mov ecx, dword [esp + 0xb8]
test ecx, ecx
je 0x40fd5f
cmp dword [esp + 0xbc], ebp
mov eax, dword [esp + 0xa8]
jae 0x40fd18
lea eax, [esp + 0xa8]
cmp word [eax], 0x2e
jne 0x40fd5f
cmp ecx, 1
je 0x40fcb0
jae 0x40fd38
call fcn.004625df
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0x9c]
cmp dword [esp + 0xbc], ebp
mov eax, dword [esp + 0xa8]
jae 0x40fd4f
lea eax, [esp + 0xa8]
cmp word [eax + 2], 0x2e
jne 0x40fd5f
cmp ecx, 2
je 0x40fcb0
and edx, 0x10
mov eax, edx
xor ecx, ecx
or eax, ecx
lea ecx, [esp + 0xa4]
lea edx, [esp + 0x44]
push ecx
lea edi, [esp + 0x2c]
push edx
je 0x40fdb5
call fcn.00404ab0
push eax
mov byte [esp + 0x330], 5
call fcn.0040fae0
add esp, 0xc
add dword [esp + 0x14], eax
mov byte [esp + 0x324], 2
adc dword [esp + 0x18], edx
cmp dword [esp + 0x40], ebp
jb 0x40fcb0
mov eax, dword [esp + 0x2c]
push eax
jmp 0x40fca4
call fcn.00404ab0
mov eax, dword [esp + 0x34]
add esp, 8
cmp dword [esp + 0x40], ebp
jae 0x40fdcb
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x2c]
and eax, 0xfffffffe
cmp dword [esp + 0x40], ebp
jae 0x40fde3
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x40], ebp
mov eax, dword [esp + 0x2c]
jae 0x40fdf9
lea eax, [esp + 0x2c]
push eax
call ebx
cmp eax, 1
sete al
movzx eax, al
cdq
add dword [esp + 0x14], eax
adc dword [esp + 0x18], edx
cmp dword [esp + 0x40], ebp
jb 0x40fcb0
mov ecx, dword [esp + 0x2c]
push ecx
jmp 0x40fca4
mov esi, dword [esp + 0x20]
mov eax, dword [esi]
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
je 0x40fe40
push eax
call ebx
test eax, eax
je 0x40fe40
mov dword [esi], 0xffffffff
push 0x20
lea ecx, [esp + 0x48]
call fcn.004091a0
add esp, 4
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], edi
mov word [esp + 0x64], di
lea esi, [esp + 0x60]
mov byte [esp + 0x324], 6
call fcn.00409ba0
test al, al
je 0x40fede
push 0x20
mov ecx, esi
call fcn.004091a0
mov eax, dword [esp + 0x4c]
add esp, 4
cmp dword [esp + 0x5c], ebp
jae 0x40fe8e
lea eax, [esp + 0x48]
mov edi, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x64]
call fcn.00407c00
test eax, eax
jne 0x40fedc
lea edx, [esp + 0x44]
push edx
lea edi, [esp + 0x2c]
call fcn.004095f0
add esp, 4
cmp dword [eax + 0x18], ebp
jb 0x40febf
mov eax, dword [eax + 4]
jmp 0x40fec2
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [esp + 0x40], ebp
jb 0x40fedc
mov eax, dword [esp + 0x2c]
push eax
call fcn.0046207a
add esp, 4
xor edi, edi
cmp dword [esp + 0x5c], ebp
mov eax, dword [esp + 0x48]
jae 0x40feec
lea eax, [esp + 0x48]
push 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x5c], ebp
mov eax, dword [esp + 0x48]
jae 0x40ff03
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40ff17
add dword [esp + 0x14], 1
adc dword [esp + 0x18], edi
cmp dword [esp + 0x78], ebp
jb 0x40ff2a
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0046207a
add esp, 4
mov esi, dword [esp + 0x20]
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], edi
mov word [esp + 0x64], di
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40ff53
push eax
call ebx
test eax, eax
je 0x40ff53
mov dword [esi], 0xffffffff
push esi
call fcn.0046207a
add esp, 4
cmp dword [esp + 0xbc], ebp
jb 0x40ff75
mov edx, dword [esp + 0xa8]
push edx
call fcn.0046207a
add esp, 4
cmp dword [esp + 0x5c], ebp
mov dword [esp + 0xbc], 7
mov dword [esp + 0xb8], edi
mov word [esp + 0xa8], di
jb 0x40ffa2
mov eax, dword [esp + 0x48]
push eax
call fcn.0046207a
add esp, 4
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x31c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x300]
xor ecx, esp
call fcn.00461f6b
add esp, 0x314
ret