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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov rsi, rcx
mov rax, qword [0x140191d78]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
mov qword [rsi + 0x38], 0
mov byte [rsi + 8], 0
mov qword [rsi], 0
mov qword [rsi + 0x40], 0xf
mov byte [rsi + 0x28], 0
mov dword [rsi + 0x48], 3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
lea rcx, [0x140155a9e]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1401567e7]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
mov ecx, 0
test rax, rax
je 0x140038c1a
mov dword [rsp + 0x88], 0
lea rdx, [rsp + 0x88]
mov rcx, rdi
call rax
xor edx, edx
cmp dword [rsp + 0x88], 0
setne dl
test eax, eax
mov ecx, 2
cmovne ecx, edx
mov dword [rsi + 0x58], ecx
mov eax, 0xf
movq xmm0, rax
pslldq xmm0, 8
movdqu xmmword [rsi + 0x70], xmm0
mov byte [rsi + 0x60], 0
lea rcx, [rsp + 0x8c]
xor edx, edx
mov r8d, 0x118
call fcn.1400f0b20
mov dword [rsp + 0x88], 0x11c
lea rcx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [rsp + 0x8c]
mov dword [rsi + 0xc], eax
mov eax, dword [rsp + 0x90]
mov dword [rsi + 0x10], eax
mov eax, dword [rsp + 0x94]
mov dword [rsi + 0x14], eax
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.14001b380
lea r8, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rdx, 0xffffffff80000002
mov r9d, 1
mov rcx, rdi
call fcn.14001b4a0
test eax, eax
jne 0x140038cd0
mov dword [rsp + 0x68], 0
lea rdx, [0x14015685a]
lea rcx, [rsp + 0x30]
lea r8, [rsp + 0x68]
call fcn.14001b590
mov ebx, dword [rsp + 0x68]
lea r14, [rsp + 0x30]
mov rcx, r14
call fcn.14001b530
mov dword [rsi + 0x18], ebx
mov ecx, dword [rsi + 0x14]
mov edx, dword [rsi + 0xc]
mov eax, dword [rsi + 0x10]
test eax, eax
jle 0x140038d03
cmp edx, 5
jne 0x140038d03
xor ecx, ecx
cmp eax, 1
sete cl
mov eax, 2
sub eax, ecx
jmp 0x140038d58
cmp edx, 0xa
je 0x140038d1d
cmp edx, 6
jne 0x140038d4b
lea ecx, [rax + 3]
cmp eax, 3
mov eax, 6
cmovb eax, ecx
jmp 0x140038d58
mov eax, 7
cmp ecx, 0x295a
jl 0x140038d58
mov eax, 8
cmp ecx, 0x3839
jl 0x140038d58
xor edx, edx
cmp ecx, 0x3ad7
setl dl
mov eax, 0xa
sub eax, edx
jmp 0x140038d58
xor ecx, ecx
cmp edx, 6
mov eax, 0xb
cmovle eax, ecx
mov dword [rsi], eax
movzx eax, word [rsp + 0x19c]
mov dword [rsi + 0x20], eax
movzx eax, word [rsp + 0x19e]
mov dword [rsi + 0x24], eax
lea rdi, [rsi + 0x28]
lea r15, [rsp + 0x9c]
mov eax, 7
movq xmm0, rax
pslldq xmm0, 8
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], 0
mov rcx, r15
call fcn.1400f4120
mov rbx, rax
cmp rbx, 7
jbe 0x140038dbb
lea rcx, [rsp + 0x68]
mov rdx, rbx
mov r9, r15
call fcn.140001920
jmp 0x140038dda
mov qword [rsp + 0x78], rbx
mov r8, rbx
add r8, r8
lea rcx, [rsp + 0x68]
mov rdx, r15
call fcn.1400f0ce0
mov word [rsp + rbx*2 + 0x68], 0
lea rbx, [rsp + 0x68]
mov rcx, r14
mov rdx, rbx
call fcn.1400183e0
cmp r14, rdi
je 0x140038e64
mov rax, qword [rsi + 0x40]
cmp rax, 0x10
jb 0x140038e37
mov rcx, qword [rdi]
add rax, 1
cmp rax, 0x1000
jb 0x140038e32
test cl, 0x1f
jne 0x14003906c
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14003906c
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
mov rcx, rax
jae 0x14003906c
call fcn.1400edcd0
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
mov eax, 0xf
movq xmm0, rax
pslldq xmm0, 8
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
jmp 0x140038eaf
mov rax, qword [rsp + 0x48]
cmp rax, 0x10
jb 0x140038eaf
mov rcx, qword [rsp + 0x30]
add rax, 1
cmp rax, 0x1000
jb 0x140038eaa
test cl, 0x1f
jne 0x14003906c
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14003906c
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
mov rcx, rax
jae 0x14003906c
call fcn.1400edcd0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
mov rax, qword [rsp + 0x80]
cmp rax, 8
jb 0x140038f1d
add rax, 1
js 0x14003906c
mov rcx, qword [rsp + 0x68]
add rax, rax
cmp rax, 0x1000
jb 0x140038f18
test cl, 0x1f
jne 0x14003906c
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14003906c
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
mov rcx, rax
jae 0x14003906c
call fcn.1400edcd0
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x30]
test ax, ax
je 0x140038f63
movzx ecx, ax
cmp ecx, 6
je 0x140038f5c
cmp ecx, 9
jne 0x140038f68
mov ecx, 1
jmp 0x140038f65
mov ecx, 2
jmp 0x140038f65
xor ecx, ecx
mov dword [rsi + 0x48], ecx
mov ecx, dword [rsp + 0x50]
mov dword [rsi + 0x4c], ecx
mov ecx, dword [rsp + 0x58]
mov qword [rsi + 0x50], rcx
mov ecx, dword [rsp + 0x8c]
cmp ecx, 5
je 0x140038ff0
cmp ecx, 0xa
je 0x140038f91
cmp ecx, 6
jne case.0x140038fe5.1
lea rcx, [0x140155a9e]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetProductInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [rsp + 0x8c]
mov edx, dword [rsp + 0x90]
mov qword [rsp + 0x20], rbx
xor r8d, r8d
xor r9d, r9d
call rax
mov eax, dword [rsp + 0x68]
add eax, 0xffffffff
cmp eax, 0x81
ja case.0x140038fe5.1
lea rcx, [0x140039074]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov dword [rsi + 0x1c], 3
jmp 0x140039041
mov ecx, dword [rsp + 0x90]
cmp ecx, 1
je 0x140039027
cmp ecx, 2
jne case.0x140038fe5.1
movzx eax, ax
cmp eax, 9
jne 0x140039013
cmp byte [rsp + 0x1a2], 1
je case.0x140038fe5.0
cmp word [rsp + 0x1a0], 0
js case.0x140038fe5.1
mov dword [rsi + 0x1c], 2
jmp 0x140039041
test byte [rsp + 0x1a1], 2
jne case.0x140038fe5.1
mov dword [rsi + 0x1c], 1
jmp 0x140039041
mov dword [rsi + 0x1c], 0
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.1400edc60
mov rax, rsi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov dword [rsi + 0x1c], 4
jmp 0x140039041
call fcn.1400f4650
ud2