Function at 0x180166a70
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1f8
mov qword [rsp + 0xd0], 0xfffffffffffffffe
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov r8d, 0x9c
xor edx, edx
lea rcx, [rsp + 0xe0]
call fcn.18017d170
mov dword [rsp + 0xe0], 0x9c
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
lea rdx, [0x1803ad168]
lea rcx, [rsp + 0x1b0]
call fcn.1801ec470
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call fcn.180074060
xor r8d, r8d
lea rdx, [rsp + 0x98]
mov rcx, rax
call fcn.1801e92c0
mov byte [rsp + 0x51], al
lea rcx, [rsp + 0x1b0]
call fcn.180073fc0
movzx eax, byte [rsp + 0x51]
test eax, eax
je 0x180166bc1
mov eax, dword [rsp + 0xa0]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0xa0]
and rax, 0xffff
movzx eax, ax
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0xa4]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0xe4]
cmp dword [rsp + 0x64], eax
jne 0x180166b94
mov eax, dword [rsp + 0xe8]
cmp dword [rsp + 0x6c], eax
je 0x180166bc1
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0xe4], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0xe8], eax
xor edx, edx
mov eax, dword [rsp + 0x74]
mov ecx, 0xa
div ecx
mov eax, edx
mov word [rsp + 0x174], ax
xor eax, eax
test eax, eax
jne 0x180166bc1
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x5c], 0
xor edx, edx
lea rcx, [rsp + 0x1d0]
call fcn.1801e98d0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.180074060
xor r8d, r8d
lea rdx, [rsp + 0x98]
mov rcx, rax
call fcn.1801e92c0
mov byte [rsp + 0x50], al
lea rcx, [rsp + 0x1d0]
call fcn.180073fc0
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x180166c71
mov eax, dword [rsp + 0xa0]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0xa0]
and rax, 0xffff
movzx eax, ax
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x60], 0
jne 0x180166c8a
cmp dword [rsp + 0x58], 0
jne 0x180166c8a
cmp dword [rsp + 0x5c], 0
je 0x180166d0d
movzx eax, word [rsp + 0x180]
test eax, eax
jne 0x180166ca0
mov dword [rsp + 0x68], 0
jmp 0x180166ca8
mov dword [rsp + 0x68], 1
movzx eax, word [rsp + 0x174]
mov ecx, dword [rsp + 0x5c]
mov dword [rsp + 0x40], ecx
mov ecx, dword [rsp + 0x58]
mov dword [rsp + 0x38], ecx
mov ecx, dword [rsp + 0x60]
mov dword [rsp + 0x30], ecx
mov ecx, dword [rsp + 0x68]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0xe8]
mov r8d, dword [rsp + 0xe4]
lea rdx, [0x1803ad148]
mov rcx, qword [rsp + 0x200]
call fcn.1801e9200
mov eax, dword [rsp + 0x54]
or eax, 1
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x200]
jmp 0x180166d76
movzx eax, word [rsp + 0x180]
test eax, eax
jne 0x180166d23
mov dword [rsp + 0x70], 0
jmp 0x180166d2b
mov dword [rsp + 0x70], 1
movzx eax, word [rsp + 0x174]
mov ecx, dword [rsp + 0x70]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0xe8]
mov r8d, dword [rsp + 0xe4]
lea rdx, [0x1803ad180]
mov rcx, qword [rsp + 0x200]
call fcn.1801e9200
mov eax, dword [rsp + 0x54]
or eax, 1
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x200]
add rsp, 0x1f8
ret