Function at 0x41d640
Capabilities:
Delete directory
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5572f8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5d7b20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x3c]
call fcn.00459852
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00406430
push 0x5c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00418d70
push 4
push str..
lea ecx, [ebp - 0x14]
call fcn.00405330
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x41d6bf
push 0
lea ecx, [ebp - 0x14]
call fcn.004045b0
mov edx, dword [ebp - 0x14]
push 0
push edx
lea ecx, [ebp - 0x3c]
call fcn.004598f9
test eax, eax
je 0x41d897
mov esi, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov bl, 3
lea ecx, [ecx]
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00406430
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.004594c2
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x20], eax
call fcn.00459814
test eax, eax
jne 0x41d7ff
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.00418d70
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00459bd5
push eax
lea edx, [ebp - 0x18]
push 0x56825c
push edx
mov byte [ebp - 4], bl
call fcn.00418ee0
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00405330
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d76b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d78e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [ebp - 0x3c]
call eax
test eax, eax
je 0x41d7ca
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x41d7be
push 0
lea ecx, [ebp - 0x10]
call fcn.004045b0
mov edx, dword [ebp - 0x10]
push esi
push edx
call fcn.0041d640
add esp, 8
jmp 0x41d7ff
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp - 0x10]
and eax, 0xfffffffe
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41d7ff
mov ecx, dword [ebp - 0x10]
push 4
push eax
push ecx
call edi
mov dword [esi], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
mov byte [ebp - 4], 1
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41d822
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x20], 0
jne 0x41d6e0
lea ecx, [ebp - 0x3c]
call fcn.004593dc
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x41d84e
push 4
push eax
push ebx
call edi
mov dword [esi], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d871
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.00459884
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d8ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.00459884
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret