Function at 0x14000a6e0
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
mov r14, rcx
mov rax, qword [0x14005c018]
xor rax, rsp
mov qword [rsp + 0x480], rax
test rdx, rdx
je 0x14000ab77
mov r12d, r8d
mov rsi, rdx
mov rcx, rdx
mov edx, 0x5c
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x14000ab8d
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
je 0x14000aad3
xor esi, esi
mov rcx, rbp
cmp al, 0x2f
cmove rsi, rcx
cmp al, 0x5c
cmove rsi, rcx
mov al, byte [rcx + 1]
inc rcx
test al, al
jne 0x14000a771
test rsi, rsi
je 0x14000aad3
sub rsi, rbp
cmp rsi, 0xf0
ja 0x14000ab53
lea rcx, [rsp + 0x160]
mov rdx, rbp
mov r8, rsi
call sub.ntdll.dll_memcpy
movups xmm0, xmmword [str.dependentlibs.list]
lea r13, [rsp + rsi]
add r13, 0x161
movups xmmword [r13 - 1], xmm0
mov dword [r13 + 0xf], 0x747369
lea rcx, str.MOZ_RUN_GTEST
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x14000aba3
lea rdi, [rsp + 0x270]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 0x104
lea r8, [rsp + 0x160]
mov ecx, 0xfde9
xor edx, edx
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rdx, [0x140052712]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
test rax, rax
je 0x14000ab53
mov rsi, rax
mov byte [r13], 0
lea rcx, [rsp + 0x50]
mov edx, 0x104
mov r8, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
mov dword [rsp + 0x38], 0x80004005
mov cl, 1
mov dword [rsp + 0x3c], ecx
xor ebx, ebx
test rax, rax
je 0x14000aacb
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], r14
mov rbp, r13
lea rax, [rsp + 0x160]
sub rbp, rax
lea r15, [rsp + 0x50]
mov rcx, r15
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r14, rax
test r14d, r14d
je 0x14000a974
cmp byte [rsp + 0x50], 0x23
je 0x14000a974
mov eax, dword [0x14005cad8]
cmp eax, 0x9ffffff
ja 0x14000abd6
mov eax, dword [0x14005c03c]
cmp eax, 0xa000001
jae 0x14000a99d
shl r14, 0x20
movabs rax, 0xffffffff00000000
add rax, r14
sar rax, 0x20
cmp byte [rsp + rax + 0x50], 0xa
jne 0x14000a8e4
mov byte [rsp + rax + 0x50], 0
sar r14, 0x20
add r14, rbp
cmp r14, 0x104
ja 0x14000aaec
mov rcx, r13
mov rdx, r15
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 0x104
mov ecx, 0xfde9
xor edx, edx
lea r8, [rsp + 0x160]
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp r12d, 1
je 0x14000a993
mov rcx, rdi
xor edx, edx
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x14000aaf5
mov rbx, rax
mov ecx, 0x10
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rcx, qword [0x14005cad0]
mov qword [rax + 8], rcx
mov qword [rax], rbx
mov qword [0x14005cad0], rax
call qword [sym.imp.mozglue.dll_void___cdecl_mozilla::PollPreXULSkeletonUIEvents_void_]
mov rcx, r15
mov edx, 0x104
mov r8, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
jne 0x14000a882
jmp 0x14000aa37
mov rcx, rdi
call fcn.14000ac20
jmp 0x14000a931
mov r8d, 0x110
lea rcx, [rsp + 0x27c]
xor edx, edx
call sub.ntdll.dll_memset
movabs rax, 0xa0000011c
mov qword [rsp + 0x270], rax
xor eax, eax
mov dword [rsp + 0x278], eax
mov dword [rsp + 0x384], eax
xor ecx, ecx
mov edx, 2
mov r8b, 3
mov rbx, qword [sym.imp.ntdll.dll_VerSetConditionMask]
call rbx
mov rcx, rax
mov edx, 1
mov r8b, 3
call rbx
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call rbx
mov rcx, rax
mov edx, 0x10
mov r8b, 3
call rbx
mov rcx, rdi
mov edx, 0x33
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
jne 0x14000abcb
mov eax, 0xa000000
xchg dword [0x14005c03c], eax
jmp 0x14000a8c3
xor ebx, ebx
mov dil, 1
mov r14, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test dil, dil
je 0x14000abe9
mov rax, qword [0x14005cad0]
mov rcx, qword [rax]
lea rdx, str.XRE_GetBootstrap
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000abff
lea rsi, [rsp + 0x270]
mov qword [rsi], 0
mov rcx, rsi
call qword [case.0x14001b2ee.0]
mov byte [r14 + 8], 0
mov rax, qword [rsi]
mov qword [r14], rax
mov rcx, rbp
call qword [sym.imp.mozglue.dll_free]
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14001bc70
mov rax, r14
add rsp, 0x488
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov dil, 1
jmp 0x14000aa46
lea r13, [rsp + 0x160]
movups xmm0, xmmword [0x1400506d2]
movaps xmmword [r13], xmm0
jmp 0x14000a7ca
xor ebx, ebx
xor edi, edi
jmp 0x14000aa3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
mov rbp, qword [0x14005cad0]
test rbp, rbp
je 0x14000ab38
mov rdi, qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [sym.imp.mozglue.dll_free]
mov rcx, qword [rbp]
call rdi
mov rcx, qword [0x14005cad0]
mov rbp, qword [rcx + 8]
mov qword [0x14005cad0], rbp
call rbx
test rbp, rbp
jne 0x14000ab19
mov dword [rsp + 0x3c], 0
xor edi, edi
mov r14, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov bl, 1
jmp 0x14000aa46
mov byte [r14 + 8], 1
mov rax, r14
mov byte [r14 + 4], 0
mov dword [rsp + 0x38], 0x80004005
mov r14, rax
mov eax, dword [rsp + 0x38]
mov dword [r14], eax
jmp 0x14000aa9b
mov byte [r14 + 8], 1
mov byte [r14 + 4], 0
mov dword [r14], 0x80070057
jmp 0x14000aaa4
mov byte [r14 + 8], 1
mov byte [r14 + 4], 0
mov dword [r14], 0x80520009
jmp 0x14000aaa4
lea rcx, [rsp + 0x160]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov dword [rsp + rax + 0x160], 0x6574672e
mov dword [rsp + rax + 0x163], 0x747365
jmp 0x14000a7e8
mov eax, 0xa000000
xchg dword [0x14005cad8], eax
cmp dword [rsp + 0x50], 0x2d697061
jne 0x14000a8c3
jmp 0x14000a974
mov byte [r14 + 8], 1
mov rax, r14
mov byte [r14 + 4], bl
cmp byte [rsp + 0x3c], 0
jmp 0x14000ab68
mov byte [r14 + 8], 1
mov byte [r14 + 4], 0
mov dword [r14], 0x80040111
jmp 0x14000aa9b