Function at 0x467370
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e0f3
mov eax, dword fs:[0]
push eax
mov eax, 0x185c
call fcn.00496d60
mov eax, dword [0x596634]
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.00456bf0
mov ecx, eax
call fcn.00456bd0
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edi, eax
mov dword [ebp - 0x1860], edi
test edi, edi
je 0x467511
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.004dcfa0
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 0x46750f
nop word [eax + eax]
push 0x210
lea eax, [ebp - 0x838]
mov dword [ebp - 0x1864], ebx
push 0
push eax
call fcn.004dcfa0
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 0x46750f
cmp dword [ebp - 0x630], 0
jne 0x4674fc
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.004dcfa0
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 0x46752d
mov eax, dword [ebp - 0x62c]
and dword [ebp - 0x183c], eax
test eax, eax
jne 0x4674f6
lea eax, [ebp - 0x1038]
push eax
push str.Copy_File__s_FAILED.
call fcn.00456fb0
add esp, 8
mov esi, dword [ebp - 0x183c]
inc edi
mov dword [ebp - 0x184c], edi
cmp edi, dword [ebp - 0x185c]
jl 0x467440
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.00496d46
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x838]
cmp esi, eax
je 0x467778
push eax
lea ecx, [ebp - 0x1840]
call fcn.004155f0
mov dword [ebp - 4], 0
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x467551
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 0x467592
add eax, 0xfffffff0
push eax
call fcn.004124d0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x1850], esi
jmp 0x467618
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x4675a4
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x4675b2
call fcn.004126e0
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 0x467931
test eax, eax
jne 0x4675d2
test edi, edi
jne 0x467927
mov eax, dword [ecx]
push 2
push edi
call dword [eax]
test eax, eax
je 0x467922
lea esi, [eax + 0x10]
mov dword [ebp - 0x1850], esi
test edi, edi
js 0x467927
cmp edi, dword [esi - 8]
jg 0x467927
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.0046ae30
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.00416260
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x467659
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0x54e950
push dword [ebp - 0x1854]
lea eax, [ebp - 0x1868]
push eax
call fcn.0045d020
add esp, 0xc
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 3
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x46768b
mov edx, dword [ecx]
call dword [edx + 0x10]
test eax, eax
jne 0x46769f
call fcn.004126e0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x467931
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.00457b60
add esp, 0x14
lea eax, [ebp - 0x1848]
lea ecx, [ebp - 0x1840]
push eax
call fcn.00416260
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 0x46770e
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 0x467730
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 0x46774d
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 0x467772
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.004dcfa0
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 0x4674f6
lea eax, [ebp - 0x1838]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4677ff
lea eax, [ebp - 0x1838]
mov ecx, esi
push eax
lea eax, [ebp - 0x1038]
push eax
call fcn.00469320
test eax, eax
je 0x4677ff
lea eax, [ebp - 0x838]
push eax
push str.DstFile__s__has_same_or_higher_version.
jmp 0x4674ee
lea eax, [ebp - 0x1858]
mov ecx, esi
push eax
lea eax, [ebp - 0x1838]
push eax
lea eax, [ebp - 0x1038]
push eax
call fcn.0046a090
test eax, eax
jne 0x467844
lea eax, [ebp - 0x1838]
push eax
lea eax, [ebp - 0x1038]
push eax
push str.Copy_File__s_to__s_FAILED__install_failed.
call fcn.00456fb0
add esp, 0xc
mov dword [ebp - 0x183c], 0
mov eax, dword [ebp - 0x185c]
dec eax
cmp edi, eax
jne 0x4674f6
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004dcfa0
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.004dcfa0
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 0x4674f6
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4674f6
lea eax, [ebp - 0x1858]
mov ecx, esi
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.0046a090
test eax, eax
jne 0x4674f6
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
push str.Copy_File__s_to__s_FAILED__install_failed.
call fcn.00456fb0
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x183c], esi
jmp 0x4674fc
call fcn.0040b550
push 0x80070057
call fcn.0040af60
push 0x80004005
call fcn.0040af60
int3