Function at 0x41cc69
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push ebp
sub esp, 0xe70
lea ebp, [esp - 4]
mov eax, dword [0x506550]
xor eax, ebp
mov dword [ebp + 0xe70], eax
push 0x28
mov eax, 0x4c16a3
call fcn.0043c032
mov esi, dword [ebp + 0xe7c]
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41cfe0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
cmp eax, edi
jne 0x41cfe0
mov esi, 0x206
push esi
lea eax, [ebp + 0x652]
push edi
push eax
mov word [ebp + 0x650], di
call fcn.0043b4c0
push esi
lea eax, [ebp + 0x44a]
push edi
push eax
mov word [ebp + 0x448], di
call fcn.0043b4c0
push esi
lea eax, [ebp + 0xc6a]
push edi
push eax
mov word [ebp + 0xc68], di
call fcn.0043b4c0
add esp, 0x24
push 0x4dfbb4
lea ecx, [ebp + 0x1c]
call fcn.004015c0
lea eax, [ebp + 0x448]
push eax
mov ebx, 0x104
push ebx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp + 0x650]
push eax
push dword [ebp - 0x14]
call fcn.0041b4f6
push dword [ebp - 0x14]
lea eax, [ebp]
push eax
call fcn.0041cb89
add esp, 0x10
push 3
push edi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.00403680
cmp dword [eax + 0x18], 8
jb 0x41cd5c
mov eax, dword [eax + 4]
jmp 0x41cd5f
add eax, 4
push eax
lea eax, [ebp + 0xc68]
push 0x4c704c
push eax
call fcn.0043c4d1
add esp, 0xc
push edi
push 1
lea ecx, [ebp - 0x34]
call fcn.004017c0
lea eax, [ebp + 0xc68]
push str.temp_
push eax
call fcn.0043b664
pop ecx
pop ecx
lea eax, [ebp + 0xc68]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00401790
push esi
lea eax, [ebp + 0x3a]
push edi
push eax
mov word [ebp + 0x38], di
call fcn.0043b4c0
add esp, 0xc
push ebx
lea eax, [ebp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [ebp + 0x38]
push 1
mov dword [ebp - 0x10], eax
push edi
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0x1c]
mov dword [ebp - 0x18], edi
call fcn.00404030
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
jne 0x41cdea
mov dword [ebp - 0x18], 1
jmp 0x41ce14
lea eax, [ebp + 0xc68]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41ce14
lea eax, [ebp + 0xc68]
push eax
call fcn.0041ae99
pop ecx
push 4
push edi
lea eax, [ebp + 0xc68]
push eax
call ebx
mov dword [ebp - 0x10], edi
push esi
lea eax, [ebp + 0x85a]
push edi
push eax
mov word [ebp + 0x858], di
call fcn.0043b4c0
push esi
lea eax, [ebp + 0xa62]
push edi
push eax
mov word [ebp + 0xa60], di
call fcn.0043b4c0
add esp, 0x18
cmp dword [ebp - 0x10], edi
lea eax, [ebp + 0x650]
jne 0x41ce95
push eax
lea eax, [ebp + 0x448]
push eax
lea eax, [ebp + 0x858]
push str._s_s.del
push eax
call fcn.0043c4d1
mov eax, dword [ebp + 4]
add esp, 0x10
cmp dword [ebp + 0x18], 8
jae 0x41ce77
lea eax, [ebp + 4]
lea ecx, [ebp + 0x650]
push ecx
push eax
lea eax, [ebp + 0xa60]
push str._s_s.del
push eax
call fcn.0043c4d1
add esp, 0x10
jmp 0x41ceb4
push dword [ebp - 0x10]
push eax
lea eax, [ebp + 0x448]
push eax
lea eax, [ebp + 0x858]
push str._s_s.del_d
push eax
call fcn.0043c4d1
add esp, 0x14
lea eax, [ebp + 0xa60]
push eax
push dword [ebp - 0x14]
call fcn.0043f4a1
pop ecx
pop ecx
lea eax, [ebp + 0x858]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41cef9
lea eax, [ebp + 0x858]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, edi
jne 0x41cef9
cmp dword [ebp - 0x10], 0xa
jge 0x41cfca
inc dword [ebp - 0x10]
jmp 0x41ce17
cmp dword [ebp - 0x18], edi
jne 0x41cf8f
push esi
lea eax, [ebp + 0x242]
push edi
push eax
mov word [ebp + 0x240], di
call fcn.0043b4c0
mov eax, dword [ebp + 0x20]
add esp, 0xc
cmp dword [ebp + 0x34], 8
jae 0x41cf26
lea eax, [ebp + 0x20]
push eax
mov esi, 0x4c704c
lea eax, [ebp + 0xc68]
push esi
push eax
call fcn.0043c4d1
lea eax, [ebp + 0x240]
push eax
lea eax, [ebp + 0xa60]
push eax
call fcn.0041b4f6
lea eax, [ebp + 0x240]
push eax
lea eax, [ebp + 0xc68]
push eax
call fcn.0043b664
add esp, 0x1c
push 1
lea eax, [ebp + 0xc68]
push eax
lea eax, [ebp + 0xa60]
push eax
call ebx
test eax, eax
je 0x41cf8f
lea eax, [ebp + 0xc68]
push eax
lea eax, [ebp + 0xa60]
push esi
push eax
call fcn.0043c4d1
add esp, 0xc
push 3
lea eax, [ebp + 0x858]
push eax
lea eax, [ebp + 0xa60]
push eax
call ebx
lea eax, [ebp + 0xa60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41cfbe
push 5
push edi
lea eax, [ebp + 0xa60]
push eax
call ebx
push 5
push edi
lea eax, [ebp + 0x858]
push eax
call ebx
push edi
push 1
lea ecx, [ebp]
call fcn.004017c0
push edi
push 1
lea ecx, [ebp + 0x1c]
call fcn.004017c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xe70]
xor ecx, ebp
call fcn.0043b4a5
add ebp, 0xe74
leave
ret