Function at 0x41da70
Capabilities:
Delete directory
Delete file
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x480c9d
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x49b1b0]
xor eax, esp
mov dword [esp + 0x308], eax
push ebx
push esi
push edi
mov eax, dword [0x49b1b0]
xor eax, esp
push eax
lea eax, [esp + 0x320]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
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.00401c40
lea eax, [esp + 0x44]
push 0x10
push eax
mov dword [esp + 0x330], edi
call fcn.004168e0
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], edi
mov word [esp + 0xb0], di
push 4
mov byte [esp + 0x334], 1
call fcn.00469d66
add esp, 0xc
cmp eax, edi
je 0x41db45
mov ebx, eax
mov dword [eax], 0xffffffff
mov dword [esp + 0x20], ebx
jmp 0x41db4b
mov dword [esp + 0x20], edi
mov ebx, edi
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x44]
push 0x489dc8
push ecx
lea esi, [esp + 0x30]
mov byte [esp + 0x330], 2
call fcn.004049d0
add esp, 8
push eax
lea ecx, [esp + 0x80]
mov esi, ebx
mov byte [esp + 0x32c], 3
call fcn.00420fd0
mov byte [esp + 0x328], 2
cmp dword [esp + 0x40], 8
mov bl, al
jb 0x41dba2
mov edx, dword [esp + 0x2c]
push edx
call fcn.00469d48
add esp, 4
test bl, bl
je 0x41ddb5
lea esi, [esp + 0x7c]
call fcn.00420f50
test al, al
jne 0x41dc2b
mov eax, dword [esp + 0x9c]
and eax, 0x10
xor ecx, ecx
or eax, ecx
lea eax, [esp + 0xa4]
lea ecx, [esp + 0x44]
push eax
lea edi, [esp + 0x2c]
push ecx
je 0x41dbf8
call fcn.00404a90
push eax
mov byte [esp + 0x334], 4
call fcn.0041da70
add esp, 0xc
mov byte [esp + 0x328], 2
jmp 0x41dc0d
call fcn.00404a90
add esp, 8
lea edi, [esp + 0x28]
call fcn.0041da20
movzx eax, al
cdq
cmp dword [esp + 0x40], 8
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
jb 0x41dc29
mov edx, dword [esp + 0x2c]
push edx
call fcn.00469d48
add esp, 4
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x41dc42
call fcn.00469d48
add esp, 4
jmp 0x41dc40
xor edi, edi
mov ebx, dword [esp + 0x20]
mov ecx, dword [ebx]
lea eax, [esp + 0xc4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
setne al
test al, al
je 0x41ddb9
lea edi, [esp + 0x7c]
lea ecx, [esp + 0xc4]
call fcn.00421050
mov edx, dword [esp + 0x9c]
mov eax, edx
xor ecx, ecx
and eax, 0x10
or eax, ecx
lea ebx, [ecx + 8]
je 0x41dcf2
mov ecx, dword [esp + 0xb8]
test ecx, ecx
je 0x41dcf2
cmp dword [esp + 0xbc], ebx
mov eax, dword [esp + 0xa8]
jae 0x41dcab
lea eax, [esp + 0xa8]
cmp word [eax], 0x2e
jne 0x41dcf2
cmp ecx, 1
je 0x41dc40
jae 0x41dccb
call fcn.00469efa
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0x9c]
cmp dword [esp + 0xbc], ebx
mov eax, dword [esp + 0xa8]
jae 0x41dce2
lea eax, [esp + 0xa8]
cmp word [eax + 2], 0x2e
jne 0x41dcf2
cmp ecx, 2
je 0x41dc40
and edx, 0x10
mov eax, edx
xor ecx, ecx
lea edx, [esp + 0xa4]
or eax, ecx
push edx
lea eax, [esp + 0x48]
lea edi, [esp + 0x2c]
push eax
je 0x41dd48
call fcn.00404a90
push eax
mov byte [esp + 0x334], 5
call fcn.0041da70
add esp, 0xc
add dword [esp + 0x14], eax
mov byte [esp + 0x328], 2
adc dword [esp + 0x18], edx
cmp dword [esp + 0x40], ebx
jb 0x41dc40
mov ecx, dword [esp + 0x2c]
push ecx
jmp 0x41dc33
call fcn.00404a90
mov eax, dword [esp + 0x34]
add esp, 8
cmp dword [esp + 0x40], ebx
jae 0x41dd5e
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], ebx
jae 0x41dd76
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x40], ebx
mov eax, dword [esp + 0x2c]
jae 0x41dd8c
lea eax, [esp + 0x2c]
push eax
call esi
cmp eax, 1
sete cl
movzx eax, cl
cdq
add dword [esp + 0x14], eax
adc dword [esp + 0x18], edx
cmp dword [esp + 0x40], ebx
jb 0x41dc40
mov edx, dword [esp + 0x2c]
push edx
jmp 0x41dc33
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x41ddd1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x41ddd1
mov dword [ebx], 0xffffffff
lea eax, [esp + 0x44]
push 0x20
push eax
call fcn.004168e0
add esp, 8
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], edi
mov word [esp + 0x64], di
lea esi, [esp + 0x60]
mov byte [esp + 0x328], 6
call fcn.004165b0
test al, al
je 0x41de7b
mov ecx, esi
push 0x20
push ecx
call fcn.004168e0
mov eax, dword [esp + 0x50]
add esp, 8
cmp dword [esp + 0x5c], 8
jae 0x41de22
lea eax, [esp + 0x48]
mov edi, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x64]
call fcn.0040cd10
test eax, eax
jne 0x41de75
lea edx, [esp + 0x44]
push edx
lea edi, [esp + 0x2c]
call fcn.00416d50
mov esi, 8
add esp, 4
cmp dword [eax + 0x18], esi
jb 0x41de58
mov eax, dword [eax + 4]
jmp 0x41de5b
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [esp + 0x40], esi
jb 0x41de75
mov eax, dword [esp + 0x2c]
push eax
call fcn.00469d48
add esp, 4
mov ebx, dword [esp + 0x20]
xor edi, edi
mov eax, dword [esp + 0x48]
mov esi, 8
cmp dword [esp + 0x5c], esi
jae 0x41de8e
lea eax, [esp + 0x48]
push 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x5c], esi
mov eax, dword [esp + 0x48]
jae 0x41dea5
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x41deb9
add dword [esp + 0x14], 1
adc dword [esp + 0x18], edi
cmp dword [esp + 0x78], esi
jb 0x41decc
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00469d48
add esp, 4
mov esi, 7
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], edi
mov word [esp + 0x64], di
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x41def6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x41def6
mov dword [ebx], 0xffffffff
push ebx
call fcn.00469d48
mov ebx, 8
add esp, 4
cmp dword [esp + 0xbc], ebx
jb 0x41df1d
mov edx, dword [esp + 0xa8]
push edx
call fcn.00469d48
add esp, 4
cmp dword [esp + 0x5c], ebx
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb8], edi
mov word [esp + 0xa8], di
jb 0x41df46
mov eax, dword [esp + 0x48]
push eax
call fcn.00469d48
add esp, 4
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x320]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x308]
xor ecx, esp
call fcn.00469ab5
mov esp, ebp
pop ebp
ret