Function at 0x1400043f0
Capabilities:
Create thread
Query environment variable
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x238
mov rax, qword [sym.imp.msvcrt.dll___argc]
lea r14, [0x1400997a0]
xor ebx, ebx
mov rcx, r14
lea r13, str.PYTHONHOME
mov rax, qword [rax]
mov r12d, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll___wargv]
mov rax, qword [rax]
mov r15, qword [rax]
call fcn.140004270
mov rdi, qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rdx, [0x1400997aa]
mov rcx, r14
mov qword [0x1400b02c8], rax
mov qword [rsp + 0x30], rdi
call rdi
mov rcx, r13
call fcn.140004270
call fcn.14001e4c0
mov rcx, r13
mov rdx, rax
call rdi
call fcn.14001e4c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov r13, qword [sym.imp.python311.dll_PyImport_FrozenModules]
mov rsi, qword [r13]
test rsi, rsi
je 0x1400044a4
cmp qword [rsi], 0
mov rax, rsi
je 0x14000449a
add rax, 0x20
cmp qword [rax], 0
jne 0x140004490
sub rax, rsi
mov rbx, rax
sar rbx, 5
lea ecx, [rbx + 0x9c]
movsxd rbx, ebx
lea rbp, str.__multiprocessing_resource_tracker
movsxd rcx, ecx
shl rbx, 5
shl rcx, 5
call sub.msvcrt.dll_malloc
mov r8, rbx
mov rdx, rsi
lea rsi, [r15 + 8]
mov rdi, rax
mov rcx, rax
call sub.msvcrt.dll_memcpy
lea rcx, [rdi + rbx]
mov ebx, 1
call fcn.1400019a0
mov rax, qword [r13]
mov rcx, qword [r15]
mov qword [r13], rdi
mov qword [0x1400b02e0], r15
lea rdi, str.__multiprocessing_fork
mov qword [0x1400b02d0], rax
mov rax, qword [sym.imp.python311.dll_Py_DebugFlag]
mov dword [rax], 0
mov rax, qword [sym.imp.python311.dll_Py_InspectFlag]
mov dword [rax], 0
mov rax, qword [sym.imp.python311.dll_Py_InteractiveFlag]
mov dword [rax], 0
mov rax, qword [sym.imp.python311.dll_Py_OptimizeFlag]
mov dword [rax], 0
mov rax, qword [sym.imp.python311.dll_Py_DontWriteBytecodeFlag]
mov dword [rax], 0
mov rax, qword [sym.imp.python311.dll_Py_NoUserSiteDirectory]
mov dword [rax], 1
mov rax, qword [sym.imp.python311.dll_Py_IgnoreEnvironmentFlag]
mov dword [rax], 0
mov rax, qword [sym.imp.python311.dll_Py_VerboseFlag]
mov dword [rax], 0
mov rax, qword [sym.imp.python311.dll_Py_BytesWarningFlag]
mov dword [rax], 0
mov rax, qword [sym.imp.python311.dll_Py_UTF8Mode]
mov dword [rax], 0
mov rax, qword [sym.imp.python311.dll_Py_FrozenFlag]
mov dword [rax], 1
mov rax, qword [sym.imp.python311.dll_Py_NoSiteFlag]
mov dword [rax], 1
call qword [sym.imp.python311.dll_Py_SetProgramName]
mov dword [0x1400b02d8], r12d
cmp r12d, 1
jle 0x1400045f3
nop word cs:[rax + rax]
mov rcx, qword [rsi]
mov rdx, rdi
add ebx, 1
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x1400045d7
cmp r12d, ebx
jg 0x1400045f3
mov rcx, qword [rsi]
mov rdx, rbp
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140004a60
cmp r12d, ebx
jg 0x140004ba7
lea rbp, [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.python311.dll__PyRuntime_Initialize]
mov edx, dword [rsp + 0x60]
test edx, edx
jne 0x140004bc1
lea r15, [rsp + 0x80]
lea rbx, [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.python311.dll__PyConfig_InitCompatConfig]
mov r9, qword [0x1400b02e0]
mov rdx, r15
mov rcx, rbx
movsxd r8, dword [0x1400b02d8]
call qword [sym.imp.python311.dll_PyConfig_SetArgv]
call fcn.14001e4c0
mov rdi, qword [sym.imp.python311.dll_PyConfig_SetString]
mov rdx, r15
mov rcx, rbx
mov rsi, rax
mov rax, qword [0x1400b02e0]
lea r8, [rsp + 0x1d0]
mov r9, qword [rax]
call rdi
mov r9, rsi
lea r8, [rsp + 0x1e0]
mov rdx, r15
mov rcx, rbx
call rdi
mov r9, rsi
lea r8, [rsp + 0x1f0]
mov rdx, r15
mov rcx, rbx
call rdi
mov r9, rsi
lea r8, [rsp + 0x1e8]
mov rdx, r15
mov rcx, rbx
call rdi
mov r9, rsi
lea r8, [rsp + 0x1f8]
mov rdx, r15
mov rcx, rbx
call rdi
mov r9, rsi
lea r8, [rsp + 0x1a0]
mov rdx, r15
mov rcx, rbx
call rdi
mov r9, rsi
lea r8, [rsp + 0x1a8]
mov rdx, r15
mov rcx, rbx
call rdi
lea rdx, [rsp + 0x1b8]
mov r8, rsi
mov rcx, rbx
call qword [sym.imp.python311.dll_PyWideStringList_Append]
mov rdx, r15
mov rcx, rbp
mov dword [rsp + 0x1b0], 1
mov dword [rsp + 0x90], 1
call qword [sym.imp.python311.dll_Py_InitializeFromConfig]
mov eax, dword [rsp + 0x60]
test eax, eax
jne 0x140004bc6
mov rax, qword [sym.imp.python311.dll_Py_NoSiteFlag]
mov rdx, qword [0x1400b02e0]
mov ecx, r12d
lea rbp, [0x140099849]
mov dword [rax], 1
call qword [sym.imp.python311.dll_PySys_SetArgv]
call fcn.140042140
call fcn.140001810
call fcn.1400038c0
call fcn.140025050
call fcn.140018a00
call fcn.1400181f0
call fcn.1400180f0
call fcn.1400181a0
call fcn.140018720
call fcn.140043570
call fcn.140043480
call fcn.14001e450
call fcn.140082110
call fcn.140087de0
mov rbx, qword [sym.imp.python311.dll_PyUnicode_FromString]
lea rcx, [0x14009983e]
call rbx
lea rcx, str.NUL:
mov r12, rax
call rbx
mov rdi, qword [sym.imp.python311.dll_PySys_GetObject]
mov rcx, rbp
mov rbx, rax
call rdi
mov rsi, qword [sym.imp.python311.dll__Py_NoneStruct]
cmp rax, rsi
je 0x140004b34
test rax, rax
je 0x140004b34
lea rbp, [0x140099851]
mov rcx, rbp
call rdi
cmp rax, rsi
je 0x140004afa
test rax, rax
je 0x140004afa
lea rbp, [0x14009985a]
mov rcx, rbp
call rdi
cmp rax, rsi
je 0x140004ac4
test rax, rax
je 0x140004ac4
sub qword [rbx], 1
je 0x140004a72
test r12, r12
je 0x14000481e
sub qword [r12], 1
je 0x140004a7f
call fcn.140081700
call fcn.140081a90
mov rax, qword [0x1400b02d0]
mov qword [r13], rax
call fcn.140001940
call qword [sym.imp.python311.dll__PyWarnings_Init]
call fcn.140081e00
mov rbx, qword [0x1400b02c8]
call fcn.140019bf0
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python311.dll_PyObject_GetAttrString]
mov rdx, 0xffffffffffffffff
mov rcx, r14
mov r12, rax
call sub.python311.dll_PyUnicode_FromWideChar
mov r13, rax
test rbx, rbx
je 0x140004b71
mov rcx, r14
mov rdx, rbx
mov rax, qword [rsp + 0x30]
call rax
or rdx, 0xffffffffffffffff
mov rcx, rbx
call sub.python311.dll_PyUnicode_FromWideChar
mov rdx, r13
mov rcx, r12
mov r14, rax
mov r8, rax
call qword [sym.imp.python311.dll_PyObject_SetItem]
test eax, eax
jne 0x140004b91
sub qword [r14], 1
jne 0x1400048be
mov rcx, r14
call fcn.1400042c0
sub qword [r13], 1
jne 0x1400048cd
mov rcx, r13
call fcn.1400042c0
sub qword [r12], 1
jne 0x1400048dc
mov rcx, r12
call fcn.1400042c0
mov qword [rsp + 0x80], 0
mov rdx, r15
mov r8d, pe_nt_image_headers64
lea rcx, str.NUITKA_ONEFILE_PARENT
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xe8], 0
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0xf8], 0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
sub eax, 1
cmp eax, 0x7d
jbe 0x140004a8c
mov rbx, qword [sym.imp.python311.dll__PyRuntime]
lea r12, [0x14009987f]
mov rdx, r12
mov rax, qword [rbx + 0x1f8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rax + 0x378]
call qword [sym.imp.python311.dll_PyDict_DelItemString]
mov rcx, r12
call fcn.140081130
mov rax, qword [rbx + 0x1f8]
xor ecx, ecx
cmp qword [rax + 0x60], 0
je 0x140004a59
mov rsi, qword [rbx + 0x1f8]
mov rbx, qword [rsi + 0x70]
test rbx, rbx
je 0x140004a4c
mov rbp, qword [sym.imp.python311.dll_PyUnicode_AsUTF8]
lea rdi, str._frozen_importlib._bootstrap_
mov rax, qword [rbx + 0x18]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rcx, qword [rax + 0x70]
call rbp
mov rdx, rdi
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140004a4c
mov rbx, qword [rbx + 0x10]
mov qword [rsi + 0x70], rbx
add qword [rbx], 1
jmp 0x140004a1d
xor ecx, ecx
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
nop
add rsi, 8
cmp r12d, ebx
jne 0x1400045c0
jmp 0x1400045f3
mov rcx, rbx
call fcn.1400042c0
jmp 0x14000480e
mov rcx, r12
call fcn.1400042c0
jmp 0x14000481e
mov rcx, r15
call sub.msvcrt.dll_atol
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], 0
lea r8, [0x1400041d0]
mov dword [rsp + 0x20], 0
mov dword [0x1400b02c4], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x1400049be
mov r9, r12
xor r8d, r8d
lea rdx, [0x140099858]
mov rcx, rbx
call fcn.140054350
mov rcx, rbp
mov rsi, rax
mov rdx, rax
call qword [sym.imp.python311.dll_PySys_SetObject]
mov rdx, rsi
mov ecx, 0xfffffff4
call fcn.140004350
jmp 0x140004804
mov r9, r12
xor r8d, r8d
lea rdx, [0x140099858]
mov rcx, rbx
call fcn.140054350
mov rcx, rbp
mov qword [rsp + 0x38], rax
mov rdx, rax
call qword [sym.imp.python311.dll_PySys_SetObject]
mov rdx, qword [rsp + 0x38]
mov ecx, 0xfffffff5
call fcn.140004350
jmp 0x1400047e6
mov r9, r12
mov r8d, 1
mov rcx, rbx
lea rdx, [0x14009984f]
call fcn.140054350
mov rcx, rbp
mov qword [rsp + 0x38], rax
mov rdx, rax
call qword [sym.imp.python311.dll_PySys_SetObject]
mov rdx, qword [rsp + 0x38]
mov ecx, 0xfffffff6
call fcn.140004350
jmp 0x1400047c8
xor edx, edx
mov rcx, r14
mov rax, qword [rsp + 0x30]
call rax
mov rdx, r13
mov rcx, r12
call qword [sym.imp.python311.dll_PyObject_DelItem]
test eax, eax
je 0x1400048be
mov ecx, 1
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
movsxd rbx, ebx
mov rcx, qword [r15 + rbx*8]
call qword [sym.imp.msvcrt.dll__wtoi]
mov ecx, eax
call qword [sym.imp.python311.dll_PyLong_FromLong]
jmp 0x1400045f3
lea rbx, [rsp + 0x40]
movdqa xmm0, xmmword [rsp + 0x60]
movdqa xmm1, xmmword [rsp + 0x70]
mov rcx, rbx
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x50], xmm1
call qword [sym.imp.python311.dll_Py_ExitStatusException]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rcx, qword [rcx + 0x88]
mov rdi, rdx
mov rbp, r8
test rcx, rcx
je 0x140004c16
mov rdx, r8
call rdi
test eax, eax
jne 0x140004c50
mov rax, qword [rsi + 0xd0]
xor ebx, ebx
test rax, rax
jle 0x140004c4e
nop dword [rax]
mov rcx, qword [rsi + rbx*8 + 0xd8]
test rcx, rcx
je 0x140004c45
mov rdx, rbp
call rdi
test eax, eax
jne 0x140004c50
mov rax, qword [rsi + 0xd0]
add rbx, 1
cmp rbx, rax
jl 0x140004c28
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret