Function at 0x4583cf
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x104]
sub esp, 0x104
push 0xfffffffffffffffe
push 0x5c0f00
push 0x5181f0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5c4e68]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x100], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0x10c]
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp], bl
push 0xff
push ebx
lea eax, [ebp + 1]
push eax
call fcn.005117f0
add esp, 0xc
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x45849a
mov eax, dword [0x5e2c64]
cmp dword [ebp + 0x110], ebx
je 0x458463
cmp eax, ebx
jne 0x45845a
mov dword [ebp - 4], 0xfffffffe
jmp 0x458864
mov ebx, esi
call fcn.004a9192
jmp 0x45844e
cmp eax, ebx
jne 0x458482
call fcn.004a8f27
mov dword [0x5e2c64], eax
cmp eax, ebx
jne 0x458482
push str.CleanUpMain___FAILED:_CreatePtrList___FAILED_
call fcn.004265da
pop ecx
jmp 0x45844e
mov ebx, esi
call fcn.004a939f
test eax, eax
jne 0x45844e
push esi
mov eax, dword [0x5e2c64]
call fcn.004a9020
jmp 0x45847f
mov dword [ebp - 0x1c], 0x39a6
cmp dword [0x6bd8f4], ebx
jle 0x4584b3
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4584a1
inc dword [0x6bd8f4]
push str._nCleaning_up...
call fcn.00416ae0
pop ecx
xor ecx, ecx
call fcn.004622a3
call fcn.004bd9f2
test eax, eax
je 0x4584e5
call fcn.0043989a
test eax, eax
jne 0x4584e5
push 1
call fcn.004c11ca
pop ecx
call fcn.004f16be
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x39b6
push str._nStopping_PAULA_session_flag...
call fcn.00416ae0
call fcn.004bda6b
mov edi, 0x55cd5c
push edi
call fcn.00416ae0
push str._nSaving_session...
call fcn.00416ae0
push str.The_session_was_terminated.
call fcn.004f7e85
xor ecx, ecx
call fcn.004f8447
mov esi, str.Counting_Dumps_
push esi
push ebx
call fcn.00489f49
push eax
call fcn.0042adad
add esp, 0x1c
test eax, eax
je 0x458552
push esi
push ebx
call fcn.00489f49
pop ecx
pop ecx
mov ecx, eax
call fcn.00429cd6
call fcn.004f96d9
push 0x39d5
mov esi, str..MainPAULA.c
push esi
push 0x999
call fcn.0046c07a
push 0x39d6
push esi
push 0x400
call fcn.00469252
push edi
call fcn.00416ae0
mov dword [ebp - 0x1c], 0x39d8
push str._nStopping_TelNet_sessions...
call fcn.00416ae0
call fcn.00425fec
call fcn.004cd527
call fcn.00425ff3
call fcn.00477cb2
push edi
call fcn.00416ae0
mov dword [ebp - 0x1c], 0x39e2
push str._nPerforming_misc_cleanup...
call fcn.00416ae0
push 0x64
pop eax
call fcn.00412f0a
mov ecx, 0x544a8c
call fcn.00412f60
push 4
call fcn.004147da
push 1
call fcn.0040fc6a
push edi
call fcn.00416ae0
mov dword [ebp - 0x1c], 0x39f3
push str._nClosing_FTP...
call fcn.00416ae0
push ebx
push 0xfa
push ebx
push ebx
push 1
call fcn.00463755
add esp, 0x4c
push edi
call fcn.00416ae0
pop ecx
mov dword [ebp - 0x1c], 0x39f9
call fcn.00415b70
test eax, eax
je 0x45863a
push str._nStopping_Live_Web_Session...
call fcn.00416ae0
call fcn.00406c70
mov dword [esp], str.Done.
call fcn.00416ae0
pop ecx
mov dword [ebp - 0x1c], 0x3a08
push str._nDeleting_String_Lists...
call fcn.00416ae0
lea eax, [ebp]
call fcn.004c74fb
push edi
call fcn.00416ae0
mov dword [ebp - 0x1c], 0x3a0e
push str._nDeleting_invoice_archive...
call fcn.00416ae0
call fcn.00487b9a
push edi
call fcn.00416ae0
mov dword [ebp - 0x1c], 0x3a13
push str._nDeleting_Message_Handles...
call fcn.00416ae0
call fcn.00460b08
push edi
call fcn.00416ae0
add esp, 0x18
mov dword [ebp - 0x1c], 0x3a18
cmp dword [0x5e2c6c], ebx
je 0x4586d0
push str._nRestoring_Volume...
call fcn.00416ae0
pop ecx
push 0x64
call fcn.004c12b2
push eax
push str.:1:FYI_Restoring_Master_Volume:_lResult___ld
call fcn.00426c01
push edi
call fcn.00416ae0
add esp, 0xc
mov dword [ebp - 0x1c], 0x3a21
push str._nDeleting_Sounds...
call fcn.00416ae0
call fcn.004bf79e
xor esi, esi
call fcn.004c0a3b
push edi
call fcn.00416ae0
mov dword [ebp - 0x1c], 0x3a28
push str._nDeleting_Printer_Handles...
call fcn.00416ae0
call fcn.0048cf29
push edi
call fcn.00416ae0
mov dword [ebp - 0x1c], 0x3a2d
push str._nDeleting_Console_Fields...
call fcn.00416ae0
call fcn.00416e6f
push edi
call fcn.00416ae0
mov dword [ebp - 0x1c], 0x3a32
push str._nDeleting_Sprites...
call fcn.00416ae0
call fcn.004c25c9
push edi
call fcn.00416ae0
add esp, 0x20
mov dword [ebp - 0x1c], 0x3a37
cmp dword [0x5e2c64], ebx
je 0x458795
push str._nDeleting_PAULA_objects...
call fcn.00416ae0
pop ecx
mov esi, dword [0x5e2c64]
call fcn.004a921d
cmp eax, ebx
je 0x458778
call fcn.0044229d
push 0x5320c4
jmp 0x458757
mov eax, dword [0x5e2c64]
cmp eax, ebx
je 0x45878e
push eax
call fcn.004a8fca
pop ecx
mov dword [0x5e2c64], ebx
push edi
call fcn.00416ae0
pop ecx
mov dword [ebp - 0x1c], 0x3a4c
push str._nFreeing_console_window...
call fcn.00416ae0
call fcn.004b1d3b
mov esi, str.Done.
push esi
call fcn.00416ae0
mov dword [ebp - 0x1c], 0x3a54
push str._nClosing_Console_Tools...
call fcn.00416ae0
call fcn.0041c091
push esi
call fcn.00416ae0
mov dword [ebp - 0x1c], 0x3a59
push str._nFreeing_misc_resources...
call fcn.00416ae0
push ebx
call fcn.004142e5
call fcn.00503ed2
call fcn.004a8ed5
push esi
call fcn.00416ae0
mov dword [ebp - 0x1c], 0x3a61
push str._n_nClean_up_is_complete.
call fcn.00416ae0
add esp, 0x20
dec dword [0x6bd8f4]
jmp 0x45882b
mov dword [ebp - 4], 0xfffffffe
call fcn.00415b26
test eax, eax
je 0x458864
call fcn.00415e85
test eax, eax
jne 0x458864
call fcn.004f16be
mov esi, 0x2ee
jmp 0x45885d
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004f16be
sub eax, dword [ebp - 0x20]
cmp eax, esi
jb 0x458850
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.0051291c
add ebp, 0x104
leave
ret