Function at 0x140007980
Capabilities:
Check os version
Get system information on windows
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1c8
movaps xmmword [rsp + 0x1b0], xmm6
mov rax, qword [0x140062040]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
mov eax, dword [0x140064648]
mov ecx, dword [0x1400624d0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140007a05
mov rax, qword [0x140064640]
mov esi, dword [rax]
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.14002ba50
mov eax, esi
movaps xmm6, xmmword [rsp + 0x1b0]
add rsp, 0x1c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140064648]
call fcn.14002b1c8
cmp dword [0x140064648], 0xffffffff
jne 0x1400079ce
lea rsi, [rsp + 0x38]
xor ebx, ebx
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call sub.ntdll.dll_memset
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
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 rsi, rax
mov r14, rax
mov r15d, dword [rdi]
mov eax, dword [0x140064680]
mov ecx, dword [0x1400624d0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140007afc
lea rcx, [0x140064680]
call fcn.14002b1c8
cmp dword [0x140064680], 0xffffffff
jne 0x140007afc
xorps xmm0, xmm0
lea rdi, [rsp + 0x150]
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 [0x140064670], xmm2
movups xmmword [0x140064660], xmm1
movups xmmword [0x140064650], xmm0
lea rcx, [0x140064680]
call fcn.14002b240
mov dword [r14], ebx
xorps xmm6, xmm6
movups xmmword [r14 + 0x20], xmm6
mov qword [r14 + 0x30], rbx
mov r12d, 0xf
mov qword [r14 + 0x38], r12
movups xmmword [r14 + 0x40], xmm6
mov qword [r14 + 0x50], rbx
mov qword [r14 + 0x58], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdi, [rsp + 0x150]
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
movups xmmword [r14 + 0x78], xmm6
mov qword [r14 + 0x88], rbx
mov qword [r14 + 0x90], r12
mov r13d, dword [rsp + 0x38]
mov dword [r14 + 4], r13d
mov eax, dword [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov dword [r14 + 8], eax
mov ebp, dword [rsp + 0x40]
mov dword [r14 + 0xc], ebp
mov qword [rdi + 0x10], rbx
movaps xmmword [rdi], xmm6
mov qword [rdi + 0x18], 7
lea rdi, [rsp + 0x188]
lea rbx, [rsp + 0x150]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140008a10
mov r12, qword [rdi]
movups xmm6, xmmword [rdi + 8]
mov rdi, qword [rdi + 0x18]
mov rax, qword [rbx + 0x18]
cmp rax, 8
jae 0x140007cf5
mov dword [r14 + 0x10], 0
mov qword [r14 + 0x20], r12
movups xmmword [r14 + 0x28], xmm6
mov qword [r14 + 0x38], rdi
cmp r13d, 0xa
jne 0x140007d3a
mov eax, 0xf
cmp ebp, 0x4a60
jle 0x140007d67
add rsi, 0x40
mov dword [r14], eax
lea rdx, [rsp + 0x48]
movzx eax, word [rdx + 0x100]
mov dword [r14 + 0x18], eax
movzx eax, word [rdx + 0x102]
mov dword [r14 + 0x1c], eax
cmp word [rdx], 0
jne 0x140007de0
xor r8d, r8d
lea rdi, [rsp + 0x150]
mov rcx, rdi
call fcn.140008a10
mov ecx, dword [0x140064670]
mov edx, dword [0x140064678]
mov eax, dword [rsp + 0x38]
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov dword [r14 + 0x60], ecx
mov qword [r14 + 0x68], rdx
cmp eax, 0xa
jne 0x140007df7
cmp r15d, 0x30
ja 0x140007ca3
mov eax, r15d
mov ecx, 0x206f780
bt rcx, rax
jb 0x140007e35
mov ecx, 0x8010050
bt rcx, rax
jb 0x140007e42
movabs rcx, 0x1000000000002
bt rcx, rax
jb 0x140007ea0
add r15d, 0xffffffba
cmp r15d, 0x3c
ja 0x140007cd5
movabs rax, 0x1980000000004005
bt rax, r15
jb 0x140007e42
movabs rax, 0x18000000000000
bt rax, r15
jb 0x140007e4f
mov dword [r14 + 0x14], 0
mov qword [0x140064640], r14
lea rcx, [0x140064648]
call fcn.14002b240
jmp 0x1400079ce
mov rcx, qword [rsp + 0x150]
lea rdx, [rax*2 + 2]
cmp rdx, 0x1000
jb 0x140007d30
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140007ead
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 0x140007bca
mov eax, 0x10
cmp r13d, 6
jg 0x140007bfa
jne 0x140007e6a
mov rax, qword [rsp + 0x28]
lea ecx, [rax + 3]
cmp eax, 3
mov eax, 6
cmovb eax, ecx
jmp 0x140007bfa
mov eax, 0xe
cmp ebp, 0x47b9
jg 0x140007bfa
mov eax, 0xd
cmp ebp, 0x4562
jg 0x140007bfa
mov eax, 0xc
cmp ebp, 0x42ed
jg 0x140007bfa
mov eax, 0xb
cmp ebp, 0x3faa
jg 0x140007bfa
mov eax, 0xa
cmp ebp, 0x3ad6
jg 0x140007bfa
mov eax, 9
cmp ebp, 0x3838
jg 0x140007bfa
xor eax, eax
cmp ebp, 0x295a
setge al
add eax, 7
jmp 0x140007bfa
xor eax, eax
lea r8, [rax + 1]
cmp word [rsp + rax*2 + 0x4a], 0
mov rax, r8
je 0x140007c29
jmp 0x140007de2
cmp eax, 5
jne 0x140007e5c
mov eax, dword [rsp + 0x3c]
cmp eax, 1
je 0x140007e92
cmp eax, 2
jne 0x140007cd5
cmp byte [rsp + 0x14e], 1
jne 0x140007e26
cmp word [0x140064650], 9
je 0x140007ea0
cmp word [rsp + 0x14c], 0
js 0x140007cd5
mov dword [r14 + 0x14], 2
jmp 0x140007cdd
mov dword [r14 + 0x14], 3
jmp 0x140007cdd
mov dword [r14 + 0x14], 4
jmp 0x140007cdd
cmp eax, 6
je 0x140007c68
jmp 0x140007cd5
xor eax, eax
cmp dword [rsp + 0x28], 0
je 0x140007bfa
cmp r13d, 5
jne 0x140007bfa
xor eax, eax
cmp dword [rsp + 0x28], 1
setne al
inc eax
jmp 0x140007bfa
test byte [rsp + 0x14d], 2
jne 0x140007cd5
mov dword [r14 + 0x14], 1
jmp 0x140007cdd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3