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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x6c8
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x180332088]
xor rax, rsp
mov qword [rsp + 0x6b0], rax
mov rbx, r9
mov rdi, r8
mov rbp, rdx
mov r15, rcx
mov qword [rsp + 0x70], rbx
test rdx, rdx
je 0x1801da482
test r8, r8
je 0x1801da482
mov rcx, r8
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1801da278
mov rcx, rbx
call fcn.18005c830
jmp 0x1801da4b5
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x4a0]
call fcn.180233580
lea rdx, [rsp + 0x4a0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x80]
call fcn.180233580
mov ecx, 0x64
call fcn.1800787b0
mov r14d, eax
mov qword [rsp + 0x20], rbp
mov r9d, eax
lea r8, [rsp + 0x4a0]
lea rdx, str._s_d__s
lea rcx, [rsp + 0x80]
call fcn.18005c530
lea rcx, [rsp + 0x80]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1801da306
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r8d, r8d
lea rdx, [rsp + 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1801da26b
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.18005cd20
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.1801baba0
test eax, eax
je 0x1801da26b
or rdi, 0xffffffffffffffff
xor esi, esi
cmp word [rbp], si
jne 0x1801da358
mov r8d, esi
jmp 0x1801da36b
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp word [rbp + r8*2], si
jne 0x1801da360
lea rcx, [r15 + 0x40]
mov rdx, rbp
call fcn.18005c660
cmp word [rsp + 0x80], si
jne 0x1801da386
mov r8, rsi
jmp 0x1801da39b
lea rax, [rsp + 0x80]
mov r8, rdi
inc r8
cmp word [rax + r8*2], si
jne 0x1801da391
lea rbp, [r15 + 0x60]
lea rdx, [rsp + 0x80]
mov rcx, rbp
call fcn.18005c660
mov dword [rsp + 0x28], 0x4e20
mov dword [rsp + 0x20], r14d
lea r9, str.__GS_SYS_PY_CELL_DICT_IDX__
lea r8, str.WanNengWBInput
lea rdx, str._sCopy__s__d__d
lea rcx, [rsp + 0x290]
call fcn.18005c530
cmp word [rsp + 0x290], si
jne 0x1801da3ed
mov rdi, rsi
jmp 0x1801da3fe
lea rax, [rsp + 0x290]
inc rdi
cmp word [rax + rdi*2], si
jne 0x1801da3f5
lea r14, [r15 + 0x80]
mov r8, rdi
lea rdx, [rsp + 0x290]
mov rcx, r14
call fcn.18005c660
mov dword [rsp + 0x40], esi
cmp qword [r14 + 0x18], 8
jb 0x1801da426
mov r14, qword [r14]
cmp qword [rbp + 0x18], 8
jb 0x1801da431
mov rbp, qword [rbp]
lea rax, [r15 + 0x28]
lea rcx, [r15 + 8]
lea r8, [r15 + 0x10]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x40]
mov rdx, rbp
mov rcx, r15
call fcn.1801dfea0
mov qword [r15 + 0x18], rax
cmp dword [rsp + 0x40], esi
jne 0x1801da26b
mov rcx, rbx
test rax, rax
je 0x1801da26e
call fcn.18005c830
mov eax, 1
jmp 0x1801da4b7
mov r8, qword [r9 + 0x18]
cmp r8, 8
jb 0x1801da49a
inc r8
mov rdx, qword [r9]
mov rcx, rbx
call fcn.18005cac0
mov qword [rbx + 0x18], 7
xor esi, esi
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x1801da4b2
mov rbx, qword [rbx]
mov word [rbx], si
xor eax, eax
mov rcx, qword [rsp + 0x6b0]
xor rcx, rsp
call fcn.1802037a0
add rsp, 0x6c8
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret