Function at 0x4e4edc
Capabilities:
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
call fcn.0050afa8
mov dword [esp], 0x328
call fcn.004edfec
mov ebx, eax
lea eax, [eax + 0x118]
mov dword [ebx], eax
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
call fcn.004dd7ec
mov dword [ebx + 0x1e4], eax
inc dword [eax]
mov dword [esp], ebx
call fcn.00509f10
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.004edfec
mov dword [ebx + 0x290], eax
mov dword [esp], 0x38
call fcn.004edfec
mov dword [ebx + 0x294], eax
mov dword [esp], 0x38
call fcn.004edfec
mov dword [ebx + 0x29c], eax
mov dword [esp], 0x38
call fcn.004edfec
mov dword [ebx + 0x298], eax
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x290]
mov dword [esp], eax
call fcn.00510434
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x294]
mov dword [esp], eax
call fcn.00510434
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x29c]
mov dword [esp], eax
call fcn.00510434
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x298]
mov dword [esp], eax
call fcn.00510434
mov dword [ebx + 0x2a0], 0
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x1f8], 0
mov dword [ebx + 0x1fc], 0
call fcn.0050d3e4
mov esi, eax
mov dword [ebx + 0x200], eax
mov dword [eax], 0
mov dword [esp], 0xc
call fcn.004edfec
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
call fcn.0050d3e4
mov esi, eax
mov dword [ebx + 0x208], eax
mov dword [eax], 0
mov dword [esp], 0xc
call fcn.004edfec
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.00510434
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.0053df48
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.004dd7ec
mov dword [ebx + 0x114], eax
inc dword [eax]
mov byte [ebx + 0x118], 0
call fcn.004eeae0
mov dword [ebx + 0x1e8], eax
mov dword [esp], str.TCL_INTERP_DEBUG_FRAME
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4e521d
or dword [ebx + 0x100], 0x10
mov dword [esp + 4], 1
lea eax, [ebx + 0x2a8]
mov dword [esp], eax
call fcn.00510434
mov dword [esp + 4], 1
lea eax, [ebx + 0x2e0]
mov dword [esp], eax
call fcn.00510434
mov dword [ebx + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x61b9a3
mov dword [esp], ebx
call fcn.0052cb84
mov dword [ebx + 0x14], eax
test eax, eax
je 0x4e5847
mov dword [esp], 0x34
call fcn.004edfec
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.0052bc24
test eax, eax
jne 0x4e580c
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.00531ed0
mov dword [ebx + 0x110], eax
mov dword [ebx + 0x280], 0
mov dword [ebx + 0xc], 0x5f0c20
mov dword [ebx + 0x274], 0
mov dword [ebx + 0x278], 0
mov dword [ebx + 0x27c], 0
mov dword [esp], ebx
call fcn.00503c28
call fcn.004ef034
mov dword [ebx + 0x318], eax
mov dword [ebx + 0x31c], 0
call fcn.0053ea30
mov dword [ebx + 0x320], eax
lea eax, [ebx + 0x324]
mov dword [esp], eax
call fcn.0053eadc
mov esi, 0x61c160
lea edi, [esp + 0x3c]
jmp 0x4e5349
add esi, 0x10
mov eax, dword [esi]
test eax, eax
je 0x4e53e9
mov edx, dword [esi + 4]
test edx, edx
je 0x4e57b0
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 0x4e533c
mov dword [esp], 0x38
call fcn.004edfec
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], 0x4e24e4
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 0x4e5349
mov dword [esp], ebx
call fcn.00541530
mov dword [esp], ebx
call fcn.0051cf94
mov dword [esp], ebx
call fcn.005435d8
mov dword [esp], ebx
call fcn.0054b654
mov dword [esp], ebx
call fcn.0054ea9c
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x50a410
mov dword [esp + 4], 0x61bb0e
mov dword [esp], ebx
call fcn.004e4cb4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x524d74
mov dword [esp + 4], str.::tcl::unsupported::disassemble
mov dword [esp], ebx
call fcn.004e4cb4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.::tcl::mathfunc
mov dword [esp], ebx
call fcn.0052cb84
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4e5836
lea ebp, [esp + 0x40]
mov esi, 0x61bca4
mov ecx, 0x12
mov edi, ebp
rep movsb byte es:[edi], byte [esi]
mov eax, 0x61ba15
mov esi, 0x61c700
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.004e4cb4
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.0052c964
add esi, 0xc
mov eax, dword [esi]
test eax, eax
jne 0x4e54b0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.::tcl::mathop
mov dword [esp], ebx
call fcn.0052cb84
test eax, eax
je 0x4e581d
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x61bcb6
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0052c964
mov esi, str.::tcl::mathop::
mov ecx, 4
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov esi, 0x61c900
mov dword [esp], 0xc
call fcn.004edfec
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], 0x4e24dc
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.004e4cb4
test eax, eax
je 0x4e57cc
mov edx, dword [esi + 8]
test edx, edx
je 0x4e55bb
mov dword [eax + 0x10], edx
add esi, 0x14
mov eax, dword [esi]
test eax, eax
jne 0x4e555c
mov dword [esp], ebx
call fcn.00500760
mov dword [esp], ebx
call fcn.0054ec60
mov dword [esp], ebx
call fcn.0054f390
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], str.littleEndian
mov dword [esp + 8], str.byteOrder
mov dword [esp + 4], 0x61bbe5
mov dword [esp], ebx
call fcn.004f61a0
mov dword [esp], 4
call fcn.004de4fc
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.wordSize
mov dword [esp + 4], 0x61bbe5
mov dword [esp], ebx
call fcn.004f60f4
mov dword [esp], 4
call fcn.004de4fc
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.pointerSize
mov dword [esp + 4], 0x61bbe5
mov dword [esp], ebx
call fcn.004f60f4
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x61bc07
mov dword [esp + 4], 0x61bc0e
mov dword [esp], ebx
call fcn.004f6230
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x61bc1d
mov dword [esp + 4], 0x61bc21
mov dword [esp], ebx
call fcn.004f6230
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x4fc84c
mov dword [esp + 0xc], 0x71
mov dword [esp + 8], 0
mov dword [esp + 4], str.tcl_precision
mov dword [esp], ebx
call fcn.00552808
mov dword [esp], ebx
call fcn.004f8e38
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0x61bc3b
mov dword [esp + 8], 0x61bc3d
mov dword [esp + 4], 0x61bbe5
mov dword [esp], ebx
call fcn.004f61a0
mov dword [esp + 0xc], 0x5f0c20
mov dword [esp + 8], 0x61bc07
mov dword [esp + 4], 0x61bc46
mov dword [esp], ebx
call fcn.004f00fc
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x4e26fc
mov dword [esp + 4], str.::tcl::bitrock::waitPidOriginalCode
mov dword [esp], ebx
call fcn.004e4cb4
mov dword [esp + 8], 1
mov dword [esp + 4], 0x61bc1d
mov dword [esp], ebx
call fcn.00508cf0
mov dword [esp], ebx
call fcn.0052a280
test eax, eax
jne 0x4e57e4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x68b804
mov dword [esp + 4], str.::bitrock_cmd_exec_path
mov dword [esp], ebx
call fcn.00508960
test eax, eax
je 0x4e57a4
mov dword [esp], str.cant_create_cmd_location
call fcn.00508cd0
mov eax, ebx
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 8]
test eax, eax
jne 0x4e5354
mov dword [esp], str.builtin_command_with_NULL_object_command_proc_and_a_NULL_compile_proc
call fcn.00508cd0
jmp 0x4e5354
mov eax, dword [esi]
mov dword [esp + 4], eax
mov dword [esp], str.failed_to_create_math_operator__s
call fcn.00508cd0
jmp 0x4e55bb
mov dword [esp], ebx
call fcn.004e1280
mov dword [esp], eax
call fcn.004dda84
mov dword [esp + 4], eax
mov dword [esp], 0x61bc70
call fcn.00508cd0
jmp 0x4e5774
mov dword [esp], str.Tcl_CreateInterp:_failed_to_push_the_root_stack_frame
call fcn.00508cd0
jmp 0x4e52ac
mov dword [esp], str.cant_create_math_operator_namespace
mov dword [esp + 0x28], eax
call fcn.00508cd0
mov eax, dword [esp + 0x28]
jmp 0x4e552d
mov dword [esp], str.Cant_create_math_function_namespace
call fcn.00508cd0
jmp 0x4e548d
mov dword [esp], str.Tcl_CreateInterp:_cant_create_global_namespace
call fcn.00508cd0
jmp 0x4e527b