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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0dcb
mov eax, dword fs:[0]
push eax
mov eax, 0x183c
call fcn.0056e430
mov eax, dword [0x608554]
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
push ecx
push str.OperateFile::CopyXMLFile
lea ecx, [ebp - 0x1848]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46a53a
test byte [ecx + 0x1c], 1
je 0x46a53a
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5cecd4
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xe
call fcn.00401840
add esp, 0xc
push 0x800
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.00571c00
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00571c00
push 0x800
lea eax, [ebp - 0x1810]
push 0
push eax
call fcn.00571c00
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x1010]
add esp, 0x24
mov ecx, dword [ecx + 0x1c]
push eax
push str.SOURCEDIR
call fcn.004f65f0
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x1010]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp word [ebp + eax*2 - 0x1012], 0x5c
je 0x46a5be
push 0x5c692c
lea eax, [ebp - 0x1010]
push eax
call esi
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x810]
push eax
push str.TEMPPATH
mov ecx, dword [ecx + 0x1c]
call fcn.004f65f0
lea eax, [ebp - 0x810]
push eax
call edi
cmp word [ebp + eax*2 - 0x812], 0x5c
je 0x46a5fa
push 0x5c692c
lea eax, [ebp - 0x810]
push eax
call esi
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x1810]
push eax
push str.PDL_TYPE
mov ecx, dword [ecx + 0x1c]
call fcn.004f65f0
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x810]
push str.SNMPDiscovery.xml
push 0x5c7af8
push eax
push 0x5c9c44
push eax
call ebx
push str.SNMPDiscovery.xml
push str.DDIXML
lea eax, [ebp - 0x1010]
push eax
push 0x5c9c44
push eax
call ebx
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x1010]
add esp, 0x28
push eax
call edi
test eax, eax
jne 0x46a6c7
lea eax, [ebp - 0x810]
push eax
call edi
test eax, eax
je 0x46a6c7
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x46a6c7
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46a6c7
test byte [ecx + 0x1c], 4
je 0x46a6c7
cmp dword [0x608f68], 8
lea edx, [ebp - 0x810]
push edx
mov eax, 0x608f54
mov edx, 0x5cecd4
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xf
call fcn.00405920
add esp, 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x810]
push 0
push eax
lea eax, [ebp - 0x1010]
push eax
call ebx
test eax, eax
jne 0x46a732
mov eax, dword [0x608f30]
cmp eax, 0x608f30
je 0x46a732
test byte [eax + 0x1c], 2
je 0x46a732
cmp dword [0x608f68], 8
lea ecx, [ebp - 0x1848]
mov esi, 0x608f54
cmovae esi, dword [0x608f54]
call fcn.0040a830
push eax
mov eax, dword [0x608f30]
mov edx, 0x5cecd4
push esi
mov ecx, 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00405920
add esp, 0x10
push 0x20
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x1010]
push eax
push str.SOURCEDIR
mov ecx, dword [ecx + 0x1c]
call fcn.004f65f0
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x1010]
push eax
call esi
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x810]
push eax
push str.TEMPPATH
mov ecx, dword [ecx + 0x1c]
call fcn.004f65f0
lea eax, [ebp - 0x810]
push eax
call esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x810]
push str.SLPDiscovery.xml
push 0x5c7af8
push eax
push 0x5c9c44
push eax
call esi
push str.SLPDiscovery.xml
push str.DDIXML
lea eax, [ebp - 0x1010]
push eax
push 0x5c9c44
push eax
call esi
add esp, 0x28
lea eax, [ebp - 0x1010]
push eax
call edi
test eax, eax
jne 0x46a83a
lea eax, [ebp - 0x810]
push eax
call edi
test eax, eax
je 0x46a83a
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x46a83a
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46a83a
test byte [ecx + 0x1c], 4
je 0x46a83a
cmp dword [0x608f68], 8
lea edx, [ebp - 0x810]
push edx
mov eax, 0x608f54
mov edx, 0x5cecd4
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x11
call fcn.00405920
add esp, 0x10
push 0
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x1010]
push eax
call ebx
test eax, eax
jne 0x46a89f
mov eax, dword [0x608f30]
cmp eax, 0x608f30
je 0x46a89f
test byte [eax + 0x1c], 2
je 0x46a89f
cmp dword [0x608f68], 8
lea ecx, [ebp - 0x1848]
mov esi, 0x608f54
cmovae esi, dword [0x608f54]
call fcn.0040a830
push eax
mov eax, dword [0x608f30]
mov edx, 0x5cecd4
push esi
mov ecx, 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00405920
add esp, 0x10
push 0x20
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov byte [ebp - 0x1844], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46a8f7
test byte [ecx + 0x1c], 1
je 0x46a8f7
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5cecd4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x13
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x1848]
call fcn.0040a570
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.0056d977
mov esp, ebp
pop ebp
ret