Function at 0x4392f2
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x104]
sub esp, 0x104
push 0xfffffffffffffffe
push 0x5354c0
push 0x4bd7f0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5385d0]
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.004b7880
add esp, 0xc
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x4393ba
mov eax, dword [0x553770]
cmp dword [ebp + 0x110], edi
je 0x439385
cmp eax, edi
jne 0x43937e
mov dword [ebp - 4], 0xfffffffe
jmp 0x43971b
call fcn.004717ac
jmp 0x439372
cmp eax, edi
jne 0x4393a4
call fcn.00471551
mov dword [0x553770], eax
cmp eax, edi
jne 0x4393a4
push str.CleanUpMain___FAILED:_CreatePtrList___FAILED_
call fcn.00418e96
pop ecx
jmp 0x439372
call fcn.004719b9
test eax, eax
jne 0x439372
push ebx
mov eax, dword [0x553770]
call fcn.0047163a
jmp 0x4393a1
mov dword [ebp - 0x1c], 0x39e1
cmp dword [0x62d4f4], edi
jle 0x4393d3
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4393c1
inc dword [0x62d4f4]
push str._nCleaning_up...
call fcn.00410186
pop ecx
xor ecx, ecx
call fcn.004420b6
call fcn.004799bb
test eax, eax
je 0x4393fc
push 1
call fcn.0047d4a3
pop ecx
call fcn.004a6bcb
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x39f1
push str._nStopping_PAULA_session_flag...
call fcn.00410186
call fcn.00479a20
mov ebx, str.DONE.
push ebx
call fcn.00410186
push str._nSaving_session...
call fcn.00410186
mov esi, str.Counting_Dumps_
push esi
push edi
call fcn.00460e8a
push eax
call fcn.0041c6ac
add esp, 0x18
test eax, eax
je 0x439458
push esi
push edi
call fcn.00460e8a
pop ecx
pop ecx
mov ecx, eax
call fcn.0041b2cd
push 0x3a10
mov esi, str..MainPAULA.c
push esi
push 0x999
call fcn.00448320
push 0x3a11
push esi
push 0x400
call fcn.00445628
push ebx
call fcn.00410186
mov dword [ebp - 0x1c], 0x3a13
push str._nStopping_TelNet_sessions...
call fcn.00410186
call fcn.004188ac
call fcn.00484150
call fcn.004188b3
call fcn.00453130
push ebx
call fcn.00410186
mov dword [ebp - 0x1c], 0x3a1d
push str._nPerforming_misc_cleanup...
call fcn.00410186
push 0x64
pop eax
call fcn.0040d747
mov ecx, 0x4e2ed4
call fcn.0040d79d
push 4
call fcn.0040ef41
call fcn.0040b3c7
push ebx
call fcn.00410186
mov dword [ebp - 0x1c], 0x3a2e
push str._nClosing_FTP...
call fcn.00410186
push ebx
call fcn.00410186
mov dword [ebp - 0x1c], 0x3a34
mov dword [ebp - 0x1c], 0x3a43
push str._nDeleting_String_Lists...
call fcn.00410186
lea eax, [ebp]
call fcn.00481a95
push ebx
call fcn.00410186
add esp, 0x40
mov dword [ebp - 0x1c], 0x3a49
push str._nDeleting_invoice_archive...
call fcn.00410186
call fcn.0045ea88
push ebx
call fcn.00410186
mov dword [ebp - 0x1c], 0x3a4e
push str._nDeleting_Message_Handles...
call fcn.00410186
call fcn.004411b9
push ebx
call fcn.00410186
add esp, 0x10
mov dword [ebp - 0x1c], 0x3a53
cmp dword [0x553778], edi
je 0x439592
push str._nRestoring_Volume...
call fcn.00410186
push edi
push str.:1:FYI_Restoring_Master_Volume:_lResult___ld
call fcn.0041936e
push ebx
call fcn.00410186
add esp, 0x10
mov dword [ebp - 0x1c], 0x3a5c
push str._nDeleting_Sounds...
call fcn.00410186
call fcn.0047bb1f
xor esi, esi
call fcn.0047cd10
push ebx
call fcn.00410186
mov dword [ebp - 0x1c], 0x3a63
push str._nDeleting_Printer_Handles...
call fcn.00410186
call fcn.0046351e
push ebx
call fcn.00410186
mov dword [ebp - 0x1c], 0x3a68
push str._nDeleting_Console_Fields...
call fcn.00410186
call fcn.004104a4
push ebx
call fcn.00410186
mov dword [ebp - 0x1c], 0x3a6d
push str._nDeleting_Sprites...
call fcn.00410186
call fcn.0047d886
push ebx
call fcn.00410186
add esp, 0x20
mov dword [ebp - 0x1c], 0x3a72
cmp dword [0x553770], edi
je 0x43965a
push str._nDeleting_PAULA_objects...
call fcn.00410186
pop ecx
mov esi, dword [0x553770]
call fcn.00471837
cmp eax, edi
je 0x43963a
call fcn.0042846f
push 0x4d5c64
jmp 0x439619
mov eax, dword [0x553770]
cmp eax, edi
je 0x439653
mov edi, eax
call fcn.004715f4
and dword [0x553770], 0
xor edi, edi
push ebx
call fcn.00410186
pop ecx
mov dword [ebp - 0x1c], 0x3a87
push str._nFreeing_console_window...
call fcn.00410186
call fcn.004722ca
mov esi, str.Done.
push esi
call fcn.00410186
mov dword [ebp - 0x1c], 0x3a8f
push str._nClosing_Console_Tools...
call fcn.00410186
call fcn.004156dc
push esi
call fcn.00410186
mov dword [ebp - 0x1c], 0x3a94
push str._nFreeing_misc_resources...
call fcn.00410186
push edi
call fcn.0040ea4c
call fcn.004b17f3
push esi
call fcn.00410186
mov dword [ebp - 0x1c], 0x3a9c
push str._n_nClean_up_is_complete.
call fcn.00410186
add esp, 0x20
dec dword [0x62d4f4]
jmp 0x4396eb
mov dword [ebp - 4], 0xfffffffe
call fcn.00410123
test eax, eax
jne 0x43971b
call fcn.004a6bcb
mov esi, 0x2ee
jmp 0x439714
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004a6bcb
sub eax, dword [ebp - 0x20]
cmp eax, esi
jb 0x439707
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.004b7140
add ebp, 0x104
leave
ret