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

Disassembly:
sub esp, 0x144
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push ebp
mov ebp, dword [esp + 0x150]
or eax, 0xffffffff
push esi
mov ebx, ecx
mov esi, edx
mov ecx, dword [esi + 0x884]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x4c]
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x64], eax
mov dword [esp + 0x30], ecx
test ebx, ebx
je 0x10036c16
mov edi, dword [ebx + 0x110]
test edi, edi
je 0x10036c16
push 0
push edi
mov eax, 0x5e
call fcn.100458c0
mov edi, dword [edi]
add esp, 8
add dword [edi + 0x10], 0x178
mov edi, eax
mov dword [esp + 0x1c], eax
jmp 0x10036c40
push 0x178
call dword [sym.imp.MSVCR90.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x10036c3c
push 0x178
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
mov dword [esp + 0x1c], edi
cmp dword [esi], 0
jne 0x10036c52
push str.TclCompileScript___called_on_uninitialized_CompileEnv
call sym.tcl85.dll_Tcl_Panic
add esp, 4
cmp dword [esp + 0x15c], 0
lea edx, [esp + 0x80]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0xc8
mov byte [esp + 0x80], 0
jge 0x10036c94
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10036c84
sub eax, edx
mov dword [esp + 0x15c], eax
push ebx
call sym.tcl85.dll_Tcl_ResetResult
mov eax, dword [esi + 0xc]
add esp, 4
mov dword [esp + 0x2c], 1
test eax, eax
je 0x10036cb8
mov eax, dword [eax + 8]
mov ecx, dword [eax + 4]
mov dword [esp + 0x58], ecx
jmp 0x10036cc0
mov dword [esp + 0x58], 0
mov edx, dword [esp + 0x15c]
mov eax, dword [esi + 0x888]
mov ecx, dword [esi + 0x894]
mov dword [esp + 0x3c], ebp
mov ebp, dword [sym.imp.MSVCR90.dll_free]
mov dword [esp + 0x38], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
lea esp, [esp]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
push edi
push 0
push edx
push eax
push ebx
call sym.tcl85.dll_Tcl_ParseCommand
add esp, 0x14
test eax, eax
jne 0x1003767d
cmp dword [edi + 0x10], eax
jle 0x1003760a
xor ebp, ebp
mov dword [esp + 0x48], ebp
cmp dword [esp + 0x2c], ebp
jne 0x10036d88
mov ecx, dword [esi + 0x4c]
cmp ecx, dword [esi + 0x50]
jne 0x10036d34
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 [0x100d1c68]
test eax, eax
je 0x10036d73
cmp eax, 0x80000000
jne 0x10036d61
mov eax, 1
jmp 0x10036d70
test eax, eax
jge 0x10036d70
mov edx, dword [esi + 0x20]
cmp dword [esi + 0x1c], edx
jge 0x10036d70
mov dword [esi + 0x1c], edx
add dword [esi + 0x20], eax
sub ecx, dword [esi + 0x48]
mov eax, dword [esp + 0x40]
sub ecx, dword [esp + 0x44]
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 + 0x2c], eax
cmp dword [edi + 0x30], edx
jne 0x10036da0
dec eax
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x14]
xor ecx, ecx
cmp dword [edi + 0x10], ecx
jle 0x10036dd3
lea ebx, [ebx]
cmp dword [eax], 0x100
je 0x10036dca
mov edx, dword [eax + 0xc]
inc ecx
shl edx, 4
cmp ecx, dword [edi + 0x10]
lea eax, [eax + edx + 0x10]
jl 0x10036db0
jmp 0x10036dd3
mov ebp, 1
mov dword [esp + 0x48], 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 + 0x48], ecx
mov ecx, dword [edi + 8]
sub ecx, dword [esi + 4]
dec eax
push ecx
mov ebx, esi
mov dword [esp + 0x48], eax
call fcn.10038c60
add esp, 8
test ebp, ebp
je 0x10036e52
mov edx, dword [esi + 0x4c]
cmp edx, dword [esi + 0x50]
jne 0x10036e0f
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 [0x100d2580]
test eax, eax
je 0x10036e57
cmp eax, 0x80000000
jne 0x10036e3e
mov eax, edi
add dword [esi + 0x20], eax
jmp 0x10036e57
test eax, eax
jge 0x10036e4d
mov ecx, dword [esi + 0x20]
cmp dword [esi + 0x1c], ecx
jge 0x10036e4d
mov dword [esi + 0x1c], ecx
add dword [esi + 0x20], eax
jmp 0x10036e57
mov edi, 1
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 8]
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x14]
cmp eax, ecx
jae 0x10036e81
lea ebx, [ebx]
cmp byte [eax], 0xa
jne 0x10036e77
add ebp, edi
add eax, edi
cmp eax, ecx
jb 0x10036e70
mov dword [esp + 0x14], ebp
mov ebx, dword [esp + 0x18]
mov eax, ecx
sub eax, dword [esi + 4]
test ebx, ebx
je 0x10036ea9
mov edi, edi
mov edx, dword [ebx]
test edx, edx
jl 0x10036ea1
cmp eax, edx
jl 0x10036ea1
add ebp, edi
add ebx, 4
jne 0x10036e90
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x30]
push esi
lea edx, [esp + 0x6c]
push edx
mov edx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
push edx
mov edx, dword [ebp + 0x10]
push edx
push ecx
mov ecx, dword [ebp + 0x14]
push ecx
push eax
push ebx
call fcn.10038d60
mov eax, dword [ebx + 0x14]
mov edx, dword [esp + 0x40]
mov ebp, dword [ebp + 0x14]
xor ebx, ebx
sub eax, edi
add esp, 0x24
cmp dword [edx + 0x10], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ebp
jle 0x100373f0
shl eax, 4
mov dword [esp + 0x50], eax
mov edi, edi
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0xc]
mov eax, dword [esp + 0x50]
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 0x10036fdd
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x24]
push esi
push ecx
lea edx, [ebp + 0x10]
push edx
push eax
call fcn.10037850
add esp, 0x10
cmp dword [ebp], 0x100
jne 0x100373cf
mov ecx, dword [esi + 0x4c]
add ecx, 5
cmp ecx, dword [esi + 0x50]
jbe 0x10036f69
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 [0x100d2598]
test eax, eax
je 0x100373cf
cmp eax, 0x80000000
jne 0x10036fc6
mov eax, edi
sub eax, dword [esi + 0x20]
test eax, eax
jge 0x10036fd5
mov ecx, dword [esi + 0x20]
cmp dword [esi + 0x1c], ecx
jge 0x10036fd5
mov dword [esi + 0x1c], ecx
add dword [esi + 0x20], eax
jmp 0x100373cf
test ebx, ebx
jne 0x100372bb
cmp dword [esp + 0x48], ebx
jne 0x100372bb
lea eax, [esp + 0x74]
push ebx
push eax
call sym.tcl85.dll_Tcl_DStringSetLength
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x14]
push ecx
push edx
lea eax, [esp + 0x84]
push eax
call sym.tcl85.dll_Tcl_DStringAppend
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x88]
add esp, 0x14
push ebx
mov ebx, dword [esp + 0x28]
push ecx
push edx
push ebx
call sym.tcl85.dll_Tcl_FindCommand
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x20], ebp
test ebp, ebp
je 0x1003725f
cmp dword [ebp + 0x10], 0
je 0x1003725f
test byte [ebp + 0x2c], 4
jne 0x1003725f
test byte [ebx + 0x100], 0x20
jne 0x1003725f
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 + 0x60], eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x54], 0
je 0x10037109
test ebx, ebx
je 0x100371af
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 + 0x20]
inc ebx
shr ebx, 8
inc dl
mov byte [ecx - 2], bl
mov ebx, dword [esp + 0x5c]
mov byte [ecx - 1], dl
mov edi, 1
jmp 0x100371af
add ecx, 5
cmp ecx, dword [esi + 0x50]
jbe 0x1003711a
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 [0x100d25f8]
test eax, eax
je 0x10037176
cmp eax, 0x80000000
jne 0x10037164
mov eax, edi
jmp 0x10037173
test eax, eax
jge 0x10037173
mov ecx, dword [esi + 0x20]
cmp dword [esi + 0x1c], ecx
jge 0x10037173
mov dword [esi + 0x1c], ecx
add dword [esi + 0x20], eax
add edx, 4
cmp edx, dword [esi + 0x50]
jbe 0x10037187
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 + 0x54], edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp + 0x10]
push esi
push ebp
push eax
push ecx
call edx
add esp, 0x10
test eax, eax
je 0x10037430
cmp dword [esi + 0x88c], 0
je 0x10037250
test ebx, ebx
je 0x10037250
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 + 0x20]
dec ebx
shr ebx, 8
dec dl
mov byte [eax + 2], bl
mov ebx, dword [esp + 0x5c]
mov byte [eax + 3], dl
mov edi, 1
mov eax, dword [esi + 0x48]
mov edx, dword [esp + 0x60]
add eax, ebx
mov dword [esi + 0x10], edx
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
push 2
push ecx
push esi
call fcn.1006c310
add esp, 0xc
mov ebx, eax
mov dword [esp + 0x20], ebx
test ebp, ebp
je 0x100372a1
mov edx, dword [esi + 0x58]
mov eax, dword [esp + 0x24]
shl ebx, 4
mov ebx, dword [edx + ebx + 4]
push eax
mov edi, ebp
call fcn.10078670
mov ebx, dword [esp + 0x24]
add esp, 4
mov edi, 1
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0x10], edi
jne 0x1003730d
mov edx, dword [esp + 0x24]
push ebx
push esi
push edx
call sym.tcl85.dll_TclHideLiteral
add esp, 0xc
jmp 0x1003730d
mov eax, dword [ebp + 0x14]
push 0
push eax
mov eax, dword [ebp + 0x18]
push esi
call fcn.1006c310
add esp, 0xc
cmp dword [esi + 0x894], 0
mov dword [esp + 0x20], eax
je 0x10037309
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0xc]
mov eax, dword [esp + 0x50]
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 + 0x24]
shl edx, 4
mov ecx, dword [edx + ebp + 4]
call fcn.100763b0
add esp, 4
mov ebx, dword [esp + 0x20]
cmp ebx, 0xff
jg 0x1003734b
mov eax, dword [esi + 0x4c]
add eax, 2
cmp eax, dword [esi + 0x50]
jbe 0x10037329
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 [0x100d1c38]
jmp 0x100373a6
mov edx, dword [esi + 0x4c]
add edx, 5
cmp edx, dword [esi + 0x50]
jbe 0x1003735f
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 [0x100d1c50]
test eax, eax
je 0x100373c7
cmp eax, 0x80000000
jne 0x100373b5
mov eax, edi
sub eax, ebx
test eax, eax
jge 0x100373c4
mov ecx, dword [esi + 0x20]
cmp dword [esi + 0x1c], ecx
jge 0x100373c4
mov dword [esi + 0x1c], ecx
add dword [esi + 0x20], eax
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x28]
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x1c]
shl edx, 4
add ebx, edi
cmp ebx, dword [eax + 0x10]
lea ebp, [edx + ebp + 0x10]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ebp
jl 0x10036f00
xor ebp, ebp
cmp dword [esp + 0x48], ebp
je 0x10037496
mov edx, dword [esi + 0x4c]
cmp edx, dword [esi + 0x50]
jne 0x1003740d
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 [0x100d25b0]
cmp eax, ebp
je 0x1003747b
cmp eax, 0x80000000
jne 0x10037469
mov eax, edi
jmp 0x10037478
cmp dword [esp + 0x54], 0
je 0x10037573
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 0x10037573
cmp eax, ebp
jge 0x10037478
mov ecx, dword [esi + 0x20]
cmp dword [esi + 0x1c], ecx
jge 0x10037478
mov dword [esi + 0x1c], ecx
add dword [esi + 0x20], eax
mov ecx, edi
sub ecx, ebx
jns 0x1003748c
mov eax, dword [esi + 0x20]
cmp dword [esi + 0x1c], eax
jge 0x1003748c
mov dword [esi + 0x1c], eax
sub edi, ebx
add dword [esi + 0x20], edi
jmp 0x10037573
cmp ebx, ebp
jle 0x10037573
mov eax, dword [esi + 0x4c]
sub eax, dword [esi + 0x48]
lea edx, [esp + 0x70]
push edx
push eax
mov eax, dword [esp + 0x38]
mov edx, dword [eax + 0x48]
lea ecx, [eax + 0x18]
push ecx
call edx
mov ecx, dword [esp + 0x58]
add esp, 0xc
cmp ebx, 0xff
mov dword [eax + 0xc], ecx
jg 0x100374fb
mov edx, dword [esi + 0x4c]
add edx, 2
cmp edx, dword [esi + 0x50]
jbe 0x100374dd
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 [0x100d1cb0]
jmp 0x10037552
mov ecx, dword [esi + 0x4c]
add ecx, 5
cmp ecx, dword [esi + 0x50]
jbe 0x1003750f
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 [0x100d1cc8]
cmp eax, ebp
je 0x10037573
cmp eax, 0x80000000
jne 0x10037561
mov eax, edi
sub eax, ebx
cmp eax, ebp
jge 0x10037570
mov ecx, dword [esi + 0x20]
cmp dword [esi + 0x1c], ecx
jge 0x10037570
mov dword [esi + 0x1c], ecx
add dword [esi + 0x20], eax
mov edi, dword [esi + 0x4c]
sub edi, dword [esi + 0x48]
mov ebx, dword [esp + 0x40]
sub edi, dword [esp + 0x44]
test ebx, ebx
jl 0x1003758a
cmp ebx, dword [esi + 0x10]
jl 0x10037598
push ebx
push str.EnterCmdExtentData:_bad_command_index__d
call sym.tcl85.dll_Tcl_Panic
add esp, 8
cmp ebx, dword [esi + 0x7c]
jle 0x100375ab
push ebx
push str.EnterCmdExtentData:_missing_start_data_for_command__d
call sym.tcl85.dll_Tcl_Panic
add esp, 8
mov edx, dword [esp + 0x2c]
mov ebp, dword [sym.imp.MSVCR90.dll_free]
mov eax, ebx
mov ebx, dword [esp + 0x30]
shl eax, 4
add eax, dword [esi + 0x78]
mov dword [esp + 0x2c], 0
mov dword [eax + 4], edi
mov edi, dword [esp + 0x4c]
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 + 0x6c]
mov dword [ecx + edi + 8], edx
mov eax, dword [ebx + 0xc]
mov dword [eax + edi + 0xc], 0
mov edi, dword [esp + 0x20]
add esp, 4
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x14]
add eax, ecx
sub edx, eax
add dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
cmp ecx, eax
jae 0x10037637
cmp byte [ecx], 0xa
jne 0x1003762e
inc ebx
inc ecx
cmp ecx, eax
jb 0x10037628
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x18]
sub eax, dword [esi + 4]
test edx, edx
je 0x1003765a
mov ecx, dword [edx]
test ecx, ecx
jl 0x10037652
cmp eax, ecx
jl 0x10037652
inc ebx
add edx, 4
jne 0x10037642
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebx
mov eax, dword [edi + 0x14]
lea ebx, [edi + 0x38]
cmp eax, ebx
je 0x1003766d
push eax
call ebp
add esp, 4
mov dword [edi + 0x14], ebx
cmp dword [esp + 0x38], 0
jle 0x100376a3
mov ebx, dword [esp + 0x24]
jmp 0x10036cf0
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
lea edx, [ecx + eax - 1]
cmp dword [edi + 0x30], edx
jne 0x1003768d
dec eax
push eax
mov eax, dword [esp + 0x70]
push ecx
push eax
push ebx
call sym.tcl85.dll_Tcl_LogCommandInfo
push ebx
call fcn.1002b2b0
add esp, 0x14
mov ecx, dword [esi + 0x4c]
cmp ecx, dword [esp + 0x64]
jne 0x10037804
mov ecx, dword [0x100d3554]
test ecx, ecx
jne 0x100376fd
push 0x960
call dword [sym.imp.MSVCR90.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x100376e0
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
lea esp, [esp]
mov dword [eax + 0x10], ecx
mov ecx, eax
add eax, 0x18
sub edx, 1
jne 0x100376f0
mov edx, dword [ecx + 0x10]
mov ebp, ecx
mov ecx, dword [0x100d15c4]
xor eax, eax
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
mov dword [0x100d3554], edx
mov edx, dword [esi + 0x5c]
cmp edx, dword [esi + 0x60]
jl 0x1003772b
mov edi, esi
call fcn.1006c5f0
mov ebx, dword [esi + 0x5c]
lea eax, [ebx + 1]
mov dword [esi + 0x5c], eax
mov eax, ebx
shl eax, 4
add eax, dword [esi + 0x58]
mov edi, 1
mov dword [eax + 4], ebp
add dword [ebp], edi
xor ebp, ebp
cmp ebx, 0xff
mov dword [eax + 8], 0xffffffff
mov dword [eax], ebp
jg 0x1003778c
mov ecx, dword [esi + 0x4c]
add ecx, 2
cmp ecx, dword [esi + 0x50]
jbe 0x1003776e
push esi
call sym.tcl85.dll_TclExpandCodeArray
add esp, 4
mov edx, dword [esi + 0x4c]
mov byte [edx], 1
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 [0x100d1c38]
jmp 0x100377e3
mov eax, dword [esi + 0x4c]
add eax, 5
cmp eax, dword [esi + 0x50]
jbe 0x100377a0
push esi
call sym.tcl85.dll_TclExpandCodeArray
add esp, 4
mov ecx, dword [esi + 0x4c]
mov byte [ecx], 2
add dword [esi + 0x4c], edi
mov eax, dword [esi + 0x4c]
mov edx, ebx
shr edx, 0x18
mov byte [eax], dl
add dword [esi + 0x4c], edi
mov eax, dword [esi + 0x4c]
mov ecx, ebx
shr ecx, 0x10
mov byte [eax], cl
add dword [esi + 0x4c], edi
mov eax, dword [esi + 0x4c]
mov edx, ebx
shr edx, 8
mov byte [eax], dl
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 [0x100d1c50]
cmp eax, ebp
je 0x10037804
cmp eax, 0x80000000
jne 0x100377f2
mov eax, edi
sub eax, ebx
cmp eax, ebp
jge 0x10037801
mov ecx, dword [esi + 0x20]
cmp dword [esi + 0x1c], ecx
jge 0x10037801
mov dword [esi + 0x1c], ecx
add dword [esi + 0x20], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call sym.tcl85.dll_TclStackFree
mov eax, dword [esp + 0x7c]
lea edx, [esp + 0x88]
add esp, 8
cmp eax, edx
je 0x1003782f
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100b1b48
add esp, 0x144
ret