Function at 0x10007540
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
call dword [sym.imp.python38.dll_PyThread_allocate_lock]
mov dword [0x1000c740], eax
test eax, eax
je 0x1000776e
push 0x3f5
push 0x1000c368
call dword [sym.imp.python38.dll_PyModule_Create2]
mov edi, eax
add esp, 8
test edi, edi
je 0x1000776e
push 0
push 0
push str._tkinter.TclError
call dword [sym.imp.python38.dll_PyErr_NewException]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x100077e9
inc dword [esi]
mov ebx, dword [sym.imp.python38.dll_PyModule_AddObject]
push esi
push str.TclError
push edi
call ebx
add esp, 0xc
test eax, eax
jne 0x10007752
push 2
push str.READABLE
mov dword [0x1000c754], esi
mov esi, dword [sym.imp.python38.dll_PyModule_AddIntConstant]
push edi
call esi
add esp, 0xc
test eax, eax
jne 0x100077e9
push 4
push str.WRITABLE
push edi
call esi
add esp, 0xc
test eax, eax
jne 0x100077e9
push 8
push str.EXCEPTION
push edi
call esi
add esp, 0xc
test eax, eax
jne 0x100077e9
push 4
push str.WINDOW_EVENTS
push edi
call esi
add esp, 0xc
test eax, eax
jne 0x100077e9
push 8
push str.FILE_EVENTS
push edi
call esi
add esp, 0xc
test eax, eax
jne 0x100077e9
push 0x10
push str.TIMER_EVENTS
push edi
call esi
add esp, 0xc
test eax, eax
jne 0x100077e9
push 0x20
push str.IDLE_EVENTS
push edi
call esi
add esp, 0xc
test eax, eax
jne 0x100077e9
push 0xfffffffffffffffd
push str.ALL_EVENTS
push edi
call esi
add esp, 0xc
test eax, eax
jne 0x100077e9
push 2
push str.DONT_WAIT
push edi
call esi
add esp, 0xc
test eax, eax
jne 0x100077e9
mov esi, dword [sym.imp.python38.dll_PyModule_AddStringConstant]
push 0x10009b20
push str.TK_VERSION
push edi
call esi
add esp, 0xc
test eax, eax
jne 0x100077e9
push 0x10009b20
push str.TCL_VERSION
push edi
call esi
add esp, 0xc
test eax, eax
jne 0x100077e9
push 0x1000c33c
call dword [sym.imp.python38.dll_PyType_FromSpec]
mov esi, eax
add esp, 4
test esi, esi
je 0x100077e9
push esi
push str.TkappType
push edi
mov dword [esi + 0x9c], 0
call ebx
add esp, 0xc
test eax, eax
jne 0x10007752
push 0x1000c354
mov dword [0x1000c72c], esi
call dword [sym.imp.python38.dll_PyType_FromSpec]
mov esi, eax
add esp, 4
test esi, esi
je 0x100077e9
push esi
push str.TkttType
push edi
mov dword [esi + 0x9c], 0
call ebx
add esp, 0xc
test eax, eax
jne 0x10007752
push 0x1000c328
mov dword [0x1000c71c], esi
call dword [sym.imp.python38.dll_PyType_FromSpec]
mov esi, eax
add esp, 4
test esi, esi
je 0x100077e9
push esi
push str.Tcl_Obj
push edi
mov dword [esi + 0x9c], 0
call ebx
add esp, 0xc
test eax, eax
je 0x10007777
add dword [esi], 0xffffffff
mov ebx, dword [sym.imp.python38.dll__Py_Dealloc]
jne 0x10007763
push esi
call ebx
add esp, 4
add dword [edi], 0xffffffff
jne 0x1000776e
push edi
call ebx
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
mov dword [0x1000c724], esi
call dword [sym.imp.python38.dll_Py_GetProgramName]
push eax
call dword [sym.imp.python38.dll_PyUnicode_FromWideChar]
mov ebx, dword [sym.imp.python38.dll__Py_Dealloc]
mov esi, eax
add esp, 8
mov dword [ebp - 8], esi
test esi, esi
je 0x10007877
push esi
call dword [sym.imp.python38.dll_PyUnicode_EncodeFSDefault]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10007866
push 0
push 0
push str.TCL_LIBRARY
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x10007846
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x10007846
call fcn.10001120
test eax, eax
jne 0x10007801
call dword [sym.imp.python38.dll_PyErr_Occurred]
test eax, eax
je 0x10007846
add dword [edi], 0xffffffff
jne 0x1000776e
push edi
call dword [sym.imp.python38.dll__Py_Dealloc]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push eax
call dword [sym.imp.python38.dll_PyUnicode_AsWideCharString]
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x100077e9
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push eax
push str.TCL_LIBRARY
call esi
lea eax, [ebx + 0x10]
push eax
call dword [sym.imp.tcl86t.dll_Tcl_FindExecutable]
add esp, 4
push 0
push str.TCL_LIBRARY
call esi
push dword [ebp - 4]
call dword [sym.imp.python38.dll_PyMem_Free]
mov esi, dword [ebp - 8]
jmp 0x10007850
lea eax, [ebx + 0x10]
push eax
call dword [sym.imp.tcl86t.dll_Tcl_FindExecutable]
add esp, 4
add dword [ebx], 0xffffffff
jne 0x10007866
push ebx
mov ebx, dword [sym.imp.python38.dll__Py_Dealloc]
call ebx
add esp, 4
jmp 0x1000786c
mov ebx, dword [sym.imp.python38.dll__Py_Dealloc]
add dword [esi], 0xffffffff
jne 0x10007877
push esi
call ebx
add esp, 4
call dword [sym.imp.python38.dll_PyErr_Occurred]
test eax, eax
jne 0x10007763
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret