Function at 0x41c610
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4cad48
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push edi
mov eax, dword [0x4fcb54]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, 1
mov dword [esp + 0x28], eax
mov ebx, dword [esp + 0x30]
push ebx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41c7e2
test al, 6
je 0x41c682
cmp dword [esi + 0x20], 0
jne 0x41c682
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00402840
call fcn.0041d2d0
sub dword [esi + 0x58], eax
sbb dword [esi + 0x5c], edx
jmp 0x41c7ea
mov edi, dword [esp + 0x34]
xor ebp, ebp
push ebp
push edi
call fcn.004a6318
add esp, 8
test eax, eax
jne 0x41c711
cmp dword [esi + 0x14], ebp
jne 0x41c6c3
push ecx
lea eax, [ebx - 0x10]
mov dword [esp + 0x1c], esp
mov edi, esp
push eax
call fcn.00402860
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0041d2d0
sub dword [esi + 0x58], eax
sbb dword [esi + 0x5c], edx
jmp 0x41c7ea
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x41c6f8
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00402840
call fcn.0041d2d0
sub dword [esi + 0x58], eax
mov dword [esp + 0x14], ebp
sbb dword [esi + 0x5c], edx
jmp 0x41c7ea
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41c711
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
jmp 0x41c6df
push ecx
lea edi, [ebx - 0x10]
mov dword [esp + 0x1c], esp
mov ebp, esp
push edi
call fcn.00402860
add eax, 0x10
add esp, 4
mov dword [ebp], eax
call fcn.0041d2d0
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x34]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov ebp, esp
push eax
mov dword [esi + 0x74], edx
call fcn.00402860
add eax, 0x10
mov dword [ebp], eax
mov dword [esp + 0x24], esp
mov ebp, esp
push edi
mov byte [esp + 0x34], 2
call fcn.00402860
add eax, 0x10
mov dword [ebp], eax
add esp, 4
mov ecx, esi
mov byte [esp + 0x30], 1
call fcn.0041cc80
test eax, eax
je 0x41c7e2
cmp dword [esi + 0x18], 0
je 0x41c7ea
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x41c7c8
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
jne 0x41c7b6
push str.Failed_to_delete_file_after_copy
call fcn.00402520
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
jmp 0x41c7e2
lea edx, [esp + 0x34]
push edx
call fcn.00402840
push esi
call fcn.0041d430
jmp 0x41c7ea
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Failed_to_set_source_file_attribute_to_normal_durign_move
call fcn.00402520
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov dword [esp + 0x14], 0
add ebx, 0xfffffff0
mov byte [esp + 0x28], 0
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41c80b
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c833
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret 8