Function at 0x140012e30
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x168
mov rax, rdx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0xa0], rax
mov edx, dword [rax + 4]
mov ecx, dword [rax + 8]
movzx eax, byte [rax + 0x11a]
mov dword [rsp + 0x64], edx
mov dword [rsp + 0x68], ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x4c], eax
sub eax, 5
je 0x140012eca
jmp 0x140012e79
mov eax, dword [rsp + 0x4c]
sub eax, 6
je 0x140012ea6
jmp 0x140012e84
mov eax, dword [rsp + 0x4c]
sub eax, 0xa
je 0x140012e9d
jmp 0x140012e8f
mov qword [rsp + 0x50], 0
jmp 0x140012f54
cmp dword [rsp + 0x68], 0
je 0x140012efa
jmp 0x140012e8f
mov eax, dword [rsp + 0x68]
mov qword [rsp + 0x28], rax
sub rax, 3
ja 0x140012e8f
mov rax, qword [rsp + 0x28]
lea rcx, [0x140038b70]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x24], eax
test eax, eax
je 0x140013087
jmp 0x140012edc
mov eax, dword [rsp + 0x24]
sub eax, 1
je 0x14001306d
jmp 0x140012eeb
mov eax, dword [rsp + 0x24]
sub eax, 2
je 0x1400130a1
jmp 0x140012e8f
cmp dword [rsp + 0x6c], 1
jne 0x140012f11
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0xc], 0x55f0
jae 0x140012f3f
jmp 0x140012f28
lea rax, [0x1400387cc]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0x13
jmp 0x140012f54
lea rax, str.Windows_10Windows_11Windows_Server_2016Windows_8.1Windows_Server_2012_R2Windows_8Windows_Server_2012Windows_7Windows_Server_2008_R2Windows_VistaWindows_Server_2008Windows_XPWindows_2000
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0xa
jmp 0x140012f54
lea rax, [0x1400387c2]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0xa
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
call fcn.14000ee00
mov rax, qword [rsp + 0x40]
add rsp, 0x168
ret
cmp dword [rsp + 0x6c], 1
je 0x140012fa3
jmp 0x140012fba
cmp dword [rsp + 0x6c], 1
je 0x140012fd1
jmp 0x140012feb
cmp dword [rsp + 0x6c], 1
je 0x140013005
jmp 0x14001301f
cmp dword [rsp + 0x6c], 1
je 0x140013039
jmp 0x140013053
lea rax, [0x1400387df]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0xb
jmp 0x140012f54
lea rax, [0x1400387ea]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0x16
jmp 0x140012f54
lea rax, [0x140038800]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 9
jmp 0x140012f54
lea rax, [0x140038809]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0x13
jmp 0x140012f54
lea rax, [0x14003881c]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 9
jmp 0x140012f54
lea rax, [0x140038825]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0x16
jmp 0x140012f54
lea rax, [0x14003883b]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0xd
jmp 0x140012f54
lea rax, [0x140038848]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0x13
jmp 0x140012f54
lea rax, [0x14003885b]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0xa
jmp 0x140012f54
lea rax, [0x140038865]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0xc
jmp 0x140012f54
mov ecx, 0x59
call qword [sym.imp.user32.dll_GetSystemMetrics]
cmp eax, 0
jne 0x140012e8f
mov byte [rsp + 0xaf], 0
mov qword [rsp + 0xb0], 1
mov byte [rsp + 0xbf], 0
mov qword [rsp + 0xc0], 1
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x160], rax
lea rcx, [rsp + 0xf8]
xor edx, edx
mov r8d, 0x30
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0xc8]
lea rdx, [rsp + 0xf8]
mov r8d, 0x30
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x128]
lea rdx, [rsp + 0xc8]
mov r8d, 0x30
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0x128]
mov r8d, 0x30
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x70]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov rax, qword [rsp + 0x30]
mov cx, word [rax + 0x118]
lea rdx, str.C:UsersVoal.cargo_registry_srcindex.crates.io_6f17d22bba15001fos_info_3.8.0_srcwindowswinapi.rsx86_64ia64armaarch64i386ntdll
call fcn.14000c580
and eax, 0x8000
cmp eax, 0x8000
je 0x14001319f
mov rax, qword [rsp + 0x30]
cmp byte [rax + 0x11a], 1
je 0x1400131d3
jmp 0x1400131b9
lea rax, [0x1400388c6]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0x13
jmp 0x140012f54
lea rax, str.Windows_Server_2003Windows_XP_Professional_x64_EditionWindows_Home_ServerEmpty_module_name
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0x13
jmp 0x140012f54
cmp word [rsp + 0x70], 9
jne 0x1400131b9
lea rax, [0x1400388a3]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0x23
jmp 0x140012f54