Function at 0x40281f
Capabilities:
Delete file

Disassembly:
jmp 0x4fcb29
push ebp
lea ebp, [esp - 0x5d4]
sub esp, 0x654
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp + 0x5d0], eax
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp + 0x2c5]
push ebx
push eax
mov byte [ebp + 0x2c4], bl
call fcn.00508d00
push esi
lea eax, [ebp + 0x1c1]
push ebx
push eax
mov dword [ebp - 0x50], ebx
mov byte [ebp + 0x1c0], bl
call fcn.00508d00
push esi
lea eax, [ebp + 0x4cd]
push ebx
push eax
mov byte [ebp + 0x4cc], bl
call fcn.00508d00
push esi
lea eax, [ebp + 0x3c9]
push ebx
push eax
mov byte [ebp + 0x3c8], bl
call fcn.00508d00
push esi
lea eax, [ebp - 0x47]
push ebx
push eax
mov byte [ebp - 0x48], bl
call fcn.00508d00
xor eax, eax
mov word [ebp - 0x60], bx
lea edi, [ebp - 0x5e]
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 [ebp - 0x70], bx
lea edi, [ebp - 0x6e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 0x2c4]
push str.ApplUdt.lck
push eax
mov dword [ebp - 0x4c], ebx
call fcn.0040113b
add esp, 0x44
cmp dword [ebp + 0x5dc], ebx
jne 0x4fcc2b
call fcn.00401e97
sub eax, dword [0x763058]
cmp eax, 0x493e0
jb 0x4fcc8d
call fcn.00401e97
push 0x7530
mov dword [0x763058], eax
lea eax, [ebp + 0x2c4]
push ebx
push eax
call fcn.00402c75
add esp, 0xc
mov dword [ebp - 0x4c], eax
call fcn.00402cf7
test eax, eax
je 0x4fcc7b
call fcn.00401e97
push 0x92
mov edi, str..UpdatePAULA2.c
push edi
push 0x20
mov dword [0x763058], eax
call fcn.00402f8b
push 0x94
push edi
push 0x20
call fcn.00401267
add esp, 0x18
test eax, eax
jne 0x4fccb4
push 0x97
push edi
push ebx
call fcn.00402f8b
add esp, 0xc
cmp eax, ebx
je 0x4fcca7
push eax
push str.:7:ApplyUpdates___FAILED:_Could_not_logon_to_the_TAMS_server:_LogonToTAMS_NO_SYNC__returned__d
call fcn.004020c2
pop ecx
pop ecx
cmp dword [ebp - 0x4c], ebx
je 0x4fcc8d
lea eax, [ebp + 0x2c4]
push eax
call fcn.00401988
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x5d0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00508cf0
add ebp, 0x5d4
leave
ret
push str.:9:ApplyUpdates___encountered_something_strange:_LockTAMSServer_LTS_UPDATEFILES__FAILED__but_LogonToTAMS_NO_SYNC__succeeded_
call fcn.00401375
pop ecx
jmp 0x4fccbb
mov dword [ebp - 0x50], 1
mov edi, 0x104
push edi
lea eax, [ebp - 0x48]
push str.Live2.ark
push eax
call fcn.00402abd
push 1
call fcn.004fc317
add esp, 0x10
test eax, eax
jne 0x4fcd00
cmp dword [ebp + 0x5dc], ebx
jne 0x4fccee
push 0x20
call fcn.0040317a
jmp 0x4fcc7a
push edi
lea eax, [ebp - 0x48]
push str.LiveBranch2.ark
push eax
call fcn.00402abd
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 0x1c0]
push eax
call fcn.00402f81
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 0x4cc]
push eax
call fcn.0050d660
push ebx
push ebx
call fcn.0040113b
push eax
lea eax, [ebp + 0x4cc]
push eax
call fcn.00401758
push 1
push ebx
lea eax, [ebp + 0x4cc]
push eax
lea eax, [ebp + 0x1c0]
push eax
call fcn.004015d2
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x30
test eax, eax
jne 0x4fce0b
cmp dword [ebp - 0x50], ebx
je 0x4fcd68
push 0x20
call fcn.0040317a
pop ecx
push 0x190
mov dword [ebp - 0x50], ebx
call edi
lea eax, [ebp + 0x1c0]
push eax
call fcn.00402b5d
test eax, eax
pop ecx
je 0x4fce18
push 0x2710
call edi
push 0xc2
push str..UpdatePAULA2.c
push 0x20
call fcn.00401267
add esp, 0xc
test eax, eax
jne 0x4fcdb3
push str.:5:ApplyUpdates___encountered_a_problem:_LockTAMSServer_LTS_UPDATEFILES__FAILED_to_relock_while_retrying_update_archive_copy.
call fcn.00401375
pop ecx
jmp 0x4fcdba
mov dword [ebp - 0x50], 1
push 1
push ebx
lea eax, [ebp + 0x4cc]
push eax
lea eax, [ebp + 0x1c0]
push eax
call fcn.004015d2
add esp, 0x10
test eax, eax
jne 0x4fce00
lea eax, [ebp + 0x4cc]
push eax
lea eax, [ebp + 0x1c0]
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.004020c2
add esp, 0xc
cmp dword [ebp - 0x50], ebx
je 0x4fcc7b
jmp 0x4fcce5
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.00401375
pop ecx
cmp dword [ebp - 0x50], ebx
je 0x4fce18
push 0x20
call fcn.0040317a
pop ecx
lea eax, [ebp + 0x4cc]
push eax
mov dword [ebp - 0x50], ebx
call fcn.00402b5d
test eax, eax
pop ecx
je 0x4fd1ec
push esi
lea eax, [ebp + 0xbd]
push ebx
push eax
mov byte [ebp + 0xbc], bl
call fcn.00508d00
push ebx
push ebx
call fcn.0040113b
push eax
lea eax, [ebp + 0x3c8]
push str._sUpdtTest_
push eax
call fcn.0050dd60
lea eax, [ebp + 0x3c8]
push eax
call fcn.00402b5d
add esp, 0x24
test eax, eax
je 0x4fce84
lea eax, [ebp + 0x3c8]
push eax
call fcn.00401186
pop ecx
push 0x96
call edi
lea eax, [ebp + 0x3c8]
push ebx
push eax
call fcn.0040291e
lea eax, [ebp + 0x3c8]
push eax
call fcn.004014d3
add esp, 0xc
test eax, eax
jne 0x4fceb7
lea eax, [ebp + 0x3c8]
push eax
push str.:7:ApplyUpdates___encountered_a_problem:_CreateDirectorySuper___s___has_FAILED:_The_directory_does_not_exist.
call fcn.004020c2
pop ecx
pop ecx
push ebx
xor esi, esi
inc esi
push esi
push ebx
lea eax, [ebp + 0x3c8]
push eax
lea eax, [ebp + 0x4cc]
push eax
call fcn.00402e46
add esp, 0x14
test eax, eax
jne 0x4fcf77
push 0x2710
call edi
push 0xf3
push str..UpdatePAULA2.c
push 0x20
call fcn.00401267
add esp, 0xc
test eax, eax
jne 0x4fcf07
push str.:5:ApplyUpdates___encountered_a_problem:_LockTAMSServer_LTS_UPDATEFILES__FAILED_to_relock_while_retrying_update_archive_copy_2.
call fcn.00401375
pop ecx
jmp 0x4fcf0a
mov dword [ebp - 0x50], esi
push esi
push ebx
lea eax, [ebp + 0x4cc]
push eax
lea eax, [ebp + 0x1c0]
push eax
call fcn.004015d2
add esp, 0x10
cmp dword [ebp - 0x50], ebx
je 0x4fcf2f
push 0x20
call fcn.0040317a
pop ecx
push ebx
push esi
push ebx
lea eax, [ebp + 0x3c8]
push eax
lea eax, [ebp + 0x4cc]
push eax
call fcn.00402e46
add esp, 0x14
test eax, eax
jne 0x4fcf6c
lea eax, [ebp + 0x3c8]
push eax
lea eax, [ebp + 0x4cc]
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.004020c2
add esp, 0xc
jmp 0x4fcc7b
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.00401375
pop ecx
push str.Revision.dat
lea eax, [ebp + 0x3c8]
push eax
mov esi, 0x586728
lea eax, [ebp + 0xbc]
push esi
push eax
call fcn.0050dd60
push ebx
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp + 0xbc]
push eax
call fcn.004031b1
add esp, 0x1c
test eax, eax
mov edi, str.BETTY.exe
jne 0x4fd002
push edi
lea eax, [ebp + 0x3c8]
push eax
lea eax, [ebp + 0xbc]
push esi
push eax
call fcn.0050dd60
push ebx
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp + 0xbc]
push eax
call fcn.004031b1
add esp, 0x1c
test eax, eax
jne 0x4fd002
inc dword [0x76305c]
cmp dword [0x76305c], 5
jg 0x4fcc7b
push dword [0x76305c]
push str.:7:__d_of_5:_ApplyUpdates___FAILED:_The_update_is_invalid_because_it_does_not_contain_a_revision_date_
jmp 0x4fcc74
push edi
push ebx
push ebx
call fcn.004031fc
pop ecx
pop ecx
push eax
lea eax, [ebp + 0xbc]
push esi
push eax
call fcn.0050dd60
push ebx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0xbc]
push eax
call fcn.004031b1
add esp, 0x1c
test eax, eax
jne 0x4fd03d
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.00401375
pop ecx
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x70]
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 - 0x60]
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.0040141a
add esp, 0x20
test eax, eax
jge 0x4fd0cf
movzx eax, word [ebp - 0x64]
push eax
movzx eax, word [ebp - 0x66]
push eax
movzx eax, word [ebp - 0x68]
push eax
movzx eax, word [ebp - 0x70]
push eax
movzx eax, word [ebp - 0x6a]
push eax
movzx eax, word [ebp - 0x6e]
push eax
movzx eax, word [ebp - 0x54]
push eax
movzx eax, word [ebp - 0x56]
push eax
movzx eax, word [ebp - 0x58]
push eax
movzx eax, word [ebp - 0x60]
push eax
movzx eax, word [ebp - 0x5a]
push eax
movzx eax, word [ebp - 0x5e]
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.00401375
add esp, 0x34
lea ecx, [ebp + 0x4cc]
call fcn.004fc970
cmp dword [ebp - 0x4c], ebx
je 0x4fd0c7
lea eax, [ebp + 0x2c4]
push eax
call fcn.00401988
pop ecx
xor eax, eax
inc eax
jmp 0x4fcc8f
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x70]
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 - 0x60]
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.00401c62
add esp, 0x20
test eax, eax
jne 0x4fd165
mov word [ebp - 0x80], bx
lea edi, [ebp - 0x7e]
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.0040113b
pop ecx
pop ecx
push eax
lea eax, [ebp + 0xbc]
push 0x586728
push eax
call fcn.0050dd60
push ebx
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0xbc]
push eax
call fcn.004031b1
add esp, 0x1c
test eax, eax
je 0x4fd165
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x80]
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 - 0x60]
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.00401c62
add esp, 0x20
test eax, eax
je 0x4fd165
lea esi, [ebp - 0x80]
lea edi, [ebp - 0x70]
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, [ebp - 0x70]
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 - 0x60]
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.00401c62
add esp, 0x20
test eax, eax
je 0x4fd1ec
call fcn.00402db0
test eax, eax
je 0x4fd1e1
xor eax, eax
mov word [ebp - 0x80], bx
lea edi, [ebp - 0x7e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x142
stosw word es:[edi], ax
lea eax, [ebp - 0x80]
push str..UpdatePAULA2.c
push eax
call fcn.0040169a
add esp, 0xc
cmp word [ebp - 0x7c], bx
je 0x4fd0aa
cmp word [ebp - 0x7c], 6
je 0x4fd0aa
cmp word [ebp - 0x78], 0xe
jae 0x4fd0aa
cmp word [ebp - 0x78], 6
jb 0x4fd0aa
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.00401375
pop ecx
lea eax, [ebp + 0x4cc]
push eax
call fcn.00402b5d
test eax, eax
pop ecx
je 0x4fcc7b
push 0x4fbf69
xor edi, edi
inc edi
push edi
push edi
push 0xea60
push ebx
push ebx
call fcn.004031fc
pop ecx
pop ecx
push eax
lea eax, [ebp + 0x3c8]
push eax
call fcn.00402aae
add esp, 0x18
test eax, eax
jge 0x4fd24e
push ebx
push ebx
call fcn.004031fc
push eax
lea eax, [ebp + 0x3c8]
push eax
push str.:9:ApplyUpdates___encountered_an_IMPOSSIBLE_EXCEPTION:_CopyNewerFiles___s_____s___FAILED_to_apply_an_already_tested_update_
call fcn.004020c2
add esp, 0x14
jmp 0x4fcc7b
call fcn.00401348
lea ecx, [ebp + 0x4cc]
call fcn.004fc970
lea eax, [ebp + 0x4cc]
push eax
call fcn.00401825
lea eax, [ebp + 0x3c8]
push eax
call fcn.00402b5d
test eax, eax
pop ecx
pop ecx
je 0x4fd289
lea eax, [ebp + 0x3c8]
push eax
call fcn.00401186
pop ecx
mov esi, str.Revision.dat
push esi
push ebx
push ebx
call fcn.004031fc
pop ecx
pop ecx
push eax
lea eax, [ebp + 0x1c0]
push 0x586728
push eax
call fcn.0050dd60
lea eax, [ebp + 0x1c0]
push eax
call fcn.00402b5d
add esp, 0x14
test eax, eax
je 0x4fd2e3
push ebx
push esi
push ebx
call fcn.0040113b
pop ecx
pop ecx
push eax
lea eax, [ebp + 0x1c0]
push eax
call fcn.004022a7
lea eax, [ebp + 0x1c0]
push eax
call fcn.00401825
add esp, 0x10
push edi
call fcn.00401a73
movzx eax, word [ebp - 0x64]
push eax
movzx eax, word [ebp - 0x66]
push eax
movzx eax, word [ebp - 0x68]
push eax
movzx eax, word [ebp - 0x70]
push eax
movzx eax, word [ebp - 0x6a]
push eax
movzx eax, word [ebp - 0x6e]
push eax
movzx eax, word [ebp - 0x54]
push eax
movzx eax, word [ebp - 0x56]
push eax
movzx eax, word [ebp - 0x58]
push eax
movzx eax, word [ebp - 0x60]
push eax
movzx eax, word [ebp - 0x5a]
push eax
movzx eax, word [ebp - 0x5e]
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.00401375
push str.UpdtFileLst.txt
push ebx
call fcn.004031fc
add esp, 0x40
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x4c], ebx
je 0x4fd356
lea eax, [ebp + 0x2c4]
push eax
call fcn.00401988
pop ecx
mov eax, edi
jmp 0x4fcc8f