Function at 0x1400252e0
Capabilities:
Query environment variable
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140061018]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rcx, str.MOZ_DISABLE_NONLOCAL_CONNECTIONS
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140025326
cmp byte [rax], 0
jne 0x1400256c1
lea rcx, str.MOZ_RUN_GTEST
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140025341
cmp byte [rax], 0
setne r12b
jmp 0x140025344
xor r12d, r12d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov rcx, rdi
mov edx, 0x80000000
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
mov rdi, rax
inc rdi
cmp rdi, 1
ja 0x14002542d
test r12b, r12b
je 0x14002568d
mov dword [rsi], 0x80
mov ecx, 0x80
call qword [sym.imp.mozglue.dll_moz_xmalloc]
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
movups xmmword [rax + 0x70], xmm0
mov rcx, qword [rsi + 8]
mov qword [rsi + 8], rax
test rcx, rcx
je 0x1400253da
call qword [sym.imp.mozglue.dll_free]
mov rax, qword [rsi + 8]
mov dword [rax], 0x400040
mov qword [rax + 8], 0x40
mov qword [rax + 0x10], 0xffffffffffffffff
xor ecx, ecx
mov dword [rax + 0x18], ecx
mov rdx, qword [rsi + 8]
movaps xmm0, xmmword [0x140053400]
movups xmmword [rdx + 0x70], xmm0
movaps xmm0, xmmword [0x1400533f0]
movups xmmword [rdx + 0x60], xmm0
movaps xmm0, xmmword [0x1400533e0]
movups xmmword [rdx + 0x50], xmm0
movaps xmm0, xmmword [str.TestDllBlocklist_UserBlocked.dll]
movups xmmword [rdx + 0x40], xmm0
mov dword [rax + 0x20], ecx
jmp 0x14002568d
lea r9, [rsp + 0x7c]
mov dword [r9], 0
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x70]
mov rcx, r15
mov r8d, 0xc
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140025387
cmp dword [rsp + 0x7c], 0xc
jne 0x14002568d
cmp dword [rsp + 0x70], 0x4646424c
jne 0x14002568d
cmp dword [rsp + 0x74], 1
jne 0x14002568d
mov eax, dword [rsp + 0x78]
lea ebx, [rax + 0x60]
test r12b, r12b
cmove ebx, eax
mov rcx, rbx
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r13, rax
mov rcx, rax
xor edx, edx
mov r8, rbx
call sub.ntdll.dll_memset
mov r8d, dword [rsp + 0x78]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x7c]
mov rcx, r15
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400255eb
mov r8d, dword [rsp + 0x7c]
cmp r8d, dword [rsp + 0x78]
jne 0x1400255eb
mov qword [rsp + 0x38], rbx
lea rax, str.TestDllBlocklist_UserBlocked.dll
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], 0x400040
test r8d, r8d
je 0x14002563a
mov rax, qword [rsp + 0x38]
add eax, 0xffffffc0
mov qword [rsp + 0x48], rax
xor r14d, r14d
xor r9d, r9d
mov eax, r14d
lea rbx, [rax + r13]
movzx eax, word [r13 + rax]
test rax, rax
je 0x1400255f3
mov rcx, qword [rbx + 8]
lea rdx, [rcx + rax]
mov ebp, dword [rsp + 0x78]
cmp rdx, rbp
ja 0x140025635
mov word [rbx + 2], ax
test r9b, 1
sete dl
and dl, r12b
cmp dl, 1
jne 0x1400255dc
mov dword [rsp + 0x44], r9d
mov ebp, r8d
add rcx, r13
mov qword [rsp + 0x58], rcx
mov word [rsp + 0x50], ax
mov word [rsp + 0x52], ax
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov r8b, 1
call sub.ntdll.dll_RtlCompareUnicodeString
test eax, eax
jle 0x1400255cf
lea rbp, [rbx + 0x20]
mov r8d, dword [rsp + 0x78]
sub r8d, r14d
mov rcx, rbp
mov rdx, rbx
call sub.ntdll.dll_memmove
mov dword [rbx], 0x400040
mov rax, qword [rsp + 0x48]
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], 0xffffffffffffffff
mov dword [rbx + 0x18], 0
add r14d, 0x20
mov r9b, 1
mov rax, qword [rsp + 0x38]
mov r8d, eax
mov rbx, rbp
jmp 0x1400255d7
mov r8d, ebp
mov r9d, dword [rsp + 0x44]
add qword [rbx + 8], 0x20
add r14d, 0x20
cmp r14d, r8d
jb 0x140025514
jmp 0x14002563a
mov rcx, r13
jmp 0x140025687
test r9b, 1
sete al
and al, r12b
cmp al, 1
jne 0x14002563a
lea rcx, [rbx + 0x20]
mov r8d, dword [rsp + 0x78]
sub r8d, r14d
mov rdx, rbx
call sub.ntdll.dll_memmove
mov dword [rbx], 0x400040
mov rax, qword [rsp + 0x48]
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], 0xffffffffffffffff
mov dword [rbx + 0x18], 0
jmp 0x14002563a
mov word [rbx], 0
test r12b, r12b
mov rax, qword [rsp + 0x38]
je 0x140025678
movaps xmm0, xmmword [0x140053400]
movups xmmword [r13 + rax - 0x10], xmm0
movaps xmm0, xmmword [0x1400533f0]
movups xmmword [r13 + rax - 0x20], xmm0
movaps xmm0, xmmword [0x1400533e0]
movups xmmword [r13 + rax - 0x30], xmm0
movaps xmm0, xmmword [str.TestDllBlocklist_UserBlocked.dll]
movups xmmword [r13 + rax - 0x40], xmm0
mov dword [rsi], eax
mov rcx, qword [rsi + 8]
mov qword [rsi + 8], r13
test rcx, rcx
je 0x14002568d
call qword [sym.imp.mozglue.dll_free]
cmp rdi, 2
jb 0x14002569c
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14002f4d0
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r12b, 1
jmp 0x140025344