Function at 0x1400104c0
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 + 0xa8], rax
mov edx, dword [rax + 4]
mov ecx, dword [rax + 8]
mov al, byte [rax + 0x11a]
mov dword [rsp + 0x64], edx
mov dword [rsp + 0x68], ecx
mov byte [rsp + 0x6c], al
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x4c], eax
sub eax, 5
je 0x140010559
jmp 0x140010508
mov eax, dword [rsp + 0x4c]
sub eax, 6
je 0x140010535
jmp 0x140010513
mov eax, dword [rsp + 0x4c]
sub eax, 0xa
je 0x14001052c
jmp 0x14001051e
mov qword [rsp + 0x50], 0
jmp 0x1400105bc
cmp dword [rsp + 0x68], 0
je 0x140010589
jmp 0x14001051e
mov eax, dword [rsp + 0x68]
mov qword [rsp + 0x28], rax
sub rax, 3
ja 0x14001051e
mov rax, qword [rsp + 0x28]
lea rcx, [0x14020f880]
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 0x1400106ef
jmp 0x14001056b
mov eax, dword [rsp + 0x24]
sub eax, 1
je 0x1400106d5
jmp 0x14001057a
mov eax, dword [rsp + 0x24]
sub eax, 2
je 0x140010709
jmp 0x14001051e
cmp byte [rsp + 0x6c], 1
jne 0x1400105a7
lea rax, str.Windows_10Windows_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 0x1400105bc
lea rax, [0x14020faca]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0x13
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
call dbg.core::option::Option<T>::map::h683eb20882b67e99
mov rax, qword [rsp + 0x40]
add rsp, 0x168
ret
cmp byte [rsp + 0x6c], 1
je 0x14001060b
jmp 0x140010622
cmp byte [rsp + 0x6c], 1
je 0x140010639
jmp 0x140010653
cmp byte [rsp + 0x6c], 1
je 0x14001066d
jmp 0x140010687
cmp byte [rsp + 0x6c], 1
je 0x1400106a1
jmp 0x1400106bb
lea rax, [0x14020fadd]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0xb
jmp 0x1400105bc
lea rax, [0x14020fae8]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0x16
jmp 0x1400105bc
lea rax, [0x14020fafe]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 9
jmp 0x1400105bc
lea rax, [0x14020fb07]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0x13
jmp 0x1400105bc
lea rax, [0x14020fb1a]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 9
jmp 0x1400105bc
lea rax, [0x14020fb23]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0x16
jmp 0x1400105bc
lea rax, [0x14020fb39]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0xd
jmp 0x1400105bc
lea rax, [0x14020fb46]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0x13
jmp 0x1400105bc
lea rax, [0x14020fb59]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0xa
jmp 0x1400105bc
lea rax, [0x14020fb63]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0xc
jmp 0x1400105bc
mov ecx, 0x59
call sub.USER32.dll_GetSystemMetrics
cmp eax, 0
jne 0x14001051e
mov byte [rsp + 0xb7], 0
mov qword [rsp + 0xb8], 1
mov byte [rsp + 0xc7], 0
mov qword [rsp + 0xc8], 1
lea rax, [rsp + 0x100]
mov qword [rsp + 0x160], rax
lea rcx, [rsp + 0x100]
xor edx, edx
mov r8d, 0x30
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0xd0]
lea rdx, [rsp + 0x100]
mov r8d, 0x30
call sym.memcpy
lea rcx, [rsp + 0x130]
lea rdx, [rsp + 0xd0]
mov r8d, 0x30
call sym.memcpy
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0x130]
mov r8d, 0x30
call sym.memcpy
lea rcx, [rsp + 0x70]
call sub.KERNEL32.dll_GetSystemInfo
mov rax, qword [rsp + 0x30]
mov ax, word [rax + 0x118]
and ax, 0x8000
cmp ax, 0x8000
je 0x1400107e7
mov rax, qword [rsp + 0x30]
cmp byte [rax + 0x11a], 1
je 0x14001080b
jmp 0x140010801
lea rax, [0x14020fbbe]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0x13
jmp 0x1400105bc
mov byte [rsp + 0xa7], 0
jmp 0x14001081d
cmp word [rsp + 0x70], 9
sete al
and al, 1
mov byte [rsp + 0xa7], al
test byte [rsp + 0xa7], 1
jne 0x140010841
lea rax, str.Windows_Server_2003Windows_XP_Professional_x64_EditionWindows_Home_Server
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0x13
jmp 0x1400105bc
lea rax, [0x14020fb9b]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0x23
jmp 0x1400105bc