Function at 0x437401
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x104]
sub esp, 0x104
push 0xfffffffffffffffe
push 0x531df0
push 0x4bb360
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5345d0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x100], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 0x10c]
xor edi, edi
mov dword [ebp - 0x20], edi
mov byte [ebp], 0
push 0xff
push edi
lea eax, [ebp + 1]
push eax
call fcn.004b53e0
add esp, 0xc
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x4374c9
mov eax, dword [0x54f76c]
cmp dword [ebp + 0x110], edi
je 0x437494
cmp eax, edi
jne 0x43748d
mov dword [ebp - 4], 0xfffffffe
jmp 0x43782a
call fcn.0046efe0
jmp 0x437481
cmp eax, edi
jne 0x4374b3
call fcn.0046ed85
mov dword [0x54f76c], eax
cmp eax, edi
jne 0x4374b3
push str.CleanUpMain___FAILED:_CreatePtrList___FAILED_
call fcn.004178df
pop ecx
jmp 0x437481
call fcn.0046f1ed
test eax, eax
jne 0x437481
push ebx
mov eax, dword [0x54f76c]
call fcn.0046ee6e
jmp 0x4374b0
mov dword [ebp - 0x1c], 0x39e7
cmp dword [0x6294ec], edi
jle 0x4374e2
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4374d0
inc dword [0x6294ec]
push str._nCleaning_up...
call fcn.0040ebcf
pop ecx
xor ecx, ecx
call fcn.0044019e
call fcn.004771d6
test eax, eax
je 0x43750b
push 1
call fcn.0047acbe
pop ecx
call fcn.004a4ba8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x39f7
push str._nStopping_PAULA_session_flag...
call fcn.0040ebcf
call fcn.0047723b
mov ebx, str.DONE.
push ebx
call fcn.0040ebcf
push str._nSaving_session...
call fcn.0040ebcf
mov esi, str.Counting_Dumps_
push esi
push edi
call fcn.0045e70f
push eax
call fcn.0041b0f5
add esp, 0x18
test eax, eax
je 0x437567
push esi
push edi
call fcn.0045e70f
pop ecx
pop ecx
mov ecx, eax
call fcn.00419d16
push 0x3a16
mov esi, str..MainPAULA.c
push esi
push 0x999
call fcn.004463fb
push 0x3a17
push esi
push 0x400
call fcn.00443703
push ebx
call fcn.0040ebcf
mov dword [ebp - 0x1c], 0x3a19
push str._nStopping_TelNet_sessions...
call fcn.0040ebcf
call fcn.004172f5
call fcn.0048196b
call fcn.004172fc
call fcn.00451216
push ebx
call fcn.0040ebcf
mov dword [ebp - 0x1c], 0x3a23
push str._nPerforming_misc_cleanup...
call fcn.0040ebcf
push 0x64
pop eax
call fcn.0040c1ae
mov ecx, 0x4e02e4
call fcn.0040c204
push 4
call fcn.0040d9a8
call fcn.00409dfa
push ebx
call fcn.0040ebcf
mov dword [ebp - 0x1c], 0x3a34
push str._nClosing_FTP...
call fcn.0040ebcf
push ebx
call fcn.0040ebcf
mov dword [ebp - 0x1c], 0x3a3a
mov dword [ebp - 0x1c], 0x3a49
push str._nDeleting_String_Lists...
call fcn.0040ebcf
lea eax, [ebp]
call fcn.0047f2b0
push ebx
call fcn.0040ebcf
add esp, 0x40
mov dword [ebp - 0x1c], 0x3a4f
push str._nDeleting_invoice_archive...
call fcn.0040ebcf
call fcn.0045c62a
push ebx
call fcn.0040ebcf
mov dword [ebp - 0x1c], 0x3a54
push str._nDeleting_Message_Handles...
call fcn.0040ebcf
call fcn.0043f2a1
push ebx
call fcn.0040ebcf
add esp, 0x10
mov dword [ebp - 0x1c], 0x3a59
cmp dword [0x54f770], edi
je 0x4376a1
push str._nRestoring_Volume...
call fcn.0040ebcf
push edi
push str.:1:FYI_Restoring_Master_Volume:_lResult___ld
call fcn.00417db7
push ebx
call fcn.0040ebcf
add esp, 0x10
mov dword [ebp - 0x1c], 0x3a62
push str._nDeleting_Sounds...
call fcn.0040ebcf
call fcn.0047933a
xor esi, esi
call fcn.0047a52b
push ebx
call fcn.0040ebcf
mov dword [ebp - 0x1c], 0x3a69
push str._nDeleting_Printer_Handles...
call fcn.0040ebcf
call fcn.00460d52
push ebx
call fcn.0040ebcf
mov dword [ebp - 0x1c], 0x3a6e
push str._nDeleting_Console_Fields...
call fcn.0040ebcf
call fcn.0040eeed
push ebx
call fcn.0040ebcf
mov dword [ebp - 0x1c], 0x3a73
push str._nDeleting_Sprites...
call fcn.0040ebcf
call fcn.0047b0a1
push ebx
call fcn.0040ebcf
add esp, 0x20
mov dword [ebp - 0x1c], 0x3a78
cmp dword [0x54f76c], edi
je 0x437769
push str._nDeleting_PAULA_objects...
call fcn.0040ebcf
pop ecx
mov esi, dword [0x54f76c]
call fcn.0046f06b
cmp eax, edi
je 0x437749
call fcn.00426ea4
push 0x4d3b84
jmp 0x437728
mov eax, dword [0x54f76c]
cmp eax, edi
je 0x437762
mov edi, eax
call fcn.0046ee28
and dword [0x54f76c], 0
xor edi, edi
push ebx
call fcn.0040ebcf
pop ecx
mov dword [ebp - 0x1c], 0x3a8d
push str._nFreeing_console_window...
call fcn.0040ebcf
call fcn.0046fae5
mov esi, str.Done.
push esi
call fcn.0040ebcf
mov dword [ebp - 0x1c], 0x3a95
push str._nClosing_Console_Tools...
call fcn.0040ebcf
call fcn.00414125
push esi
call fcn.0040ebcf
mov dword [ebp - 0x1c], 0x3a9a
push str._nFreeing_misc_resources...
call fcn.0040ebcf
push edi
call fcn.0040d4b3
call fcn.004af4fb
push esi
call fcn.0040ebcf
mov dword [ebp - 0x1c], 0x3aa2
push str._n_nClean_up_is_complete.
call fcn.0040ebcf
add esp, 0x20
dec dword [0x6294ec]
jmp 0x4377fa
mov dword [ebp - 4], 0xfffffffe
call fcn.0040eb6c
test eax, eax
jne 0x43782a
call fcn.004a4ba8
mov esi, 0x2ee
jmp 0x437823
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004a4ba8
sub eax, dword [ebp - 0x20]
cmp eax, esi
jb 0x437816
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.004b4c95
add ebp, 0x104
leave
ret