Function at 0x48802f
Capabilities:
Terminate process

Disassembly:
push 0x110
push 0x506a70
call fcn.004c6a30
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 0x4880c2
cmp dword [ebp + 0xc], ebx
je 0x48808f
mov edi, dword [0x52425c]
cmp edi, ebx
jne 0x488086
mov dword [ebp - 4], 0xfffffffe
jmp 0x488371
mov ebx, esi
call fcn.004507de
jmp 0x48807a
mov eax, dword [0x52425c]
cmp eax, ebx
jne 0x4880a6
call fcn.0045052b
mov dword [0x52425c], eax
cmp eax, ebx
je 0x48807a
mov ebx, esi
mov edi, eax
call fcn.004506bd
test eax, eax
jne 0x48807a
push esi
mov ebx, dword [0x52425c]
call fcn.004504da
pop ecx
jmp 0x48807a
cmp dword [0x5fe6e8], ebx
jle 0x4880d4
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4880c2
inc dword [0x5fe6e8]
push str._nCleaning_up...
call fcn.004abf0e
pop ecx
xor ecx, ecx
call fcn.00474478
call fcn.0044821d
test eax, eax
je 0x4880fd
push 1
call fcn.004b3c14
pop ecx
call fcn.0041df75
mov dword [ebp - 0x120], eax
push str._nStopping_PAULA_session_flag...
call fcn.004abf0e
call fcn.0044823d
mov edi, 0x4dc63c
push edi
call fcn.004abf0e
push str._nSaving_session...
call fcn.004abf0e
mov esi, str.Counting_Dumps_
push esi
push ebx
call fcn.0046209e
push eax
call fcn.0049f690
add esp, 0x18
test eax, eax
je 0x488155
push esi
push ebx
call fcn.0046209e
pop ecx
pop ecx
mov ecx, eax
call fcn.004a2121
push 0x3a07
push str.MainPAULA.c
push 0x999
call fcn.0047a356
push edi
call fcn.004abf0e
push str._nStopping_TelNet_sessions...
call fcn.004abf0e
call fcn.004a40bb
call fcn.004422dc
call fcn.004a40a3
call fcn.0046dd87
push edi
call fcn.004abf0e
push str._nPerforming_misc_cleanup...
call fcn.004abf0e
push 0x64
pop eax
call fcn.004adda0
mov ecx, 0x4d1cbc
call fcn.004acb5e
push 4
call fcn.004afd65
call fcn.004ae3a7
push edi
call fcn.004abf0e
push str._nClosing_FTP...
call fcn.004abf0e
push edi
call fcn.004abf0e
push str._nDeleting_String_Lists...
call fcn.004abf0e
lea eax, [ebp - 0x11c]
push eax
call fcn.004433ef
push edi
call fcn.004abf0e
push str._nDeleting_invoice_archive...
call fcn.004abf0e
call fcn.00464ab2
push edi
call fcn.004abf0e
add esp, 0x40
push str._nDeleting_Message_Handles...
call fcn.004abf0e
call fcn.004b59a2
push edi
call fcn.004abf0e
pop ecx
pop ecx
cmp dword [0x524264], ebx
je 0x488236
push str._nRestoring_Volume...
call fcn.004abf0e
push edi
call fcn.004abf0e
pop ecx
pop ecx
push str._nDeleting_Sounds...
call fcn.004abf0e
call fcn.004b4155
xor eax, eax
call fcn.004b360f
push edi
call fcn.004abf0e
push str._nDeleting_Printer_Handles...
call fcn.004abf0e
call fcn.0045d1b1
push edi
call fcn.004abf0e
push str._nDeleting_Console_Fields...
call fcn.004abf0e
call fcn.004a8f57
push edi
call fcn.004abf0e
push str._nDeleting_Sprites...
call fcn.004abf0e
call fcn.00448088
push edi
call fcn.004abf0e
add esp, 0x20
cmp dword [0x52425c], ebx
je 0x4882dd
push str._nDeleting_PAULA_objects...
call fcn.004abf0e
pop ecx
mov eax, dword [0x52425c]
call fcn.004508ee
cmp eax, ebx
je 0x4882c1
call fcn.004822f3
push 0x4cc910
jmp 0x4882a1
mov esi, dword [0x52425c]
cmp esi, ebx
je 0x4882d6
call fcn.004504ee
mov dword [0x52425c], ebx
push edi
call fcn.004abf0e
pop ecx
push str._nFreeing_console_window...
call fcn.004abf0e
call fcn.0044fd65
mov esi, str.Done.
push esi
call fcn.004abf0e
push str._nClosing_Console_Tools...
call fcn.004abf0e
push esi
call fcn.004abf0e
push str._nFreeing_misc_resources...
call fcn.004abf0e
push ebx
call fcn.004ae8d3
call fcn.004c1a4b
push esi
call fcn.004abf0e
push str._n_nClean_up_is_complete.
call fcn.004abf0e
add esp, 0x20
dec dword [0x5fe6e8]
jmp 0x48833e
mov dword [ebp - 4], 0xfffffffe
call fcn.004ac065
test eax, eax
jne 0x488371
call fcn.0041df75
mov esi, 0x2ee
jmp 0x488367
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0041df75
sub eax, dword [ebp - 0x120]
cmp eax, esi
jb 0x48835a
call fcn.004c6a78
ret