Function at 0x4e49a0
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
call fcn.00509ee4
mov dword [esp], 0x328
call fcn.004edaf0
mov ebx, eax
lea eax, [eax + 0x118]
mov dword [ebx], eax
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
call fcn.004dcfd8
mov dword [ebx + 0x1e4], eax
inc dword [eax]
mov dword [esp], ebx
call fcn.00508e68
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0x3e8
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x284], 0
mov dword [esp], 0x38
call fcn.004edaf0
mov dword [ebx + 0x290], eax
mov dword [esp], 0x38
call fcn.004edaf0
mov dword [ebx + 0x294], eax
mov dword [esp], 0x38
call fcn.004edaf0
mov dword [ebx + 0x29c], eax
mov dword [esp], 0x38
call fcn.004edaf0
mov dword [ebx + 0x298], eax
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x290]
mov dword [esp], eax
call fcn.0050e848
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x294]
mov dword [esp], eax
call fcn.0050e848
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x29c]
mov dword [esp], eax
call fcn.0050e848
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x298]
mov dword [esp], eax
call fcn.0050e848
mov dword [ebx + 0x2a0], 0
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x1f8], 0
mov dword [ebx + 0x1fc], 0
mov esi, dword [0x67b764]
test esi, esi
je 0x4e5271
mov dword [ebx + 0x200], esi
mov eax, dword [esi + 0x10]
mov dword [0x67b764], eax
mov dword [esi], 0
mov dword [esp], 0xc
call fcn.004edaf0
mov dword [esi + 4], eax
mov eax, dword [ebx + 0x200]
mov eax, dword [eax + 4]
mov esi, str.::errorInfo
mov ecx, 0xb
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x200]
mov eax, dword [eax + 4]
mov byte [eax + 0xb], 0
mov eax, dword [ebx + 0x200]
mov dword [eax + 8], 0xb
mov dword [eax + 0xc], 0
inc dword [eax]
mov dword [ebx + 0x204], 0
mov esi, dword [0x67b764]
test esi, esi
je 0x4e5281
mov dword [ebx + 0x208], esi
mov eax, dword [esi + 0x10]
mov dword [0x67b764], eax
mov dword [esi], 0
mov dword [esp], 0xc
call fcn.004edaf0
mov dword [esi + 4], eax
mov eax, dword [ebx + 0x208]
mov eax, dword [eax + 4]
mov esi, str.::errorCode
mov ecx, 0xb
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x208]
mov eax, dword [eax + 4]
mov byte [eax + 0xb], 0
mov eax, dword [ebx + 0x208]
mov dword [eax + 8], 0xb
mov dword [eax + 0xc], 0
inc dword [eax]
mov dword [ebx + 0x20c], 1
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x80], 0
mov dword [esp + 4], 0
lea eax, [ebx + 0x84]
mov dword [esp], eax
call fcn.0050e848
mov dword [ebx + 0xbc], 0
mov dword [esp], str.TCL_PKG_PREFER_LATEST
call sub.msvcrt.dll_getenv
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x2a4], eax
mov dword [ebx + 0xc0], 0
lea eax, [ebx + 0xcc]
mov dword [esp], eax
call fcn.0053ba30
mov dword [ebx + 0xf0], 0
mov dword [ebx + 0xf4], 0
mov dword [ebx + 0xf8], 0
mov dword [ebx + 0xc4], 0
mov dword [ebx + 0xfc], 0
mov dword [ebx + 0x100], 0
mov dword [ebx + 0x108], 0
mov dword [ebx + 0x1f4], 0
mov dword [ebx + 0x1ec], 0
mov dword [ebx + 0x1f0], 0
mov dword [ebx + 0x10c], 0
mov dword [ebx + 0x110], 0
call fcn.004dcfd8
mov dword [ebx + 0x114], eax
inc dword [eax]
mov byte [ebx + 0x118], 0
call fcn.0050ee8c
mov dword [ebx + 0x1e8], eax
mov dword [esp], str.TCL_INTERP_DEBUG_FRAME
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4e4cff
or dword [ebx + 0x100], 0x10
mov dword [esp + 4], 1
lea eax, [ebx + 0x2a8]
mov dword [esp], eax
call fcn.0050e848
mov dword [esp + 4], 1
lea eax, [ebx + 0x2e0]
mov dword [esp], eax
call fcn.0050e848
mov dword [ebx + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x60a0e3
mov dword [esp], ebx
call fcn.00529f88
mov dword [ebx + 0x14], eax
test eax, eax
je 0x4e52bb
mov dword [esp], 0x34
call fcn.004edaf0
mov esi, eax
mov dword [esp + 0xc], 0
mov eax, dword [ebx + 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00529028
test eax, eax
jne 0x4e5260
mov dword [esi + 8], 0
mov dword [ebx + 0x60], esi
mov dword [ebx + 0x64], esi
mov dword [ebx + 0x70], esi
mov dword [esp], ebx
call fcn.0052f5f0
mov dword [ebx + 0x110], eax
mov dword [ebx + 0x280], 0
mov dword [ebx + 0xc], 0x5dfec0
mov dword [ebx + 0x274], 0
mov dword [ebx + 0x278], 0
mov dword [ebx + 0x27c], 0
mov dword [esp], ebx
call fcn.00502ecc
mov dword [ebx + 0x318], 0
mov dword [ebx + 0x31c], 0
call fcn.0053c4c4
mov dword [ebx + 0x320], eax
lea eax, [ebx + 0x324]
mov dword [esp], eax
call fcn.0053c570
mov esi, 0x60a840
lea edi, [esp + 0x3c]
jmp 0x4e4e29
add esi, 0x10
mov eax, dword [esi]
test eax, eax
je 0x4e4ec9
mov edx, dword [esi + 4]
test edx, edx
je 0x4e522c
mov eax, dword [ebx + 0x14]
mov dword [esp + 8], edi
mov edx, dword [esi]
mov dword [esp + 4], edx
lea edx, [eax + 0x60]
mov dword [esp], edx
call dword [eax + 0x90]
mov ebp, eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4e4e1c
mov dword [esp], 0x38
call fcn.004edaf0
mov dword [eax], ebp
mov edx, dword [ebx + 0x14]
mov dword [eax + 4], edx
mov dword [eax + 8], 1
mov dword [eax + 0xc], 0
mov edx, dword [esi + 8]
mov dword [eax + 0x10], edx
mov dword [eax + 0x1c], 0x4e1f48
mov dword [eax + 0x20], eax
mov edx, dword [esi + 4]
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x34], 0
mov dword [ebp + 0xc], eax
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x4e4e29
mov dword [esp], ebx
call fcn.0053ef98
mov dword [esp], ebx
call fcn.0051a27c
mov dword [esp], ebx
call fcn.00541054
mov dword [esp], ebx
call fcn.00549408
mov dword [esp], ebx
call fcn.0054c8d8
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x5092e0
mov dword [esp + 4], 0x60a24e
mov dword [esp], ebx
call fcn.004e4778
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x522100
mov dword [esp + 4], str.::tcl::unsupported::disassemble
mov dword [esp], ebx
call fcn.004e4778
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.::tcl::mathfunc
mov dword [esp], ebx
call fcn.00529f88
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4e5291
lea ebp, [esp + 0x40]
mov esi, 0x60a382
mov ecx, 0x12
mov edi, ebp
rep movsb byte es:[edi], byte [esi]
mov eax, 0x60a155
mov esi, 0x60ade0
lea edi, [esp + 0x51]
lea esi, [esi]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.msvcrt.dll_strcpy
mov dword [esp + 0x10], 0
mov eax, dword [esi + 8]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 4]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], ebx
call fcn.004e4778
mov dword [esp + 0xc], 0
mov eax, dword [esi]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00529d68
add esi, 0xc
mov eax, dword [esi]
test eax, eax
jne 0x4e4f90
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.::tcl::mathop
mov dword [esp], ebx
call fcn.00529f88
test eax, eax
je 0x4e52a2
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x60a394
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00529d68
mov esi, str.::tcl::mathop::
mov ecx, 4
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov esi, 0x60afe0
mov dword [esp], 0xc
call fcn.004edaf0
mov edi, eax
mov eax, dword [esi]
mov dword [edi], eax
mov ecx, dword [esi + 0xc]
mov dword [edi + 8], ecx
mov ecx, dword [esi + 0x10]
mov dword [edi + 4], ecx
mov dword [esp + 4], eax
lea eax, [esp + 0x4f]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov dword [esp + 0x10], 0x4e1f40
mov dword [esp + 0xc], edi
mov eax, dword [esi + 4]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], ebx
call fcn.004e4778
test eax, eax
je 0x4e5248
mov edx, dword [esi + 8]
test edx, edx
je 0x4e509b
mov dword [eax + 0x10], edx
add esi, 0x14
mov eax, dword [esi]
test eax, eax
jne 0x4e503c
mov dword [esp], ebx
call fcn.004ff8fc
mov dword [esp], ebx
call fcn.0054ca9c
mov dword [esp], ebx
call fcn.0054d170
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], str.littleEndian
mov dword [esp + 8], str.byteOrder
mov dword [esp + 4], 0x60a325
mov dword [esp], ebx
call fcn.004f5458
mov dword [esp], 4
call fcn.004ddd60
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.wordSize
mov dword [esp + 4], 0x60a325
mov dword [esp], ebx
call fcn.004f53ac
mov dword [esp], 4
call fcn.004ddd60
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.pointerSize
mov dword [esp + 4], 0x60a325
mov dword [esp], ebx
call fcn.004f53ac
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x60a347
mov dword [esp + 4], 0x60a34e
mov dword [esp], ebx
call fcn.004f54e8
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x60a35d
mov dword [esp + 4], 0x60a361
mov dword [esp], ebx
call fcn.004f54e8
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x4fba60
mov dword [esp + 0xc], 0x71
mov dword [esp + 8], 0
mov dword [esp + 4], str.tcl_precision
mov dword [esp], ebx
call fcn.00550748
mov dword [esp], ebx
call fcn.004f80e4
mov dword [esp + 0xc], 0x5dfec0
mov dword [esp + 8], 0x60a347
mov dword [esp + 4], 0x60a37b
mov dword [esp], ebx
call fcn.004ef4c8
mov dword [esp + 8], 1
mov dword [esp + 4], 0x60a35d
mov dword [esp], ebx
call fcn.00507f24
mov dword [esp], ebx
call fcn.0052762c
test eax, eax
je 0x4e5220
mov dword [esp], ebx
call fcn.004e0ce4
mov dword [esp], eax
call fcn.004dd280
mov dword [esp + 4], eax
mov dword [esp], 0x60a37f
call fcn.00507f04
mov eax, ebx
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 8]
test eax, eax
jne 0x4e4e34
mov dword [esp], str.builtin_command_with_NULL_object_command_proc_and_a_NULL_compile_proc
call fcn.00507f04
jmp 0x4e4e34
mov eax, dword [esi]
mov dword [esp + 4], eax
mov dword [esp], str.failed_to_create_math_operator__s
call fcn.00507f04
jmp 0x4e509b
mov dword [esp], str.Tcl_CreateInterp:_failed_to_push_the_root_stack_frame
call fcn.00507f04
jmp 0x4e4d8e
call fcn.004dcd40
mov esi, dword [0x67b764]
jmp 0x4e4af6
call fcn.004dcd40
mov esi, dword [0x67b764]
jmp 0x4e4b6b
mov dword [esp], str.Cant_create_math_function_namespace
call fcn.00507f04
jmp 0x4e4f6d
mov dword [esp], str.cant_create_math_operator_namespace
mov dword [esp + 0x28], eax
call fcn.00507f04
mov eax, dword [esp + 0x28]
jmp 0x4e500d
mov dword [esp], str.Tcl_CreateInterp:_cant_create_global_namespace
call fcn.00507f04
jmp 0x4e4d5d