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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f935
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x550144]
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.0048d290
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.0048d290
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.0048c7b0
push 8
push str.VulExLib
lea ecx, [ebp - 0x10]
call fcn.0048c7b0
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 0x486eea
mov edi, dword [ebp - 0x10]
push edi
push esi
push ebx
push str.MoveOrCopyVul2ConfigDir_bMove:_d_from__s__to__s
push 0x550bb8
call fcn.0048d880
add esp, 0x14
test ebx, ebx
je 0x486eda
push ecx
mov edx, edi
mov ecx, esi
call fcn.00485a40
add esp, 4
jmp 0x486ee4
push edi
push esi
call fcn.00486400
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.0048d290
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.0048d290
add eax, 0x10
add esp, 8
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 3
mov edx, dword [ebx + 0x534fc4]
test edx, edx
jne 0x486f31
xor ecx, ecx
jmp 0x486f45
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x486f36
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x18]
call fcn.0048c7b0
mov edx, dword [ebx + 0x534fc4]
test edx, edx
jne 0x486f5d
xor eax, eax
jmp 0x486f71
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x486f62
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x1c]
call fcn.0048c7b0
mov esi, dword [ebp - 0x18]
push esi
call edi
mov edi, dword [ebp - 0x1c]
test eax, eax
je 0x486fd5
push edi
push esi
push dword [ebp + 0x10]
push str.MoveOrCopyVul2ConfigFile_bMove:_d_from__s__to__s
push 0x550bb8
call fcn.0048d880
add esp, 0x14
cmp dword [ebp + 0x10], 0
je 0x486fb4
push ecx
mov edx, edi
mov ecx, esi
call fcn.00486d90
add esp, 4
jmp 0x486feb
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 0x550bb8
call fcn.0048d880
add esp, 0x14
jmp 0x486feb
push esi
push dword [ebp + 0x10]
push str.MoveOrCopyVul2ConfigFile_bMove:_d__strSrcVul2ConfigFile:_s_not_exists
push 0x550bb8
call fcn.0048d880
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 0x487007
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 0x487023
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 0x486ef0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.0048d290
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.0048d290
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.0048c7b0
push 9
push str.VulLibInc
lea ecx, [ebp + 0xc]
call fcn.0048c7b0
mov esi, dword [ebp + 8]
push esi
call edi
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x4870c8
mov ebx, dword [ebp + 0x10]
push edi
push esi
push ebx
push str.MoveOrCopyVul3Config_bMove:_d_from__s__to__s
push 0x550bb8
call fcn.0048d880
add esp, 0x14
test ebx, ebx
je 0x4870be
push ecx
mov edx, edi
mov ecx, esi
call fcn.00485a40
add esp, 4
jmp 0x4870c8
push edi
push esi
call fcn.00486400
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 0x4870e6
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 0x487101
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 0x48711f
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 0x48713e
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