Function at 0x460906
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x104]
sub esp, 0x104
push 0xfffffffffffffffe
push 0x5ef258
push 0x5376f0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5f2e68]
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.005306b0
add esp, 0xc
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x4609d1
mov eax, dword [0x610cb0]
cmp dword [ebp + 0x110], ebx
je 0x46099a
cmp eax, ebx
jne 0x460991
mov dword [ebp - 4], 0xfffffffe
jmp 0x460d9b
mov ebx, esi
call fcn.004b22ff
jmp 0x460985
cmp eax, ebx
jne 0x4609b9
call fcn.004b2094
mov dword [0x610cb0], eax
cmp eax, ebx
jne 0x4609b9
push str.CleanUpMain___FAILED:_CreatePtrList___FAILED_
call fcn.0042b70b
pop ecx
jmp 0x460985
mov ebx, esi
call fcn.004b250c
test eax, eax
jne 0x460985
push esi
mov eax, dword [0x610cb0]
call fcn.004b218d
jmp 0x4609b6
mov dword [ebp - 0x1c], 0x398b
cmp dword [0x6eb93c], ebx
jle 0x4609ea
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4609d8
inc dword [0x6eb93c]
push str._nCleaning_up...
call fcn.00419451
pop ecx
xor ecx, ecx
call fcn.0046ac14
call fcn.004c6aa2
test eax, eax
je 0x460a1c
call fcn.0044146b
test eax, eax
jne 0x460a1c
push 1
call fcn.004ca282
pop ecx
call fcn.004fa8e4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x399b
push str._nStopping_PAULA_session_flag...
call fcn.00419451
call fcn.004c6b18
mov edi, 0x57fa1c
push edi
call fcn.00419451
push str._nSaving_session...
call fcn.00419451
push str.The_session_was_terminated.
call fcn.005010ab
xor ecx, ecx
call fcn.00501763
mov esi, str.Counting_Dumps_
push esi
push ebx
call fcn.00493030
push eax
call fcn.00432310
add esp, 0x1c
test eax, eax
je 0x460a89
push esi
push ebx
call fcn.00493030
pop ecx
pop ecx
mov ecx, eax
call fcn.004304df
call fcn.005029f5
push 0x39ba
mov esi, str..MainPAULA.c
push esi
push 0x999
call fcn.00474c00
push 0x39bb
push esi
push 0x400
call fcn.00471db5
push edi
call fcn.00419451
mov dword [ebp - 0x1c], 0x39bd
push str._nStopping_TelNet_sessions...
call fcn.00419451
call fcn.0042b117
call fcn.004d68f3
call fcn.0042b11e
call fcn.004808dd
push edi
call fcn.00419451
mov dword [ebp - 0x1c], 0x39c7
push str._nPerforming_misc_cleanup...
call fcn.00419451
push 0x64
pop eax
call fcn.00414ecb
mov ecx, 0x567064
call fcn.00414f21
push 4
call fcn.0041679b
push 1
call fcn.00411880
push edi
call fcn.00419451
mov dword [ebp - 0x1c], 0x39d8
push str._nClosing_FTP...
call fcn.00419451
push ebx
push 0xfa
push ebx
push ebx
push 1
call fcn.0046c27a
add esp, 0x4c
push edi
call fcn.00419451
pop ecx
mov dword [ebp - 0x1c], 0x39de
call fcn.0041848e
test eax, eax
je 0x460b71
push str._nStopping_Live_Web_Session...
call fcn.00419451
call fcn.00408876
mov dword [esp], str.Done.
call fcn.00419451
pop ecx
mov dword [ebp - 0x1c], 0x39ed
push str._nDeleting_String_Lists...
call fcn.00419451
lea eax, [ebp]
call fcn.004d07bb
push edi
call fcn.00419451
mov dword [ebp - 0x1c], 0x39f3
push str._nDeleting_invoice_archive...
call fcn.00419451
call fcn.004908a4
push edi
call fcn.00419451
mov dword [ebp - 0x1c], 0x39f8
push str._nDeleting_Message_Handles...
call fcn.00419451
call fcn.00469370
push edi
call fcn.00419451
add esp, 0x18
mov dword [ebp - 0x1c], 0x39fd
cmp dword [0x610cb8], ebx
je 0x460c07
push str._nRestoring_Volume...
call fcn.00419451
pop ecx
push 0x64
call fcn.004ca36a
push eax
push str.:1:FYI_Restoring_Master_Volume:_lResult___ld
call fcn.0042bd38
push edi
call fcn.00419451
add esp, 0xc
mov dword [ebp - 0x1c], 0x3a06
push str._nDeleting_Sounds...
call fcn.00419451
call fcn.004c8854
xor esi, esi
call fcn.004c9af3
push edi
call fcn.00419451
mov dword [ebp - 0x1c], 0x3a0d
push str._nDeleting_Printer_Handles...
call fcn.00419451
call fcn.00495fa3
push edi
call fcn.00419451
mov dword [ebp - 0x1c], 0x3a12
push str._nDeleting_Console_Fields...
call fcn.00419451
call fcn.004197e0
push edi
call fcn.00419451
mov dword [ebp - 0x1c], 0x3a17
push str._nDeleting_Sprites...
call fcn.00419451
call fcn.004cb681
push edi
call fcn.00419451
add esp, 0x20
mov dword [ebp - 0x1c], 0x3a1c
cmp dword [0x610cb0], ebx
je 0x460ccc
push str._nDeleting_PAULA_objects...
call fcn.00419451
pop ecx
mov esi, dword [0x610cb0]
call fcn.004b238a
cmp eax, ebx
je 0x460caf
call fcn.00449e7d
push 0x551adc
jmp 0x460c8e
mov eax, dword [0x610cb0]
cmp eax, ebx
je 0x460cc5
push eax
call fcn.004b2137
pop ecx
mov dword [0x610cb0], ebx
push edi
call fcn.00419451
pop ecx
mov dword [ebp - 0x1c], 0x3a31
push str._nFreeing_console_window...
call fcn.00419451
call fcn.004baef9
mov esi, str.Done.
push esi
call fcn.00419451
mov dword [ebp - 0x1c], 0x3a39
push str._nClosing_Console_Tools...
call fcn.00419451
call fcn.0041ea02
push esi
call fcn.00419451
mov dword [ebp - 0x1c], 0x3a3e
push str._nFreeing_misc_resources...
call fcn.00419451
push ebx
call fcn.004162a6
call fcn.00522ef9
call fcn.004b2042
push esi
call fcn.00419451
mov dword [ebp - 0x1c], 0x3a46
push str._n_nClean_up_is_complete.
call fcn.00419451
add esp, 0x20
dec dword [0x6eb93c]
jmp 0x460d62
mov dword [ebp - 4], 0xfffffffe
call fcn.00418444
test eax, eax
je 0x460d9b
call fcn.004187ab
test eax, eax
jne 0x460d9b
call fcn.004fa8e4
mov esi, 0x2ee
jmp 0x460d94
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004fa8e4
sub eax, dword [ebp - 0x20]
cmp eax, esi
jb 0x460d87
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.005317e7
add ebp, 0x104
leave
ret