Function at 0x486c10
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c255
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x54b144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.0048ce30
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.0048ce30
add eax, 0x10
add esp, 8
mov dword [ebp - 0x10], eax
push 8
push str.VulExLib
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0048c350
push 8
push str.VulExLib
lea ecx, [ebp - 0x10]
call fcn.0048c350
mov esi, dword [ebp - 0x14]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call edi
mov ebx, dword [ebp + 0x10]
test eax, eax
je 0x486cda
mov edi, dword [ebp - 0x10]
push edi
push esi
push ebx
push str.MoveOrCopyVul2ConfigDir_bMove:_d_from__s__to__s
push 0x54bba8
call fcn.0048d420
add esp, 0x14
test ebx, ebx
je 0x486cca
push ecx
mov edx, edi
mov ecx, esi
call fcn.00485830
add esp, 4
jmp 0x486cd4
push edi
push esi
call fcn.004861f0
add esp, 8
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ebx, ebx
nop dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.0048ce30
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.0048ce30
add eax, 0x10
add esp, 8
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 3
mov edx, dword [ebx + 0x530db8]
test edx, edx
jne 0x486d21
xor ecx, ecx
jmp 0x486d35
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x486d26
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x18]
call fcn.0048c350
mov edx, dword [ebx + 0x530db8]
test edx, edx
jne 0x486d4d
xor eax, eax
jmp 0x486d61
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x486d52
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x1c]
call fcn.0048c350
mov esi, dword [ebp - 0x18]
push esi
call edi
mov edi, dword [ebp - 0x1c]
test eax, eax
je 0x486dc5
push edi
push esi
push dword [ebp + 0x10]
push str.MoveOrCopyVul2ConfigFile_bMove:_d_from__s__to__s
push 0x54bba8
call fcn.0048d420
add esp, 0x14
cmp dword [ebp + 0x10], 0
je 0x486da4
push ecx
mov edx, edi
mov ecx, esi
call fcn.00486b80
add esp, 4
jmp 0x486ddb
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push eax
push edi
push esi
push str.MoveFileEx_lpszSourceFile:_s__lpszDestFile:_s__bRet:_d
push 0x54bba8
call fcn.0048d420
add esp, 0x14
jmp 0x486ddb
push esi
push dword [ebp + 0x10]
push str.MoveOrCopyVul2ConfigFile_bMove:_d__strSrcVul2ConfigFile:_s_not_exists
push 0x54bba8
call fcn.0048d420
add esp, 0x10
mov byte [ebp - 4], 2
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x486df7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x486e13
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add ebx, 4
cmp ebx, 0x18
jb 0x486ce0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.0048ce30
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.0048ce30
add eax, 0x10
add esp, 8
mov dword [ebp + 0xc], eax
push 9
push str.VulLibInc
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.0048c350
push 9
push str.VulLibInc
lea ecx, [ebp + 0xc]
call fcn.0048c350
mov esi, dword [ebp + 8]
push esi
call edi
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x486eb8
mov ebx, dword [ebp + 0x10]
push edi
push esi
push ebx
push str.MoveOrCopyVul3Config_bMove:_d_from__s__to__s
push 0x54bba8
call fcn.0048d420
add esp, 0x14
test ebx, ebx
je 0x486eae
push ecx
mov edx, edi
mov ecx, esi
call fcn.00485830
add esp, 4
jmp 0x486eb8
push edi
push esi
call fcn.004861f0
add esp, 8
or ebx, 0xffffffff
mov byte [ebp - 4], 4
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x486ed6
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x486ef1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x486f0f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x486f2e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret