Function at 0x4788e7
Capabilities:
Terminate process

Disassembly:
push 0x110
push 0x4dffe0
call fcn.004a8980
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x11c], bl
push 0xff
push ebx
lea eax, [ebp - 0x11b]
push eax
call fcn.00401f80
add esp, 0xc
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x47897a
cmp dword [ebp + 0xc], ebx
je 0x478947
mov edi, dword [0x4fcea0]
cmp edi, ebx
jne 0x47893e
mov dword [ebp - 4], 0xfffffffe
jmp 0x478c11
mov ebx, esi
call fcn.004445db
jmp 0x478932
mov eax, dword [0x4fcea0]
cmp eax, ebx
jne 0x47895e
call fcn.00444328
mov dword [0x4fcea0], eax
cmp eax, ebx
je 0x478932
mov ebx, esi
mov edi, eax
call fcn.004444ba
test eax, eax
jne 0x478932
push esi
mov ebx, dword [0x4fcea0]
call fcn.004442d7
pop ecx
jmp 0x478932
cmp dword [0x5d6c2c], ebx
jle 0x47898c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x47897a
inc dword [0x5d6c2c]
push str._nCleaning_up...
call fcn.00495559
pop ecx
xor ecx, ecx
call fcn.00465eef
call fcn.0043c313
test eax, eax
je 0x4789b5
push 1
call fcn.0049b52c
pop ecx
call fcn.0041a877
mov dword [ebp - 0x120], eax
push str._nStopping_PAULA_session_flag...
call fcn.00495559
call fcn.0043c42b
mov edi, 0x4bc1dc
push edi
call fcn.00495559
push str._nSaving_session...
call fcn.00495559
mov esi, str.Counting_Dumps_
push esi
push ebx
call fcn.0045500f
push eax
call fcn.0048ca6c
add esp, 0x18
test eax, eax
je 0x478a0d
push esi
push ebx
call fcn.0045500f
pop ecx
pop ecx
mov ecx, eax
call fcn.0048f32e
push 0x3a0d
push str.MainPAULA.c
push 0x999
call fcn.0046b9b6
push edi
call fcn.00495559
push str._nStopping_TelNet_sessions...
call fcn.00495559
call fcn.0049143b
call fcn.00436913
call fcn.00491423
call fcn.00460bb5
push edi
call fcn.00495559
push str._nPerforming_misc_cleanup...
call fcn.00495559
push 0x64
pop eax
call fcn.0049691d
mov ecx, 0x4b218c
call fcn.00494c80
push 4
call fcn.0049785d
push edi
call fcn.00495559
push str._nClosing_FTP...
call fcn.00495559
push edi
call fcn.00495559
push str._nDeleting_String_Lists...
call fcn.00495559
lea eax, [ebp - 0x11c]
push eax
call fcn.00437a12
push edi
call fcn.00495559
push str._nDeleting_invoice_archive...
call fcn.00495559
call fcn.004579c3
push edi
call fcn.00495559
add esp, 0x40
push str._nDeleting_Message_Handles...
call fcn.00495559
call fcn.0049d2b1
push edi
call fcn.00495559
pop ecx
pop ecx
cmp dword [0x4fcea8], ebx
je 0x478ae9
push str._nRestoring_Volume...
call fcn.00495559
push edi
call fcn.00495559
pop ecx
pop ecx
push str._nDeleting_Sounds...
call fcn.00495559
call fcn.0049ba64
xor eax, eax
call fcn.0049af27
push edi
call fcn.00495559
push str._nDeleting_Printer_Handles...
call fcn.00495559
call fcn.00450a82
push edi
call fcn.00495559
push str._nDeleting_Console_Fields...
call fcn.00495559
push edi
call fcn.00495559
push str._nDeleting_Sprites...
call fcn.00495559
call fcn.0043c180
push edi
call fcn.00495559
add esp, 0x20
cmp dword [0x4fcea0], ebx
je 0x478b8b
push str._nDeleting_PAULA_objects...
call fcn.00495559
pop ecx
mov eax, dword [0x4fcea0]
call fcn.004446eb
cmp eax, ebx
je 0x478b6f
call fcn.004737b9
push 0x4ae7fc
jmp 0x478b4f
mov esi, dword [0x4fcea0]
cmp esi, ebx
je 0x478b84
call fcn.004442eb
mov dword [0x4fcea0], ebx
push edi
call fcn.00495559
pop ecx
push str._nFreeing_console_window...
call fcn.00495559
call fcn.00443b52
mov esi, str.Done.
push esi
call fcn.00495559
push str._nClosing_Console_Tools...
call fcn.00495559
push esi
call fcn.00495559
push str._nFreeing_misc_resources...
call fcn.00495559
push ebx
call fcn.00496baa
push esi
call fcn.00495559
push str._n_nClean_up_is_complete.
call fcn.00495559
add esp, 0x20
dec dword [0x5d6c2c]
jmp 0x478be7
mov dword [ebp - 4], 0xfffffffe
call fcn.0041a877
mov esi, 0x2ee
jmp 0x478c07
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0041a877
sub eax, dword [ebp - 0x120]
cmp eax, esi
jb 0x478bfa
call fcn.004a89c8
ret