Function at 0x140013850
Capabilities:
Check os version
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1d8
mov rax, qword [0x140044028]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov eax, dword [0x140045ac8]
mov ecx, dword [0x1400441a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400138c4
lea rsi, [0x140045ac0]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14001cdf0
mov rax, rsi
add rsp, 0x1d8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140045ac8]
call fcn.14001bb50
cmp dword [0x140045ac8], 0xffffffff
jne 0x140013896
lea rsi, [rsp + 0x64]
xor ebx, ebx
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x4c]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x98
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rsp + 0x40], rax
mov r14, rax
mov eax, dword [rdi]
mov qword [rsp + 0x38], rax
mov eax, dword [0x140045b00]
mov ecx, dword [0x1400441a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x1400139c1
lea rcx, [0x140045b00]
call fcn.14001bb50
cmp dword [0x140045b00], 0xffffffff
jne 0x1400139c1
xorps xmm0, xmm0
lea rdi, [rsp + 0x180]
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movaps xmm0, xmmword [rdi]
movaps xmm1, xmmword [rdi + 0x10]
movaps xmm2, xmmword [rdi + 0x20]
movups xmmword [0x140045af0], xmm2
movups xmmword [0x140045ae0], xmm1
movups xmmword [0x140045ad0], xmm0
lea rcx, [0x140045b00]
call fcn.14001baf0
mov dword [r14], ebx
mov qword [r14 + 0x20], rbx
mov qword [r14 + 0x30], rbx
mov esi, 0xf
mov qword [r14 + 0x38], rsi
mov byte [r14 + 0x20], bl
mov qword [r14 + 0x40], rbx
mov qword [r14 + 0x50], rbx
mov qword [r14 + 0x58], rsi
mov byte [r14 + 0x40], bl
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdi, [rsp + 0x180]
mov dword [rdi], ebx
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
xor ecx, ecx
cmp dword [rdi], ebx
setne cl
test eax, eax
mov eax, 2
cmovne eax, ecx
mov dword [r14 + 0x70], eax
mov qword [r14 + 0x78], rbx
mov qword [r14 + 0x88], rbx
mov qword [r14 + 0x90], rsi
mov byte [r14 + 0x78], bl
mov r13d, dword [rsp + 0x64]
mov dword [r14 + 4], r13d
mov r12d, dword [rsp + 0x68]
mov dword [r14 + 8], r12d
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x34], eax
mov dword [r14 + 0xc], eax
mov qword [rdi], rbx
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 7
mov word [rdi], 0
lea rdx, [rsp + 0x50]
mov qword [rdx], rdi
mov qword [rdx + 8], rbx
lea rbx, [rsp + 0x1b0]
mov rcx, rbx
call fcn.140013dc0
mov r15, qword [rbx]
mov rbp, qword [rbx + 8]
mov rsi, qword [rbx + 0x10]
mov rbx, qword [rbx + 0x18]
mov rax, qword [rdi + 0x18]
cmp rax, 8
jae 0x140013b95
mov dword [r14 + 0x10], 0
mov qword [r14 + 0x20], r15
mov qword [r14 + 0x28], rbp
mov qword [r14 + 0x30], rsi
mov qword [r14 + 0x38], rbx
cmp r13d, 0xa
je 0x140013bda
cmp r13d, 6
jg 0x140013c74
jne 0x140013c7e
lea ecx, [r12 + 3]
cmp r12d, 3
mov eax, 6
cmovb eax, ecx
mov rsi, qword [rsp + 0x40]
add rsi, 0x40
mov dword [r14], eax
lea rax, [rsp + 0x74]
movzx ecx, word [rax + 0x100]
mov dword [r14 + 0x18], ecx
movzx ecx, word [rax + 0x102]
mov dword [r14 + 0x1c], ecx
mov qword [rsp + 0x1b0], rax
cmp word [rax], 0
jne 0x140013ca8
xor eax, eax
lea rdx, [rsp + 0x1b0]
mov qword [rdx + 8], rax
lea rdi, [rsp + 0x180]
mov rcx, rdi
call fcn.140013dc0
mov eax, dword [rsp + 0x64]
mov ecx, dword [0x140045af8]
mov edx, dword [0x140045af0]
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov dword [r14 + 0x60], edx
mov qword [r14 + 0x68], rcx
cmp eax, 6
jne 0x140013cbf
mov rcx, qword [rsp + 0x38]
lea eax, [rcx - 7]
cmp eax, 4
jae 0x140013cff
mov dword [r14 + 0x14], 2
mov qword [0x140045ac0], r14
lea rcx, [0x140045ac8]
call fcn.14001baf0
jmp 0x140013896
mov rcx, qword [rsp + 0x180]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140013bd0
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140013db1
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call sub.mozglue.dll_void___cdecl_operator_delete_void____ptr64__unsigned_long_long_unsigned___int64__
jmp 0x140013a9b
mov eax, 0xf
cmp dword [rsp + 0x34], 0x4a60
jg 0x140013ade
mov eax, 0xe
cmp dword [rsp + 0x34], 0x47b9
jg 0x140013ade
mov eax, 0xd
cmp dword [rsp + 0x34], 0x4562
jg 0x140013ade
mov eax, 0xc
cmp dword [rsp + 0x34], 0x42ed
jg 0x140013ade
mov eax, 0xb
cmp dword [rsp + 0x34], 0x3faa
jg 0x140013ade
mov eax, 0xa
cmp dword [rsp + 0x34], 0x3ad6
jg 0x140013ade
mov eax, 9
cmp dword [rsp + 0x34], 0x3838
jg 0x140013ade
xor eax, eax
cmp dword [rsp + 0x34], 0x295a
setge al
add eax, 7
jmp 0x140013ade
mov eax, 0x10
jmp 0x140013ade
xor eax, eax
test r12d, r12d
je 0x140013ade
cmp r13d, 5
jne 0x140013ade
xor ecx, ecx
cmp r12d, 1
sete cl
mov eax, 2
sub eax, ecx
jmp 0x140013ade
xor ecx, ecx
lea rax, [rcx + 1]
cmp word [rsp + rcx*2 + 0x76], 0
mov rcx, rax
je 0x140013b19
jmp 0x140013caa
cmp eax, 5
jne 0x140013d1e
mov eax, dword [rsp + 0x68]
cmp eax, 1
je 0x140013d79
cmp eax, 2
jne 0x140013d11
cmp byte [rsp + 0x17a], 1
jne 0x140013cee
cmp word [0x140045ad0], 9
je 0x140013d83
cmp word [rsp + 0x178], 0
jns 0x140013b75
jmp 0x140013d11
cmp ecx, 0x30
jbe 0x140013d29
mov rax, qword [rsp + 0x38]
add eax, 0xffffffba
cmp eax, 0x3c
jbe 0x140013d59
mov dword [r14 + 0x14], 0
jmp 0x140013b7d
cmp eax, 0xa
je 0x140013b64
jmp 0x140013d11
mov eax, dword [rsp + 0x38]
mov ecx, 0x206f000
bt rcx, rax
jb 0x140013b75
mov ecx, 0x8010050
bt rcx, rax
jb 0x140013d6c
movabs rcx, 0x1000000000002
bt rcx, rax
jae 0x140013d04
jmp 0x140013d83
mov rcx, rax
movabs rax, 0x1980000000004005
bt rax, rcx
jae 0x140013d90
mov dword [r14 + 0x14], 3
jmp 0x140013b7d
test byte [rsp + 0x179], 2
jne 0x140013d11
mov dword [r14 + 0x14], 1
jmp 0x140013b7d
movabs rax, 0x18000000000000
bt rax, rcx
jae 0x140013d11
mov dword [r14 + 0x14], 4
jmp 0x140013b7d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3