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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f515
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.0048d310
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.0048d310
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.0048c830
push 8
push str.VulExLib
lea ecx, [ebp - 0x10]
call fcn.0048c830
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 0x486f3a
mov edi, dword [ebp - 0x10]
push edi
push esi
push ebx
push str.MoveOrCopyVul2ConfigDir_bMove:_d_from__s__to__s
push 0x550bb8
call fcn.0048d900
add esp, 0x14
test ebx, ebx
je 0x486f2a
push ecx
mov edx, edi
mov ecx, esi
call fcn.00485a90
add esp, 4
jmp 0x486f34
push edi
push esi
call fcn.00486450
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.0048d310
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.0048d310
add eax, 0x10
add esp, 8
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 3
mov edx, dword [ebx + 0x534d58]
test edx, edx
jne 0x486f81
xor ecx, ecx
jmp 0x486f95
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x486f86
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x18]
call fcn.0048c830
mov edx, dword [ebx + 0x534d58]
test edx, edx
jne 0x486fad
xor eax, eax
jmp 0x486fc1
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x486fb2
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x1c]
call fcn.0048c830
mov esi, dword [ebp - 0x18]
push esi
call edi
mov edi, dword [ebp - 0x1c]
test eax, eax
je 0x487025
push edi
push esi
push dword [ebp + 0x10]
push str.MoveOrCopyVul2ConfigFile_bMove:_d_from__s__to__s
push 0x550bb8
call fcn.0048d900
add esp, 0x14
cmp dword [ebp + 0x10], 0
je 0x487004
push ecx
mov edx, edi
mov ecx, esi
call fcn.00486de0
add esp, 4
jmp 0x48703b
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.0048d900
add esp, 0x14
jmp 0x48703b
push esi
push dword [ebp + 0x10]
push str.MoveOrCopyVul2ConfigFile_bMove:_d__strSrcVul2ConfigFile:_s_not_exists
push 0x550bb8
call fcn.0048d900
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 0x487057
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 0x487073
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 0x486f40
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.0048d310
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.0048d310
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.0048c830
push 9
push str.VulLibInc
lea ecx, [ebp + 0xc]
call fcn.0048c830
mov esi, dword [ebp + 8]
push esi
call edi
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x487118
mov ebx, dword [ebp + 0x10]
push edi
push esi
push ebx
push str.MoveOrCopyVul3Config_bMove:_d_from__s__to__s
push 0x550bb8
call fcn.0048d900
add esp, 0x14
test ebx, ebx
je 0x48710e
push ecx
mov edx, edi
mov ecx, esi
call fcn.00485a90
add esp, 4
jmp 0x487118
push edi
push esi
call fcn.00486450
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 0x487136
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 0x487151
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 0x48716f
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 0x48718e
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