Function at 0x1006e010
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
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], ebx
call sym.tcl85.dll_Tcl_CreateInterp
mov edi, eax
mov dword [esp + 0x28], edi
call sym.tcl85.dll_TclpSetInitialEncodings
mov ecx, dword [esi]
push ecx
call sym.tcl85.dll_TclpFindExecutable
add esp, 4
cmp dword [0x100d3540], ebx
jne 0x1006e100
cmp dword [ebp + 8], 3
jle 0x1006e0d2
mov ecx, dword [esi + 4]
mov eax, str._encoding
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1006e0a0
test dl, dl
je 0x1006e09c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1006e0a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x1006e080
xor eax, eax
jmp 0x1006e0a5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1006e0d2
mov eax, dword [esi + 0xc]
cmp byte [eax], 0x2d
je 0x1006e0d2
mov edx, dword [esi + 8]
push edx
push 0xffffffffffffffff
push eax
call sym.tcl85.dll_Tcl_NewStringObj
add esp, 8
push eax
call sym.tcl85.dll_Tcl_SetStartupScript
sub dword [ebp + 8], 3
add esp, 8
add esi, 0xc
jmp 0x1006e0fc
cmp dword [ebp + 8], 1
jle 0x1006e100
mov eax, dword [esi + 4]
cmp byte [eax], 0x2d
je 0x1006e100
push 0
push 0xffffffffffffffff
push eax
call sym.tcl85.dll_Tcl_NewStringObj
add esp, 8
push eax
call sym.tcl85.dll_Tcl_SetStartupScript
dec dword [ebp + 8]
add esp, 8
add esi, 4
mov dword [esp + 0xc], esi
mov eax, dword [0x100d3544]
test eax, eax
jne 0x1006e10f
mov dword [esp + 0x10], ebx
jmp 0x1006e11c
push eax
call sym.tcl85.dll_Tcl_GetString
add esp, 4
mov dword [esp + 0x10], eax
mov eax, dword [0x100d3540]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1006e13f
mov ecx, dword [esi]
lea eax, [esp + 0x30]
push eax
push 0xffffffffffffffff
push ecx
push 0
call sym.tcl85.dll_Tcl_ExternalToUtfDString
add esp, 0x10
jmp 0x1006e1ac
lea ecx, [eax + 4]
mov dword [esp + 0x14], ecx
cmp dword [ecx], ebx
jne 0x1006e177
lea esi, [eax + 0xc]
mov eax, dword [esi]
cmp dword [eax + 0xc], ebx
jne 0x1006e164
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 [esi]
mov ecx, dword [esp + 0x18]
mov edx, dword [eax + 0xc]
push ecx
call edx
mov ecx, dword [esp + 0x18]
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 + 0x24], eax
call sym.tcl85.dll_Tcl_NewStringObj
mov ecx, dword [esp + 0x24]
push 1
push ecx
mov esi, eax
inc dword [esi]
push 0
push esi
push edi
call sym.tcl85.dll_Tcl_ObjSetVar2
dec dword [esi]
add esp, 0x24
cmp dword [esi], ebx
mov dword [esp + 0x14], eax
jg 0x1006e1f2
push esi
call sym.tcl85.dll_TclFreeObj
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1006e208
cmp dword [eax + 4], ebx
jne 0x1006e208
push eax
call sym.tcl85.dll_Tcl_GetString
add esp, 4
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x3c]
cmp eax, edx
je 0x1006e21e
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov ecx, dword [0x100d3554]
dec dword [ebp + 8]
add dword [esp + 0xc], 4
lea eax, [esp + 0x3c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0xc8
mov byte [esp + 0x3c], bl
test ecx, ecx
jne 0x1006e253
call sym.tcl85.dll_TclAllocateFreeObjects
mov ecx, dword [0x100d3554]
mov edx, dword [ecx + 0x10]
lea eax, [ecx + 0x10]
mov dword [0x100d3554], edx
mov edx, dword [ebp + 8]
push 0xffffffffffffffff
push str.argc
mov dword [esp + 0x1c], ecx
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [eax], edx
mov dword [ecx + 0xc], 0x100d1604
call sym.tcl85.dll_Tcl_NewStringObj
mov esi, eax
mov eax, dword [esp + 0x1c]
inc dword [esi]
push 1
push eax
push 0
push esi
push edi
call sym.tcl85.dll_Tcl_ObjSetVar2
dec dword [esi]
add esp, 0x1c
cmp dword [esi], ebx
jg 0x1006e2a6
push esi
call sym.tcl85.dll_TclFreeObj
add esp, 4
mov eax, dword [0x100d3554]
xor esi, esi
cmp eax, esi
jne 0x1006e2bb
call sym.tcl85.dll_TclAllocateFreeObjects
mov eax, dword [0x100d3554]
mov ecx, dword [eax + 0x10]
mov edx, dword [0x100d15c4]
mov dword [esp + 0x10], eax
mov dword [0x100d3554], ecx
mov dword [eax], esi
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
cmp dword [ebp + 8], esi
je 0x1006e342
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
dec dword [ebp + 8]
lea ecx, [esp + 0x108]
push ecx
push 0xffffffffffffffff
push eax
push 0
call sym.tcl85.dll_Tcl_ExternalToUtfDString
mov edx, dword [esp + 0x11c]
mov eax, dword [esp + 0x118]
push edx
push eax
add esi, 4
call sym.tcl85.dll_Tcl_NewStringObj
mov ecx, dword [esp + 0x28]
push eax
push ecx
push 0
call sym.tcl85.dll_Tcl_ListObjAppendElement
mov eax, dword [esp + 0x12c]
lea edx, [esp + 0x138]
add esp, 0x24
cmp eax, edx
je 0x1006e33d
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
cmp dword [ebp + 8], ebx
jne 0x1006e2e2
push 0xffffffffffffffff
push str.argv
call sym.tcl85.dll_Tcl_NewStringObj
mov esi, eax
mov eax, dword [esp + 0x18]
inc dword [esi]
push 1
push eax
push 0
push esi
push edi
call sym.tcl85.dll_Tcl_ObjSetVar2
dec dword [esi]
add esp, 0x1c
cmp dword [esi], ebx
jg 0x1006e374
push esi
call sym.tcl85.dll_TclFreeObj
add esp, 4
push 0
call dword [sym.imp.MSVCR90.dll__isatty]
add esp, 4
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x18], ebx
jne 0x1006e392
test eax, eax
mov eax, 0x100be4f0
jne 0x1006e397
mov eax, 0x100bc65c
push 0xffffffffffffffff
push eax
call sym.tcl85.dll_Tcl_NewStringObj
push 0xffffffffffffffff
push str.tcl_interactive
mov dword [esp + 0x24], eax
call sym.tcl85.dll_Tcl_NewStringObj
mov ecx, dword [esp + 0x24]
push 1
push ecx
mov esi, eax
inc dword [esi]
push 0
push esi
push edi
call sym.tcl85.dll_Tcl_ObjSetVar2
dec dword [esi]
add esp, 0x24
cmp dword [esi], ebx
mov dword [esp + 0x14], eax
jg 0x1006e3d9
push esi
call sym.tcl85.dll_TclFreeObj
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1006e3ef
cmp dword [eax + 4], ebx
jne 0x1006e3ef
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 + 0x28]
add esp, 4
test eax, eax
je 0x1006e473
push 8
call sym.tcl85.dll_Tcl_GetStdChannel
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x1006e473
mov edx, eax
mov esi, dword [edx]
mov edx, 4
call fcn.1005e840
test eax, eax
jne 0x1006e439
mov edx, dword [esp + 0xc]
or eax, 0xffffffff
mov ecx, str.application_specific_initialization_failed:
call fcn.1005c110
push edi
call sym.tcl85.dll_Tcl_GetObjResult
mov esi, dword [esp + 0x10]
add esp, 4
push eax
push esi
call sym.tcl85.dll_Tcl_WriteObj
mov esi, dword [esi]
add esp, 8
mov edx, 4
call fcn.1005e840
test eax, eax
jne 0x1006e473
mov edx, dword [esp + 0xc]
mov eax, 1
mov ecx, 0x100b3990
call fcn.1005c110
test byte [edi + 0x100], 1
jne 0x1006e953
cmp dword [edi + 0x218], ebx
jne 0x1006e953
mov eax, dword [0x100d3544]
test eax, eax
je 0x1006e49e
push eax
call sym.tcl85.dll_Tcl_GetString
add esp, 4
mov ecx, dword [0x100d3540]
test ecx, ecx
je 0x1006e5c6
push eax
push ecx
push edi
call sym.tcl85.dll_Tcl_FSEvalFileEx
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1006e953
push 8
call sym.tcl85.dll_Tcl_GetStdChannel
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x1006e5bc
push esi
push edi
call sym.tcl85.dll_Tcl_GetReturnOptions
mov esi, dword [0x100d3554]
add esp, 8
mov dword [esp + 0x10], eax
test esi, esi
jne 0x1006e4fa
call sym.tcl85.dll_TclAllocateFreeObjects
mov esi, dword [0x100d3554]
mov eax, dword [esi + 0x10]
push 0xb
mov dword [0x100d3554], eax
mov dword [esi], ebx
call dword [sym.imp.MSVCR90.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1006e524
push 0xb
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
mov dword [esi + 4], ebx
mov ecx, dword [str._errorinfo]
mov dword [ebx], ecx
mov edx, dword [0x100bd098]
mov dword [ebx + 4], edx
mov ax, word [0x100bd09c]
mov word [ebx + 8], ax
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 4]
lea edx, [esp + 0x24]
push edx
push esi
mov byte [ecx + 0xa], 0
inc dword [esi]
push eax
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 0x1006e57e
push esi
call sym.tcl85.dll_TclFreeObj
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1006e594
mov ecx, dword [esp + 0xc]
push eax
push ecx
call sym.tcl85.dll_Tcl_WriteObj
add esp, 8
mov edx, dword [esp + 0xc]
push 1
push 0x100b3990
push edx
call sym.tcl85.dll_Tcl_WriteChars
mov eax, dword [esp + 0x1c]
dec dword [eax]
add esp, 0xc
cmp dword [eax], 0
jg 0x1006e5bc
push eax
call sym.tcl85.dll_TclFreeObj
add esp, 4
mov ebx, 1
jmp 0x1006e989
push edi
call sym.tcl85.dll_Tcl_SourceRCFile
add esp, 4
cmp dword [edi + 0x218], ebx
jne 0x1006e953
call sym.tcl85.dll_Tcl_DbNewObj
mov ebx, eax
inc dword [ebx]
push 3
lea eax, [esp + 0x20]
push eax
push str.tcl_interactive
push edi
call sym.tcl85.dll_Tcl_LinkVar
push 2
call sym.tcl85.dll_Tcl_GetStdChannel
add esp, 0x14
mov esi, eax
push 4
mov dword [esp + 0x10], esi
call sym.tcl85.dll_Tcl_GetStdChannel
add esp, 4
test esi, esi
je 0x1006e953
test byte [edi + 0x100], 1
jne 0x1006e953
cmp dword [0x100d3548], 0
jne 0x1006e82d
cmp dword [esp + 0x1c], 0
je 0x1006e676
lea ecx, [esp + 0x20]
push ecx
call fcn.1006ed00
add esp, 4
test byte [edi + 0x100], 1
jne 0x1006e953
cmp dword [edi + 0x218], 0
jne 0x1006e953
push 2
call sym.tcl85.dll_Tcl_GetStdChannel
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x1006e953
mov eax, dword [ebx]
cmp eax, 1
jle 0x1006e69a
dec eax
mov dword [ebx], eax
test eax, eax
jg 0x1006e68d
push ebx
call sym.tcl85.dll_TclFreeObj
add esp, 4
push ebx
call sym.tcl85.dll_Tcl_DuplicateObj
mov ebx, eax
add esp, 4
inc dword [ebx]
mov esi, dword [esp + 0xc]
push ebx
push esi
call sym.tcl85.dll_Tcl_GetsObj
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jge 0x1006e6c4
mov edx, dword [esi]
test dword [edx + 4], 0x800
je 0x1006e953
jmp 0x1006e948
mov eax, dword [ebx]
cmp eax, 1
jle 0x1006e6e8
dec eax
mov dword [ebx], eax
test eax, eax
jg 0x1006e6db
push ebx
call sym.tcl85.dll_TclFreeObj
add esp, 4
push ebx
call sym.tcl85.dll_Tcl_DuplicateObj
mov ebx, eax
add esp, 4
inc dword [ebx]
push 0
push accept
push 1
push 0x100b3990
push ebx
call sym.tcl85.dll_Tcl_AppendLimitedToObj
add esp, 0x14
push ebx
call sym.tcl85.dll_TclObjCommandComplete
add esp, 4
test eax, eax
jne 0x1006e719
mov dword [esp + 0x20], 2
jmp 0x1006e948
lea eax, [esp + 0x18]
push eax
push ebx
mov dword [esp + 0x28], 1
call sym.tcl85.dll_Tcl_GetStringFromObj
mov eax, dword [esp + 0x20]
dec eax
push eax
push ebx
mov dword [esp + 0x28], eax
call sym.tcl85.dll_Tcl_SetObjLength
push 0x20000
push ebx
push edi
call sym.tcl85.dll_Tcl_RecordAndEvalObj
add esp, 0x1c
push 2
mov dword [esp + 0x28], eax
call sym.tcl85.dll_Tcl_GetStdChannel
add esp, 4
push 4
mov dword [esp + 0x10], eax
call sym.tcl85.dll_Tcl_GetStdChannel
add esp, 4
push 8
mov dword [esp + 0x14], eax
call sym.tcl85.dll_Tcl_GetStdChannel
dec dword [ebx]
add esp, 4
cmp dword [ebx], 0
mov esi, eax
jg 0x1006e787
push ebx
call sym.tcl85.dll_TclFreeObj
add esp, 4
call sym.tcl85.dll_Tcl_DbNewObj
mov ebx, eax
inc dword [ebx]
cmp dword [esp + 0x24], 0
je 0x1006e7c4
test esi, esi
je 0x1006e948
push edi
call sym.tcl85.dll_Tcl_GetObjResult
add esp, 4
push eax
push esi
call sym.tcl85.dll_Tcl_WriteObj
push 1
push 0x100b3990
push esi
call sym.tcl85.dll_Tcl_WriteChars
add esp, 0x14
jmp 0x1006e948
cmp dword [esp + 0x1c], 0
je 0x1006e948
push edi
call sym.tcl85.dll_Tcl_GetObjResult
add esp, 4
lea ecx, [esp + 0x18]
mov esi, eax
inc dword [esi]
push ecx
push esi
call sym.tcl85.dll_Tcl_GetStringFromObj
add esp, 8
cmp dword [esp + 0x18], 0
jle 0x1006e817
cmp dword [esp + 0x10], 0
je 0x1006e817
mov edx, dword [esp + 0x10]
push esi
push edx
call sym.tcl85.dll_Tcl_WriteObj
mov eax, dword [esp + 0x18]
push 1
push 0x100b3990
push eax
call sym.tcl85.dll_Tcl_WriteChars
add esp, 0x14
dec dword [esi]
cmp dword [esi], 0
jg 0x1006e948
push esi
call sym.tcl85.dll_TclFreeObj
jmp 0x1006e945
xor esi, esi
cmp dword [esp + 0xc], esi
je 0x1006e8bf
cmp dword [esp + 0x1c], esi
je 0x1006e84c
lea ecx, [esp + 0x20]
push ecx
call fcn.1006ed00
add esp, 4
push 0x14
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x1006e86c
push 0x14
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
mov dword [esi], edx
mov eax, dword [esp + 0x1c]
push str.tcl_interactive
push edi
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edi
call sym.tcl85.dll_Tcl_UnlinkVar
mov edx, dword [esp + 0x30]
push 3
lea eax, [esi + 4]
push eax
push str.tcl_interactive
push edx
call sym.tcl85.dll_Tcl_LinkVar
mov eax, dword [esp + 0x24]
push esi
push 0x1006eaa0
push 2
push eax
call sym.tcl85.dll_Tcl_CreateChannelHandler
mov edi, dword [esp + 0x50]
add esp, 0x28
call dword [0x100d3548]
cmp dword [esp + 0xc], 0
mov dword [0x100d3548], 0
je 0x1006e926
mov ecx, dword [esi + 4]
push str.tcl_interactive
push edi
mov dword [esp + 0x24], ecx
call sym.tcl85.dll_Tcl_UnlinkVar
push 3
lea edx, [esp + 0x28]
push edx
push str.tcl_interactive
push edi
call sym.tcl85.dll_Tcl_LinkVar
mov eax, dword [esi + 0xc]
mov ebx, dword [esi + 8]
mov dword [esp + 0x38], eax
mov eax, dword [esi]
add esp, 0x18
test eax, eax
je 0x1006e91c
push esi
push 0x1006eaa0
push eax
call sym.tcl85.dll_Tcl_DeleteChannelHandler
add esp, 0xc
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push 2
call sym.tcl85.dll_Tcl_GetStdChannel
add esp, 4
push 4
mov dword [esp + 0x10], eax
call sym.tcl85.dll_Tcl_GetStdChannel
add esp, 4
push 8
call sym.tcl85.dll_Tcl_GetStdChannel
add esp, 4
cmp dword [esp + 0xc], 0
jne 0x1006e618
mov eax, dword [0x100d3548]
test eax, eax
je 0x1006e971
cmp dword [edi + 0x218], 0
jne 0x1006e971
call eax
mov dword [0x100d3548], 0
test ebx, ebx
je 0x1006e985
dec dword [ebx]
cmp dword [ebx], 0
jg 0x1006e985
push ebx
call sym.tcl85.dll_TclFreeObj
add esp, 4
mov ebx, dword [esp + 0x2c]
test byte [edi + 0x100], 1
jne 0x1006e9f4
cmp dword [edi + 0x218], 0
jne 0x1006e9cd
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 0x1006e9cd
push esi
call sym.tcl85.dll_TclFreeObj
add esp, 4
mov eax, dword [edi + 0x100]
test al, 1
jne 0x1006e9f4
inc dword [edi + 0xf0]
or eax, 1
push 0x1000c080
push edi
mov dword [edi + 0x100], eax
call sym.tcl85.dll_Tcl_EventuallyFree
add esp, 8
mov eax, dword [0x100d3540]
test eax, eax
je 0x1006ea0d
dec dword [eax]
cmp dword [eax], 0
jg 0x1006ea0d
push eax
call sym.tcl85.dll_TclFreeObj
add esp, 4
mov eax, dword [0x100d3544]
mov dword [0x100d3540], 0
test eax, eax
je 0x1006ea30
dec dword [eax]
cmp dword [eax], 0
jg 0x1006ea30
push eax
call sym.tcl85.dll_TclFreeObj
add esp, 4
push edi
mov dword [0x100d3544], 0
call sym.tcl85.dll_Tcl_Release
mov eax, dword [0x100d351c]
add esp, 4
test eax, eax
je 0x1006ea74
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.100b1b48
mov esp, ebp
pop ebp
ret
call sym.tcl85.dll_Tcl_Finalize
push ebx
call dword [sym.imp.MSVCR90.dll_exit]
int3