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

Disassembly:
mov r11, rsp
push rbp
push rsi
sub rsp, 0x288
mov rax, qword [0x1400950c8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov esi, edx
mov rbp, rcx
test rcx, rcx
je 0x140004568
test edx, edx
je 0x140004568
xor eax, eax
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rdi
mov qword [r11 - 0x18], r12
mov qword [r11 - 0x177], rax
mov qword [r11 - 0x16f], rax
mov qword [r11 - 0x167], rax
mov qword [r11 - 0x15f], rax
mov qword [r11 - 0x157], rax
mov qword [r11 - 0x14f], rax
mov qword [r11 - 0x147], rax
mov qword [r11 - 0x20], r13
lea rdi, [0x1400757f4]
xor r12d, r12d
mov qword [r11 - 0x28], r15
mov byte [r11 - 0x178], r12b
lea rcx, [r11 - 0x218]
xor edx, edx
mov r8d, 0x9c
mov rbx, rdi
mov r15, rdi
mov dword [rsp + 0x159], eax
mov word [rsp + 0x15d], ax
mov byte [rsp + 0x15f], al
mov dword [rsp + 0x48], r12d
xor r13b, r13b
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
call fcn.14005fe50
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x80], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x140003eb1
mov r13, qword [rsp + 0x278]
mov r12, qword [rsp + 0x280]
mov rdi, qword [rsp + 0x2b8]
mov rbx, qword [rsp + 0x2b0]
mov r15, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14005fe20
add rsp, 0x288
pop rsi
pop rbp
ret
lea rcx, str.KERNEL32.DLL
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140003edc
lea rcx, [rsp + 0x50]
call rax
jmp 0x140003ee7
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x44]
mov dword [rsp + 0x44], r12d
mov dword [rsp + 0x40], r12d
call fcn.140003c70
mov r12d, dword [rsp + 0x44]
test al, al
je 0x140003f31
cmp r12d, 6
ja 0x140003f1c
cmp r12d, 6
jne 0x140003f31
cmp dword [rsp + 0x40], 2
jbe 0x140003f31
lea rcx, [rsp + 0x120]
mov edx, 0x40
call fcn.140003ce0
mov r13b, 1
cmp dword [rsp + 0x90], 2
jne 0x140004561
mov r8d, dword [rsp + 0x84]
cmp r8d, 4
jbe 0x140004561
test r13b, r13b
je 0x140004011
cmp r12d, 0xa
jne 0x140003fe6
cmp dword [rsp + 0x40], 0
jne 0x140004011
movzx edx, byte [rsp + 0x11a]
cmp dl, 1
jne 0x140003f88
lea rdi, str.Windows_10
jmp 0x140004018
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x120]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 1
je 0x140003fda
lea rdx, str.17763
lea rcx, [rsp + 0x120]
call fcn.1400605e0
mov dl, byte [rsp + 0x11a]
mov r8d, dword [rsp + 0x84]
lea rdi, str.Windows_Server_2019
lea rcx, str.Windows_Server_2016
test eax, eax
cmovne rdi, rcx
jmp 0x140004018
lea rcx, str.Windows_Server_2016
mov rdi, rcx
jmp 0x140004018
cmp r12d, 6
jne 0x140004011
cmp dword [rsp + 0x40], 3
jne 0x140004011
mov dl, byte [rsp + 0x11a]
lea rdi, str.Windows_8.1
lea rax, str.Windows_Server_2012_R2
cmp dl, 1
cmovne rdi, rax
jmp 0x140004018
mov dl, byte [rsp + 0x11a]
cmp r8d, 6
jne 0x140004108
mov eax, dword [rsp + 0x88]
test eax, eax
jne 0x140004044
lea rdi, str.Windows_Vista
lea rax, str.Windows_Server_2008
cmp dl, 1
cmovne rdi, rax
jmp 0x14000407f
cmp eax, 1
jne 0x140004060
lea rdi, str.Windows_7
lea rax, str.Windows_Server_2008_R2
cmp dl, 1
cmovne rdi, rax
jmp 0x14000407f
cmp eax, 2
jne 0x14000407f
test r13b, r13b
jne 0x14000407f
lea rdi, str.Windows_8
lea rax, str.Windows_Server_2012
cmp dl, 1
cmovne rdi, rax
lea rcx, str.KERNEL32.DLL
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.GetProductInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [rsp + 0x88]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov ecx, dword [rsp + 0x84]
xor r9d, r9d
xor r8d, r8d
call rax
lea rcx, [rsp + 0x160]
xor edx, edx
mov r8d, 0x100
call fcn.14005fe50
mov ecx, dword [rsp + 0x48]
lea rdx, [rsp + 0x160]
mov r8d, 0x100
call fcn.1400036c0
mov dl, byte [rsp + 0x11a]
mov r8d, dword [rsp + 0x84]
lea rcx, [rsp + 0x160]
test al, al
cmove rcx, rbx
mov rbx, rcx
mov r12d, 9
cmp r8d, 5
jne 0x1400042d9
mov eax, dword [rsp + 0x88]
cmp eax, 2
jne 0x140004262
lea ecx, [rax + 0x57]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
movzx ecx, byte [rsp + 0x118]
mov r9, qword [rsp + 0x50]
mov dl, byte [rsp + 0x11a]
movzx r10d, word [rsp + 0x118]
test eax, eax
je 0x14000415b
lea rdi, str.Windows_Server_2003_R2
jmp 0x1400041a1
mov eax, 0x2000
cmp ax, r10w
jne 0x14000416f
lea rdi, str.Windows_Storage_Server_2003
jmp 0x1400041a1
mov eax, 0x8000
cmp ax, r10w
jne 0x140004183
lea rdi, str.Windows_Home_Server
jmp 0x1400041a1
cmp dl, 1
jne 0x14000419a
cmp r12w, r9w
jne 0x14000419a
lea rdi, str.Windows_XP_Professional_x64_Edition
jmp 0x140004247
lea rdi, str.Windows_Server_2003
cmp dl, 1
je 0x140004247
mov eax, 6
cmp ax, r9w
jne 0x1400041d3
test cl, cl
jns 0x1400041c5
lea rbx, str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x140004247
test cl, 2
je 0x140004247
lea rbx, str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x140004247
cmp r12w, r9w
jne 0x1400041fd
test cl, cl
jns 0x1400041e6
lea rbx, str.Datacenter_x64_Edition
jmp 0x140004247
lea rbx, str.Enterprise_x64_Edition
lea rax, str.Standard_x64_Edition
test cl, 2
cmove rbx, rax
jmp 0x140004247
mov eax, 0x4000
test ax, r10w
je 0x140004211
lea rbx, str.Compute_Cluster_Edition
jmp 0x140004247
test cl, cl
jns 0x14000421e
lea rbx, str.Datacenter_Edition
jmp 0x140004247
test cl, 2
je 0x14000422c
lea rbx, str.Enterprise_Edition
jmp 0x140004247
mov eax, 0x400
lea rbx, str.Web_Edition
test ax, r10w
lea rax, str.Standard_Edition
cmove rbx, rax
mov r8d, dword [rsp + 0x84]
cmp r8d, 5
jne 0x1400042de
mov eax, dword [rsp + 0x88]
jmp 0x140004273
mov r10w, word [rsp + 0x118]
mov r9, qword [rsp + 0x50]
mov cl, r10b
cmp eax, 1
jne 0x14000429c
mov eax, 0x200
lea rbx, str.Home_Edition
lea rdi, str.Windows_XP
test ax, r10w
lea rax, str.Professional
cmove rbx, rax
jmp 0x1400042e4
test eax, eax
jne 0x1400042e4
lea rdi, str.Windows_2000
cmp dl, 1
jne 0x1400042b5
lea rbx, str.Professional
jmp 0x1400042e4
test cl, cl
jns 0x1400042c2
lea rbx, str.Datacenter_Server
jmp 0x1400042e4
lea rbx, str.Advanced_Server
lea rax, str.Server
test cl, 2
cmove rbx, rax
jmp 0x1400042e4
mov r9, qword [rsp + 0x50]
cmp r8d, 5
jb 0x140004307
cmp r12w, r9w
jne 0x1400042f3
lea r15, str.64_Bit
jmp 0x140004307
xor ecx, ecx
lea rax, str.32_Bit
cmp cx, r9w
cmovne rax, r15
mov r15, rax
cmp r8d, 4
lea r9, str.Microsoft_Windows_NT
cmova r9, rdi
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r15
repne scasb al, byte [rdi]
not rcx
cmp rcx, 1
jne 0x140004443
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x94]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 1
jne 0x1400043d3
test r13b, r13b
je 0x14000439d
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x120]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 1
je 0x14000439d
lea rax, [rsp + 0x120]
lea edx, [rsi - 2]
lea r8, str._s_s_s__Build__s_
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x94]
mov rcx, rbp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call fcn.14005ff3c
mov al, 1
jmp 0x140003e6f
mov eax, dword [rsp + 0x8c]
lea edx, [rsi - 2]
lea r8, str._s_s_s__Build__d_
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x94]
mov rcx, rbp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call fcn.14005ff3c
mov al, 1
jmp 0x140003e6f
test r13b, r13b
je 0x14000441a
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x120]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 1
je 0x14000441a
lea rax, [rsp + 0x120]
lea edx, [rsi - 2]
lea r8, str._s_s_Build__s_
mov qword [rsp + 0x28], rax
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call fcn.14005ff3c
mov al, 1
jmp 0x140003e6f
mov eax, dword [rsp + 0x8c]
lea edx, [rsi - 2]
lea r8, str._s_s_Build__d_
mov dword [rsp + 0x28], eax
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call fcn.14005ff3c
mov al, 1
jmp 0x140003e6f
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x94]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 1
jne 0x1400044d4
test r13b, r13b
je 0x1400044a6
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x120]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 1
je 0x1400044a6
lea rax, [rsp + 0x120]
mov qword [rsp + 0x30], r15
lea edx, [rsi - 2]
mov qword [rsp + 0x28], rax
lea r8, str._s_s_Build__s___s
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call fcn.14005ff3c
mov al, 1
jmp 0x140003e6f
mov eax, dword [rsp + 0x8c]
mov qword [rsp + 0x30], r15
lea edx, [rsi - 2]
mov dword [rsp + 0x28], eax
lea r8, str._s_s_Build__d___s
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call fcn.14005ff3c
mov al, 1
jmp 0x140003e6f
test r13b, r13b
je 0x14000452d
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x120]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 1
je 0x14000452d
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x120]
lea edx, [rsi - 2]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x94]
lea r8, str._s_s_s__Build__s___s
mov qword [rsp + 0x28], rax
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call fcn.14005ff3c
mov al, 1
jmp 0x140003e6f
mov eax, dword [rsp + 0x8c]
mov qword [rsp + 0x38], r15
lea edx, [rsi - 2]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x94]
lea r8, str._s_s_s__Build__d___s
mov qword [rsp + 0x28], rax
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call fcn.14005ff3c
mov al, 1
jmp 0x140003e6f
xor al, al
jmp 0x140003e97