Function at 0x1400eaea0
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0xd0
mov qword [rbp - 0x71], 0xfffffffffffffffe
mov qword [rsp + 0x118], rbx
mov rax, qword [0x1404716f0]
xor rax, rsp
mov qword [rbp - 1], rax
mov r14, r9
mov rdi, rcx
mov rax, qword [rbp + 0x77]
mov qword [rsp + 0x40], rax
mov rbx, qword [rbp + 0x6f]
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 - 0x79], rcx
mov r13d, dword [rbp + 0x7f]
cmp r13d, 0xffffffff
cmove r13d, r9d
cmp r8d, 0x80000000
je 0x1400eaf46
cmp r8d, 0xc0000000
je 0x1400eb09e
cmp r8d, 0xc0000001
je 0x1400eb090
cmp r8d, 0xc0000002
jne 0x1400eb0e5
mov eax, 4
lea r8d, [rax - 2]
or r13d, eax
mov qword [rsp + 0x28], r9
mov dword [rsp + 0x20], r9d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov r15, rax
test rax, rax
je 0x1400eb116
mov qword [rbp - 0x69], rax
mov rcx, qword [0x14047e860]
test rcx, rcx
jne 0x1400eaf8d
lea rcx, [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rbp - 0x19]
xor edx, edx
mov rax, r14
div rcx
mov rsi, rdx
mov rax, qword [rsp + 0x40]
mov r12, rax
sub r12, rdx
test rax, rax
cmove r12, rax
test rbx, rbx
jne 0x1400eafe6
lea ecx, [rbx + 4]
call fcn.14000bd50
mov qword [rsp + 0x20], rbx
lea r9d, [rbx + 0x18]
lea r8, [rbp - 0x61]
xor edx, edx
mov rcx, r15
call rax
test eax, eax
jne 0x1400eb149
mov rbx, qword [rbp - 0x51]
cmp rbx, r14
jl 0x1400eb1b0
sub rbx, r14
add rbx, rsi
lea rcx, [rbx + rsi]
sub r14, rsi
mov r8, r14
shr r8, 0x20
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rcx
mov r9d, r14d
mov edx, r13d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test rax, rax
je 0x1400eb17d
add rax, rsi
mov qword [rdi], rax
mov qword [rdi + 0x10], rsi
mov qword [rdi + 8], rbx
mov rcx, r15
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 rcx, rax
mov dword [rsp + 0x30], 2
xor eax, eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
lea r9, [rdi + 0x20]
mov r8, rbx
mov rdx, qword [rbp - 0x79]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400eb0ac
mov rax, rdi
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.14010a310
mov rbx, qword [rsp + 0x118]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, 1
lea r8d, [rax + 7]
jmp 0x1400eaf4f
mov eax, 2
lea r8d, [rax + 2]
jmp 0x1400eaf4f
call sub.KERNEL32.dll_GetLastError
mov edx, eax
lea rcx, [rbp - 0x79]
call fcn.140006a00
mov rcx, rdi
call fcn.1400096c0
xor r8d, r8d
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x41]
call fcn.140006ad0
lea rdx, [0x140456738]
lea rcx, [rbp - 0x41]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov edx, select
lea rcx, [rsp + 0x40]
call fcn.1400069f0
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x41]
call fcn.140006ad0
lea rdx, [0x140456738]
lea rcx, [rbp - 0x41]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call sub.KERNEL32.dll_GetLastError
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.140006a00
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x41]
call fcn.140006ad0
lea rdx, [0x140456738]
lea rcx, [rbp - 0x41]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call sub.KERNEL32.dll_GetLastError
nop
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.140006a00
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x41]
call fcn.140006ad0
lea rdx, [0x140456738]
lea rcx, [rbp - 0x41]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call sub.KERNEL32.dll_GetLastError
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.140006a00
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x41]
call fcn.140006ad0
lea rdx, [0x140456738]
lea rcx, [rbp - 0x41]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov edx, reloc.WS2_32.dll_select
lea rcx, [rsp + 0x40]
call fcn.1400069f0
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x41]
call fcn.140006ad0
lea rdx, [0x140456738]
lea rcx, [rbp - 0x41]
call sub.VCRUNTIME140.dll__CxxThrowException
int3