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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
call fcn.0050a684
mov dword [esp], 0x328
call fcn.004ed800
mov ebx, eax
lea eax, [eax + 0x118]
mov dword [ebx], eax
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
call fcn.004dd0d0
mov dword [ebx + 0x1e4], eax
inc dword [eax]
mov dword [esp], ebx
call fcn.00509668
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.004ed800
mov dword [ebx + 0x290], eax
mov dword [esp], 0x38
call fcn.004ed800
mov dword [ebx + 0x294], eax
mov dword [esp], 0x38
call fcn.004ed800
mov dword [ebx + 0x29c], eax
mov dword [esp], 0x38
call fcn.004ed800
mov dword [ebx + 0x298], eax
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x290]
mov dword [esp], eax
call fcn.0050fb60
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x294]
mov dword [esp], eax
call fcn.0050fb60
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x29c]
mov dword [esp], eax
call fcn.0050fb60
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x298]
mov dword [esp], eax
call fcn.0050fb60
mov dword [ebx + 0x2a0], 0
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x1f8], 0
mov dword [ebx + 0x1fc], 0
call fcn.0050cb10
mov esi, eax
mov dword [ebx + 0x200], eax
mov dword [eax], 0
mov dword [esp], 0xc
call fcn.004ed800
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.0050cb10
mov esi, eax
mov dword [ebx + 0x208], eax
mov dword [eax], 0
mov dword [esp], 0xc
call fcn.004ed800
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.0050fb60
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.0053d5e8
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.004dd0d0
mov dword [ebx + 0x114], eax
inc dword [eax]
mov byte [ebx + 0x118], 0
call fcn.004ee2f4
mov dword [ebx + 0x1e8], eax
mov dword [esp], str.TCL_INTERP_DEBUG_FRAME
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4e4ad9
or dword [ebx + 0x100], 0x10
mov dword [esp + 4], 1
lea eax, [ebx + 0x2a8]
mov dword [esp], eax
call fcn.0050fb60
mov dword [esp + 4], 1
lea eax, [ebx + 0x2e0]
mov dword [esp], eax
call fcn.0050fb60
mov dword [ebx + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x60c2c3
mov dword [esp], ebx
call fcn.0052c244
mov dword [ebx + 0x14], eax
test eax, eax
je 0x4e509f
mov dword [esp], 0x34
call fcn.004ed800
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.0052b2e4
test eax, eax
jne 0x4e5064
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.00531580
mov dword [ebx + 0x110], eax
mov dword [ebx + 0x280], 0
mov dword [ebx + 0xc], 0x5e1680
mov dword [ebx + 0x274], 0
mov dword [ebx + 0x278], 0
mov dword [ebx + 0x27c], 0
mov dword [esp], ebx
call fcn.0050343c
call fcn.004ee848
mov dword [ebx + 0x318], eax
mov dword [ebx + 0x31c], 0
call fcn.0053e0d0
mov dword [ebx + 0x320], eax
lea eax, [ebx + 0x324]
mov dword [esp], eax
call fcn.0053e17c
mov esi, 0x60ca20
lea edi, [esp + 0x3c]
jmp 0x4e4c05
add esi, 0x10
mov eax, dword [esi]
test eax, eax
je 0x4e4ca5
mov edx, dword [esi + 4]
test edx, edx
je 0x4e5030
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 0x4e4bf8
mov dword [esp], 0x38
call fcn.004ed800
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], 0x4e1dc8
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 0x4e4c05
mov dword [esp], ebx
call fcn.00540bd0
mov dword [esp], ebx
call fcn.0051c654
mov dword [esp], ebx
call fcn.00542c78
mov dword [esp], ebx
call fcn.0054acf4
mov dword [esp], ebx
call fcn.0054e13c
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x509aec
mov dword [esp + 4], 0x60c42e
mov dword [esp], ebx
call fcn.004e4570
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x524434
mov dword [esp + 4], str.::tcl::unsupported::disassemble
mov dword [esp], ebx
call fcn.004e4570
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.::tcl::mathfunc
mov dword [esp], ebx
call fcn.0052c244
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4e5075
lea ebp, [esp + 0x40]
mov esi, 0x60c56d
mov ecx, 0x12
mov edi, ebp
rep movsb byte es:[edi], byte [esi]
mov eax, 0x60c335
mov esi, 0x60cfc0
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.004e4570
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.0052c024
add esi, 0xc
mov eax, dword [esi]
test eax, eax
jne 0x4e4d6c
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.::tcl::mathop
mov dword [esp], ebx
call fcn.0052c244
test eax, eax
je 0x4e5086
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x60c57f
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0052c024
mov esi, str.::tcl::mathop::
mov ecx, 4
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov esi, 0x60d1c0
mov dword [esp], 0xc
call fcn.004ed800
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], 0x4e1dc0
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.004e4570
test eax, eax
je 0x4e504c
mov edx, dword [esi + 8]
test edx, edx
je 0x4e4e77
mov dword [eax + 0x10], edx
add esi, 0x14
mov eax, dword [esi]
test eax, eax
jne 0x4e4e18
mov dword [esp], ebx
call fcn.004fff74
mov dword [esp], ebx
call fcn.0054e300
mov dword [esp], ebx
call fcn.0054ea30
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], str.littleEndian
mov dword [esp + 8], str.byteOrder
mov dword [esp + 4], 0x60c505
mov dword [esp], ebx
call fcn.004f59b4
mov dword [esp], 4
call fcn.004ddde0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.wordSize
mov dword [esp + 4], 0x60c505
mov dword [esp], ebx
call fcn.004f5908
mov dword [esp], 4
call fcn.004ddde0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.pointerSize
mov dword [esp + 4], 0x60c505
mov dword [esp], ebx
call fcn.004f5908
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x60c527
mov dword [esp + 4], 0x60c52e
mov dword [esp], ebx
call fcn.004f5a44
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x60c53d
mov dword [esp + 4], 0x60c541
mov dword [esp], ebx
call fcn.004f5a44
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x4fc060
mov dword [esp + 0xc], 0x71
mov dword [esp + 8], 0
mov dword [esp + 4], str.tcl_precision
mov dword [esp], ebx
call fcn.00551ea8
mov dword [esp], ebx
call fcn.004f864c
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0x60c55b
mov dword [esp + 8], 0x60c55d
mov dword [esp + 4], 0x60c505
mov dword [esp], ebx
call fcn.004f59b4
mov dword [esp + 0xc], 0x5e1680
mov dword [esp + 8], 0x60c527
mov dword [esp + 4], 0x60c566
mov dword [esp], ebx
call fcn.004ef910
mov dword [esp + 8], 1
mov dword [esp + 4], 0x60c53d
mov dword [esp], ebx
call fcn.00508448
mov dword [esp], ebx
call fcn.00529940
test eax, eax
je 0x4e5024
mov dword [esp], ebx
call fcn.004e0b64
mov dword [esp], eax
call fcn.004dd368
mov dword [esp + 4], eax
mov dword [esp], 0x60c56a
call fcn.00508428
mov eax, ebx
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 8]
test eax, eax
jne 0x4e4c10
mov dword [esp], str.builtin_command_with_NULL_object_command_proc_and_a_NULL_compile_proc
call fcn.00508428
jmp 0x4e4c10
mov eax, dword [esi]
mov dword [esp + 4], eax
mov dword [esp], str.failed_to_create_math_operator__s
call fcn.00508428
jmp 0x4e4e77
mov dword [esp], str.Tcl_CreateInterp:_failed_to_push_the_root_stack_frame
call fcn.00508428
jmp 0x4e4b68
mov dword [esp], str.Cant_create_math_function_namespace
call fcn.00508428
jmp 0x4e4d49
mov dword [esp], str.cant_create_math_operator_namespace
mov dword [esp + 0x28], eax
call fcn.00508428
mov eax, dword [esp + 0x28]
jmp 0x4e4de9
mov dword [esp], str.Tcl_CreateInterp:_cant_create_global_namespace
call fcn.00508428
jmp 0x4e4b37