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

Disassembly:
push rbp
push rbx
push rsi
lea rbp, [rsp - 0xad0]
sub rsp, 0xbd0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xac0], rax
mov rsi, rdx
xor r8d, r8d
lea rdx, [0x140079378]
mov rbx, rcx
call fcn.140003a80
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14003779a
cmp dword [rbp - 0x80], 2
jne 0x14003779a
cmp dword [rsp + 0x74], 5
jb 0x14003779a
xor eax, eax
mov qword [rsp + 0xc00], rdi
lea rcx, str.kernel32.dll
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_GetModuleHandleW]
mov rcx, rax
lea rdx, str.GetNativeSystemInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x38]
test rax, rax
je 0x14003753c
call rax
jmp 0x140037542
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.GetProductInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r8d, 4
lea rdx, str.base
mov rcx, rsi
mov rdi, rax
call fcn.140003a80
test rdi, rdi
je 0x14003760a
movzx r9d, word [rbp + 0x86]
lea rax, [rsp + 0x30]
movzx r8d, word [rbp + 0x84]
mov edx, dword [rsp + 0x78]
mov ecx, dword [rsp + 0x74]
mov qword [rsp + 0x20], rax
call rdi
movzx eax, word [rbp + 0x84]
test ax, ax
je 0x14003760a
movzx r9d, ax
lea r8, str.sp_d
mov edx, 0x514
lea rcx, [rbp + 0x90]
call fcn.140002210
cmp word [rbp + 0x90], 0
jne 0x1400375db
xor r8d, r8d
jmp 0x1400375fb
lea rax, [rbp + 0x90]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400375f0
lea rdx, [rbp + 0x90]
mov rcx, rsi
call fcn.140003a80
mov eax, dword [rsp + 0x74]
mov rdi, qword [rsp + 0xc00]
cmp eax, 6
jne 0x1400376b9
mov eax, dword [rsp + 0x78]
test eax, eax
jne 0x140037656
cmp byte [rbp + 0x8a], 1
mov rcx, rbx
jne 0x14003764a
lea r8d, [rax + 5]
lea rdx, str.vista
call fcn.140003a80
mov al, 1
jmp 0x14003779c
lea rdx, str.win2008
jmp 0x14003778b
cmp eax, 1
jne 0x140037696
mov rcx, rbx
cmp byte [rbp + 0x8a], al
jne 0x14003767d
lea r8d, [rax + 3]
lea rdx, str.win7
call fcn.140003a80
mov al, 1
jmp 0x14003779c
mov r8d, 9
lea rdx, str.win2008r2
call fcn.140003a80
mov al, 1
jmp 0x14003779c
cmp eax, 2
jne 0x140037796
lea r8d, [rax + 2]
mov rcx, rbx
lea rdx, str.win8
call fcn.140003a80
mov al, 1
jmp 0x14003779c
cmp eax, 5
jne 0x140037796
mov eax, dword [rsp + 0x78]
cmp eax, 2
jne 0x140037778
lea ecx, [rax + 0x57]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1400376f8
mov r8d, 0xd
lea rdx, str.windows2003r2
mov rcx, rbx
call fcn.140003a80
mov al, 1
jmp 0x14003779c
movzx eax, word [rbp + 0x88]
mov ecx, 0x2000
test cx, ax
je 0x140037722
mov r8d, 0x12
lea rdx, str.windows2003storage
mov rcx, rbx
call fcn.140003a80
mov al, 1
jmp 0x14003779c
mov ecx, 0x8000
test cx, ax
je 0x140037745
mov r8d, 0x11
lea rdx, str.windowshomeserver
mov rcx, rbx
call fcn.140003a80
mov al, 1
jmp 0x14003779c
cmp byte [rbp + 0x8a], 1
jne 0x14003776f
cmp word [rsp + 0x38], 9
jne 0x14003776f
mov r8d, 2
lea rdx, [0x14006efbc]
mov rcx, rbx
call fcn.140003a80
mov al, 1
jmp 0x14003779c
lea rdx, str.win2003
jmp 0x140037788
cmp eax, 1
je 0x140037756
test eax, eax
jne 0x140037796
lea rdx, str.win2000
mov rcx, rbx
mov r8d, 7
call fcn.140003a80
mov al, 1
jmp 0x14003779c
xor al, al
mov rcx, qword [rbp + 0xac0]
xor rcx, rsp
call fcn.14003a3d0
add rsp, 0xbd0
pop rsi
pop rbx
pop rbp
ret