Function at 0x405450
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427481
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x436024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
cmp dword [eax + 0x5e4], ebx
je 0x405650
mov edx, dword [0x4362a0]
mov eax, dword [edx + 0xc]
mov ecx, 0x4362a0
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], ebx
mov ecx, dword [esi]
push ecx
mov ecx, dword [ecx + 0x5e4]
mov edx, esp
mov dword [ebp - 0x224], esp
push edx
call fcn.00405e20
lea ecx, [ebp - 0x21c]
call fcn.004155f0
add esp, 4
push 4
push str..tlg
lea eax, [ebp - 0x21c]
push eax
call fcn.00407530
push 0x206
lea ecx, [ebp - 0x216]
push ebx
push ecx
mov word [ebp - 0x218], bx
call fcn.00425b9e
add esp, 0xc
push 1
push 0x1a
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x21a], 0x5c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x405544
push 0x42e33c
lea ecx, [ebp - 0x218]
push ecx
call edi
push 0x42e340
lea edx, [ebp - 0x218]
push edx
call edi
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 4], 1
jle 0x405574
mov eax, dword [esi - 0xc]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00401780
mov esi, dword [ebp - 0x21c]
push esi
lea edx, [ebp - 0x218]
push edx
call edi
cmp esi, ebx
jne 0x405586
xor eax, eax
jmp 0x4055a5
mov eax, esi
lea edx, [eax + 2]
jmp 0x405590
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405590
sub eax, edx
sar eax, 1
js 0x405733
cmp eax, dword [esi - 8]
jg 0x405733
mov dword [esi - 0xc], eax
mov word [esi + eax*2], bx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40562d
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4055d0
sub eax, edx
lea ecx, [ebp - 0x218]
sar eax, 1
push ecx
push 0x436774
mov ebx, eax
call fcn.004016d0
lea edi, [ebp - 0x220]
call fcn.00413760
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x220]
cmp dword [eax - 0xc], 0
jne 0x40566e
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40562d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405650
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042575e
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x224]
push edx
lea ebx, [ebp - 0x220]
call fcn.00406000
add esp, 8
mov edi, 0x436774
mov byte [ebp - 4], 2
call fcn.00406830
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4056be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x436774]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [0x436774]
push 0
push edx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405709
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40572c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x405652
push 0x80070057
call fcn.004018a0
int3