Function at 0x462259
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
mov eax, dword [0x4cc8c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x104
lea eax, [ebp - 0x310]
push edi
xor ebx, ebx
push ebx
push eax
call fcn.00466ad0
push edi
lea eax, [ebp - 0x414]
mov esi, ebx
push ebx
push eax
call fcn.00466ad0
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00466ad0
push edi
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00466ad0
push edi
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.00466ad0
xor eax, eax
lea edi, [ebp - 0x62c]
stosd dword es:[edi], eax
push str.ApplUdt.lck
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x63c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x310]
push eax
call fcn.0043e284
mov edi, dword [ebp + 8]
add esp, 0x44
test edi, edi
jne 0x462331
call fcn.004609ba
sub eax, dword [0x5d2050]
cmp eax, 0x493e0
jb 0x462399
call fcn.004609ba
push 0x7530
mov dword [0x5d2050], eax
lea eax, [ebp - 0x310]
push edi
push eax
call fcn.0040fdf3
add esp, 0xc
mov ebx, eax
call fcn.00462dc1
test eax, eax
je 0x462388
call fcn.004609ba
push 0xe0
push str.C:UsersOfficeDocumentsVisual_StudioPAULAUpdatePAULA2.c
push 0x20
mov dword [0x5d2050], eax
call fcn.0042e500
push 0xe2
push str.C:UsersOfficeDocumentsVisual_StudioPAULAUpdatePAULA2.c
push 0x20
call fcn.0042cf9f
add esp, 0x18
test eax, eax
jne 0x4623b7
push 0xe5
push str.C:UsersOfficeDocumentsVisual_StudioPAULAUpdatePAULA2.c
push eax
call fcn.0042e500
add esp, 0xc
test eax, eax
je 0x4623aa
push eax
push str.:7:ApplyUpdates___FAILED:_Could_not_logon_to_the_TAMS_server:_LogonToTAMS_NO_SYNC__returned__d
call fcn.0040d511
pop ecx
pop ecx
test ebx, ebx
je 0x462399
lea eax, [ebp - 0x310]
push eax
call fcn.00410742
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004654a8
leave
ret
push str.:9:ApplyUpdates___encountered_something_strange:_LockTAMSServer_LTS_UPDATEFILES__FAILED__but_LogonToTAMS_NO_SYNC__succeeded_
call fcn.0040d9e1
pop ecx
jmp 0x4623ba
xor esi, esi
inc esi
push 0x104
lea eax, [ebp - 0x61c]
push str.Live2.ark
push eax
call fcn.00452b01
push 1
call fcn.00462f4b
add esp, 0x10
test eax, eax
jne 0x462404
test edi, edi
jne 0x4623eb
push 0x20
call fcn.00432bc5
jmp 0x462387
push 0x104
lea eax, [ebp - 0x61c]
push str.LiveBranch2.ark
push eax
call fcn.00452b01
add esp, 0xc
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0042f61b
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00470240
xor edi, edi
push edi
push edi
call fcn.0043e284
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00451949
push 1
push edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0040eec9
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x30
test eax, eax
jne 0x462511
test esi, esi
je 0x462473
push 0x20
call fcn.00432bc5
pop ecx
push 0x190
xor esi, esi
call edi
lea eax, [ebp - 0x414]
push eax
call fcn.00410961
pop ecx
test eax, eax
je 0x46251d
push 0x2710
call edi
push 0x110
push str.C:UsersOfficeDocumentsVisual_StudioPAULAUpdatePAULA2.c
push 0x20
call fcn.0042cf9f
add esp, 0xc
test eax, eax
jne 0x4624bd
push str.:5:ApplyUpdates___encountered_a_problem:_LockTAMSServer_LTS_UPDATEFILES__FAILED_to_relock_while_retrying_update_archive_copy.
call fcn.0040d9e1
pop ecx
jmp 0x4624c0
xor esi, esi
inc esi
push 1
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0040eec9
add esp, 0x10
test eax, eax
jne 0x462506
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
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.0040d511
add esp, 0xc
test esi, esi
je 0x462388
jmp 0x4623e2
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.0040d9e1
pop ecx
test esi, esi
je 0x46251d
push 0x20
call fcn.00432bc5
pop ecx
lea eax, [ebp - 0x20c]
xor esi, esi
push eax
call fcn.00410961
pop ecx
test eax, eax
je 0x4628ee
push 0x104
lea eax, [ebp - 0x518]
push esi
push eax
call fcn.00466ad0
push esi
push esi
call fcn.0043e284
push eax
lea eax, [ebp - 0x108]
push str._sUpdtTest_
push eax
call fcn.0040401c
lea eax, [ebp - 0x108]
push eax
call fcn.00410961
add esp, 0x24
test eax, eax
je 0x462586
lea eax, [ebp - 0x108]
push eax
call fcn.00410629
pop ecx
push 0x96
call edi
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0040fb2d
lea eax, [ebp - 0x108]
push eax
call fcn.00410944
add esp, 0xc
test eax, eax
jne 0x4625ba
lea eax, [ebp - 0x108]
push eax
push str.:7:ApplyUpdates___encountered_a_problem:_CreateDirectorySuper___s___has_FAILED:_The_directory_does_not_exist.
call fcn.0040d511
pop ecx
pop ecx
push 0
push 1
push 0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004028d7
add esp, 0x14
test eax, eax
jne 0x46267f
push 0x2710
call edi
push 0x141
push str.C:UsersOfficeDocumentsVisual_StudioPAULAUpdatePAULA2.c
push 0x20
call fcn.0042cf9f
add esp, 0xc
test eax, eax
jne 0x46260a
push str.:5:ApplyUpdates___encountered_a_problem:_LockTAMSServer_LTS_UPDATEFILES__FAILED_to_relock_while_retrying_update_archive_copy_2.
call fcn.0040d9e1
pop ecx
jmp 0x46260d
xor esi, esi
inc esi
push 1
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0040eec9
add esp, 0x10
test esi, esi
je 0x462634
push 0x20
call fcn.00432bc5
pop ecx
push edi
push 1
push edi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004028d7
add esp, 0x14
test eax, eax
jne 0x462672
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
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.0040d511
add esp, 0xc
jmp 0x462388
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.0040d9e1
pop ecx
jmp 0x462681
xor edi, edi
push str.Revision.dat
lea eax, [ebp - 0x108]
mov esi, 0x48b250
push eax
lea eax, [ebp - 0x518]
push esi
push eax
call fcn.0040401c
push edi
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x518]
push eax
call fcn.00411b55
add esp, 0x1c
test eax, eax
jne 0x46270d
push str.BETTY.exe
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x518]
push esi
push eax
call fcn.0040401c
push edi
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x518]
push eax
call fcn.00411b55
add esp, 0x1c
test eax, eax
jne 0x46270d
mov eax, dword [0x5d2054]
inc eax
mov dword [0x5d2054], eax
cmp eax, 5
jg 0x462388
push eax
push str.:7:__d_of_5:_ApplyUpdates___FAILED:_The_update_is_invalid_because_it_does_not_contain_a_revision_date_
jmp 0x462381
push str.BETTY.exe
push edi
push edi
call fcn.0043e0cb
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x518]
push esi
push eax
call fcn.0040401c
push edi
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x518]
push eax
call fcn.00411b55
add esp, 0x1c
test eax, eax
jne 0x46274f
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.0040d9e1
pop ecx
sub esp, 0x10
lea esi, [ebp - 0x63c]
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x62c]
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.0046087e
add esp, 0x20
test eax, eax
jns 0x46280a
movzx eax, word [ebp - 0x630]
push eax
movzx eax, word [ebp - 0x632]
push eax
movzx eax, word [ebp - 0x634]
push eax
movzx eax, word [ebp - 0x63c]
push eax
movzx eax, word [ebp - 0x636]
push eax
movzx eax, word [ebp - 0x63a]
push eax
movzx eax, word [ebp - 0x620]
push eax
movzx eax, word [ebp - 0x622]
push eax
movzx eax, word [ebp - 0x624]
push eax
movzx eax, word [ebp - 0x62c]
push eax
movzx eax, word [ebp - 0x626]
push eax
movzx eax, word [ebp - 0x62a]
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.0040d9e1
lea eax, [ebp - 0x20c]
push eax
call fcn.00463395
add esp, 0x38
test ebx, ebx
je 0x462a7f
lea eax, [ebp - 0x310]
push eax
jmp 0x462a79
sub esp, 0x10
lea esi, [ebp - 0x63c]
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x62c]
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.0045f6fb
add esp, 0x20
test eax, eax
jne 0x4628b9
lea edi, [ebp - 0x64c]
xor esi, esi
stosd dword es:[edi], eax
push str.Revision.dat
push esi
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0043e284
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x518]
push 0x48b250
push eax
call fcn.0040401c
push esi
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x518]
push eax
call fcn.00411b55
add esp, 0x1c
test eax, eax
je 0x4628b9
sub esp, 0x10
lea esi, [ebp - 0x64c]
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x62c]
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.0045f6fb
add esp, 0x20
test eax, eax
je 0x4628b9
lea esi, [ebp - 0x64c]
lea edi, [ebp - 0x63c]
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, [ebp - 0x63c]
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x62c]
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.0045f6fb
add esp, 0x20
test eax, eax
je 0x4628ee
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.0040d9e1
pop ecx
lea eax, [ebp - 0x20c]
push eax
call fcn.00410961
pop ecx
test eax, eax
je 0x462388
push 0x462a87
push 1
push 1
push 0xea60
xor esi, esi
push esi
push esi
call fcn.0043e0cb
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040f699
add esp, 0x18
test eax, eax
jns 0x462951
push esi
push esi
call fcn.0043e0cb
push eax
lea eax, [ebp - 0x108]
push eax
push str.:9:ApplyUpdates___encountered_an_IMPOSSIBLE_EXCEPTION:_CopyNewerFiles___s_____s___FAILED_to_apply_an_already_tested_update_
call fcn.0040d511
add esp, 0x14
jmp 0x462388
call fcn.0041b4b6
lea eax, [ebp - 0x20c]
push eax
call fcn.00463395
lea eax, [ebp - 0x20c]
push eax
call fcn.0041165b
lea eax, [ebp - 0x108]
push eax
call fcn.00410961
add esp, 0xc
test eax, eax
je 0x46298e
lea eax, [ebp - 0x108]
push eax
call fcn.00410629
pop ecx
mov edi, str.Revision.dat
push edi
push esi
push esi
call fcn.0043e0cb
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x414]
push 0x48b250
push eax
call fcn.0040401c
lea eax, [ebp - 0x414]
push eax
call fcn.00410961
add esp, 0x14
test eax, eax
je 0x4629e8
push esi
push edi
push esi
call fcn.0043e284
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004114e9
lea eax, [ebp - 0x414]
push eax
call fcn.0041165b
add esp, 0x10
push 1
call fcn.0044ba58
movzx eax, word [ebp - 0x630]
push eax
movzx eax, word [ebp - 0x632]
push eax
movzx eax, word [ebp - 0x634]
push eax
movzx eax, word [ebp - 0x63c]
push eax
movzx eax, word [ebp - 0x636]
push eax
movzx eax, word [ebp - 0x63a]
push eax
movzx eax, word [ebp - 0x620]
push eax
movzx eax, word [ebp - 0x622]
push eax
movzx eax, word [ebp - 0x624]
push eax
movzx eax, word [ebp - 0x62c]
push eax
movzx eax, word [ebp - 0x626]
push eax
movzx eax, word [ebp - 0x62a]
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.0040d9e1
push str.UpdtFileLst.txt
push esi
call fcn.0043e0cb
add esp, 0x40
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test ebx, ebx
je 0x462a7f
lea ecx, [ebp - 0x310]
push ecx
call fcn.00410742
pop ecx
xor eax, eax
inc eax
jmp 0x46239b