Function at 0x4367ad
Capabilities:
Terminate process

Disassembly:
push 0x110
push 0x504090
call fcn.004c3a9c
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.004ab5d0
add esp, 0xc
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x436840
cmp dword [ebp + 0xc], ebx
je 0x43680d
mov edi, dword [0x521758]
cmp edi, ebx
jne 0x436804
mov dword [ebp - 4], 0xfffffffe
jmp 0x436b08
mov ebx, esi
call fcn.0046acbd
jmp 0x4367f8
mov eax, dword [0x521758]
cmp eax, ebx
jne 0x436824
call fcn.0046aaee
mov dword [0x521758], eax
cmp eax, ebx
je 0x4367f8
mov ebx, esi
mov edi, eax
call fcn.0046ae77
test eax, eax
jne 0x4367f8
push esi
mov ebx, dword [0x521758]
call fcn.0046aba0
pop ecx
jmp 0x4367f8
cmp dword [0x5fb4dc], ebx
jle 0x436852
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x436840
inc dword [0x5fb4dc]
push str._nCleaning_up...
call fcn.0040ef9c
pop ecx
xor ecx, ecx
call fcn.0043ee26
call fcn.0047210a
test eax, eax
je 0x43687b
push 1
call fcn.00475553
pop ecx
call fcn.0049c471
mov dword [ebp - 0x120], eax
push str._nStopping_PAULA_session_flag...
call fcn.0040ef9c
call fcn.00472162
mov edi, str.DONE.
push edi
call fcn.0040ef9c
push str._nSaving_session...
call fcn.0040ef9c
mov esi, str.Counting_Dumps_
push esi
push ebx
call fcn.0045aa3a
push eax
call fcn.0041a6da
add esp, 0x18
test eax, eax
je 0x4368d3
push esi
push ebx
call fcn.0045aa3a
pop ecx
pop ecx
mov ecx, eax
call fcn.00419547
push 0x3a07
mov esi, str..MainPAULA.c
push esi
push 0x999
call fcn.004449ae
push 0x3a08
push esi
push 0x400
call fcn.00441f38
push edi
call fcn.0040ef9c
push str._nStopping_TelNet_sessions...
call fcn.0040ef9c
call fcn.00416c27
call fcn.0047ba88
call fcn.00416c2e
call fcn.0044e544
push edi
call fcn.0040ef9c
push str._nPerforming_misc_cleanup...
call fcn.0040ef9c
push 0x64
pop eax
call fcn.0040c795
mov ecx, 0x4ceb54
call fcn.0040c7eb
push 4
call fcn.0040de4c
call fcn.0040a5c3
push edi
call fcn.0040ef9c
push str._nClosing_FTP...
call fcn.0040ef9c
push edi
call fcn.0040ef9c
push str._nDeleting_String_Lists...
call fcn.0040ef9c
lea eax, [ebp - 0x11c]
push eax
call fcn.00479970
add esp, 0x40
push edi
call fcn.0040ef9c
mov dword [esp], str._nDeleting_invoice_archive...
call fcn.0040ef9c
call fcn.00458b0f
push edi
call fcn.0040ef9c
push str._nDeleting_Message_Handles...
call fcn.0040ef9c
call fcn.0043e0e5
push edi
call fcn.0040ef9c
add esp, 0x10
cmp dword [0x521760], ebx
je 0x4369c8
push str._nRestoring_Volume...
call fcn.0040ef9c
push edi
call fcn.0040ef9c
pop ecx
pop ecx
push str._nDeleting_Sounds...
call fcn.0040ef9c
call fcn.00473f93
xor eax, eax
call fcn.00474de9
push edi
call fcn.0040ef9c
push str._nDeleting_Printer_Handles...
call fcn.0040ef9c
call fcn.0045d043
push edi
call fcn.0040ef9c
push str._nDeleting_Console_Fields...
call fcn.0040ef9c
call fcn.0040f27a
push edi
call fcn.0040ef9c
push str._nDeleting_Sprites...
call fcn.0040ef9c
call fcn.00475886
push edi
call fcn.0040ef9c
add esp, 0x20
cmp dword [0x521758], ebx
je 0x436a6f
push str._nDeleting_PAULA_objects...
call fcn.0040ef9c
pop ecx
mov eax, dword [0x521758]
call fcn.0046ad3a
cmp eax, ebx
je 0x436a53
call fcn.00425b6a
push 0x4c9390
jmp 0x436a33
mov esi, dword [0x521758]
cmp esi, ebx
je 0x436a68
call fcn.0046ab63
mov dword [0x521758], ebx
push edi
call fcn.0040ef9c
pop ecx
push str._nFreeing_console_window...
call fcn.0040ef9c
call fcn.0046b696
mov esi, str.Done.
push esi
call fcn.0040ef9c
push str._nClosing_Console_Tools...
call fcn.0040ef9c
call fcn.0041408a
push esi
call fcn.0040ef9c
push str._nFreeing_misc_resources...
call fcn.0040ef9c
push ebx
call fcn.0040d9b4
call fcn.004a6164
push esi
call fcn.0040ef9c
push str._n_nClean_up_is_complete.
call fcn.0040ef9c
add esp, 0x20
dec dword [0x5fb4dc]
jmp 0x436ad5
mov dword [ebp - 4], 0xfffffffe
call fcn.0040ef45
test eax, eax
jne 0x436b08
call fcn.0049c471
mov esi, 0x2ee
jmp 0x436afe
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0049c471
sub eax, dword [ebp - 0x120]
cmp eax, esi
jb 0x436af1
call fcn.004c3ae4
ret