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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x1400d33c0]
xor rax, rsp
mov qword [rbp + 0x90], rax
xor esi, esi
mov rbx, rcx
mov dword [rsp + 0x30], esi
mov dword [rcx], esi
mov dword [rcx + 0x1c], 3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, str.kernel32.dll
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.IsWow64Process
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140012da1
mov eax, esi
jmp 0x140012dc3
lea rdx, [rsp + 0x34]
mov rcx, rdi
mov dword [rsp + 0x34], esi
call rax
test eax, eax
jne 0x140012dba
mov eax, 2
jmp 0x140012dc3
mov eax, esi
cmp dword [rsp + 0x34], eax
setne al
mov dword [rbx + 0x30], eax
lea rcx, [rsp + 0x74]
xor edx, edx
mov qword [rbx + 0x50], 0xf
mov qword [rbx + 0x48], rsi
mov byte [rbx + 0x38], sil
mov r8d, 0x118
mov dword [rsp + 0x70], 0x11c
call fcn.140091cf0
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, dword [rsp + 0x74]
mov ecx, dword [rsp + 0x78]
mov eax, dword [rsp + 0x7c]
mov dword [rbx + 4], edx
mov dword [rbx + 8], ecx
mov dword [rbx + 0xc], eax
cmp edx, 5
jne 0x140012e27
test ecx, ecx
jle 0x140012e6c
cmp ecx, 1
mov eax, esi
setne al
inc eax
mov dword [rbx], eax
jmp 0x140012e6c
cmp edx, 6
jne 0x140012e54
test ecx, ecx
je 0x140012e4c
dec ecx
je 0x140012e44
dec ecx
je 0x140012e3c
mov dword [rbx], edx
jmp 0x140012e6c
mov dword [rbx], 5
jmp 0x140012e6c
mov dword [rbx], 4
jmp 0x140012e6c
mov dword [rbx], 3
jmp 0x140012e6c
cmp edx, 0xa
jne 0x140012e61
mov dword [rbx], 7
jmp 0x140012e6c
cmp edx, 6
jle 0x140012e6c
mov dword [rbx], 8
movzx eax, word [rbp + 0x84]
lea rcx, [rsp + 0x38]
mov dword [rbx + 0x14], eax
movzx eax, word [rbp + 0x86]
mov dword [rbx + 0x18], eax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov rdx, qword [rsp + 0x38]
movzx eax, dx
test eax, eax
je 0x140012ed3
cmp eax, 6
je 0x140012eca
cmp eax, 9
jne 0x140012ed6
mov dword [rbx + 0x1c], 1
jmp 0x140012ed6
mov dword [rbx + 0x1c], 2
jmp 0x140012ed6
mov dword [rbx + 0x1c], esi
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x74]
mov dword [rbx + 0x20], eax
mov eax, dword [rsp + 0x60]
mov qword [rbx + 0x28], rax
lea eax, [rcx - 6]
test eax, 0xfffffffb
je 0x140012f58
cmp ecx, 5
jne case.0x140012fb3.2
mov ecx, dword [rsp + 0x78]
cmp ecx, 2
jne 0x140012f3b
cmp byte [rbp + 0x8a], 1
jne 0x140012f20
cmp dx, 9
jne 0x140012f20
mov dword [rbx + 0x10], 1
jmp 0x140012fc1
movzx eax, word [rbp + 0x88]
not ax
movzx ecx, ax
shr ecx, 0xe
and ecx, 2
mov dword [rbx + 0x10], ecx
jmp 0x140012fc1
cmp ecx, 1
jne case.0x140012fb3.2
movzx eax, word [rbp + 0x88]
not ax
movzx ecx, ax
shr ecx, 9
and ecx, 1
mov dword [rbx + 0x10], ecx
jmp 0x140012fc1
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetProductInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [rsp + 0x78]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov ecx, dword [rsp + 0x74]
xor r9d, r9d
xor r8d, r8d
call rax
mov eax, dword [rsp + 0x30]
dec eax
cmp eax, 0x2f
ja case.0x140012fb3.2
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x12ff8]
mov ecx, dword [rdx + rax*4 + 0x12fec]
add rcx, rdx
jmp rcx
mov dword [rbx + 0x10], 2
jmp 0x140012fc1
mov dword [rbx + 0x10], esi
mov rax, rbx
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140091a70
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret