Function at 0x140008c74
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x170
mov rbx, rcx
add rcx, 0x10
call fcn.140001df0
lea rcx, [rsp + 0x50]
xor r12d, r12d
mov byte [rbx + 0x42], r12b
mov dword [rsp + 0x50], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [rsp + 0x58]
mov r11d, dword [rsp + 0x54]
lea rdx, [rsp + 0x64]
mov dword [rbx + 4], eax
mov eax, dword [rsp + 0x5c]
lea rcx, [rbx + 0x10]
mov dword [rbx + 8], eax
mov dword [rbx], r11d
call fcn.1400026d8
or r10, 0xffffffffffffffff
mov r8, r12
lea rsi, [0x140095d00]
cmp qword [rbx + 0x18], r12
jbe 0x140008d21
mov rax, qword [rbx + 0x10]
mov r9, r12
mov rcx, r12
mov edx, SafeArrayAllocDescriptor
cmp word [rax], dx
jne 0x140008d01
inc rcx
inc r9
mov dx, word [rsi + r9*2]
cmp dx, r12w
jne 0x140008cf9
cmp rcx, r12
je 0x140008d24
inc r8
add rax, 2
cmp r8, qword [rbx + 0x18]
jb 0x140008cee
mov r8, r10
xor edx, edx
lea rcx, [rbx + 0x10]
cmp r8, r10
jne 0x140008d32
mov r8, r10
call fcn.140002918
lea rcx, [rbx + 0x10]
mov rdx, rsi
call fcn.140008f3c
mov eax, dword [rbx]
mov byte [rbx + 0x3e], r12b
sub eax, 5
mov byte [rbx + 0x30], r12b
mov byte [rbx + 0x31], r12b
mov byte [rbx + 0x32], r12b
mov byte [rbx + 0x33], r12b
mov byte [rbx + 0x34], r12b
mov byte [rbx + 0x35], r12b
mov byte [rbx + 0x36], r12b
mov byte [rbx + 0x37], r12b
mov byte [rbx + 0x38], r12b
mov byte [rbx + 0x39], r12b
mov byte [rbx + 0x3a], r12b
mov byte [rbx + 0x3b], r12b
mov byte [rbx + 0x3c], r12b
mov byte [rbx + 0x3d], r12b
je 0x140008de8
cmp eax, 1
jne 0x140008e3b
mov byte [rbx + 0x31], al
mov byte [rbx + 0x33], al
mov byte [rbx + 0x35], al
cmp dword [rbx + 4], r12d
jne 0x140008dbc
mov byte [rbx + 0x37], al
cmp byte [rsp + 0x16a], al
jne 0x140008db2
mov byte [rbx + 0x36], al
jmp 0x140008e3b
mov byte [rbx + 0x39], 1
mov byte [rbx + 0x38], 1
jmp 0x140008e3b
cmp dword [rbx + 4], 1
jne 0x140008e3b
cmp byte [rsp + 0x16a], 1
mov byte [rbx + 0x37], 1
mov byte [rbx + 0x39], 1
mov byte [rbx + 0x3b], 1
jne 0x140008dde
mov byte [rbx + 0x3a], 1
jmp 0x140008e3b
mov byte [rbx + 0x3d], 1
mov byte [rbx + 0x3c], 1
jmp 0x140008e3b
mov eax, dword [rbx + 4]
cmp eax, r12d
jne 0x140008dfa
mov byte [rbx + 0x31], 1
mov byte [rbx + 0x30], 1
jmp 0x140008e2c
cmp eax, 1
jne 0x140008e07
mov byte [rbx + 0x31], al
mov byte [rbx + 0x33], al
jmp 0x140008e22
cmp eax, 2
jne 0x140008e2c
cmp byte [rsp + 0x16a], 1
mov byte [rbx + 0x31], 1
mov byte [rbx + 0x33], 1
mov byte [rbx + 0x35], 1
jne 0x140008e28
mov byte [rbx + 0x32], 1
jmp 0x140008e2c
mov byte [rbx + 0x34], 1
mov al, byte [rsp + 0x168]
shr al, 6
and al, 1
mov byte [rbx + 0x42], al
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
cmp rax, r12
je 0x140008e91
lea rdx, str.IsWow64Process
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
cmp rax, r12
je 0x140008e91
mov dword [rsp + 0x180], r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x180]
mov rcx, rax
call rdi
cmp dword [rsp + 0x180], 1
jne 0x140008e91
mov byte [rbx + 0x3e], 1
xor edx, edx
lea rcx, [rsp + 0x24]
mov dword [rsp + 0x20], r12d
lea r8d, [rdx + 0x2c]
call fcn.1400761e0
cmp byte [rbx + 0x3e], r12b
je 0x140008efa
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
cmp rax, r12
je 0x140008edf
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, r12
je 0x140008edf
lea rcx, [rsp + 0x20]
call rax
jmp 0x140008eea
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp rdi, r12
je 0x140008f05
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140008f05
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [rsp + 0x20]
mov word [rbx + 0x40], ax
cmp rsi, r12
je 0x140008f1c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r11, [rsp + 0x170]
mov rax, rbx
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret