Function at 0x467f00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53eb63
mov eax, dword fs:[0]
push eax
mov eax, 0x185c
call fcn.00498310
mov eax, dword [0x597644]
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.00456b60
mov ecx, eax
call fcn.00456b40
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edi, eax
mov dword [ebp - 0x1860], edi
test edi, edi
je 0x4680a1
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.004dda00
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 0x46809f
nop word [eax + eax]
push 0x210
lea eax, [ebp - 0x838]
mov dword [ebp - 0x1864], ebx
push 0
push eax
call fcn.004dda00
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 0x46809f
cmp dword [ebp - 0x630], 0
jne 0x46808c
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.004dda00
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 0x4680bd
mov eax, dword [ebp - 0x62c]
and dword [ebp - 0x183c], eax
test eax, eax
jne 0x468086
lea eax, [ebp - 0x1038]
push eax
push str.Copy_File__s_FAILED.
call fcn.00456ec0
add esp, 8
mov esi, dword [ebp - 0x183c]
inc edi
mov dword [ebp - 0x184c], edi
cmp edi, dword [ebp - 0x185c]
jl 0x467fd0
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.004982ff
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x838]
cmp esi, eax
je 0x468308
push eax
lea ecx, [ebp - 0x1840]
call fcn.00415430
mov dword [ebp - 4], 0
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4680e1
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 0x468122
add eax, 0xfffffff0
push eax
call fcn.00412310
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x1850], esi
jmp 0x4681a8
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x468134
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x468142
call fcn.00412520
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 0x4684c1
test eax, eax
jne 0x468162
test edi, edi
jne 0x4684b7
mov eax, dword [ecx]
push 2
push edi
call dword [eax]
test eax, eax
je 0x4684b2
lea esi, [eax + 0x10]
mov dword [ebp - 0x1850], esi
test edi, edi
js 0x4684b7
cmp edi, dword [esi - 8]
jg 0x4684b7
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.0046b9b0
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.004160a0
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4681e9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0x54f940
push dword [ebp - 0x1854]
lea eax, [ebp - 0x1868]
push eax
call fcn.0045d880
add esp, 0xc
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 3
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x46821b
mov edx, dword [ecx]
call dword [edx + 0x10]
test eax, eax
jne 0x46822f
call fcn.00412520
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x4684c1
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.00457a70
add esp, 0x14
lea eax, [ebp - 0x1848]
lea ecx, [ebp - 0x1840]
push eax
call fcn.004160a0
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 0x46829e
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 0x4682c0
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 0x4682dd
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 0x468302
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.004dda00
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 0x468086
lea eax, [ebp - 0x1838]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46838f
lea eax, [ebp - 0x1838]
mov ecx, esi
push eax
lea eax, [ebp - 0x1038]
push eax
call fcn.00469ea0
test eax, eax
je 0x46838f
lea eax, [ebp - 0x838]
push eax
push str.DstFile__s__has_same_or_higher_version.
jmp 0x46807e
lea eax, [ebp - 0x1858]
mov ecx, esi
push eax
lea eax, [ebp - 0x1838]
push eax
lea eax, [ebp - 0x1038]
push eax
call fcn.0046ac10
test eax, eax
jne 0x4683d4
lea eax, [ebp - 0x1838]
push eax
lea eax, [ebp - 0x1038]
push eax
push str.Copy_File__s_to__s_FAILED__install_failed.
call fcn.00456ec0
add esp, 0xc
mov dword [ebp - 0x183c], 0
mov eax, dword [ebp - 0x185c]
dec eax
cmp edi, eax
jne 0x468086
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004dda00
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.004dda00
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 0x468086
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x468086
lea eax, [ebp - 0x1858]
mov ecx, esi
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.0046ac10
test eax, eax
jne 0x468086
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
push str.Copy_File__s_to__s_FAILED__install_failed.
call fcn.00456ec0
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x183c], esi
jmp 0x46808c
call fcn.0040b390
push 0x80070057
call fcn.0040ada0
push 0x80004005
call fcn.0040ada0
int3