Function at 0x1401b5760
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x458
and edx, 2
mov rsi, rcx
je 0x1401b5880
mov rdi, qword [sym.imp.python312.dll_PyUnicode_FromString]
lea rbp, [rsp + 0x50]
call rdi
mov r12, rax
mov rax, qword [0x140247de8]
test rax, rax
je 0x1401b58f0
mov qword [rsp + 0x60], rax
movq xmm0, r12
xor r9d, r9d
mov rdx, rbp
mov rcx, qword [0x1402487f0]
mov rsi, qword [0x140226d70]
mov r8d, 3
mov rax, qword [rcx + 8]
movhps xmm0, qword [rsi + 0x250]
movaps xmmword [rsp + 0x50], xmm0
mov rax, qword [rax + 0x38]
call qword [rcx + rax]
mov rbx, rax
mov rax, qword [r12]
test eax, eax
js 0x1401b57f4
sub rax, 1
mov qword [r12], rax
je 0x1401b5908
test rbx, rbx
je 0x1401b591c
mov r12, qword [0x140247ba0]
test r12, r12
je 0x1401b5980
mov rcx, qword [rsi + 0x48]
mov rsi, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
cmp r12, rcx
je 0x1401b583c
mov rdx, qword [0x140247de8]
test rdx, rdx
je 0x1401b5a80
mov rcx, r12
mov rsi, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
call rsi
mov rcx, rax
mov rdx, rbx
call rsi
mov rdx, qword [rbx]
test edx, edx
js 0x1401b5865
sub rdx, 1
mov qword [rbx], rdx
jne 0x1401b5865
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [rdx + 0x30]
mov rax, qword [rsp + 0x28]
add rsp, 0x458
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call sub.msvcrt.dll_strlen
cmp rax, 0x3ff
ja 0x14020cd6a
lea rbp, [rsp + 0x50]
add rax, 1
mov rdi, rbp
cmp eax, 8
jae 0x1401b5968
xor edx, edx
test al, 4
jne 0x1401b5940
test al, 2
jne 0x1401b5928
test al, 1
jne 0x1401b5958
mov edx, 0x2e
mov rcx, rbp
call sub.msvcrt.dll_strrchr
test rax, rax
je 0x1401b58d1
mov byte [rax], 0
mov rdi, qword [sym.imp.python312.dll_PyUnicode_FromString]
mov rcx, rbp
call rdi
mov r12, rax
mov rax, qword [0x140247de8]
test rax, rax
jne 0x1401b57a0
lea rcx, [0x140222f42]
call rdi
mov qword [0x140247de8], rax
jmp 0x1401b57a0
mov rax, qword [r12 + 8]
mov rcx, r12
call qword [rax + 0x30]
test rbx, rbx
jne 0x1401b57fd
xor eax, eax
jmp 0x1401b5865
movzx ecx, word [rsi + rdx]
mov word [rdi + rdx], cx
add rdx, 2
test al, 1
je 0x1401b58bc
jmp 0x1401b5958
mov edx, dword [rsi]
mov dword [rdi], edx
mov edx, 4
test al, 2
je 0x1401b58b4
jmp 0x1401b5928
movzx eax, byte [rsi + rdx]
mov byte [rdi + rdx], al
jmp 0x1401b58bc
mov ecx, eax
xor edx, edx
shr ecx, 3
rep movsq qword [rdi], qword [rsi]
test al, 4
je 0x1401b58b0
jmp 0x1401b5940
lea r12, str.NUITKA_ONEFILE_BINARY
mov rcx, r12
call fcn.14017dda0
test rax, rax
je 0x1401b5aa0
mov rdx, 0xffffffffffffffff
mov rcx, rax
lea r14, [r12 + 0x28]
mov r15, rbp
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
lea rdx, [rsp + 0x4a]
xor ecx, ecx
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 0x4c]
mov word [rsp + 0x50], cx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov eax, 0x4e
nop word cs:[rax + rax]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov r13, r14
mov r8d, 2
sub r13, r12
mov byte [rsp + 0x4a], al
mov byte [rsp + 0x4b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14020cd6a
cmp word [r15], 0
movzx edx, word [rsp + 0x4c]
mov rax, r15
je 0x1401b5a2e
nop dword [rax]
add rax, 2
sub r13, 1
cmp word [rax], 0
jne 0x1401b5a20
test r13, r13
je 0x14020cd6a
mov word [rax], dx
add r12, 1
xor edx, edx
add r15, 2
mov word [rax + 2], dx
movzx eax, byte [r12]
test al, al
jne 0x1401b59e0
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rdx, qword [rsp + 0x38]
mov rcx, rax
call fcn.1401b3d20
mov r12, rax
mov qword [0x140247ba0], r12
jmp 0x1401b580d
lea rcx, [0x140222f42]
call rdi
mov qword [0x140247de8], rax
mov rdx, rax
jmp 0x1401b582d
mov r12, qword [0x140247bb0]
test r12, r12
jne 0x1401b5a72
cmp byte [0x140247de2], 0
je 0x1401b5ae5
mov rdx, 0xffffffffffffffff
lea rcx, [0x140247be0]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [0x140247bb0], rax
mov r12, rax
test rax, rax
je 0x1401b5af1
mov eax, dword [rax]
add eax, 1
je 0x1401b5a72
mov dword [r12], eax
jmp 0x1401b5a72
mov ecx, 1
call fcn.14017e710
jmp 0x1401b5ab5
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop dword [rax]