Function at 0x464010
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53bef3
mov eax, dword fs:[0]
push eax
mov eax, 0x185c
call fcn.00493de0
mov eax, dword [0x594624]
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
mov dword [ebp - 0x1854], ecx
xor ebx, ebx
mov dword [ebp - 0x1844], ebx
call fcn.004536f0
mov ecx, eax
call fcn.004536d0
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edi, eax
mov dword [ebp - 0x1860], edi
test edi, edi
je 0x4641b1
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x1858], ebx
push 0
mov esi, 1
push eax
mov dword [ebp - 0x183c], esi
call fcn.004daa30
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [edi]
push edi
call dword [eax + 8]
xor edi, edi
mov dword [ebp - 0x185c], eax
mov dword [ebp - 0x184c], edi
test eax, eax
jle 0x4641af
nop word [eax + eax]
push 0x210
lea eax, [ebp - 0x838]
mov dword [ebp - 0x1864], ebx
push 0
push eax
call fcn.004daa30
mov ecx, dword [ebp - 0x1860]
lea edx, [ebp - 0x838]
add esp, 0xc
mov eax, dword [ecx]
push edx
push edi
push ecx
call dword [eax + 0xc]
test eax, eax
je 0x4641af
cmp dword [ebp - 0x630], 0
jne 0x46419c
lea eax, [ebp - 0x838]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x800
mov esi, eax
lea eax, [ebp - 0x1038]
push 0
push eax
call fcn.004daa30
add esp, 0xc
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1038]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x1038]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4641cd
mov eax, dword [ebp - 0x62c]
and dword [ebp - 0x183c], eax
test eax, eax
jne 0x464196
lea eax, [ebp - 0x1038]
push eax
push str.Copy_File__s_FAILED.
call fcn.00453ab0
add esp, 8
mov esi, dword [ebp - 0x183c]
inc edi
mov dword [ebp - 0x184c], edi
cmp edi, dword [ebp - 0x185c]
jl 0x4640e0
mov eax, esi
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.00493dce
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x838]
cmp esi, eax
je 0x464418
push eax
lea ecx, [ebp - 0x1840]
call fcn.00415b40
mov dword [ebp - 4], 0
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4641f1
mov eax, dword [ebp - 0x1840]
sub esi, ecx
sar esi, 1
mov edi, 0
mov ecx, dword [eax - 0xc]
sub ecx, esi
cmovns edi, ecx
cmp edi, dword [eax - 0xc]
jl 0x464232
add eax, 0xfffffff0
push eax
call fcn.00412a20
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x1850], esi
jmp 0x4642b8
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x464244
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x464252
call fcn.00412c30
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
mov eax, dword [ebp - 0x1840]
mov dword [ebp - 0x1844], eax
test ecx, ecx
je 0x4645d1
test eax, eax
jne 0x464272
test edi, edi
jne 0x4645c7
mov eax, dword [ecx]
push 2
push edi
call dword [eax]
test eax, eax
je 0x4645c2
lea esi, [eax + 0x10]
mov dword [ebp - 0x1850], esi
test edi, edi
js 0x4645c7
cmp edi, dword [esi - 8]
jg 0x4645c7
lea eax, [edi + edi]
mov dword [esi - 0xc], edi
push eax
push dword [ebp - 0x1844]
xor ecx, ecx
push eax
push esi
mov word [eax + esi], cx
call fcn.00467ac0
add esp, 0x10
or ebx, 1
mov dword [ebp - 0x1844], ebx
mov ebx, dword [ebp - 0x1864]
lea eax, [ebp - 0x1850]
push eax
lea ecx, [ebp - 0x1840]
mov byte [ebp - 4], 1
call fcn.004167b0
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4642f9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0x54c950
push dword [ebp - 0x1854]
lea eax, [ebp - 0x1868]
push eax
call fcn.00459b10
add esp, 0xc
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 3
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x46432b
mov edx, dword [ecx]
call dword [edx + 0x10]
test eax, eax
jne 0x46433f
call fcn.00412c30
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x4645d1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov ecx, dword [esi]
add eax, 0x10
mov dword [ebp - 0x1848], eax
or ebx, 3
mov eax, dword [ebp - 0x1840]
mov dword [ebp - 0x1844], ebx
push dword [eax - 0xc]
push eax
push dword [ecx - 0xc]
lea eax, [ebp - 0x1848]
push ecx
push eax
call fcn.00454660
add esp, 0x14
lea eax, [ebp - 0x1848]
lea ecx, [ebp - 0x1840]
push eax
call fcn.004167b0
mov edx, dword [ebp - 0x1848]
and ebx, 0xfffffffd
mov byte [ebp - 4], 2
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4643ae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1868]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4643d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x1840]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4643ed
push dword [ebp - 0x1840]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov edx, dword [ebp - 0x1840]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x464412
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x184c]
push 0x800
lea eax, [ebp - 0x1838]
push 0
push eax
call fcn.004daa30
mov esi, dword [ebp - 0x1854]
lea eax, [ebp - 0x838]
add esp, 0xc
push eax
push dword [esi]
lea eax, [ebp - 0x1838]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.updatecfg.ini
lea eax, [ebp - 0x838]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x464196
lea eax, [ebp - 0x1838]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46449f
lea eax, [ebp - 0x1838]
mov ecx, esi
push eax
lea eax, [ebp - 0x1038]
push eax
call fcn.00465fb0
test eax, eax
je 0x46449f
lea eax, [ebp - 0x838]
push eax
push str.DstFile__s__has_same_or_higher_version.
jmp 0x46418e
lea eax, [ebp - 0x1858]
mov ecx, esi
push eax
lea eax, [ebp - 0x1838]
push eax
lea eax, [ebp - 0x1038]
push eax
call fcn.00466d20
test eax, eax
jne 0x4644e4
lea eax, [ebp - 0x1838]
push eax
lea eax, [ebp - 0x1038]
push eax
push str.Copy_File__s_to__s_FAILED__install_failed.
call fcn.00453ab0
add esp, 0xc
mov dword [ebp - 0x183c], 0
mov eax, dword [ebp - 0x185c]
dec eax
cmp edi, eax
jne 0x464196
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004daa30
add esp, 0xc
lea eax, [ebp - 0x218]
push str.updatecfg.ini
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004daa30
add esp, 0xc
lea eax, [ebp - 0x420]
push str.updatecfg.ini
push dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x464196
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x464196
lea eax, [ebp - 0x1858]
mov ecx, esi
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.00466d20
test eax, eax
jne 0x464196
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
push str.Copy_File__s_to__s_FAILED__install_failed.
call fcn.00453ab0
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x183c], esi
jmp 0x46419c
call fcn.0040bab0
push 0x80070057
call fcn.0040b4c0
push 0x80004005
call fcn.0040b4c0
int3