Function at 0x140024cb0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x140061018]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [rdx + 8]
test rcx, rcx
je 0x140024f6b
add rdx, 0x10
mov r8d, 0xff
movzx ebx, word [rcx]
cmp ebx, 0x2d
je 0x140024d02
cmp ebx, 0x2f
je 0x140024f55
mov rcx, qword [rdx]
add rdx, 8
test rcx, rcx
jne 0x140024ce0
jmp 0x140024f6b
lea rdi, [rcx + 2]
lea rbx, [rcx + 4]
cmp word [rcx + 2], 0x2d
cmove rdi, rbx
movzx ecx, word [rdi]
test cx, cx
je 0x140024cf1
movzx ebx, cx
cmp ebx, r8d
cmovae ecx, r8d
lea ebx, [rcx - 0x41]
mov eax, ecx
or al, 0x20
cmp bl, 0x1a
movzx eax, al
cmovae eax, ecx
cmp al, 0x73
jne 0x140024cf1
movzx ecx, word [rdi + 2]
test cx, cx
je 0x140024cf1
movzx eax, cx
mov ebx, 0xff
cmp eax, ebx
cmovae ecx, ebx
lea eax, [rcx - 0x41]
mov ebx, ecx
or bl, 0x20
cmp al, 0x1a
movzx eax, bl
cmovae eax, ecx
cmp al, 0x61
jne 0x140024cf1
movzx ecx, word [rdi + 4]
test cx, cx
je 0x140024cf1
movzx eax, cx
mov ebx, 0xff
cmp eax, ebx
cmovae ecx, ebx
lea eax, [rcx - 0x41]
mov ebx, ecx
or bl, 0x20
cmp al, 0x1a
movzx eax, bl
cmovae eax, ecx
cmp al, 0x66
jne 0x140024cf1
movzx ecx, word [rdi + 6]
test cx, cx
je 0x140024cf1
movzx eax, cx
mov ebx, 0xff
cmp eax, ebx
cmovae ecx, ebx
lea eax, [rcx - 0x41]
mov ebx, ecx
or bl, 0x20
cmp al, 0x1a
movzx eax, bl
cmovae eax, ecx
cmp al, 0x65
jne 0x140024cf1
movzx ecx, word [rdi + 8]
test cx, cx
je 0x140024cf1
movzx eax, cx
mov ebx, 0xff
cmp eax, ebx
cmovae ecx, ebx
lea eax, [rcx - 0x41]
mov ebx, ecx
or bl, 0x20
cmp al, 0x1a
movzx eax, bl
cmovae eax, ecx
cmp al, 0x2d
jne 0x140024cf1
movzx ecx, word [rdi + 0xa]
test cx, cx
je 0x140024cf1
movzx eax, cx
mov ebx, 0xff
cmp eax, ebx
cmovae ecx, ebx
lea eax, [rcx - 0x41]
mov ebx, ecx
or bl, 0x20
cmp al, 0x1a
movzx eax, bl
cmovae eax, ecx
cmp al, 0x6d
jne 0x140024cf1
movzx ecx, word [rdi + 0xc]
test cx, cx
je 0x140024cf1
movzx eax, cx
mov ebx, 0xff
cmp eax, ebx
cmovae ecx, ebx
lea eax, [rcx - 0x41]
mov ebx, ecx
or bl, 0x20
cmp al, 0x1a
movzx eax, bl
cmovae eax, ecx
cmp al, 0x6f
jne 0x140024cf1
movzx ecx, word [rdi + 0xe]
test cx, cx
je 0x140024cf1
movzx eax, cx
mov ebx, 0xff
cmp eax, ebx
cmovae ecx, ebx
lea eax, [rcx - 0x41]
mov ebx, ecx
or bl, 0x20
cmp al, 0x1a
movzx eax, bl
cmovae eax, ecx
cmp al, 0x64
jne 0x140024cf1
movzx ecx, word [rdi + 0x10]
test cx, cx
je 0x140024cf1
movzx eax, cx
mov ebx, 0xff
cmp eax, ebx
cmovae ecx, ebx
lea eax, [rcx - 0x41]
mov ebx, ecx
or bl, 0x20
cmp al, 0x1a
movzx eax, bl
cmovae eax, ecx
cmp al, 0x65
jne 0x140024cf1
cmp word [rdi + 0x12], 0
jne 0x140024cf1
lea rdi, [rsp + 0x44]
mov dword [rdi], 4
mov qword [rsp + 0x30], rdi
lea rbx, [rsp + 0x40]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREPoliciesMozillaFirefox
lea r8, str.DisableSafeMode
mov rcx, 0xffffffff80000002
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140024f61
mov dword [rsp + 0x44], 4
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREPoliciesMozillaFirefox
lea r8, str.DisableSafeMode
mov rcx, 0xffffffff80000001
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140024f61
mov dil, 1
jmp 0x140024f6d
add rcx, 2
mov rdi, rcx
jmp 0x140024d13
cmp dword [rsp + 0x40], 1
mov dil, 1
jne 0x140024f6d
xor edi, edi
lea rcx, str.MOZ_SAFE_MODE_RESTART
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x140024f9e
mov byte [rsi], dil
mov byte [rsi + 1], 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14002f4d0
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
cmp byte [rax], 0
movzx eax, dil
mov edi, 1
cmove edi, eax
jmp 0x140024f7f