Function at 0x4374a0
Capabilities:
Terminate process

Disassembly:
push 0x110
push 0x51ca40
call fcn.004d8c1c
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.004c05d0
add esp, 0xc
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x437533
cmp dword [ebp + 0xc], ebx
je 0x437500
mov edi, dword [0x52cb18]
cmp edi, ebx
jne 0x4374f7
mov dword [ebp - 4], 0xfffffffe
jmp 0x43782d
mov ebx, esi
call fcn.0046e818
jmp 0x4374eb
mov eax, dword [0x52cb18]
cmp eax, ebx
jne 0x437517
call fcn.0046e649
mov dword [0x52cb18], eax
cmp eax, ebx
je 0x4374eb
mov ebx, esi
mov edi, eax
call fcn.0046e9d2
test eax, eax
jne 0x4374eb
push esi
mov ebx, dword [0x52cb18]
call fcn.0046e6fb
pop ecx
jmp 0x4374eb
cmp dword [0x6077a4], ebx
jle 0x437545
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x437533
inc dword [0x6077a4]
push str._nCleaning_up...
call fcn.004106d5
pop ecx
xor ecx, ecx
call fcn.00440544
call fcn.00480feb
test eax, eax
je 0x43756e
push 1
call fcn.00483dc4
pop ecx
call fcn.004af84c
mov dword [ebp - 0x120], eax
push str._nStopping_PAULA_session_flag...
call fcn.004106d5
call fcn.00481046
mov edi, 0x4ef484
push edi
call fcn.004106d5
push str._nSaving_session...
call fcn.004106d5
push str.The_session_was_terminated.
call fcn.004b5516
xor ecx, ecx
call fcn.004b586d
mov esi, str.Counting_Dumps_
push esi
push ebx
call fcn.0045f646
push eax
call fcn.0041a61c
add esp, 0x1c
test eax, eax
je 0x4375d7
push esi
push ebx
call fcn.0045f646
pop ecx
pop ecx
mov ecx, eax
call fcn.0041975b
call fcn.004b6a1d
push 0x39dc
mov esi, str..MainPAULA.c
push esi
push 0x999
call fcn.00449056
push 0x39dd
push esi
push 0x400
call fcn.00446538
push edi
call fcn.004106d5
push str._nStopping_TelNet_sessions...
call fcn.004106d5
call fcn.0048d88a
call fcn.00452f32
push edi
call fcn.004106d5
push str._nPerforming_misc_cleanup...
call fcn.004106d5
push 0x64
pop eax
call fcn.0040d525
mov ecx, 0x4f3b4c
call fcn.0040d57b
push 4
call fcn.0040eb78
push 1
call fcn.0040a958
push edi
call fcn.004106d5
push str._nClosing_FTP...
call fcn.004106d5
push ebx
push 0xfa
push ebx
push ebx
push 1
call fcn.004417ba
add esp, 0x4c
push edi
call fcn.004106d5
mov dword [esp], str._nDeleting_String_Lists...
call fcn.004106d5
lea eax, [ebp - 0x11c]
push eax
call fcn.004887f6
push edi
call fcn.004106d5
push str._nDeleting_invoice_archive...
call fcn.004106d5
call fcn.0045d7c4
push edi
call fcn.004106d5
push str._nDeleting_Message_Handles...
call fcn.004106d5
call fcn.0043f25b
push edi
call fcn.004106d5
add esp, 0x1c
cmp dword [0x52cb20], ebx
je 0x4376df
push str._nRestoring_Volume...
call fcn.004106d5
pop ecx
push 0x64
call fcn.00483e9a
push edi
call fcn.004106d5
pop ecx
push str._nDeleting_Sounds...
call fcn.004106d5
call fcn.004827f6
xor eax, eax
call fcn.0048365a
push edi
call fcn.004106d5
push str._nDeleting_Printer_Handles...
call fcn.004106d5
call fcn.00462387
push edi
call fcn.004106d5
push str._nDeleting_Console_Fields...
call fcn.004106d5
call fcn.00410a24
push edi
call fcn.004106d5
push str._nDeleting_Sprites...
call fcn.004106d5
call fcn.00484489
push edi
call fcn.004106d5
add esp, 0x20
cmp dword [0x52cb18], ebx
je 0x437786
push str._nDeleting_PAULA_objects...
call fcn.004106d5
pop ecx
mov eax, dword [0x52cb18]
call fcn.0046e895
cmp eax, ebx
je 0x43776a
call fcn.00424f73
push 0x4de410
jmp 0x43774a
mov esi, dword [0x52cb18]
cmp esi, ebx
je 0x43777f
call fcn.0046e6be
mov dword [0x52cb18], ebx
push edi
call fcn.004106d5
pop ecx
push str._nFreeing_console_window...
call fcn.004106d5
call fcn.004772af
mov esi, str.Done.
push esi
call fcn.004106d5
push str._nClosing_Console_Tools...
call fcn.004106d5
call fcn.00415848
push esi
call fcn.004106d5
push str._nFreeing_misc_resources...
call fcn.004106d5
push ebx
call fcn.0040e6e0
call fcn.004ba2e2
call fcn.0046e5f7
push esi
call fcn.004106d5
push str._n_nClean_up_is_complete.
call fcn.004106d5
add esp, 0x20
dec dword [0x6077a4]
jmp 0x4377f1
mov dword [ebp - 4], 0xfffffffe
call fcn.0040fd96
test eax, eax
je 0x43782d
call fcn.0040ffd6
test eax, eax
jne 0x43782d
call fcn.004af84c
mov esi, 0x2ee
jmp 0x437823
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004af84c
sub eax, dword [ebp - 0x120]
cmp eax, esi
jb 0x437816
call fcn.004d8c64
ret