Function at 0x14011ae50
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0xc0
mov rax, qword [0x1402708c0]
xor rax, rsp
mov qword [rbp - 1], rax
mov r12, r9
mov rdi, rcx
mov r9, qword [rbp + 0x77]
mov qword [rbp - 0x71], r9
mov rbx, qword [rbp + 0x6f]
xor r10d, r10d
mov qword [rcx], r10
mov qword [rcx + 8], r10
mov qword [rcx + 0x10], r10
mov dword [rcx + 0x18], r8d
or rcx, 0xffffffffffffffff
mov qword [rdi + 0x20], rcx
mov rax, qword [rdx]
mov qword [rbp - 0x69], rax
mov r13d, dword [rbp + 0x7f]
cmp r13d, 0xffffffff
cmove r13d, r10d
cmp r8d, 0x80000000
je 0x14011aee9
cmp r8d, 0xc0000000
je 0x14011b027
cmp r8d, 0xc0000001
je 0x14011b01d
cmp r8d, 0xc0000002
jne 0x14011b06a
mov eax, 4
or r13d, eax
mov qword [rbp - 0x61], rcx
mov rcx, qword [0x14027e5e0]
test rcx, rcx
jne 0x14011af12
lea rcx, [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rbp - 0x19]
mov r9, qword [rbp - 0x71]
xor edx, edx
mov rax, r12
div rcx
mov rsi, rdx
mov r14, r12
sub r14, rdx
mov r15, r9
sub r15, rdx
test r9, r9
cmove r15, r9
test rbx, rbx
jne 0x14011af71
lea ecx, [rbx + 4]
call fcn.14013295c
and qword [rsp + 0x20], rbx
lea r9d, [rbx + 0x18]
lea r8, [rbp - 0x59]
xor edx, edx
mov rcx, qword [rbp - 0x69]
call qword [case.0x1401ad3ca.0]
test eax, eax
jne 0x14011b099
mov rbx, qword [rbp - 0x49]
cmp rbx, r12
jl 0x14011b0fc
sub rbx, r12
add rbx, rsi
lea rax, [rbx + rsi]
mov r8, r14
shr r8, 0x20
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov edx, r13d
mov r14, qword [rbp - 0x69]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test rax, rax
je 0x14011b0cb
add rax, rsi
mov qword [rdi], rax
mov qword [rdi + 0x10], rsi
mov qword [rdi + 8], rbx
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r9, [rdi + 0x20]
mov r8, rbx
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14011b031
mov rax, rdi
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.140173230
mov rbx, qword [rsp + 0x108]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, 1
jmp 0x14011aeee
mov eax, 2
jmp 0x14011aeee
call sub.KERNEL32.dll_GetLastError
mov edx, eax
lea rcx, [rbp - 0x71]
call fcn.14011e4a8
mov rcx, rdi
call fcn.140140a94
xor r8d, r8d
lea rdx, [rbp - 0x71]
lea rcx, [rbp - 0x41]
call fcn.14011e4e4
lea rdx, [0x14026bc90]
lea rcx, [rbp - 0x41]
call fcn.140174178
int3
mov edx, 0x11
lea rcx, [rbp - 0x69]
call fcn.14011e4d8
xor r8d, r8d
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 0x41]
call fcn.14011e4e4
lea rdx, [0x14026bc90]
lea rcx, [rbp - 0x41]
call fcn.140174178
nop
call sub.KERNEL32.dll_GetLastError
nop
mov edx, eax
lea rcx, [rbp - 0x71]
call fcn.14011e4a8
xor r8d, r8d
lea rdx, [rbp - 0x71]
lea rcx, [rbp - 0x41]
call fcn.14011e4e4
lea rdx, [0x14026bc90]
lea rcx, [rbp - 0x41]
call fcn.140174178
int3
call sub.KERNEL32.dll_GetLastError
mov edx, eax
lea rcx, [rbp - 0x71]
call fcn.14011e4a8
xor r8d, r8d
lea rdx, [rbp - 0x71]
lea rcx, [rbp - 0x41]
call fcn.14011e4e4
lea rdx, [0x14026bc90]
lea rcx, [rbp - 0x41]
call fcn.140174178
int3
mov edx, 0x12
lea rcx, [rbp - 0x71]
call fcn.14011e4d8
xor r8d, r8d
lea rdx, [rbp - 0x71]
lea rcx, [rbp - 0x41]
call fcn.14011e4e4
lea rdx, [0x14026bc90]
lea rcx, [rbp - 0x41]
call fcn.140174178
int3