Function at 0x487ee0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58e4a0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x610304]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x14]
xor ebx, ebx
cmp dword [edi], ebx
jne 0x487faf
push edi
push 0x66
call fcn.00485ca0
cmp dword [edi], ebx
jne 0x487faf
mov dword [ebp - 0x18], str.unable_to_get_install_permit.__n
mov dword [ebp - 0x24], str.E:_txupdatecodingTXUpdate_servicelogicUpgradeLogic.cpp
mov dword [ebp - 0x20], str.CUpgradeLogic::StartCrossVerInstall
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x50], 0x27e
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x54], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x40], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea ecx, [ebp - 0x18]
push ecx
push 0x5a48f0
lea edx, [ebp - 0x58]
push 0x5ac4c8
push edx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call sym.txupd.exe_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__
push str.unable_to_get_install_permit.__n
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00481090
test eax, eax
je 0x488052
mov dword [ebp - 0x18], str.target_product_is_still_running__restart_update_caller.__n
mov dword [ebp - 0x24], str.E:_txupdatecodingTXUpdate_servicelogicUpgradeLogic.cpp
mov dword [ebp - 0x20], str.CUpgradeLogic::StartCrossVerInstall
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x50], 0x286
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x54], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x40], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea ecx, [ebp - 0x18]
push ecx
push 0x5a48f0
lea edx, [ebp - 0x58]
push 0x5ac4c8
push edx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call sym.txupd.exe_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__
push str.target_product_is_still_running__restart_update_caller.__n
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 0x18
push ebx
push ebx
mov ecx, esi
call fcn.00485900
call fcn.00480f30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0x3cc]
call fcn.0047ca40
mov edi, eax
push edi
push str.Start_new_package_result:__lu__n
push 0x5ac4c8
push 2
push str.CUpgradeLogic::StartCrossVerInstall
push 0x28e
push str.E:_txupdatecodingTXUpdate_servicelogicUpgradeLogic.cpp
call fcn.004856e0
push edi
push str.Start_new_package_result:__lu__n
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 0x24
sub edi, ebx
je 0x48814d
sub edi, 1
je 0x488121
push 4
push str.RET_CROSS_UPDATE
call fcn.00465dc0
add esp, 8
push str.state_flag
lea ecx, [ebp - 0x10]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
call fcn.004989f0
or edi, 0xffffffff
add esp, 4
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
push str.newfile_ready
lea ecx, [ebp - 0x14]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 4], 1
call fcn.004989f0
add esp, 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
push 4
push 2
mov ecx, esi
call fcn.00485900
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 5
push str.RET_CROSS_UPDATE
call fcn.00465dc0
add esp, 8
push 4
push 8
mov ecx, esi
call fcn.00485900
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push str.RET_CROSS_UPDATE
call fcn.00465dc0
add esp, 8
push 4
mov ecx, esi
call fcn.00487050
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret