Function at 0x14004a6a0
Capabilities:
Check os version
Get system information on windows
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x1401a5020]
xor rax, rsp
mov qword [rbp + 0x60], rax
xor eax, eax
mov rbx, rcx
lea rcx, [rsp + 0x74]
mov qword [rsp + 0x38], rax
xor edx, edx
mov qword [rsp + 0x40], rax
mov r8d, 0x98
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
call fcn.140081700
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14004ab9f
lea rcx, [0x140161940]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [0x140161928]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x38]
test rax, rax
je 0x14004a73b
call rax
jmp 0x14004a741
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rbp - 0x80], 2
jne 0x14004ab92
cmp dword [rsp + 0x74], 4
jbe 0x14004ab92
lea r8, str.Microsoft
mov edx, 0x100
sub r8, rbx
mov rcx, rbx
nop dword [rax + rax]
lea rax, [rdx + 0x7ffffefe]
test rax, rax
je 0x14004a790
movzx eax, byte [r8 + rcx]
test al, al
je 0x14004a790
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x14004a770
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
cmp dword [rsp + 0x74], 6
mov byte [rax], 0
jne case.0x14004a882.5
mov eax, dword [rsp + 0x78]
test eax, eax
jne 0x14004a7cc
cmp byte [rbp + 0xa], 1
mov rcx, rbx
jne 0x14004a7c3
lea r8, str.Windows_Vista
jmp 0x14004a81e
lea r8, str.Windows_Server_2008
jmp 0x14004a81e
cmp eax, 1
jne 0x14004a7eb
mov rcx, rbx
cmp byte [rbp + 0xa], al
jne 0x14004a7e2
lea r8, str.Windows_7
jmp 0x14004a81e
lea r8, str.Windows_Server_2008_R2
jmp 0x14004a81e
cmp eax, 2
jne 0x14004a802
cmp byte [rbp + 0xa], 1
mov rcx, rbx
jne 0x14004a817
lea r8, str.Windows_8
jmp 0x14004a81e
cmp eax, 3
jne 0x14004a823
cmp byte [rbp + 0xa], 1
lea r8, str.Windows_8.1
mov rcx, rbx
je 0x14004a81e
lea r8, str.Windows_Server_2012
call fcn.14004ca40
lea rcx, [0x140161940]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.GetProductInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [rsp + 0x78]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov ecx, dword [rsp + 0x74]
xor r8d, r8d
call rax
mov eax, dword [rsp + 0x30]
dec eax
cmp eax, 0x2f
ja case.0x14004a882.5
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x4ac08]
mov ecx, dword [rdx + rax*4 + 0x4abc0]
add rcx, rdx
jmp rcx
lea r8, str._Ultimate_Edition
jmp 0x14004a921
lea r8, str._Professional
jmp 0x14004a921
lea r8, str._Home_Premium_Edition
jmp 0x14004a921
lea r8, str._Home_Basic_Edition
jmp 0x14004a921
lea r8, str._Enterprise_Edition
jmp 0x14004a921
lea r8, str._Business_Edition
jmp 0x14004a921
lea r8, str._Starter_Edition
jmp 0x14004a921
lea r8, str._Cluster_Server_Edition
jmp 0x14004a921
lea r8, str._Datacenter_Edition
jmp 0x14004a921
lea r8, str._Datacenter_Edition__core_installation_
jmp 0x14004a921
lea r8, str._Enterprise_Edition__core_installation_
jmp 0x14004a921
lea r8, str._Enterprise_Edition_for_Itanium_based_Systems
jmp 0x14004a921
lea r8, str._Small_Business_Server
jmp 0x14004a921
lea r8, str._Small_Business_Server_Premium_Edition
jmp 0x14004a921
lea r8, str._Standard_Edition
jmp 0x14004a921
lea r8, str._Standard_Edition__core_installation_
jmp 0x14004a921
lea r8, str._Web_Server_Edition
mov rcx, rbx
call fcn.14004ca40
cmp dword [rsp + 0x74], 5
jne 0x14004ab00
mov eax, dword [rsp + 0x78]
cmp eax, 2
jne 0x14004aa73
lea ecx, [rax + 0x57]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x14004a957
lea r8, str.Windows_Server_2003_R2
jmp 0x14004a99d
movzx eax, word [rbp + 8]
mov ecx, 0x2000
test cx, ax
je 0x14004a96e
lea r8, str.Windows_Storage_Server_2003
jmp 0x14004a99d
mov ecx, 0x8000
test cx, ax
je 0x14004a981
lea r8, str.Windows_Home_Server
jmp 0x14004a99d
cmp byte [rbp + 0xa], 1
jne 0x14004a996
cmp word [rsp + 0x38], 9
lea r8, str.Windows_XP_Professional_x64_Edition
je 0x14004a99d
lea r8, str.Windows_Server_2003
mov rcx, rbx
call fcn.14004ca40
cmp byte [rbp + 0xa], 1
je 0x14004aa64
mov rax, qword [rsp + 0x38]
cmp ax, 6
jne 0x14004a9df
movzx eax, byte [rbp + 8]
test al, al
jns 0x14004a9ce
lea r8, str._Datacenter_Edition_for_Itanium_based_Systems
jmp 0x14004aa5c
test al, 2
je 0x14004aa64
lea r8, str._Enterprise_Edition_for_Itanium_based_Systems
jmp 0x14004aa5c
cmp ax, 9
jne 0x14004aa0f
movzx eax, byte [rbp + 8]
test al, al
jns 0x14004a9f6
lea r8, str._Datacenter_x64_Edition
jmp 0x14004aa5c
mov rcx, rbx
test al, 2
je 0x14004aa06
lea r8, str._Enterprise_x64_Edition
jmp 0x14004aa5f
lea r8, str._Standard_x64_Edition
jmp 0x14004aa5f
movzx ecx, word [rbp + 8]
mov eax, 0x4000
test ax, cx
je 0x14004aa26
lea r8, str._Compute_Cluster_Edition
jmp 0x14004aa5c
movzx eax, byte [rbp + 8]
test al, al
jns 0x14004aa37
lea r8, str._Datacenter_Edition
jmp 0x14004aa5c
test al, 2
je 0x14004aa44
lea r8, str._Enterprise_Edition
jmp 0x14004aa5c
mov eax, 0x400
lea r8, str._Web_Edition
test ax, cx
jne 0x14004aa5c
lea r8, str._Standard_Edition
mov rcx, rbx
call fcn.14004ca40
cmp dword [rsp + 0x74], 5
jne 0x14004ab00
mov eax, dword [rsp + 0x78]
cmp eax, 1
jne 0x14004aab3
lea r8, str.Windows_XP
mov rcx, rbx
call fcn.14004ca40
mov eax, 0x200
lea r8, str._Home_Edition
mov rcx, rbx
test word [rbp + 8], ax
jne 0x14004aaa3
lea r8, str._Professional
call fcn.14004ca40
cmp dword [rsp + 0x74], 5
jne 0x14004ab00
mov eax, dword [rsp + 0x78]
test eax, eax
jne 0x14004ab00
lea r8, str.Windows_2000
mov rcx, rbx
call fcn.14004ca40
cmp byte [rbp + 0xa], 1
jne 0x14004aad5
lea r8, str._Professional
jmp 0x14004aaf8
movzx eax, byte [rbp + 8]
test al, al
jns 0x14004aae6
lea r8, str._Datacenter_Server
jmp 0x14004aaf8
lea r8, str._Advanced_Server
test al, 2
jne 0x14004aaf8
lea r8, str._Server
mov rcx, rbx
call fcn.14004ca40
lea rcx, [rbp - 0x7c]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x14004ab29
lea r8, [0x140161e50]
mov rcx, rbx
call fcn.14004ca40
lea r8, [rbp - 0x7c]
mov rcx, rbx
call fcn.14004ca40
mov r9d, dword [rsp + 0x7c]
lea r8, str.__build__d_
mov edx, 0x50
lea rcx, [rbp + 0x10]
call fcn.14004c8f0
lea r8, [rbp + 0x10]
mov rcx, rbx
call fcn.14004ca40
cmp dword [rsp + 0x74], 6
jb 0x14004ab8b
mov rax, qword [rsp + 0x38]
cmp ax, 9
jne 0x14004ab77
lea r8, str._64_bit
mov rcx, rbx
call fcn.14004ca40
mov eax, 1
jmp 0x14004aba1
test ax, ax
jne 0x14004ab8b
lea r8, str._32_bit
mov rcx, rbx
call fcn.14004ca40
mov eax, 1
jmp 0x14004aba1
lea rcx, str.This_sample_does_not_support_this_version_of_Windows._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140050f90
mov rbx, qword [rsp + 0x188]
add rsp, 0x170
pop rbp
ret