Function at 0x1400d4830
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xd8
mov rsi, qword [0x140207460]
mov rax, qword [rsi]
mov qword [rsp + 0xc8], rax
xor eax, eax
lea rbp, [rsp + 0x80]
lea rax, str.mimalloc_
mov rbx, rcx
mov rdx, rbp
mov ecx, 0x6d
lea rdi, [rax + 0x41]
jmp 0x1400d487c
test cl, cl
je 0x1400d4896
add rax, 1
mov r8, rdi
add rdx, 1
mov byte [rdx - 1], cl
sub r8, rax
movzx ecx, byte [rax]
cmp r8, 1
jne 0x1400d4878
mov r9, qword [rbx + 0x10]
mov byte [rdx], 0
test r9, r9
je 0x1400d491f
cmp byte [rsp + 0x80], 0
je 0x1400d4b17
mov rax, rbp
lea rdx, [rsp + 0xc0]
jmp 0x1400d48c5
cmp rax, rdx
je 0x1400d491c
add rax, 1
cmp byte [rax], 0
jne 0x1400d48c0
lea r10, [rsp + 0xc1]
sub r10, rax
cmp r10, 1
setne dl
movzx r8d, byte [r9]
test r8b, r8b
je 0x1400d491c
test dl, dl
je 0x1400d491c
mov rdx, r9
jmp 0x1400d48fd
test r8b, r8b
je 0x1400d491c
add rdx, 1
mov rcx, r9
add rax, 1
mov byte [rax - 1], r8b
sub rcx, rdx
movzx r8d, byte [rdx]
add rcx, r10
cmp rcx, 1
jne 0x1400d48f8
mov byte [rax], 0
lea r12, [rsp + 0x30]
mov byte [rsp + 0x30], 0
mov r13, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov rcx, rbp
mov r8d, 0x41
mov rdx, r12
call r13
mov eax, eax
sub rax, 1
cmp rax, 0x3f
jbe 0x1400d4a58
mov r9, qword [rbx + 0x18]
test r9, r9
je 0x1400d4a2f
mov ecx, 0x6d
mov rdx, rbp
lea rax, str.mimalloc_
jmp 0x1400d4974
test cl, cl
je 0x1400d498e
add rax, 1
mov r8, rdi
add rdx, 1
mov byte [rdx - 1], cl
sub r8, rax
movzx ecx, byte [rax]
cmp r8, 1
jne 0x1400d4970
mov byte [rdx], 0
cmp byte [rsp + 0x80], 0
je 0x1400d4b81
mov rax, rbp
lea rdx, [rsp + 0xc0]
jmp 0x1400d49b5
cmp rax, rdx
je 0x1400d4a0c
add rax, 1
cmp byte [rax], 0
jne 0x1400d49b0
lea r10, [rsp + 0xc1]
sub r10, rax
cmp r10, 1
setne dl
movzx r8d, byte [r9]
test r8b, r8b
je 0x1400d4a0c
test dl, dl
je 0x1400d4a0c
mov rdx, r9
jmp 0x1400d49ed
test r8b, r8b
je 0x1400d4a0c
add rdx, 1
mov rcx, r9
add rax, 1
mov byte [rax - 1], r8b
sub rcx, rdx
movzx r8d, byte [rdx]
add rcx, r10
cmp rcx, 1
jne 0x1400d49e8
mov byte [rax], 0
mov r8d, 0x41
mov rdx, r12
mov rcx, rbp
mov byte [rsp + 0x30], 0
call r13
mov eax, eax
sub rax, 1
cmp rax, 0x3f
jbe 0x1400d4a41
call fcn.1400d3e50
test al, al
jne 0x1400d4ab7
mov dword [rbx + 4], 1
jmp 0x1400d4ab7
mov rdx, qword [rbx + 0x18]
mov r8, qword [rbx + 0x10]
lea rcx, str.environment_option__mimalloc__s__is_deprecated____use__mimalloc__s__instead._n
call fcn.1400d4750
nop dword [rax]
mov rcx, r12
call sub.msvcrt.dll_strlen
mov r10, qword [str._________AA__A__________________]
xor ecx, ecx
test rax, rax
je 0x1400d4a98
nop
movzx r9d, byte [r12 + rcx]
mov r8d, r9d
mov rdx, r9
and r8d, 0xdf
test byte [r10 + r9], 4
cmovne edx, r8d
mov byte [rbp + rcx], dl
add rcx, 1
cmp rax, rcx
jne 0x1400d4a70
mov byte [rsp + rax + 0x80], 0
cmp byte [rsp + 0x80], 0
jne 0x1400d4ae0
movabs rax, 0x200000001
mov qword [rbx], rax
mov rax, qword [rsp + 0xc8]
sub rax, qword [rsi]
jne 0x1400d4c60
add rsp, 0xd8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rdx, rbp
lea rcx, str.1_TRUE_YES_ON
call sub.msvcrt.dll_strstr
test rax, rax
jne 0x1400d4aaa
mov rdx, rbp
lea rcx, str.0_FALSE_NO_OFF
call sub.msvcrt.dll_strstr
test rax, rax
je 0x1400d4b2a
movabs rax, 0x200000000
mov qword [rbx], rax
jmp 0x1400d4ab7
mov edx, 1
mov r10d, 0x41
mov rax, rbp
jmp 0x1400d48e0
mov rcx, rbp
lea rdx, [rsp + 0x28]
mov r8d, 0xa
mov qword [rsp + 0x28], rbp
call sub.msvcrt.dll_strtol
mov ecx, eax
mov eax, dword [rbx + 8]
cmp eax, 9
je 0x1400d4ba6
mov rdx, qword [rsp + 0x28]
cmp byte [rdx], 0
je 0x1400d4b98
mov dword [rbx + 4], 1
mov rdx, qword [rbx + 0x10]
cmp eax, 2
jne 0x1400d4b70
mov eax, dword [rbx]
test eax, eax
je 0x1400d4c10
lea rcx, str.environment_option_mimalloc__s_has_an_invalid_value._n
call fcn.1400d4750
jmp 0x1400d4ab7
mov edx, 1
mov r10d, 0x41
mov rax, rbp
jmp 0x1400d49d0
test dl, dl
jne 0x1400d4bed
mov dword [rbx], ecx
mov dword [rbx + 4], 2
jmp 0x1400d4ab7
mov r8, qword [rsp + 0x28]
movzx edx, byte [r8]
cmp dl, 0x4b
je 0x1400d4c00
movsxd rax, ecx
cmp dl, 0x4d
je 0x1400d4bfd
cmp dl, 0x47
je 0x1400d4c48
add rax, 0x3ff
shr rax, 0xa
mov ecx, eax
mov rax, r8
cmp dl, 0x49
je 0x1400d4c2d
cmp dl, 0x42
jne 0x1400d4b94
lea rdx, [rax + 1]
mov qword [rsp + 0x28], rdx
cmp byte [rax + 1], 0
je 0x1400d4b98
mov dword [rbx + 4], 1
mov rdx, qword [rbx + 0x10]
jmp 0x1400d4b70
shl ecx, 0xa
lea rax, [r8 + 1]
mov qword [rsp + 0x28], rax
movzx edx, byte [r8 + 1]
jmp 0x1400d4bd4
mov dword [rbx], 1
lea rcx, str.environment_option_mimalloc__s_has_an_invalid_value._n
call fcn.1400d4750
mov dword [rbx], 0
jmp 0x1400d4ab7
cmp byte [rax + 1], 0x42
jne 0x1400d4bed
lea rdx, [rax + 2]
mov qword [rsp + 0x28], rdx
cmp byte [rax + 2], 0
je 0x1400d4b98
jmp 0x1400d4bed
mov ecx, eax
lea rax, [r8 + 1]
mov qword [rsp + 0x28], rax
shl ecx, 0x14
movzx edx, byte [r8 + 1]
jmp 0x1400d4bd4
call fcn.1401be670
nop
nop word cs:[rax + rax]
push rsi
push rbx
sub rsp, 0x38
mov rsi, qword [0x140207460]
mov qword [rsp + 0x58], rdx
mov rbx, rcx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov rax, qword [rsi]
mov qword [rsp + 0x28], rax
xor eax, eax
mov eax, dword [0x1401c58e4]
test eax, eax
je 0x1400d4ce0
cmp dword [0x1401c58e0], 1
jle 0x1400d4cc5
lea r8, [rsp + 0x58]
mov rdx, rbx
lea rcx, str.mimalloc:
mov qword [rsp + 0x20], r8
call fcn.1400d45d0
mov rax, qword [rsp + 0x28]
sub rax, qword [rsi]
jne 0x1400d4cee
add rsp, 0x38
pop rbx
pop rsi
ret
lea rcx, [0x1401c58e0]
call fcn.1400d4830
jmp 0x1400d4ca3
call fcn.1401be670
nop
nop word cs:[rax + rax]
nop