Function at 0x14004f790
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x1401c5538]
xor rax, rsp
mov qword [rbp + 0x60], rax
xorps xmm1, xmm1
mov dword [rsp + 0x70], 0x9c
xorps xmm0, xmm0
mov rbx, rcx
xor eax, eax
lea rcx, [0x14017ad20]
movups xmmword [rsp + 0x38], xmm0
mov qword [rbp + 4], rax
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x74], xmm1
movups xmmword [rbp - 0x7c], xmm1
movups xmmword [rbp - 0x6c], xmm1
movups xmmword [rbp - 0x5c], xmm1
movups xmmword [rbp - 0x4c], xmm1
movups xmmword [rbp - 0x3c], xmm1
movups xmmword [rbp - 0x2c], xmm1
movups xmmword [rbp - 0x1c], xmm1
movups xmmword [rbp - 0xc], xmm1
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [0x14017ad10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004fcd6
lea rcx, [rsp + 0x70]
call rax
test eax, eax
je 0x14004fcd6
lea rcx, [0x14017ad20]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.GetNativeSystemInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x38]
test rax, rax
je 0x14004f85b
call rax
jmp 0x14004f861
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rbp - 0x80], 2
jne 0x14004fcd6
cmp dword [rsp + 0x74], 4
jbe 0x14004fcd6
lea r8, str.Microsoft
mov qword [rsp + 0x188], rdi
sub r8, rbx
mov edx, 0x100
mov rcx, rbx
lea rax, [rdx + 0x7ffffefe]
test rax, rax
je 0x14004f8b0
movzx eax, byte [r8 + rcx]
test al, al
je 0x14004f8b0
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x14004f890
test rdx, rdx
lea rax, [rcx - 1]
lea rdi, str.Professional
cmovne rax, rcx
cmp dword [rsp + 0x74], 6
mov byte [rax], 0
jne case.0x14004f9a7.5
cmp dword [rsp + 0x78], 0
jne 0x14004f8f8
cmp byte [rbp + 0xa], 1
lea r8, [0x14017ad58]
mov edx, 0x100
mov rcx, rbx
je 0x14004f8f3
lea r8, str.Windows_Server_2008
call fcn.14004fd70
cmp dword [rsp + 0x78], 1
jne 0x14004f920
cmp byte [rbp + 0xa], 1
lea r8, [0x14017ad80]
mov edx, 0x100
mov rcx, rbx
je 0x14004f91b
lea r8, str.Windows_Server_2008_R2
call fcn.14004fd70
cmp dword [rsp + 0x78], 2
jne 0x14004f948
cmp byte [rbp + 0xa], 1
lea r8, [0x14017ada8]
mov edx, 0x100
mov rcx, rbx
je 0x14004f943
lea r8, str.Windows_Server_2012
call fcn.14004fd70
lea rcx, [0x14017ad20]
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.0x14004f9a7.5
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x4fd40]
mov ecx, dword [rdx + rax*4 + 0x4fcf8]
add rcx, rdx
jmp rcx
lea r8, str.Ultimate_Edition
jmp 0x14004fa42
mov r8, rdi
jmp 0x14004fa42
lea r8, str.Home_Premium_Edition
jmp 0x14004fa42
lea r8, str.Home_Basic_Edition
jmp 0x14004fa42
lea r8, str.Business_Edition
jmp 0x14004fa42
lea r8, str.Starter_Edition
jmp 0x14004fa42
lea r8, str.Cluster_Server_Edition
jmp 0x14004fa42
lea r8, str.Datacenter_Edition
jmp 0x14004fa42
lea r8, str.Datacenter_Edition__core_installation_
jmp 0x14004fa42
lea r8, str.Enterprise_Edition
jmp 0x14004fa42
lea r8, str.Enterprise_Edition__core_installation_
jmp 0x14004fa42
lea r8, str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x14004fa42
lea r8, str.Small_Business_Server
jmp 0x14004fa42
lea r8, str.Small_Business_Server_Premium_Edition
jmp 0x14004fa42
lea r8, str.Standard_Edition
jmp 0x14004fa42
lea r8, str.Standard_Edition__core_installation_
jmp 0x14004fa42
lea r8, str.Web_Server_Edition
mov edx, 0x100
mov rcx, rbx
call fcn.14004fd70
cmp dword [rsp + 0x74], 5
jne 0x14004fc28
mov eax, dword [rsp + 0x78]
cmp eax, 2
jne 0x14004fb90
lea ecx, [rax + 0x57]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x14004fa7d
lea r8, str.Windows_Server_2003_R2_
jmp 0x14004fabd
movzx eax, word [rbp + 8]
bt ax, 0xd
jae 0x14004fa91
lea r8, str.Windows_Storage_Server_2003
jmp 0x14004fabd
bt ax, 0xf
jae 0x14004faa1
lea r8, str.Windows_Home_Server
jmp 0x14004fabd
cmp byte [rbp + 0xa], 1
jne 0x14004fab6
cmp word [rsp + 0x38], 9
lea r8, str.Windows_XP_Professional_x64_Edition
je 0x14004fabd
lea r8, str.Windows_Server_2003_
mov edx, 0x100
mov rcx, rbx
call fcn.14004fd70
cmp byte [rbp + 0xa], 1
je 0x14004fb81
movzx eax, word [rsp + 0x38]
cmp ax, 6
jne 0x14004fb04
movzx eax, byte [rbp + 8]
test al, al
jns 0x14004faf3
lea r8, str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x14004fb74
test al, 2
je 0x14004fb81
lea r8, str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x14004fb74
cmp ax, 9
jne 0x14004fb31
movzx eax, byte [rbp + 8]
test al, al
jns 0x14004fb1b
lea r8, str.Datacenter_x64_Edition
jmp 0x14004fb74
test al, 2
lea r8, str.Enterprise_x64_Edition
lea rax, str.Standard_x64_Edition
cmove r8, rax
jmp 0x14004fb74
movzx eax, word [rbp + 8]
bt ax, 0xe
jae 0x14004fb45
lea r8, str.Compute_Cluster_Edition
jmp 0x14004fb74
test al, al
jns 0x14004fb52
lea r8, str.Datacenter_Edition
jmp 0x14004fb74
test al, 2
je 0x14004fb5f
lea r8, str.Enterprise_Edition
jmp 0x14004fb74
bt ax, 0xa
lea r8, str.Web_Edition
jb 0x14004fb74
lea r8, str.Standard_Edition
mov edx, 0x100
mov rcx, rbx
call fcn.14004fd70
cmp dword [rsp + 0x74], 5
jne 0x14004fc28
mov eax, dword [rsp + 0x78]
cmp eax, 1
jne 0x14004fbd5
lea r8, [0x14017b0f8]
mov edx, 0x100
mov rcx, rbx
call fcn.14004fd70
mov eax, 0x200
lea r8, str.Home_Edition
test word [rbp + 8], ax
mov edx, 0x100
mov rcx, rbx
cmove r8, rdi
call fcn.14004fd70
cmp dword [rsp + 0x74], 5
jne 0x14004fc28
mov eax, dword [rsp + 0x78]
test eax, eax
jne 0x14004fc28
lea r8, str.Windows_2000
mov edx, 0x100
mov rcx, rbx
call fcn.14004fd70
cmp byte [rbp + 0xa], 1
jne 0x14004fbf8
mov r8, rdi
jmp 0x14004fc1b
movzx eax, byte [rbp + 8]
test al, al
jns 0x14004fc09
lea r8, str.Datacenter_Server
jmp 0x14004fc1b
lea r8, str.Advanced_Server
test al, 2
jne 0x14004fc1b
lea r8, [0x14017b150]
mov edx, 0x100
mov rcx, rbx
call fcn.14004fd70
mov rdi, qword [rsp + 0x188]
lea rcx, [rbp - 0x7c]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x14004fc40
test rax, rax
je 0x14004fc73
lea r8, [0x14017b158]
mov edx, 0x100
mov rcx, rbx
call fcn.14004fd70
lea r8, [rbp - 0x7c]
mov edx, 0x100
mov rcx, rbx
call fcn.14004fd70
mov r9d, dword [rsp + 0x7c]
lea r8, str.__build__d_
mov edx, 0x50
lea rcx, [rbp + 0x10]
call fcn.14004fe30
lea r8, [rbp + 0x10]
mov edx, 0x100
mov rcx, rbx
call fcn.14004fd70
cmp dword [rsp + 0x74], 6
jb 0x14004fcd2
movzx eax, word [rsp + 0x38]
cmp ax, 9
jne 0x14004fcb9
lea r8, str.__64_bit
jmp 0x14004fcc5
test ax, ax
jne 0x14004fcd2
lea r8, str.__32_bit
mov edx, 0x100
mov rcx, rbx
call fcn.14004fd70
mov al, 1
jmp 0x14004fcd8
xor al, al
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1401453a0
mov rbx, qword [rsp + 0x190]
add rsp, 0x170
pop rbp
ret