Function at 0x140002280
Capabilities:
Check os version
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x488
movaps xmmword [rsp + 0x470], xmm6
mov r14, rcx
mov rax, qword [0x140055018]
xor rax, rsp
mov qword [rsp + 0x468], rax
test rdx, rdx
je 0x14000272e
mov r13d, r8d
mov rsi, rdx
mov rcx, rdx
mov edx, 0x5c
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x14000272e
mov rdi, rax
sub rdi, rsi
lea rbx, [rdi + 1]
lea rcx, [rdi + 9]
call qword [sym.imp.mozglue.dll_malloc]
mov rbp, rax
mov rcx, rax
mov rdx, rsi
mov r8, rbx
call sub.ntdll.dll_memcpy
movabs rax, 0x6c6c642e6c7578
mov qword [rbp + rdi + 1], rax
mov al, byte [rbp]
test al, al
mov qword [rsp + 0x38], r14
je 0x140002697
xor esi, esi
mov rcx, rbp
nop
cmp al, 0x2f
cmove rsi, rcx
cmp al, 0x5c
cmove rsi, rcx
movzx eax, byte [rcx + 1]
add rcx, 1
test al, al
jne 0x140002320
test rsi, rsi
je 0x140002697
sub rsi, rbp
cmp rsi, 0xf0
ja 0x140002714
lea rcx, [rsp + 0x150]
mov rdx, rbp
mov r8, rsi
call sub.ntdll.dll_memcpy
movups xmm0, xmmword [str.dependentlibs.list]
movups xmmword [rsp + rsi + 0x150], xmm0
mov dword [rsp + rsi + 0x160], 0x747369
lea r12, [rsp + rsi]
add r12, 0x151
lea rcx, str.MOZ_RUN_GTEST
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x14000273a
lea rbx, [rsp + 0x260]
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], 0x104
lea r8, [rsp + 0x150]
mov ecx, 0xfde9
xor edx, edx
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rdx, [0x14004ce0e]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
test rax, rax
je 0x140002714
mov rdi, rax
mov qword [rsp + 0x30], rbp
mov byte [r12], 0
lea rcx, [rsp + 0x40]
mov edx, 0x104
mov r8, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
je 0x140002606
mov r15, r12
lea rax, [rsp + 0x150]
sub r15, rax
lea rbp, [rsp + 0x40]
xorps xmm6, xmm6
nop word [rax + rax]
mov rcx, rbp
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r14, rax
test r14d, r14d
je 0x140002521
cmp byte [rsp + 0x40], 0x23
je 0x140002521
mov eax, dword [0x140055ac0]
cmp eax, 0x9ffffff
ja 0x14000276d
mov eax, dword [0x14005503c]
cmp eax, 0xa000001
jae 0x14000254a
shl r14, 0x20
movabs rax, 0xffffffff00000000
add rax, r14
sar rax, 0x20
cmp byte [rsp + rax + 0x40], 0xa
jne 0x140002492
mov byte [rsp + rax + 0x40], 0
sar r14, 0x20
add r14, r15
cmp r14, 0x104
ja 0x140002706
mov rcx, r12
mov rdx, rbp
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], 0x104
mov ecx, 0xfde9
xor edx, edx
lea r8, [rsp + 0x150]
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp r13d, 1
je 0x140002540
mov rcx, rbx
xor edx, edx
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x1400026be
mov rsi, rax
mov ecx, 0x10
call qword [sym.imp.mozglue.dll_moz_xmalloc]
test rax, rax
je 0x140002521
mov rcx, qword [0x140055ab8]
mov qword [rax + 8], rcx
mov qword [rax], rsi
mov qword [0x140055ab8], rax
mov rcx, rbp
mov edx, 0x104
mov r8, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
jne 0x140002430
jmp 0x140002606
mov rcx, rbx
call int.140001fb0
jmp 0x1400024df
lea rax, [rsp + 0x26c]
movups xmmword [rax + 0x80], xmm6
movups xmmword [rax + 0x70], xmm6
movups xmmword [rax + 0x60], xmm6
movups xmmword [rax + 0x50], xmm6
movups xmmword [rax + 0x40], xmm6
movups xmmword [rax + 0x30], xmm6
movups xmmword [rax + 0x20], xmm6
movups xmmword [rax + 0x10], xmm6
movups xmmword [rax], xmm6
movabs rax, 0xa0000009c
mov qword [rsp + 0x260], rax
mov dword [rsp + 0x268], 0
mov dword [rsp + 0x2f4], 0
xor ecx, ecx
mov edx, 2
mov r8b, 3
mov rax, qword [sym.imp.ntdll.dll_VerSetConditionMask]
mov rsi, rax
call rax
mov rcx, rax
mov edx, 1
mov r8b, 3
call rsi
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call rsi
mov rcx, rax
mov edx, 0x10
mov r8b, 3
call rsi
mov rcx, rbx
mov edx, 0x33
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
jne 0x140002762
mov eax, 0xa000000
xchg dword [0x14005503c], eax
jmp 0x140002471
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140055ab8]
mov rcx, qword [rax]
lea rdx, str.XRE_GetBootstrap
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140002780
mov qword [rsp + 0x260], 0
lea rcx, [rsp + 0x260]
call rax
mov rax, qword [rsp + 0x260]
mov r14, qword [rsp + 0x38]
mov qword [r14], rax
mov rbp, qword [rsp + 0x30]
test rbp, rbp
je 0x140002668
mov rcx, rbp
call qword [sym.imp.mozglue.dll_free]
mov rcx, qword [rsp + 0x468]
xor rcx, rsp
call fcn.1400477a0
mov rax, r14
movaps xmm6, xmmword [rsp + 0x470]
add rsp, 0x488
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r12, [rsp + 0x150]
movups xmm0, xmmword [0x14004b30e]
movaps xmmword [rsp + 0x150], xmm0
mov dword [rsp + 0x15f], 0x747369
jmp 0x140002389
mov rax, qword [0x140055ab8]
test rax, rax
je 0x140002706
mov rsi, qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [sym.imp.mozglue.dll_free]
jmp 0x1400026df
test rax, rax
je 0x140002706
mov rcx, qword [rax]
call rsi
mov rcx, qword [0x140055ab8]
mov rax, qword [rcx + 8]
mov qword [0x140055ab8], rax
test rcx, rcx
je 0x1400026da
call rbx
mov rax, qword [0x140055ab8]
jmp 0x1400026da
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbp, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov qword [r14], 0
test rbp, rbp
jne 0x14000265f
jmp 0x140002668
mov qword [r14], 0
jmp 0x140002668
lea rcx, [rsp + 0x150]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov dword [rsp + rax + 0x150], 0x6574672e
mov dword [rsp + rax + 0x153], 0x747365
jmp 0x14000239f
mov eax, 0xa000000
xchg dword [0x140055ac0], eax
cmp dword [rsp + 0x40], 0x2d697061
jne 0x140002471
jmp 0x140002521
mov r14, qword [rsp + 0x38]
mov qword [r14], 0
jmp 0x140002655