Function at 0x1006eef0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1dc
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1d8], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], esi
call sym.tcl85.dll_Tcl_CreateInterp
mov dword [esp + 0x14], eax
call sym.tcl85.dll_TclpSetInitialEncodings
mov ecx, dword [edi]
push ecx
call sym.tcl85.dll_TclpFindExecutable
add esp, 4
cmp dword [0x100d45c4], esi
jne 0x1006efdb
mov ebx, dword [ebp + 8]
cmp ebx, 3
jle 0x1006efb1
mov ecx, dword [edi + 4]
mov eax, str._encoding
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1006ef80
test dl, dl
je 0x1006ef7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1006ef80
add eax, 2
add ecx, 2
test dl, dl
jne 0x1006ef60
xor eax, eax
jmp 0x1006ef85
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1006efb1
mov eax, dword [edi + 0xc]
cmp byte [eax], 0x2d
je 0x1006efb1
mov edx, dword [edi + 8]
push edx
push 0xffffffffffffffff
push eax
call sym.tcl85.dll_Tcl_NewStringObj
add esp, 8
push eax
call sym.tcl85.dll_Tcl_SetStartupScript
add esp, 8
sub ebx, 3
add edi, 0xc
jmp 0x1006efd8
cmp ebx, 1
jle 0x1006efdb
mov eax, dword [edi + 4]
cmp byte [eax], 0x2d
je 0x1006efdb
push 0
push 0xffffffffffffffff
push eax
call sym.tcl85.dll_Tcl_NewStringObj
add esp, 8
push eax
call sym.tcl85.dll_Tcl_SetStartupScript
add esp, 8
dec ebx
add edi, 4
mov dword [ebp + 8], ebx
mov eax, dword [0x100d45c8]
test eax, eax
jne 0x1006efea
mov dword [esp + 0x10], esi
jmp 0x1006eff7
push eax
call sym.tcl85.dll_Tcl_GetString
add esp, 4
mov dword [esp + 0x10], eax
mov ecx, dword [0x100d45c4]
mov dword [esp + 0x18], ecx
test ecx, ecx
jne 0x1006f01b
mov ecx, dword [edi]
lea eax, [esp + 0x30]
push eax
push 0xffffffffffffffff
push ecx
push 0
call sym.tcl85.dll_Tcl_ExternalToUtfDString
add esp, 0x10
jmp 0x1006f08f
add ecx, 4
mov dword [esp + 0x1c], ecx
cmp dword [ecx], esi
jne 0x1006f05a
mov ebx, dword [0x100d45c4]
mov eax, dword [ebx + 0xc]
add ebx, 0xc
cmp dword [eax + 0xc], esi
jne 0x1006f047
mov edx, dword [eax]
push edx
push str.UpdateStringProc_should_not_be_invoked_for_type__s
call sym.tcl85.dll_Tcl_Panic
add esp, 8
mov eax, dword [ebx]
mov ecx, dword [esp + 0x18]
mov edx, dword [eax + 0xc]
push ecx
call edx
mov ecx, dword [esp + 0x20]
add esp, 4
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
lea edx, [esp + 0x30]
push edx
push eax
mov eax, dword [ecx]
push eax
push 0
call sym.tcl85.dll_Tcl_ExternalToUtfDString
mov ecx, dword [esp + 0x40]
push 0xffffffffffffffff
push ecx
call sym.tcl85.dll_Tcl_NewStringObj
mov edx, dword [esp + 0x28]
push edx
push eax
mov dword [esp + 0x38], eax
call sym.tcl85.dll_Tcl_SetStartupScript
add esp, 0x20
mov eax, dword [esp + 0x30]
push 0xffffffffffffffff
push eax
call sym.tcl85.dll_Tcl_NewStringObj
push 0xffffffffffffffff
push str.argv0
mov dword [esp + 0x20], eax
call sym.tcl85.dll_Tcl_NewStringObj
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push 1
push ecx
mov ebx, eax
inc dword [ebx]
push 0
push ebx
push edx
call sym.tcl85.dll_Tcl_ObjSetVar2
dec dword [ebx]
add esp, 0x24
cmp dword [ebx], esi
mov dword [esp + 0x10], eax
jg 0x1006f0d9
push ebx
call sym.tcl85.dll_TclFreeObj
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1006f0ef
cmp dword [eax + 4], esi
jne 0x1006f0ef
push eax
call sym.tcl85.dll_Tcl_GetString
add esp, 4
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x3c]
cmp eax, ecx
je 0x1006f105
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, dword [0x100d45d8]
dec dword [ebp + 8]
lea edx, [esp + 0x3c]
add edi, 4
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], 0xc8
mov byte [esp + 0x3c], 0
test eax, eax
jne 0x1006f137
call sym.tcl85.dll_TclAllocateFreeObjects
mov eax, dword [0x100d45d8]
mov edx, dword [eax + 0x10]
mov ecx, eax
add eax, 0x10
mov dword [0x100d45d8], edx
mov edx, dword [ebp + 8]
push 0xffffffffffffffff
push str.argc
mov dword [esp + 0x18], ecx
mov dword [ecx], esi
mov dword [ecx + 4], esi
mov dword [eax], edx
mov dword [ecx + 0xc], 0x100d2604
call sym.tcl85.dll_Tcl_NewStringObj
mov ecx, dword [esp + 0x1c]
mov ebx, eax
mov eax, dword [esp + 0x18]
inc dword [ebx]
push 1
push eax
push 0
push ebx
push ecx
call sym.tcl85.dll_Tcl_ObjSetVar2
dec dword [ebx]
add esp, 0x1c
cmp dword [ebx], esi
jg 0x1006f190
push ebx
call sym.tcl85.dll_TclFreeObj
add esp, 4
mov ebx, dword [0x100d45d8]
test ebx, ebx
jne 0x1006f1a5
call sym.tcl85.dll_TclAllocateFreeObjects
mov ebx, dword [0x100d45d8]
mov edx, dword [ebx + 0x10]
mov ecx, dword [0x100d25c4]
xor eax, eax
mov dword [0x100d45d8], edx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
cmp dword [ebp + 8], eax
je 0x1006f22c
jmp 0x1006f1d0
mov eax, dword [edi]
dec dword [ebp + 8]
lea edx, [esp + 0x108]
push edx
push 0xffffffffffffffff
push eax
push 0
call sym.tcl85.dll_Tcl_ExternalToUtfDString
mov eax, dword [esp + 0x11c]
mov ecx, dword [esp + 0x118]
push eax
push ecx
add edi, 4
call sym.tcl85.dll_Tcl_NewStringObj
push eax
push ebx
push 0
call sym.tcl85.dll_Tcl_ListObjAppendElement
mov eax, dword [esp + 0x12c]
lea edx, [esp + 0x138]
add esp, 0x24
cmp eax, edx
je 0x1006f227
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
cmp dword [ebp + 8], esi
jne 0x1006f1d0
push 0xffffffffffffffff
push str.argv
call sym.tcl85.dll_Tcl_NewStringObj
push 1
push ebx
mov edi, eax
mov eax, dword [esp + 0x24]
inc dword [edi]
push 0
push edi
push eax
call sym.tcl85.dll_Tcl_ObjSetVar2
dec dword [edi]
add esp, 0x1c
cmp dword [edi], esi
jg 0x1006f25e
push edi
call sym.tcl85.dll_TclFreeObj
add esp, 4
push 0
call dword [sym.imp.MSVCR90.dll__isatty]
add esp, 4
mov dword [esp + 0x20], eax
cmp dword [esp + 0x18], esi
jne 0x1006f27c
test eax, eax
mov eax, 0x100bf838
jne 0x1006f281
mov eax, 0x100bd924
push 0xffffffffffffffff
push eax
call sym.tcl85.dll_Tcl_NewStringObj
push 0xffffffffffffffff
push str.tcl_interactive
mov edi, eax
call sym.tcl85.dll_Tcl_NewStringObj
push 1
push edi
mov edi, dword [esp + 0x2c]
mov ebx, eax
inc dword [ebx]
push 0
push ebx
push edi
call sym.tcl85.dll_Tcl_ObjSetVar2
dec dword [ebx]
add esp, 0x24
cmp dword [ebx], esi
mov dword [esp + 0x10], eax
jg 0x1006f2c1
push ebx
call sym.tcl85.dll_TclFreeObj
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1006f2d7
cmp dword [eax + 4], esi
jne 0x1006f2d7
push eax
call sym.tcl85.dll_Tcl_GetString
add esp, 4
push edi
call sym.tcl85.dll_Tcl_Preserve
add esp, 4
push edi
call dword [esp + 0x2c]
add esp, 4
test eax, eax
je 0x1006f32c
push 8
call sym.tcl85.dll_Tcl_GetStdChannel
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1006f32c
push 0xffffffffffffffff
push str.application_specific_initialization_failed:
push ebx
call sym.tcl85.dll_Tcl_WriteChars
add esp, 0xc
push edi
call sym.tcl85.dll_Tcl_GetObjResult
add esp, 4
push eax
push ebx
call sym.tcl85.dll_Tcl_WriteObj
push 1
push 0x100b4990
push ebx
call sym.tcl85.dll_Tcl_WriteChars
add esp, 0x14
test byte [edi + 0x100], 1
jne 0x1006f821
cmp dword [edi + 0x218], esi
jne 0x1006f821
mov eax, dword [0x100d45c8]
test eax, eax
je 0x1006f357
push eax
call sym.tcl85.dll_Tcl_GetString
add esp, 4
mov ecx, dword [0x100d45c4]
test ecx, ecx
je 0x1006f484
push eax
push ecx
push edi
call sym.tcl85.dll_Tcl_FSEvalFileEx
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1006f821
push 8
call sym.tcl85.dll_Tcl_GetStdChannel
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x1006f47a
push ebx
push edi
call sym.tcl85.dll_Tcl_GetReturnOptions
mov esi, dword [0x100d45d8]
add esp, 8
mov dword [esp + 0x1c], eax
test esi, esi
jne 0x1006f3b3
call sym.tcl85.dll_TclAllocateFreeObjects
mov esi, dword [0x100d45d8]
mov ecx, dword [esi + 0x10]
push 0xb
mov dword [0x100d45d8], ecx
mov dword [esi], 0
call dword [sym.imp.MSVCR90.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1006f3e2
push 0xb
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
mov dword [esi + 4], ebx
mov edx, dword [str._errorinfo]
mov dword [ebx], edx
mov eax, dword [0x100be3e0]
mov dword [ebx + 4], eax
mov cx, word [0x100be3e4]
mov word [ebx + 8], cx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 4]
lea eax, [esp + 0x28]
push eax
push esi
mov byte [edx + 0xa], 0
inc dword [esi]
push ecx
push 0
mov dword [esi + 8], 0xa
mov dword [esi + 0xc], 0
call sym.tcl85.dll_Tcl_DictObjGet
dec dword [esi]
add esp, 0x10
cmp dword [esi], 0
jg 0x1006f43c
push esi
call sym.tcl85.dll_TclFreeObj
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1006f452
mov edx, dword [esp + 0x10]
push eax
push edx
call sym.tcl85.dll_Tcl_WriteObj
add esp, 8
mov eax, dword [esp + 0x10]
push 1
push 0x100b4990
push eax
call sym.tcl85.dll_Tcl_WriteChars
mov eax, dword [esp + 0x28]
dec dword [eax]
add esp, 0xc
cmp dword [eax], 0
jg 0x1006f47a
push eax
call sym.tcl85.dll_TclFreeObj
add esp, 4
mov ebx, 1
jmp 0x1006f85b
push edi
call sym.tcl85.dll_Tcl_SourceRCFile
add esp, 4
cmp dword [edi + 0x218], esi
jne 0x1006f821
call sym.tcl85.dll_Tcl_DbNewObj
push 3
lea ecx, [esp + 0x24]
push ecx
mov esi, eax
inc dword [esi]
push str.tcl_interactive
push edi
call sym.tcl85.dll_Tcl_LinkVar
push 2
call sym.tcl85.dll_Tcl_GetStdChannel
add esp, 0x14
mov ebx, eax
push 4
mov dword [esp + 0x20], ebx
call sym.tcl85.dll_Tcl_GetStdChannel
add esp, 4
test ebx, ebx
je 0x1006f821
mov edx, dword [esp + 0x14]
test byte [edx + 0x100], 1
jne 0x1006f821
cmp dword [0x100d45cc], 0
jne 0x1006f6ff
cmp dword [esp + 0x20], 0
je 0x1006f53e
lea eax, [esp + 0x24]
push eax
mov edi, edx
call fcn.1006fbc0
add esp, 4
test byte [edi + 0x100], 1
jne 0x1006f821
mov ecx, edi
cmp dword [ecx + 0x218], 0
jne 0x1006f821
push 2
call sym.tcl85.dll_Tcl_GetStdChannel
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x1006f821
mov eax, dword [esi]
cmp eax, 1
jle 0x1006f562
dec eax
mov dword [esi], eax
test eax, eax
jg 0x1006f555
push esi
call sym.tcl85.dll_TclFreeObj
add esp, 4
push esi
call sym.tcl85.dll_Tcl_DuplicateObj
mov esi, eax
add esp, 4
inc dword [esi]
push esi
push ebx
call sym.tcl85.dll_Tcl_GetsObj
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jge 0x1006f588
mov edx, dword [ebx]
test dword [edx + 4], 0x800
je 0x1006f821
jmp 0x1006f819
mov eax, dword [esi]
cmp eax, 1
jle 0x1006f5ac
dec eax
mov dword [esi], eax
test eax, eax
jg 0x1006f59f
push esi
call sym.tcl85.dll_TclFreeObj
add esp, 4
push esi
call sym.tcl85.dll_Tcl_DuplicateObj
mov esi, eax
add esp, 4
inc dword [esi]
push 0
push accept
push 1
push 0x100b4990
push esi
call sym.tcl85.dll_Tcl_AppendLimitedToObj
add esp, 0x14
push esi
call sym.tcl85.dll_TclObjCommandComplete
add esp, 4
test eax, eax
jne 0x1006f5dd
mov dword [esp + 0x24], 2
jmp 0x1006f819
lea eax, [esp + 0x18]
push eax
push esi
mov dword [esp + 0x2c], 1
call sym.tcl85.dll_Tcl_GetStringFromObj
mov eax, dword [esp + 0x20]
dec eax
push eax
push esi
mov dword [esp + 0x28], eax
call sym.tcl85.dll_Tcl_SetObjLength
mov ecx, dword [esp + 0x24]
push 0x20000
push esi
push ecx
call sym.tcl85.dll_Tcl_RecordAndEvalObj
add esp, 0x1c
push 2
mov dword [esp + 0x2c], eax
call sym.tcl85.dll_Tcl_GetStdChannel
add esp, 4
mov ebx, eax
push 4
mov dword [esp + 0x20], ebx
call sym.tcl85.dll_Tcl_GetStdChannel
add esp, 4
push 8
mov dword [esp + 0x14], eax
call sym.tcl85.dll_Tcl_GetStdChannel
dec dword [esi]
add esp, 4
cmp dword [esi], 0
mov edi, eax
jg 0x1006f651
push esi
call sym.tcl85.dll_TclFreeObj
add esp, 4
call sym.tcl85.dll_Tcl_DbNewObj
mov esi, eax
inc dword [esi]
cmp dword [esp + 0x28], 0
je 0x1006f692
test edi, edi
je 0x1006f819
mov edx, dword [esp + 0x14]
push edx
call sym.tcl85.dll_Tcl_GetObjResult
add esp, 4
push eax
push edi
call sym.tcl85.dll_Tcl_WriteObj
push 1
push 0x100b4990
push edi
call sym.tcl85.dll_Tcl_WriteChars
add esp, 0x14
jmp 0x1006f819
cmp dword [esp + 0x20], 0
je 0x1006f819
mov eax, dword [esp + 0x14]
push eax
call sym.tcl85.dll_Tcl_GetObjResult
add esp, 4
lea ecx, [esp + 0x18]
mov edi, eax
inc dword [edi]
push ecx
push edi
call sym.tcl85.dll_Tcl_GetStringFromObj
add esp, 8
cmp dword [esp + 0x18], 0
jle 0x1006f6e9
cmp dword [esp + 0x10], 0
je 0x1006f6e9
mov edx, dword [esp + 0x10]
push edi
push edx
call sym.tcl85.dll_Tcl_WriteObj
mov eax, dword [esp + 0x18]
push 1
push 0x100b4990
push eax
call sym.tcl85.dll_Tcl_WriteChars
add esp, 0x14
dec dword [edi]
cmp dword [edi], 0
jg 0x1006f819
push edi
call sym.tcl85.dll_TclFreeObj
jmp 0x1006f816
xor edi, edi
test ebx, ebx
je 0x1006f78d
cmp dword [esp + 0x20], edi
je 0x1006f71e
lea ecx, [esp + 0x24]
push ecx
mov edi, edx
call fcn.1006fbc0
add esp, 4
push 0x14
call dword [sym.imp.MSVCR90.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x1006f73e
push 0x14
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [edi], ebx
mov edx, dword [esp + 0x20]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x14]
push str.tcl_interactive
push eax
mov dword [edi + 4], edx
mov dword [edi + 8], esi
mov dword [edi + 0x10], eax
call sym.tcl85.dll_Tcl_UnlinkVar
mov ecx, dword [esp + 0x1c]
push 3
lea eax, [edi + 4]
push eax
push str.tcl_interactive
push ecx
call sym.tcl85.dll_Tcl_LinkVar
mov ebx, dword [esp + 0x34]
push edi
push 0x1006f960
push 2
push ebx
call sym.tcl85.dll_Tcl_CreateChannelHandler
add esp, 0x28
call dword [0x100d45cc]
mov dword [0x100d45cc], 0
test ebx, ebx
je 0x1006f7f5
mov edx, dword [edi + 4]
mov esi, dword [esp + 0x14]
push str.tcl_interactive
push esi
mov dword [esp + 0x28], edx
call sym.tcl85.dll_Tcl_UnlinkVar
push 3
lea eax, [esp + 0x2c]
push eax
push str.tcl_interactive
push esi
call sym.tcl85.dll_Tcl_LinkVar
mov eax, dword [edi]
mov ecx, dword [edi + 0xc]
mov esi, dword [edi + 8]
add esp, 0x18
mov dword [esp + 0x24], ecx
test eax, eax
je 0x1006f7eb
push edi
push 0x1006f960
push eax
call sym.tcl85.dll_Tcl_DeleteChannelHandler
add esp, 0xc
push edi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push 2
call sym.tcl85.dll_Tcl_GetStdChannel
add esp, 4
mov ebx, eax
push 4
mov dword [esp + 0x20], ebx
call sym.tcl85.dll_Tcl_GetStdChannel
add esp, 4
push 8
call sym.tcl85.dll_Tcl_GetStdChannel
add esp, 4
test ebx, ebx
jne 0x1006f4d6
mov eax, dword [0x100d45cc]
mov edi, dword [esp + 0x14]
test eax, eax
je 0x1006f843
cmp dword [edi + 0x218], 0
jne 0x1006f843
call eax
mov dword [0x100d45cc], 0
test esi, esi
je 0x1006f857
dec dword [esi]
cmp dword [esi], 0
jg 0x1006f857
push esi
call sym.tcl85.dll_TclFreeObj
add esp, 4
mov ebx, dword [esp + 0x2c]
test byte [edi + 0x100], 1
jne 0x1006f8c6
cmp dword [edi + 0x218], 0
jne 0x1006f89f
push ebx
push str.exit__d
call sym.tcl85.dll_Tcl_ObjPrintf
push 0
push 0
mov esi, eax
inc dword [esi]
push 0x20000
push esi
push edi
call sym.tcl85.dll_TclEvalObjEx
dec dword [esi]
add esp, 0x1c
cmp dword [esi], 0
jg 0x1006f89f
push esi
call sym.tcl85.dll_TclFreeObj
add esp, 4
mov eax, dword [edi + 0x100]
test al, 1
jne 0x1006f8c6
inc dword [edi + 0xf0]
or eax, 1
push 0x1000ce10
push edi
mov dword [edi + 0x100], eax
call sym.tcl85.dll_Tcl_EventuallyFree
add esp, 8
mov eax, dword [0x100d45c4]
xor esi, esi
cmp eax, esi
je 0x1006f8e0
dec dword [eax]
cmp dword [eax], esi
jg 0x1006f8e0
push eax
call sym.tcl85.dll_TclFreeObj
add esp, 4
mov eax, dword [0x100d45c8]
mov dword [0x100d45c4], esi
cmp eax, esi
je 0x1006f8fe
dec dword [eax]
cmp dword [eax], esi
jg 0x1006f8fe
push eax
call sym.tcl85.dll_TclFreeObj
add esp, 4
push edi
mov dword [0x100d45c8], esi
call sym.tcl85.dll_Tcl_Release
mov eax, dword [0x100d45a0]
add esp, 4
cmp eax, esi
je 0x1006f93e
push ebx
call eax
add esp, 4
push str.AppExitProc_returned_unexpectedly
call sym.tcl85.dll_Tcl_Panic
mov ecx, dword [esp + 0x1e8]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100b30c8
mov esp, ebp
pop ebp
ret
call sym.tcl85.dll_Tcl_Finalize
push ebx
call dword [sym.imp.MSVCR90.dll_exit]
int3