Function at 0x43362f
Capabilities:
Terminate process

Disassembly:
push 0x110
push 0x4fd630
call fcn.004bf72c
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.004a7110
add esp, 0xc
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x4336c2
cmp dword [ebp + 0xc], ebx
je 0x43368f
mov edi, dword [0x51a5f0]
cmp edi, ebx
jne 0x433686
mov dword [ebp - 4], 0xfffffffe
jmp 0x43399f
mov ebx, esi
call fcn.00468768
jmp 0x43367a
mov eax, dword [0x51a5f0]
cmp eax, ebx
jne 0x4336a6
call fcn.00468599
mov dword [0x51a5f0], eax
cmp eax, ebx
je 0x43367a
mov ebx, esi
mov edi, eax
call fcn.00468922
test eax, eax
jne 0x43367a
push esi
mov ebx, dword [0x51a5f0]
call fcn.0046864b
pop ecx
jmp 0x43367a
cmp dword [0x5f4374], ebx
jle 0x4336d4
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4336c2
inc dword [0x5f4374]
push str._nCleaning_up...
call fcn.0040f4b9
pop ecx
xor ecx, ecx
call fcn.0043c041
call fcn.00471182
test eax, eax
je 0x4336fd
push 1
call fcn.00473eea
pop ecx
call fcn.00498efc
mov dword [ebp - 0x120], eax
push str._nStopping_PAULA_session_flag...
call fcn.0040f4b9
call fcn.004711d8
mov edi, 0x4d5194
push edi
call fcn.0040f4b9
push str._nSaving_session...
call fcn.0040f4b9
mov esi, str.Counting_Dumps_
push esi
push ebx
call fcn.00459cf0
push eax
call fcn.00418f1c
add esp, 0x18
test eax, eax
je 0x433755
push esi
push ebx
call fcn.00459cf0
pop ecx
pop ecx
mov ecx, eax
call fcn.0041814a
push 0x3a02
mov esi, str..MainPAULA.c
push esi
push 0x999
call fcn.004443bf
push 0x3a03
push esi
push 0x400
call fcn.0044198e
push edi
call fcn.0040f4b9
push str._nStopping_TelNet_sessions...
call fcn.0040f4b9
call fcn.0044dc49
push edi
call fcn.0040f4b9
push str._nPerforming_misc_cleanup...
call fcn.0040f4b9
push 0x64
pop eax
call fcn.0040c5b0
mov ecx, 0x4d8ee0
call fcn.0040c606
push 4
call fcn.0040dc4a
call fcn.0040a15d
push edi
call fcn.0040f4b9
push str._nClosing_FTP...
call fcn.0040f4b9
push ebx
push 0xfa
push ebx
push ebx
push 1
call fcn.0043d2ad
add esp, 0x48
push edi
call fcn.0040f4b9
mov dword [esp], str._nDeleting_String_Lists...
call fcn.0040f4b9
lea eax, [ebp - 0x11c]
push eax
call fcn.004785af
push edi
call fcn.0040f4b9
push str._nDeleting_invoice_archive...
call fcn.0040f4b9
call fcn.00457e28
push edi
call fcn.0040f4b9
push str._nDeleting_Message_Handles...
call fcn.0040f4b9
call fcn.0043af6b
push edi
call fcn.0040f4b9
add esp, 0x1c
cmp dword [0x51a5f8], ebx
je 0x433851
push str._nRestoring_Volume...
call fcn.0040f4b9
pop ecx
push 0x64
call fcn.00473fae
push edi
call fcn.0040f4b9
pop ecx
push str._nDeleting_Sounds...
call fcn.0040f4b9
call fcn.00472930
xor eax, eax
call fcn.00473780
push edi
call fcn.0040f4b9
push str._nDeleting_Printer_Handles...
call fcn.0040f4b9
call fcn.0045c28e
push edi
call fcn.0040f4b9
push str._nDeleting_Console_Fields...
call fcn.0040f4b9
call fcn.0040f792
push edi
call fcn.0040f4b9
push str._nDeleting_Sprites...
call fcn.0040f4b9
call fcn.0047459d
push edi
call fcn.0040f4b9
add esp, 0x20
cmp dword [0x51a5f0], ebx
je 0x4338f8
push str._nDeleting_PAULA_objects...
call fcn.0040f4b9
pop ecx
mov eax, dword [0x51a5f0]
call fcn.004687e5
cmp eax, ebx
je 0x4338dc
call fcn.0042285c
push 0x4c53a0
jmp 0x4338bc
mov esi, dword [0x51a5f0]
cmp esi, ebx
je 0x4338f1
call fcn.0046860e
mov dword [0x51a5f0], ebx
push edi
call fcn.0040f4b9
pop ecx
push str._nFreeing_console_window...
call fcn.0040f4b9
call fcn.00469141
mov esi, str.Done.
push esi
call fcn.0040f4b9
push str._nClosing_Console_Tools...
call fcn.0040f4b9
call fcn.00414585
push esi
call fcn.0040f4b9
push str._nFreeing_misc_resources...
call fcn.0040f4b9
push ebx
call fcn.0040d7b3
call fcn.004a213b
call fcn.00468547
push esi
call fcn.0040f4b9
push str._n_nClean_up_is_complete.
call fcn.0040f4b9
add esp, 0x20
dec dword [0x5f4374]
jmp 0x433963
mov dword [ebp - 4], 0xfffffffe
call fcn.0040ee13
test eax, eax
je 0x43399f
call fcn.0040ef2e
test eax, eax
jne 0x43399f
call fcn.00498efc
mov esi, 0x2ee
jmp 0x433995
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00498efc
sub eax, dword [ebp - 0x120]
cmp eax, esi
jb 0x433988
call fcn.004bf774
ret