Function at 0x140001410
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rdx
push rbp
push r14
push r15
lea rbp, [rax - 0xa8]
sub rsp, 0x190
lea rdi, [rcx + 0x10]
mov rbx, rcx
mov rcx, rdi
call fcn.140009030
lea rcx, [rsp + 0x70]
xor r14d, r14d
mov byte [rbx + 0x4c], r14b
mov dword [rsp + 0x70], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [rsp + 0x74]
lea rdx, [rbp - 0x7c]
mov rcx, rdi
mov dword [rbx], eax
mov eax, dword [rsp + 0x78]
mov dword [rbx + 4], eax
mov eax, dword [rsp + 0x7c]
mov dword [rbx + 8], eax
call fcn.140009798
or r10, 0xffffffffffffffff
mov r8d, r14d
lea r15, [0x1400ab22c]
cmp qword [rdi + 8], r14
ja 0x140001599
mov r8, r10
xor edx, edx
mov rcx, rdi
cmp r8, r10
jne 0x1400014a3
mov r8, r10
call fcn.140009964
mov rdx, r15
mov rcx, rdi
call fcn.140009d0c
mov ecx, dword [rbx]
mov word [rbx + 0x47], r14w
mov qword [rbx + 0x30], r14
mov qword [rbx + 0x38], r14
mov dword [rbx + 0x40], r14d
mov word [rbx + 0x44], r14w
mov byte [rbx + 0x46], r14b
sub ecx, 5
je 0x140040436
dec ecx
jne 0x14004033f
mov eax, dword [rbx + 4]
mov byte [rbx + 0x31], 1
mov byte [rbx + 0x33], 1
test eax, eax
je 0x140040399
cmp eax, 1
je 0x1400403bc
cmp eax, 2
jne 0x1400403f6
cmp byte [rbp + 0x8a], 1
mov byte [rbx + 0x3b], 1
mov byte [rbx + 0x39], 1
mov byte [rbx + 0x35], 1
jne 0x1400403e7
mov word [rbx + 0x3c], 0x101
mov dword [rbp + 0xb8], r14d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rbp + 0xb8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [rbp + 0xb8], 1
je 0x1400015a1
xor edx, edx
lea rcx, [rsp + 0x3c]
mov dword [rsp + 0x38], r14d
lea r8d, [rdx + 0x2c]
call fcn.140025360
cmp byte [rbx + 0x48], r14b
jne 0x14004047a
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [rsp + 0x38]
lea r11, [rsp + 0x190]
mov rdi, qword [r11 + 0x30]
mov word [rbx + 0x4a], ax
mov rax, rbx
mov rbx, qword [r11 + 0x20]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rax, qword [rdi]
jmp 0x140040304
mov byte [rbx + 0x48], 1
jmp 0x14000154a
mov r9, r14
mov rcx, r14
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
cmp word [rax], dx
jne 0x140040317
inc rcx
inc r9
movzx edx, word [r15 + r9*2]
test dx, dx
jne 0x14004030f
test rcx, rcx
je 0x140001496
inc r8
add rax, 2
cmp r8, qword [rdi + 8]
jb 0x140040304
jmp 0x140001493
cmp ecx, 4
jne 0x140001524
mov byte [rbx + 0x31], 1
mov byte [rbx + 0x33], 1
mov byte [rbx + 0x3f], 1
mov byte [rbx + 0x3d], 1
mov byte [rbx + 0x3b], 1
mov byte [rbx + 0x39], 1
mov byte [rbx + 0x35], 1
mov byte [rbx + 0x41], 1
mov byte [rbx + 0x43], 1
cmp dword [rbx + 4], r14d
jne 0x140001524
cmp byte [rbp + 0x8a], 1
jne 0x14004038a
mov word [rbx + 0x44], 0x101
jmp 0x140001524
mov word [rbx + 0x45], 0x101
mov byte [rbx + 0x47], 1
jmp 0x140001524
cmp byte [rbp + 0x8a], 1
jne 0x1400403ad
mov word [rbx + 0x34], 0x101
jmp 0x140001524
mov word [rbx + 0x35], 0x101
mov byte [rbx + 0x37], 1
jmp 0x140001524
cmp byte [rbp + 0x8a], 1
mov byte [rbx + 0x35], 1
mov byte [rbx + 0x37], 1
jne 0x1400403d8
mov word [rbx + 0x38], 0x101
jmp 0x140001524
mov word [rbx + 0x39], 0x101
mov byte [rbx + 0x3b], 1
jmp 0x140001524
mov word [rbx + 0x3d], 0x101
mov byte [rbx + 0x3f], 1
jmp 0x140001524
cmp eax, 3
jne 0x140001524
cmp byte [rbp + 0x8a], 1
mov byte [rbx + 0x3f], 1
mov byte [rbx + 0x3d], 1
mov byte [rbx + 0x3b], 1
mov byte [rbx + 0x39], 1
mov byte [rbx + 0x35], 1
jne 0x140040427
mov word [rbx + 0x40], 0x101
jmp 0x140001524
mov word [rbx + 0x41], 0x101
mov byte [rbx + 0x43], 1
jmp 0x140001524
cmp dword [rbx + 4], 1
jne 0x140040444
mov word [rbx + 0x30], 0x101
jmp 0x140040465
cmp dword [rbx + 4], 2
jne 0x140040465
cmp byte [rbp + 0x8a], 1
mov byte [rbx + 0x31], 1
mov byte [rbx + 0x33], 1
jne 0x140040461
mov byte [rbx + 0x30], 1
jmp 0x140040465
mov byte [rbx + 0x32], 1
movzx eax, byte [rbp + 0x88]
shr eax, 6
and eax, 1
mov byte [rbx + 0x4c], al
jmp 0x140001524
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x30], r14
call fcn.140069e04
test al, al
je 0x1400404b4
lea rcx, [rsp + 0x20]
call fcn.140069e04
lea rdx, [fcn.14003c610]
lea rcx, [rsp + 0x38]
test al, al
cmovne rdx, qword [rsp + 0x30]
call rdx
jmp 0x1400404bf
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140001574
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
jmp 0x140001574