Function at 0x1400920d0
Capabilities:
Check if file exists
Copy file
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1790]
mov eax, 0x1890
call fcn.1401e33b0
sub rsp, rax
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x1780], rax
lea rdx, str.OperateFile::CopyXMLFile
lea rcx, [rsp + 0x30]
call fcn.14001abe0
nop
lea rsi, [0x1402a8360]
lea rdi, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, rsi
je 0x140092160
test byte [rcx + 0x1c], 1
je 0x140092160
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, recv
lea r8, str.eXK3
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x780]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x80]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0xf80]
call fcn.1401e7e40
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
lea r8, [rbp + 0x780]
lea rdx, str.SOURCEDIR
mov rcx, r9
call qword [case.0x1400136d6.0]
lea rcx, [rbp + 0x780]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rbp + rcx*2 + 0x77e], 0x5c
je 0x1400921fd
lea rdx, [0x140251df8]
lea rcx, [rbp + 0x780]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
lea r8, [rbp - 0x80]
lea rdx, str.TEMPPATH
mov rcx, r9
call qword [case.0x1400136d6.0]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rsp + rcx*2 + 0x7e], 0x5c
je 0x140092255
lea rdx, [0x140251df8]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
lea r8, [rbp + 0xf80]
lea rdx, str.PDL_TYPE
mov rcx, r9
call qword [case.0x1400136d6.0]
lea rbx, str.SNMPDiscovery.xml
mov qword [rsp + 0x20], rbx
lea r9, [0x140253130]
lea r8, [rbp - 0x80]
lea rdx, [0x140254960]
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x20], rbx
lea r9, str.DDIXML
lea r8, [rbp + 0x780]
lea rdx, [0x140254960]
lea rcx, [rbp + 0x780]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x780]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140092349
lea rcx, [rbp - 0x80]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140092349
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140092349
mov rcx, qword [0x1402a8360]
cmp rcx, rsi
je 0x140092349
test byte [rcx + 0x1c], 4
je 0x140092349
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, send
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r8, str.eXK3
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
xor r8d, r8d
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x780]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1400923b4
mov rax, qword [0x1402a8360]
cmp rax, rsi
je 0x1400923b4
test byte [rax + 0x1c], 2
je 0x1400923b4
mov rbx, rdi
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
lea rcx, [rsp + 0x30]
call fcn.14001b0b0
mov edx, reloc.WSOCK32.dll_recv
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, str.eXK3
mov rcx, qword [0x1402a8360]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov edx, 0x20
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
lea r8, [rbp + 0x780]
lea rdx, str.SOURCEDIR
mov rcx, r9
call qword [case.0x1400136d6.0]
lea rcx, [rbp + 0x780]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r10, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
lea r8, [rbp - 0x80]
lea rdx, str.TEMPPATH
mov rcx, r10
call qword [case.0x1400136d6.0]
lea rcx, [rbp - 0x80]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rbx, str.SLPDiscovery.xml
mov qword [rsp + 0x20], rbx
lea r9, [0x140253130]
lea r8, [rbp - 0x80]
lea rdx, [0x140254960]
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x20], rbx
lea r9, str.DDIXML
lea r8, [rbp + 0x780]
lea rdx, [0x140254960]
lea rcx, [rbp + 0x780]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x780]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140092500
lea rcx, [rbp - 0x80]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140092500
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140092500
mov rcx, qword [0x1402a8360]
cmp rcx, rsi
je 0x140092500
test byte [rcx + 0x1c], 4
je 0x140092500
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, reloc.COMCTL32.dll_InitCommonControls
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r8, str.eXK3
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
xor r8d, r8d
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x780]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14009256b
mov rax, qword [0x1402a8360]
cmp rax, rsi
je 0x14009256b
test byte [rax + 0x1c], 2
je 0x14009256b
mov rbx, rdi
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
lea rcx, [rsp + 0x30]
call fcn.14001b0b0
mov edx, send
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, str.eXK3
mov rcx, qword [0x1402a8360]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov edx, 0x20
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 1
mov byte [rsp + 0x38], al
mov rcx, qword [0x1402a8360]
cmp rcx, rsi
je 0x1400925cd
test byte [rcx + 0x1c], al
je 0x1400925cd
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, reloc.WSOCK32.dll_send
mov dword [rsp + 0x20], 0
lea r8, str.eXK3
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
movzx eax, byte [rsp + 0x38]
mov rcx, qword [0x1402a8360]
lea rdx, vtable.WppTrace.0
mov qword [rsp + 0x30], rdx
test al, al
jne 0x140092626
cmp rcx, rsi
je 0x140092626
test byte [rcx + 0x1c], 1
je 0x140092626
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rax, qword [rsp + 0x40]
cmp qword [0x1402bbdc8], 8
cmovae rdi, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, [0x140252818]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea rcx, [rsp + 0x60]
call fcn.1400048a0
lea rcx, [rsp + 0x40]
call fcn.1400048a0
xor eax, eax
mov rcx, qword [rbp + 0x1780]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0x1890]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret