Function at 0x100378c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x140
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x13c], eax
or eax, 0xffffffff
push ebx
mov ebx, ecx
mov ecx, dword [esi + 0x884]
push ebp
mov ebp, dword [esp + 0x14c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x4c]
push edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x5c], eax
mov dword [esp + 0x28], ecx
test ebx, ebx
je 0x10037933
mov edi, dword [ebx + 0x110]
test edi, edi
je 0x10037933
push 0
push edi
mov eax, 0x5e
call fcn.100465f0
mov edi, dword [edi]
add esp, 8
add dword [edi + 0x10], 0x178
mov edi, eax
mov dword [esp + 0x10], eax
jmp 0x1003795d
push 0x178
call dword [sym.imp.MSVCR90.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x10037959
push 0x178
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
mov dword [esp + 0x10], edi
cmp dword [esi], 0
jne 0x1003796f
push str.TclCompileScript___called_on_uninitialized_CompileEnv
call sym.tcl85.dll_Tcl_Panic
add esp, 4
cmp dword [esp + 0x154], 0
lea edx, [esp + 0x78]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0xc8
mov byte [esp + 0x78], 0
jge 0x100379b0
mov eax, ebp
lea edx, [eax + 1]
jmp 0x100379a0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100379a0
sub eax, edx
mov dword [esp + 0x154], eax
push ebx
call sym.tcl85.dll_Tcl_ResetResult
mov eax, dword [esi + 0xc]
add esp, 4
mov dword [esp + 0x24], 1
test eax, eax
je 0x100379d4
mov eax, dword [eax + 8]
mov ecx, dword [eax + 4]
mov dword [esp + 0x50], ecx
jmp 0x100379dc
mov dword [esp + 0x50], 0
mov edx, dword [esp + 0x154]
mov eax, dword [esi + 0x888]
mov ecx, dword [esi + 0x894]
mov dword [esp + 0x34], ebp
mov ebp, dword [sym.imp.MSVCR90.dll_free]
mov dword [esp + 0x30], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push edi
push 0
push edx
push eax
push ebx
call sym.tcl85.dll_Tcl_ParseCommand
add esp, 0x14
test eax, eax
jne 0x10038393
cmp dword [edi + 0x10], eax
jle 0x10038317
xor ebp, ebp
mov dword [esp + 0x40], ebp
cmp dword [esp + 0x24], ebp
jne 0x10037a9d
mov ecx, dword [esi + 0x4c]
cmp ecx, dword [esi + 0x50]
jne 0x10037a49
push esi
call sym.tcl85.dll_TclExpandCodeArray
add esp, 4
mov edx, dword [esi + 0x4c]
mov byte [edx], 3
inc dword [esi + 0x4c]
mov ecx, dword [esi + 0x4c]
mov dword [esi + 0x88c], 0
mov eax, dword [0x100d2be0]
test eax, eax
je 0x10037a88
cmp eax, 0x80000000
jne 0x10037a76
mov eax, 1
jmp 0x10037a85
test eax, eax
jge 0x10037a85
mov edx, dword [esi + 0x20]
cmp dword [esi + 0x1c], edx
jge 0x10037a85
mov dword [esi + 0x1c], edx
add dword [esi + 0x20], eax
sub ecx, dword [esi + 0x48]
mov eax, dword [esp + 0x38]
sub ecx, dword [esp + 0x3c]
mov edx, dword [esi + 0x78]
shl eax, 4
mov dword [edx + eax + 4], ecx
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
lea edx, [ecx + eax - 1]
mov dword [esp + 0x24], eax
cmp dword [edi + 0x30], edx
jne 0x10037ab5
dec eax
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x14]
xor ecx, ecx
cmp dword [edi + 0x10], ecx
jle 0x10037ae3
nop
cmp dword [eax], 0x100
je 0x10037ada
mov edx, dword [eax + 0xc]
inc ecx
shl edx, 4
cmp ecx, dword [edi + 0x10]
lea eax, [eax + edx + 0x10]
jl 0x10037ac0
jmp 0x10037ae3
mov ebp, 1
mov dword [esp + 0x40], ebp
mov ecx, dword [esi + 0x4c]
sub ecx, dword [esi + 0x48]
inc dword [esi + 0x10]
mov eax, dword [esi + 0x10]
push ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [edi + 8]
sub ecx, dword [esi + 4]
dec eax
push ecx
mov ebx, esi
mov dword [esp + 0x40], eax
call fcn.10039990
add esp, 8
test ebp, ebp
je 0x10037b62
mov edx, dword [esi + 0x4c]
cmp edx, dword [esi + 0x50]
jne 0x10037b1f
push esi
call sym.tcl85.dll_TclExpandCodeArray
add esp, 4
mov eax, dword [esi + 0x4c]
mov byte [eax], 0x64
mov edi, 1
add dword [esi + 0x4c], edi
mov dword [esi + 0x88c], 0
mov eax, dword [0x100d34f8]
test eax, eax
je 0x10037b67
cmp eax, 0x80000000
jne 0x10037b4e
mov eax, edi
add dword [esi + 0x20], eax
jmp 0x10037b67
test eax, eax
jge 0x10037b5d
mov ecx, dword [esi + 0x20]
cmp dword [esi + 0x1c], ecx
jge 0x10037b5d
mov dword [esi + 0x1c], ecx
add dword [esi + 0x20], eax
jmp 0x10037b67
mov edi, 1
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 8]
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0xc]
cmp eax, ecx
jae 0x10037b91
lea ebx, [ebx]
cmp byte [eax], 0xa
jne 0x10037b87
add ebp, edi
add eax, edi
cmp eax, ecx
jb 0x10037b80
mov dword [esp + 0xc], ebp
mov ebx, dword [esp + 0x14]
mov eax, ecx
sub eax, dword [esi + 4]
test ebx, ebx
je 0x10037bb9
mov edi, edi
mov edx, dword [ebx]
test edx, edx
jl 0x10037bb1
cmp eax, edx
jl 0x10037bb1
add ebp, edi
add ebx, 4
jne 0x10037ba0
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], ebp
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x28]
push esi
lea edx, [esp + 0x64]
push edx
mov edx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [ebp + 0x10]
push edx
push ecx
mov ecx, dword [ebp + 0x14]
push ecx
push eax
push ebx
call fcn.10039a90
mov eax, dword [ebx + 0x14]
mov edx, dword [esp + 0x34]
mov ebp, dword [ebp + 0x14]
xor ebx, ebx
sub eax, edi
add esp, 0x24
cmp dword [edx + 0x10], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebp
jle 0x100380fd
shl eax, 4
mov dword [esp + 0x48], eax
mov edi, edi
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0xc]
mov eax, dword [esp + 0x48]
mov edx, dword [edx + eax + 8]
mov edx, dword [edx + ebx*4]
mov dword [esi + 0x888], edx
mov ecx, dword [ecx + 0xc]
mov edx, dword [ecx + eax + 0xc]
mov eax, dword [edx + ebx*4]
mov dword [esi + 0x894], eax
cmp dword [ebp], 2
je 0x10037ced
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x1c]
push esi
push ecx
lea edx, [ebp + 0x10]
push edx
push eax
call fcn.10038570
add esp, 0x10
cmp dword [ebp], 0x100
jne 0x100380dc
mov ecx, dword [esi + 0x4c]
add ecx, 5
cmp ecx, dword [esi + 0x50]
jbe 0x10037c79
push esi
call sym.tcl85.dll_TclExpandCodeArray
add esp, 4
mov edx, dword [esi + 0x4c]
mov byte [edx], 0x65
add dword [esi + 0x4c], edi
mov eax, dword [esi + 0x4c]
mov cl, byte [esi + 0x23]
mov byte [eax], cl
add dword [esi + 0x4c], edi
mov eax, dword [esi + 0x4c]
movzx edx, byte [esi + 0x22]
mov byte [eax], dl
add dword [esi + 0x4c], edi
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x20]
shr ecx, 8
mov byte [eax], cl
add dword [esi + 0x4c], edi
mov eax, dword [esi + 0x4c]
movzx edx, byte [esi + 0x20]
mov byte [eax], dl
add dword [esi + 0x4c], edi
mov dword [esi + 0x88c], 0
mov eax, dword [0x100d3510]
test eax, eax
je 0x100380dc
cmp eax, 0x80000000
jne 0x10037cd6
mov eax, edi
sub eax, dword [esi + 0x20]
test eax, eax
jge 0x10037ce5
mov ecx, dword [esi + 0x20]
cmp dword [esi + 0x1c], ecx
jge 0x10037ce5
mov dword [esi + 0x1c], ecx
add dword [esi + 0x20], eax
jmp 0x100380dc
test ebx, ebx
jne 0x10037fc8
cmp dword [esp + 0x40], ebx
jne 0x10037fc8
lea eax, [esp + 0x6c]
push ebx
push eax
call sym.tcl85.dll_Tcl_DStringSetLength
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x14]
push ecx
push edx
lea eax, [esp + 0x7c]
push eax
call sym.tcl85.dll_Tcl_DStringAppend
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x80]
add esp, 0x14
push ebx
mov ebx, dword [esp + 0x20]
push ecx
push edx
push ebx
call sym.tcl85.dll_Tcl_FindCommand
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x10037f6c
cmp dword [ebp + 0x10], 0
je 0x10037f6c
test byte [ebp + 0x2c], 4
jne 0x10037f6c
test byte [ebx + 0x100], 0x20
jne 0x10037f6c
mov ecx, dword [esi + 0x4c]
mov eax, dword [esi + 0x10]
mov ebx, ecx
sub ebx, dword [esi + 0x48]
cmp dword [esi + 0x88c], 0
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ebx
mov dword [esp + 0x4c], 0
je 0x10037e16
test ebx, ebx
je 0x10037ebc
movzx eax, byte [ecx - 4]
movzx ebx, byte [ecx - 3]
movzx edi, byte [ecx - 2]
mov dl, byte [ecx - 1]
shl eax, 8
or eax, ebx
movzx ebx, byte [ecx - 3]
shl eax, 8
or eax, edi
shl eax, 8
movzx ebp, dl
or eax, ebp
inc eax
shr eax, 0x18
mov byte [ecx - 4], al
movzx eax, al
shl eax, 8
or eax, ebx
movzx ebx, byte [ecx - 4]
shl eax, 8
or eax, edi
shl eax, 8
or eax, ebp
inc eax
shl ebx, 8
shr eax, 0x10
mov byte [ecx - 3], al
movzx eax, al
or ebx, eax
shl ebx, 8
or ebx, edi
shl ebx, 8
or ebx, ebp
mov ebp, dword [esp + 0x18]
inc ebx
shr ebx, 8
inc dl
mov byte [ecx - 2], bl
mov ebx, dword [esp + 0x54]
mov byte [ecx - 1], dl
mov edi, 1
jmp 0x10037ebc
add ecx, 5
cmp ecx, dword [esi + 0x50]
jbe 0x10037e27
push esi
call sym.tcl85.dll_TclExpandCodeArray
add esp, 4
mov ecx, dword [esi + 0x4c]
mov byte [ecx], 0x69
add dword [esi + 0x4c], edi
mov eax, dword [esi + 0x4c]
mov byte [eax], 0
add dword [esi + 0x4c], edi
mov eax, dword [esi + 0x4c]
mov byte [eax], 0
add dword [esi + 0x4c], edi
mov eax, dword [esi + 0x4c]
mov byte [eax], 0
add dword [esi + 0x4c], edi
mov eax, dword [esi + 0x4c]
mov byte [eax], 0
add dword [esi + 0x4c], edi
mov edx, dword [esi + 0x4c]
mov dword [esi + 0x88c], edi
mov eax, dword [0x100d3570]
test eax, eax
je 0x10037e83
cmp eax, 0x80000000
jne 0x10037e71
mov eax, edi
jmp 0x10037e80
test eax, eax
jge 0x10037e80
mov ecx, dword [esi + 0x20]
cmp dword [esi + 0x1c], ecx
jge 0x10037e80
mov dword [esi + 0x1c], ecx
add dword [esi + 0x20], eax
add edx, 4
cmp edx, dword [esi + 0x50]
jbe 0x10037e94
push esi
call sym.tcl85.dll_TclExpandCodeArray
add esp, 4
mov edx, dword [esi + 0x4c]
mov byte [edx], 0
add dword [esi + 0x4c], edi
mov eax, dword [esi + 0x4c]
mov byte [eax], 0
add dword [esi + 0x4c], edi
mov eax, dword [esi + 0x4c]
mov byte [eax], 0
add dword [esi + 0x4c], edi
mov eax, dword [esi + 0x4c]
mov byte [eax], 1
add dword [esi + 0x4c], edi
mov dword [esp + 0x4c], edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 0x10]
push esi
push ebp
push eax
push ecx
call edx
add esp, 0x10
test eax, eax
je 0x1003813d
cmp dword [esi + 0x88c], 0
je 0x10037f5d
test ebx, ebx
je 0x10037f5d
mov eax, dword [esi + 0x4c]
movzx ecx, byte [eax - 4]
movzx ebx, byte [eax - 3]
movzx edi, byte [eax - 2]
mov dl, byte [eax - 1]
shl ecx, 8
or ecx, ebx
sub eax, 4
movzx ebx, byte [eax + 1]
shl ecx, 8
or ecx, edi
shl ecx, 8
movzx ebp, dl
or ecx, ebp
dec ecx
shr ecx, 0x18
mov byte [eax], cl
movzx ecx, cl
shl ecx, 8
or ecx, ebx
movzx ebx, byte [eax]
shl ecx, 8
or ecx, edi
shl ecx, 8
or ecx, ebp
dec ecx
shl ebx, 8
shr ecx, 0x10
mov byte [eax + 1], cl
movzx ecx, cl
or ebx, ecx
shl ebx, 8
or ebx, edi
shl ebx, 8
or ebx, ebp
mov ebp, dword [esp + 0x18]
dec ebx
shr ebx, 8
dec dl
mov byte [eax + 2], bl
mov ebx, dword [esp + 0x54]
mov byte [eax + 3], dl
mov edi, 1
mov eax, dword [esi + 0x48]
mov edx, dword [esp + 0x58]
add eax, ebx
mov dword [esi + 0x10], edx
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x14]
push 2
push ecx
mov ecx, dword [eax + 0x18]
push esi
call fcn.1006d1e0
add esp, 0xc
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebp, ebp
je 0x10037fae
mov edx, dword [esi + 0x58]
mov eax, dword [esp + 0x1c]
shl ebx, 4
mov ebx, dword [edx + ebx + 4]
push eax
mov edi, ebp
call fcn.10079690
mov ebx, dword [esp + 0x1c]
add esp, 4
mov edi, 1
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x10], edi
jne 0x1003801a
mov edx, dword [esp + 0x1c]
push ebx
push esi
push edx
call sym.tcl85.dll_TclHideLiteral
add esp, 0xc
jmp 0x1003801a
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
push 0
push eax
push esi
call fcn.1006d1e0
add esp, 0xc
cmp dword [esi + 0x894], 0
mov dword [esp + 0x18], eax
je 0x10038016
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0xc]
mov eax, dword [esp + 0x48]
mov ecx, dword [edx + eax + 0xc]
mov edx, dword [ebp + 0x14]
sub edx, dword [esi + 4]
mov ebp, dword [esi + 0x58]
mov eax, dword [ecx + ebx*4]
push edx
mov edx, dword [esp + 0x1c]
shl edx, 4
mov ecx, dword [edx + ebp + 4]
call fcn.10077370
add esp, 4
mov ebx, dword [esp + 0x18]
cmp ebx, 0xff
jg 0x10038058
mov eax, dword [esi + 0x4c]
add eax, 2
cmp eax, dword [esi + 0x50]
jbe 0x10038036
push esi
call sym.tcl85.dll_TclExpandCodeArray
add esp, 4
mov ecx, dword [esi + 0x4c]
mov byte [ecx], 1
add dword [esi + 0x4c], edi
mov eax, dword [esi + 0x4c]
mov byte [eax], bl
add dword [esi + 0x4c], edi
mov dword [esi + 0x88c], 0
mov eax, dword [0x100d2bb0]
jmp 0x100380b3
mov edx, dword [esi + 0x4c]
add edx, 5
cmp edx, dword [esi + 0x50]
jbe 0x1003806c
push esi
call sym.tcl85.dll_TclExpandCodeArray
add esp, 4
mov eax, dword [esi + 0x4c]
mov byte [eax], 2
add dword [esi + 0x4c], edi
mov eax, dword [esi + 0x4c]
mov ecx, ebx
shr ecx, 0x18
mov byte [eax], cl
add dword [esi + 0x4c], edi
mov eax, dword [esi + 0x4c]
mov edx, ebx
shr edx, 0x10
mov byte [eax], dl
add dword [esi + 0x4c], edi
mov eax, dword [esi + 0x4c]
mov ecx, ebx
shr ecx, 8
mov byte [eax], cl
add dword [esi + 0x4c], edi
mov eax, dword [esi + 0x4c]
mov byte [eax], bl
add dword [esi + 0x4c], edi
mov dword [esi + 0x88c], 0
mov eax, dword [0x100d2bc8]
test eax, eax
je 0x100380d4
cmp eax, 0x80000000
jne 0x100380c2
mov eax, edi
sub eax, ebx
test eax, eax
jge 0x100380d1
mov ecx, dword [esi + 0x20]
cmp dword [esi + 0x1c], ecx
jge 0x100380d1
mov dword [esi + 0x1c], ecx
add dword [esi + 0x20], eax
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x20]
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x10]
shl edx, 4
add ebx, edi
cmp ebx, dword [eax + 0x10]
lea ebp, [edx + ebp + 0x10]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebp
jl 0x10037c10
xor ebp, ebp
cmp dword [esp + 0x40], ebp
je 0x100381a3
mov edx, dword [esi + 0x4c]
cmp edx, dword [esi + 0x50]
jne 0x1003811a
push esi
call sym.tcl85.dll_TclExpandCodeArray
add esp, 4
mov eax, dword [esi + 0x4c]
mov byte [eax], 0x66
add dword [esi + 0x4c], edi
mov dword [esi + 0x88c], ebp
mov eax, dword [0x100d3528]
cmp eax, ebp
je 0x10038188
cmp eax, 0x80000000
jne 0x10038176
mov eax, edi
jmp 0x10038185
cmp dword [esp + 0x4c], 0
je 0x10038280
mov eax, dword [esi + 0x4c]
mov edi, dword [esi + 0x48]
sub eax, ebx
sub eax, edi
mov ecx, eax
shr ecx, 0x18
mov byte [ebx + edi + 1], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
shr ecx, 8
mov byte [ebx + edi + 2], dl
mov byte [ebx + edi + 3], cl
mov byte [ebx + edi + 4], al
jmp 0x10038280
cmp eax, ebp
jge 0x10038185
mov ecx, dword [esi + 0x20]
cmp dword [esi + 0x1c], ecx
jge 0x10038185
mov dword [esi + 0x1c], ecx
add dword [esi + 0x20], eax
mov ecx, edi
sub ecx, ebx
jns 0x10038199
mov eax, dword [esi + 0x20]
cmp dword [esi + 0x1c], eax
jge 0x10038199
mov dword [esi + 0x1c], eax
sub edi, ebx
add dword [esi + 0x20], edi
jmp 0x10038280
cmp ebx, ebp
jle 0x10038280
mov eax, dword [esi + 0x4c]
sub eax, dword [esi + 0x48]
lea edx, [esp + 0x68]
push edx
push eax
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 0x48]
lea ecx, [eax + 0x18]
push ecx
call edx
mov ecx, dword [esp + 0x50]
add esp, 0xc
cmp ebx, 0xff
mov dword [eax + 0xc], ecx
jg 0x10038208
mov edx, dword [esi + 0x4c]
add edx, 2
cmp edx, dword [esi + 0x50]
jbe 0x100381ea
push esi
call sym.tcl85.dll_TclExpandCodeArray
add esp, 4
mov eax, dword [esi + 0x4c]
mov byte [eax], 6
add dword [esi + 0x4c], edi
mov eax, dword [esi + 0x4c]
mov byte [eax], bl
add dword [esi + 0x4c], edi
mov dword [esi + 0x88c], ebp
mov eax, dword [0x100d2c28]
jmp 0x1003825f
mov ecx, dword [esi + 0x4c]
add ecx, 5
cmp ecx, dword [esi + 0x50]
jbe 0x1003821c
push esi
call sym.tcl85.dll_TclExpandCodeArray
add esp, 4
mov edx, dword [esi + 0x4c]
mov byte [edx], 7
add dword [esi + 0x4c], edi
mov eax, dword [esi + 0x4c]
mov ecx, ebx
shr ecx, 0x18
mov byte [eax], cl
add dword [esi + 0x4c], edi
mov eax, dword [esi + 0x4c]
mov edx, ebx
shr edx, 0x10
mov byte [eax], dl
add dword [esi + 0x4c], edi
mov eax, dword [esi + 0x4c]
mov ecx, ebx
shr ecx, 8
mov byte [eax], cl
add dword [esi + 0x4c], edi
mov eax, dword [esi + 0x4c]
mov byte [eax], bl
add dword [esi + 0x4c], edi
mov dword [esi + 0x88c], ebp
mov eax, dword [0x100d2c40]
cmp eax, ebp
je 0x10038280
cmp eax, 0x80000000
jne 0x1003826e
mov eax, edi
sub eax, ebx
cmp eax, ebp
jge 0x1003827d
mov ecx, dword [esi + 0x20]
cmp dword [esi + 0x1c], ecx
jge 0x1003827d
mov dword [esi + 0x1c], ecx
add dword [esi + 0x20], eax
mov edi, dword [esi + 0x4c]
sub edi, dword [esi + 0x48]
mov ebx, dword [esp + 0x38]
sub edi, dword [esp + 0x3c]
test ebx, ebx
jl 0x10038297
cmp ebx, dword [esi + 0x10]
jl 0x100382a5
push ebx
push str.EnterCmdExtentData:_bad_command_index__d
call sym.tcl85.dll_Tcl_Panic
add esp, 8
cmp ebx, dword [esi + 0x7c]
jle 0x100382b8
push ebx
push str.EnterCmdExtentData:_missing_start_data_for_command__d
call sym.tcl85.dll_Tcl_Panic
add esp, 8
mov edx, dword [esp + 0x24]
mov ebp, dword [sym.imp.MSVCR90.dll_free]
mov eax, ebx
mov ebx, dword [esp + 0x28]
shl eax, 4
add eax, dword [esi + 0x78]
mov dword [esp + 0x24], 0
mov dword [eax + 4], edi
mov edi, dword [esp + 0x44]
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 0xc]
shl edi, 4
mov ecx, dword [eax + edi + 8]
push ecx
call ebp
mov edx, dword [ebx + 0xc]
mov eax, dword [edx + edi + 0xc]
add esp, 4
push eax
call ebp
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x64]
mov dword [ecx + edi + 8], edx
mov eax, dword [ebx + 0xc]
mov dword [eax + edi + 0xc], 0
mov edi, dword [esp + 0x14]
add esp, 4
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0xc]
add eax, ecx
sub edx, eax
add dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
cmp ecx, eax
jae 0x10038344
cmp byte [ecx], 0xa
jne 0x1003833b
inc edi
inc ecx
cmp ecx, eax
jb 0x10038335
mov dword [esp + 0xc], edi
mov edx, dword [esp + 0x14]
sub eax, dword [esi + 4]
test edx, edx
je 0x10038368
nop
mov ecx, dword [edx]
test ecx, ecx
jl 0x10038360
cmp eax, ecx
jl 0x10038360
inc edi
add edx, 4
jne 0x10038350
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], edi
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x14]
lea edi, [ebx + 0x38]
cmp eax, edi
je 0x1003837f
push eax
call ebp
add esp, 4
mov dword [ebx + 0x14], edi
cmp dword [esp + 0x30], 0
jle 0x100383bb
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
jmp 0x10037a05
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
lea edx, [ecx + eax - 1]
cmp dword [edi + 0x30], edx
jne 0x100383a3
dec eax
push eax
mov eax, dword [esp + 0x68]
push ecx
push eax
push ebx
call sym.tcl85.dll_Tcl_LogCommandInfo
push ebx
mov eax, esi
call fcn.1002bf50
add esp, 0x14
mov ecx, dword [esp + 0x5c]
cmp dword [esi + 0x4c], ecx
jne 0x10038526
mov ecx, dword [0x100d45d8]
xor ebx, ebx
cmp ecx, ebx
jne 0x10038410
push 0x960
call dword [sym.imp.MSVCR90.dll_malloc]
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x100383fa
push 0x960
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
xor ecx, ecx
mov eax, edi
mov edx, 0x64
mov dword [eax + 0x10], ecx
mov ecx, eax
add eax, 0x18
sub edx, 1
jne 0x10038403
mov eax, dword [0x100d25c4]
mov edx, dword [ecx + 0x10]
mov edi, ecx
mov dword [edi], ebx
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov ecx, dword [esi + 0x5c]
cmp ecx, dword [esi + 0x60]
mov dword [0x100d45d8], edx
jl 0x1003843a
mov ebx, esi
call fcn.1006d4a0
mov ebx, dword [esi + 0x5c]
mov eax, ebx
shl eax, 4
add eax, dword [esi + 0x58]
lea edx, [ebx + 1]
mov dword [esi + 0x5c], edx
mov dword [eax + 4], edi
mov ecx, 1
add dword [edi], ecx
cmp ebx, 0xff
mov dword [eax + 8], 0xffffffff
mov dword [eax], 0
mov eax, dword [esi + 0x4c]
jg 0x100384a5
add eax, 2
cmp eax, dword [esi + 0x50]
jbe 0x10038483
push esi
call sym.tcl85.dll_TclExpandCodeArray
add esp, 4
mov ecx, 1
mov edx, dword [esi + 0x4c]
mov byte [edx], 1
add dword [esi + 0x4c], ecx
mov eax, dword [esi + 0x4c]
mov byte [eax], bl
add dword [esi + 0x4c], ecx
mov dword [esi + 0x88c], 0
mov eax, dword [0x100d2bb0]
jmp 0x10038502
add eax, 5
cmp eax, dword [esi + 0x50]
jbe 0x100384bb
push esi
call sym.tcl85.dll_TclExpandCodeArray
add esp, 4
mov ecx, 1
mov edx, dword [esi + 0x4c]
mov byte [edx], 2
add dword [esi + 0x4c], ecx
mov eax, dword [esi + 0x4c]
mov edx, ebx
shr edx, 0x18
mov byte [eax], dl
add dword [esi + 0x4c], ecx
mov eax, dword [esi + 0x4c]
mov edx, ebx
shr edx, 0x10
mov byte [eax], dl
add dword [esi + 0x4c], ecx
mov eax, dword [esi + 0x4c]
mov edx, ebx
shr edx, 8
mov byte [eax], dl
add dword [esi + 0x4c], ecx
mov eax, dword [esi + 0x4c]
mov byte [eax], bl
add dword [esi + 0x4c], ecx
mov dword [esi + 0x88c], 0
mov eax, dword [0x100d2bc8]
test eax, eax
je 0x10038526
cmp eax, 0x80000000
jne 0x10038514
mov eax, 1
sub eax, ebx
test eax, eax
jge 0x10038523
mov ecx, dword [esi + 0x20]
cmp dword [esi + 0x1c], ecx
jge 0x10038523
mov dword [esi + 0x1c], ecx
add dword [esi + 0x20], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call sym.tcl85.dll_TclStackFree
mov eax, dword [esp + 0x74]
lea edx, [esp + 0x80]
add esp, 8
cmp eax, edx
je 0x1003854d
push eax
call ebp
add esp, 4
mov ecx, dword [esp + 0x148]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.100b30c8
add esp, 0x140
ret