Function at 0x14002fa40
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0xa0
mov r12, r9
mov rdi, rcx
mov rbx, qword [rbp + 0x77]
xor r9d, r9d
mov qword [rcx], r9
mov qword [rcx + 8], r9
mov qword [rcx + 0x10], r9
mov dword [rcx + 0x18], r8d
mov qword [rcx + 0x20], 0xffffffffffffffff
mov rcx, qword [rdx]
mov qword [rbp + 0x57], rcx
mov r15d, dword [rbp + 0x7f]
cmp r15d, 0xffffffff
cmove r15d, r9d
cmp r8d, 0x80000000
je 0x14002fac3
cmp r8d, 0xc0000000
je 0x14002fc1a
cmp r8d, 0xc0000001
je 0x14002fc0c
cmp r8d, 0xc0000002
jne 0x14002fc61
mov eax, 4
lea r8d, [rax - 2]
or r15d, eax
mov qword [rsp + 0x28], r9
mov dword [rsp + 0x20], r9d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rsi, rax
test rax, rax
je 0x14002fc90
mov qword [rbp - 0x51], rax
mov rcx, qword [0x1400cf870]
test rcx, rcx
jne 0x14002fb0a
lea rcx, [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rbp - 9]
mov rax, r12
cqo
idiv rcx
mov r13, rax
imul r13, rcx
mov r14, r12
sub r14, r13
mov rax, rbx
sub rax, r14
test rbx, rbx
cmove rax, rbx
mov qword [rbp + 0x4f], rax
mov rbx, qword [rbp + 0x6f]
test rbx, rbx
jne 0x14002fb6d
lea ecx, [rbx + 4]
call fcn.1400201f0
mov qword [rsp + 0x20], rbx
lea r9d, [rbx + 0x18]
lea r8, [rbp - 0x49]
xor edx, edx
mov rcx, rsi
call rax
test eax, eax
jne 0x14002fcc1
mov rbx, qword [rbp - 0x39]
cmp rbx, r12
jl 0x14002fd24
sub rbx, r12
lea rax, [r14 + rbx]
mov r8, r13
shr r8, 0x20
mov rcx, qword [rbp + 0x4f]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9d, r13d
mov edx, r15d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test rax, rax
je 0x14002fcf3
add rax, r14
mov qword [rdi], rax
mov qword [rdi + 0x10], r14
mov qword [rdi + 8], rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
xor ecx, ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
lea r9, [rdi + 0x20]
mov r8, rbx
mov rdx, qword [rbp + 0x57]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14002fc28
mov rax, rdi
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, 1
lea r8d, [rax + 7]
jmp 0x14002facc
mov eax, 2
lea r8d, [rax + 2]
jmp 0x14002facc
call sub.KERNEL32.dll_GetLastError
mov edx, eax
lea rcx, [rbp + 0x4f]
call fcn.140017620
mov rcx, rdi
call fcn.140019a50
xor r8d, r8d
lea rdx, [rbp + 0x4f]
lea rcx, [rbp - 0x31]
call fcn.140017790
lea rdx, [0x1400c7d30]
lea rcx, [rbp - 0x31]
call fcn.140067efc
int3
mov edx, 0x11
lea rcx, [rbp + 0x4f]
call fcn.140017660
xor r8d, r8d
lea rdx, [rbp + 0x4f]
lea rcx, [rbp - 0x31]
call fcn.140017790
lea rdx, [0x1400c7d30]
lea rcx, [rbp - 0x31]
call fcn.140067efc
int3
call sub.KERNEL32.dll_GetLastError
mov edx, eax
lea rcx, [rbp + 0x4f]
call fcn.140017620
xor r8d, r8d
lea rdx, [rbp + 0x4f]
lea rcx, [rbp - 0x31]
call fcn.140017790
lea rdx, [0x1400c7d30]
lea rcx, [rbp - 0x31]
call fcn.140067efc
nop
call sub.KERNEL32.dll_GetLastError
nop
mov edx, eax
lea rcx, [rbp + 0x4f]
call fcn.140017620
xor r8d, r8d
lea rdx, [rbp + 0x4f]
lea rcx, [rbp - 0x31]
call fcn.140017790
lea rdx, [0x1400c7d30]
lea rcx, [rbp - 0x31]
call fcn.140067efc
int3
call sub.KERNEL32.dll_GetLastError
mov edx, eax
lea rcx, [rbp + 0x4f]
call fcn.140017620
xor r8d, r8d
lea rdx, [rbp + 0x4f]
lea rcx, [rbp - 0x31]
call fcn.140017790
lea rdx, [0x1400c7d30]
lea rcx, [rbp - 0x31]
call fcn.140067efc
int3
mov edx, 0x12
lea rcx, [rbp + 0x4f]
call fcn.140017660
xor r8d, r8d
lea rdx, [rbp + 0x4f]
lea rcx, [rbp - 0x31]
call fcn.140017790
lea rdx, [0x1400c7d30]
lea rcx, [rbp - 0x31]
call fcn.140067efc
int3