Function at 0x4ae4da
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x674
mov eax, dword [0x5385d0]
xor eax, esp
mov dword [esp + 0x670], eax
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [esp + 0x25d]
push ebx
push eax
mov byte [esp + 0x264], bl
call fcn.004b7880
add esp, 0xc
push esi
lea eax, [esp + 0x365]
push ebx
push eax
mov dword [esp + 0x20], ebx
mov byte [esp + 0x36c], bl
call fcn.004b7880
add esp, 0xc
push esi
lea eax, [esp + 0x4d]
push ebx
push eax
mov byte [esp + 0x54], bl
call fcn.004b7880
add esp, 0xc
push esi
lea eax, [esp + 0x155]
push ebx
push eax
mov byte [esp + 0x15c], bl
call fcn.004b7880
add esp, 0xc
push esi
lea eax, [esp + 0x575]
push ebx
push eax
mov byte [esp + 0x57c], bl
call fcn.004b7880
xor eax, eax
mov word [esp + 0x24], bx
lea edi, [esp + 0x26]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x34], bx
lea edi, [esp + 0x36]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosw word es:[edi], ax
lea eax, [esp + 0x258]
push str.ApplUdt.lck
push eax
mov dword [esp + 0x18], ebx
call fcn.004610ab
cmp dword [ebp + 8], ebx
pop ecx
pop ecx
jne 0x4ae5ef
call fcn.004a6bcb
sub eax, dword [0x64a5a4]
cmp eax, 0x493e0
jb 0x4ae656
call fcn.004a6bcb
mov dword [0x64a5a4], eax
lea eax, [esp + 0x258]
call fcn.0041d8ac
mov dword [esp + 0x10], eax
call fcn.004af465
test eax, eax
je 0x4ae642
call fcn.004a6bcb
push 0x92
mov edi, str..UpdatePAULA2.c
push edi
push 0x20
mov dword [0x64a5a4], eax
call fcn.00445628
add esp, 0xc
push 0x94
push edi
push 0x20
call fcn.00448320
add esp, 0xc
test eax, eax
jne 0x4ae67a
push 0x97
push edi
push ebx
call fcn.00445628
add esp, 0xc
cmp eax, ebx
je 0x4ae66d
push eax
push str.:7:ApplyUpdates___FAILED:_Could_not_logon_to_the_TAMS_server:_LogonToTAMS_NO_SYNC__returned__d
call fcn.00418e96
pop ecx
pop ecx
cmp dword [esp + 0x10], ebx
je 0x4ae656
lea eax, [esp + 0x258]
push eax
call fcn.0041d96b
pop ecx
xor eax, eax
mov ecx, dword [esp + 0x67c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b7140
mov esp, ebp
pop ebp
ret
push str.:9:ApplyUpdates___encountered_something_strange:_LockTAMSServer_LTS_UPDATEFILES__FAILED__but_LogonToTAMS_NO_SYNC__succeeded_
call fcn.0041936e
pop ecx
jmp 0x4ae682
mov dword [esp + 0x14], 1
mov edi, 0x104
push str.Live2.ark
mov ecx, edi
lea eax, [esp + 0x574]
call fcn.0047ebe1
pop ecx
push 1
call fcn.004af036
test eax, eax
pop ecx
jne 0x4ae6c9
cmp dword [ebp + 8], ebx
jne 0x4ae6b5
push 0x20
call fcn.004491a9
jmp 0x4ae641
push str.LiveBranch2.ark
mov ecx, edi
lea eax, [esp + 0x574]
call fcn.0047ebe1
pop ecx
lea eax, [esp + 0x570]
push eax
lea edi, [esp + 0x364]
call fcn.00444791
pop ecx
lea eax, [esp + 0x570]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004b6c20
push ebx
push ebx
call fcn.004610ab
mov edx, eax
lea ecx, [esp + 0x58]
call fcn.0047f16b
push 1
lea edx, [esp + 0x5c]
mov ecx, edi
call fcn.0041c06b
add esp, 0x14
test eax, eax
jne 0x4ae7ce
cmp dword [esp + 0x14], ebx
je 0x4ae728
push 0x20
call fcn.004491a9
pop ecx
push 0x190
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edi, [esp + 0x360]
call fcn.0041c5ff
test eax, eax
je 0x4ae7dc
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xc2
push str..UpdatePAULA2.c
push 0x20
call fcn.00448320
add esp, 0xc
test eax, eax
jne 0x4ae77b
push str.:5:ApplyUpdates___encountered_a_problem:_LockTAMSServer_LTS_UPDATEFILES__FAILED_to_relock_while_retrying_update_archive_copy.
call fcn.0041936e
pop ecx
jmp 0x4ae783
mov dword [esp + 0x14], 1
push 1
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x364]
call fcn.0041c06b
test eax, eax
pop ecx
jne 0x4ae7c3
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x364]
push eax
push str.:9:ApplyUpdates___has_encountered_a_problem:_The_servers_update_archive___s__exists_but_cannot_be_copied_to___s_.__The_PAULA_Update_cannot_be_applied_
call fcn.00418e96
add esp, 0xc
cmp dword [esp + 0x14], ebx
je 0x4ae642
jmp 0x4ae6ac
push str.:7:ApplyUpdates___failed_to_copy_the_TAMS_servers_update_archive_on_the_first_attempt_but_succeeded_on_the_second_backup_attempt.
call fcn.0041936e
pop ecx
cmp dword [esp + 0x14], ebx
je 0x4ae7dc
push 0x20
call fcn.004491a9
pop ecx
lea edi, [esp + 0x48]
mov dword [esp + 0x14], ebx
call fcn.0041c5ff
test eax, eax
je 0x4aebe0
push esi
lea eax, [esp + 0x46d]
push ebx
push eax
mov byte [esp + 0x474], bl
call fcn.004b7880
add esp, 0xc
push ebx
push ebx
call fcn.004610ab
push eax
lea eax, [esp + 0x15c]
push str._sUpdtTest_
push eax
call fcn.004b77ce
add esp, 0x14
lea edi, [esp + 0x150]
call fcn.0041c5ff
test eax, eax
je 0x4ae849
mov ecx, edi
call fcn.0041b2cd
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
lea ecx, [esp + 0x154]
call fcn.0041c9b8
pop ecx
lea eax, [esp + 0x150]
push eax
call fcn.0041c6ac
test eax, eax
pop ecx
jne 0x4ae87d
lea eax, [esp + 0x150]
push eax
push str.:7:ApplyUpdates___encountered_a_problem:_CreateDirectorySuper___s___has_FAILED:_The_directory_does_not_exist.
call fcn.00418e96
pop ecx
pop ecx
push ebx
push ebx
lea eax, [esp + 0x158]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.004013cd
add esp, 0x10
test eax, eax
jne 0x4ae93a
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xf3
push str..UpdatePAULA2.c
push 0x20
call fcn.00448320
add esp, 0xc
test eax, eax
jne 0x4ae8cc
push str.:5:ApplyUpdates___encountered_a_problem:_LockTAMSServer_LTS_UPDATEFILES__FAILED_to_relock_while_retrying_update_archive_copy_2.
call fcn.0041936e
pop ecx
jmp 0x4ae8d4
mov dword [esp + 0x14], 1
push 1
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x364]
call fcn.0041c06b
cmp dword [esp + 0x18], ebx
pop ecx
je 0x4ae8f5
push 0x20
call fcn.004491a9
pop ecx
push ebx
push ebx
lea eax, [esp + 0x158]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.004013cd
add esp, 0x10
test eax, eax
jne 0x4ae92f
lea eax, [esp + 0x150]
push eax
lea eax, [esp + 0x4c]
push eax
push str.:9:ApplyUpdates___has_encountered_a_serious_problem:_The_update_archive_on_the_TAMS_server_is_corrupt:_ExpandArchive___s_____s___1__0__FAILED_
call fcn.00418e96
add esp, 0xc
jmp 0x4ae642
push str.:7:ApplyUpdates___encountered_a_problem.__The_first_time_the_update_archive_was_copied_from_the_TAMS_server__it_was_corrupt.__But_when_the_file_was_recopied_a_second_time__it_was_OK.
call fcn.0041936e
pop ecx
push str.Revision.dat
lea eax, [esp + 0x154]
push eax
mov esi, 0x4d8920
lea eax, [esp + 0x470]
push esi
push eax
call fcn.004b77ce
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x47c]
push eax
xor ecx, ecx
call fcn.0041a315
add esp, 0x18
test eax, eax
mov edi, str.PAULA.exe
jne 0x4ae9cf
push edi
lea eax, [esp + 0x154]
push eax
lea eax, [esp + 0x470]
push esi
push eax
call fcn.004b77ce
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x47c]
push eax
xor ecx, ecx
call fcn.0041a315
add esp, 0x18
test eax, eax
jne 0x4ae9cf
inc dword [0x64a5a8]
cmp dword [0x64a5a8], 5
jg 0x4ae642
push dword [0x64a5a8]
push str.:7:__d_of_5:_ApplyUpdates___FAILED:_The_update_is_invalid_because_it_does_not_contain_a_revision_date_
jmp 0x4ae63b
push edi
push ebx
push ebx
call fcn.00460e8a
pop ecx
pop ecx
push eax
lea eax, [esp + 0x470]
push esi
push eax
call fcn.004b77ce
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x47c]
push eax
xor ecx, ecx
call fcn.0041a315
add esp, 0x18
test eax, eax
jne 0x4aea0e
push str.:7:ApplyUpdates___encountered_a_problem:_Could_not_determine_the_revision_date_of_the_current_PAULA_installation.__The_update_will_be_applied.
call fcn.0041936e
pop ecx
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [esp + 0x38]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004a62af
add esp, 0x20
test eax, eax
jge 0x4aeaae
movzx eax, word [esp + 0x34]
push eax
movzx eax, word [esp + 0x36]
push eax
movzx eax, word [esp + 0x38]
push eax
movzx eax, word [esp + 0x34]
push eax
movzx eax, word [esp + 0x3e]
push eax
movzx eax, word [esp + 0x3e]
push eax
movzx eax, word [esp + 0x3c]
push eax
movzx eax, word [esp + 0x3e]
push eax
movzx eax, word [esp + 0x40]
push eax
movzx eax, word [esp + 0x3c]
push eax
movzx eax, word [esp + 0x46]
push eax
movzx eax, word [esp + 0x46]
push eax
push str.:3:ApplyUpdates___did_not_apply_the_update_from_the_TAMS_server_because_it_is_outdated.__The_update_was_revised__02d__02d__04d____02d:_02d._02d_but_the_current_revision_is__02d__02d__04d____02d:_02d._02d.
call fcn.0041936e
add esp, 0x34
lea ecx, [esp + 0x48]
call fcn.004af5fa
cmp dword [esp + 0x10], ebx
je 0x4aeaa6
lea eax, [esp + 0x258]
push eax
call fcn.0041d96b
pop ecx
xor eax, eax
inc eax
jmp 0x4ae658
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [esp + 0x38]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004a5d78
add esp, 0x20
test eax, eax
jne 0x4aeb50
mov word [esp + 0x38], bx
lea edi, [esp + 0x3a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push str.Revision.dat
stosd dword es:[edi], eax
push ebx
push ebx
stosw word es:[edi], ax
call fcn.004610ab
pop ecx
pop ecx
push eax
lea eax, [esp + 0x470]
push 0x4d8920
push eax
call fcn.004b77ce
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x47c]
push eax
xor ecx, ecx
call fcn.0041a315
add esp, 0x18
test eax, eax
je 0x4aeb50
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [esp + 0x38]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004a5d78
add esp, 0x20
test eax, eax
je 0x4aeb50
lea esi, [esp + 0x38]
lea edi, [esp + 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [esp + 0x38]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004a5d78
add esp, 0x20
test eax, eax
je 0x4aebe0
call fcn.004100f9
test eax, eax
je 0x4aebd5
xor eax, eax
mov word [esp + 0x38], bx
lea edi, [esp + 0x3a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x142
stosw word es:[edi], ax
lea eax, [esp + 0x3c]
push str..UpdatePAULA2.c
push eax
call fcn.004a77ec
add esp, 0xc
cmp word [esp + 0x3c], bx
je 0x4aea89
cmp word [esp + 0x3c], 6
je 0x4aea89
cmp word [esp + 0x40], 0xe
jae 0x4aea89
cmp word [esp + 0x40], 6
jb 0x4aea89
push str.:1:FYI:_An_update_is_about_to_be_reapplied.__This_may_not_be_necessary_but_has_been_left_for_safety.__Return_at_this_point_to_disable_this__feature_.
call fcn.0041936e
pop ecx
lea edi, [esp + 0x48]
call fcn.0041c5ff
test eax, eax
je 0x4ae642
push 0x4aed35
push 1
push 1
push 0xea60
push ebx
push ebx
call fcn.00460e8a
pop ecx
pop ecx
push eax
lea eax, [esp + 0x164]
push eax
call fcn.0041b4ca
add esp, 0x18
test eax, eax
jge 0x4aec3f
push ebx
push ebx
call fcn.00460e8a
push eax
lea eax, [esp + 0x15c]
push eax
push str.:9:ApplyUpdates___encountered_an_IMPOSSIBLE_EXCEPTION:_CopyNewerFiles___s_____s___FAILED_to_apply_an_already_tested_update_
call fcn.00418e96
add esp, 0x14
jmp 0x4ae642
call fcn.00426add
lea ecx, [esp + 0x48]
call fcn.004af5fa
lea eax, [esp + 0x48]
call fcn.0041bfc0
lea edi, [esp + 0x150]
call fcn.0041c5ff
test eax, eax
je 0x4aec6d
mov ecx, edi
call fcn.0041b2cd
mov esi, str.Revision.dat
push esi
push ebx
push ebx
call fcn.00460e8a
pop ecx
pop ecx
push eax
lea eax, [esp + 0x368]
push 0x4d8920
push eax
call fcn.004b77ce
add esp, 0x10
lea edi, [esp + 0x360]
call fcn.0041c5ff
test eax, eax
je 0x4aecbf
push ebx
push esi
push ebx
call fcn.004610ab
pop ecx
pop ecx
push eax
mov eax, edi
push eax
call fcn.0041be47
add esp, 0xc
mov eax, edi
call fcn.0041bfc0
push 1
call fcn.00479fc4
movzx eax, word [esp + 0x38]
pop ecx
push eax
movzx eax, word [esp + 0x36]
push eax
movzx eax, word [esp + 0x38]
push eax
movzx eax, word [esp + 0x34]
push eax
movzx eax, word [esp + 0x3e]
push eax
movzx eax, word [esp + 0x3e]
push eax
movzx eax, word [esp + 0x3c]
push eax
movzx eax, word [esp + 0x3e]
push eax
movzx eax, word [esp + 0x40]
push eax
movzx eax, word [esp + 0x3c]
push eax
movzx eax, word [esp + 0x46]
push eax
movzx eax, word [esp + 0x46]
push eax
push str.:0:_FYI:_An_update_has_been_processed.__Update_Revision____02d__02d__04d____02d:_02d._02d__Previous_Revision____02d__02d__04d____02d:_02d._02d.
call fcn.0041936e
add esp, 0x34
push str.UpdtFileLst.txt
push ebx
call fcn.00460e8a
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4aea92