Function at 0x140091e20
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x140124d18]
xor rax, rsp
mov qword [rbp + 0x47], rax
lea rbx, str.mimalloc_
mov rsi, rcx
lea rax, [rbp - 0x59]
mov r8d, 0x41
sub rbx, rax
lea rdx, [rbp - 0x59]
cmp r8, 1
jbe 0x140091e78
movzx eax, byte [rbx + rdx]
dec r8
mov byte [rdx], al
inc rdx
cmp byte [rbx + rdx], 0
jne 0x140091e60
mov r8, qword [rcx + 0x10]
lea rcx, [rbp - 0x59]
mov byte [rdx], 0
mov edx, 0x41
test r8, r8
je 0x140091ed4
cmp byte [rbp - 0x59], 0
je 0x140091ea4
cmp rdx, 1
jbe 0x140091ea4
inc rcx
dec rdx
cmp byte [rcx], 0
jne 0x140091e93
test rcx, rcx
je 0x140091ed4
test rdx, rdx
je 0x140091ed4
cmp byte [r8], 0
je 0x140091ed1
sub r8, rcx
cmp rdx, 1
jbe 0x140091ed1
movzx eax, byte [r8 + rcx]
dec rdx
mov byte [rcx], al
inc rcx
cmp byte [r8 + rcx], 0
jne 0x140091eb7
mov byte [rcx], 0
mov r8d, 0x41
mov byte [rbp - 9], 0
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x59]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov eax, eax
dec rax
cmp rax, 0x3f
jbe 0x140091fbb
cmp qword [rsi + 0x18], 0
je 0x140091fdc
mov edx, 0x41
lea rcx, [rbp - 0x59]
nop
cmp rdx, 1
jbe 0x140091f28
movzx eax, byte [rbx + rcx]
dec rdx
mov byte [rcx], al
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140091f10
mov r9, qword [rsi + 0x18]
mov edx, 0x41
mov byte [rcx], 0
lea rcx, [rbp - 0x59]
test r9, r9
je 0x140091f84
cmp byte [rbp - 0x59], 0
je 0x140091f54
cmp rdx, 1
jbe 0x140091f54
inc rcx
dec rdx
cmp byte [rcx], 0
jne 0x140091f43
test rcx, rcx
je 0x140091f84
test rdx, rdx
je 0x140091f84
cmp byte [r9], 0
je 0x140091f81
sub r9, rcx
cmp rdx, 1
jbe 0x140091f81
movzx eax, byte [r9 + rcx]
dec rdx
mov byte [rcx], al
inc rcx
cmp byte [r9 + rcx], 0
jne 0x140091f67
mov byte [rcx], 0
mov r8d, 0x41
mov byte [rbp - 9], 0
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x59]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov eax, eax
dec rax
cmp rax, 0x3f
ja 0x140091fdc
mov r8, qword [rsi + 0x10]
lea rcx, str.environment_option__mimalloc__s__is_deprecated____use__mimalloc__s__instead._n
mov rdx, qword [rsi + 0x18]
call fcn.14008fe20
lea rax, [rbp - 9]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140091fc6
cmp rbx, 0x41
jb 0x140091ff5
mov ebx, 0x40
jmp 0x140091ffa
cmp byte [0x140124234], 0
jne 0x140092154
mov dword [rsi + 4], 1
jmp 0x140092154
test rbx, rbx
je 0x14009202c
mov qword [rsp + 0xf8], rdi
xor edi, edi
movsx ecx, byte [rbp + rdi - 9]
call fcn.1400d7520
mov byte [rbp + rdi - 0x59], al
inc rdi
cmp rdi, rbx
jb 0x140092004
mov rdi, qword [rsp + 0xf8]
cmp rbx, 0x41
jae 0x140092175
mov byte [rbp + rbx - 0x59], 0
cmp byte [rbp - 0x59], 0
je 0x140092147
lea rdx, [rbp - 0x59]
lea rcx, str.1_TRUE_YES_ON
call fcn.1400c0198
test rax, rax
jne 0x140092147
lea rdx, [rbp - 0x59]
lea rcx, str.0_FALSE_NO_OFF
call fcn.1400c0198
test rax, rax
je 0x140092074
mov dword [rsi], 0
jmp 0x14009214d
lea rax, [rbp - 0x59]
mov r8d, 0xa
lea rdx, [rbp - 0x69]
mov qword [rbp - 0x69], rax
lea rcx, [rbp - 0x59]
call fcn.1400d8088
mov r8d, dword [rsi + 8]
mov rcx, qword [rbp - 0x69]
cmp r8d, 9
jne 0x1400920fc
movzx edx, byte [rcx]
cmp dl, 0x4b
jne 0x1400920ae
inc rcx
mov qword [rbp - 0x69], rcx
jmp 0x1400920dc
cmp dl, 0x4d
jne 0x1400920bf
shl eax, 0xa
inc rcx
mov qword [rbp - 0x69], rcx
jmp 0x1400920dc
cmp dl, 0x47
jne 0x1400920d0
shl eax, 0x14
inc rcx
mov qword [rbp - 0x69], rcx
jmp 0x1400920dc
cdqe
add rax, 0x3ff
shr rax, 0xa
movzx edx, byte [rcx]
cmp dl, 0x49
jne 0x1400920f0
cmp byte [rcx + 1], 0x42
jne 0x1400920fc
add rcx, 2
jmp 0x1400920f8
cmp dl, 0x42
jne 0x1400920fc
inc rcx
mov qword [rbp - 0x69], rcx
cmp byte [rcx], 0
jne 0x140092105
mov dword [rsi], eax
jmp 0x14009214d
mov dword [rsi + 4], 1
cmp r8d, 2
jne 0x140092135
cmp dword [rsi], 0
jne 0x140092135
mov rdx, qword [rsi + 0x10]
lea rcx, str.environment_option_mimalloc__s_has_an_invalid_value._n
mov dword [rsi], 1
call fcn.14008fe20
mov dword [rsi], 0
jmp 0x140092154
mov rdx, qword [rsi + 0x10]
lea rcx, str.environment_option_mimalloc__s_has_an_invalid_value._n
call fcn.14008fe20
jmp 0x140092154
mov dword [rsi], 1
mov dword [rsi + 4], 2
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400bd960
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1400bdee8
int3