Function at 0x140250d30
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x17]
sub rsp, 0xb8
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rbp - 1], rax
mov r12d, dword [rbp + 0x7f]
mov rdi, rcx
mov rbx, qword [rbp + 0x6f]
xor ecx, ecx
cmp r12d, 0xffffffff
mov r14, r9
mov r9, qword [rbp + 0x77]
cmove r12d, ecx
mov qword [rdi], rcx
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rcx
mov dword [rdi + 0x18], r8d
mov qword [rdi + 0x20], 0xffffffffffffffff
mov r13, qword [rdx]
mov qword [rbp - 0x61], r9
cmp r8d, 0x80000000
je 0x140250dbe
cmp r8d, 0xc0000000
je 0x140250f04
cmp r8d, 0xc0000001
je 0x140250efa
cmp r8d, 0xc0000002
jne 0x140250f47
mov eax, 4
mov rcx, qword [0x140699998]
or r12d, eax
mov qword [rsp + 0xf8], rsi
mov qword [rsp + 0xb0], r15
test rcx, rcx
jne 0x140250df3
lea rcx, [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rbp - 0x19]
mov r9, qword [rbp - 0x61]
xor edx, edx
mov rax, r14
div rcx
mov r15, r9
sub r15, rdx
mov rsi, rdx
test r9, r9
cmove r15, r9
test rbx, rbx
jne 0x140250e47
lea ecx, [rbx + 4]
call fcn.14025b9e0
lea r9d, [rbx + 0x18]
mov qword [rsp + 0x20], rbx
lea r8, [rbp - 0x59]
xor edx, edx
mov rcx, r13
call rax
test eax, eax
jne 0x140250f76
mov rbx, qword [rbp - 0x49]
cmp rbx, r14
jl 0x140250fd8
sub rbx, r14
add rbx, rsi
sub r14, rsi
mov qword [rsp + 0x28], r15
lea rax, [rbx + rsi]
mov r8, r14
shr r8, 0x20
mov r9d, r14d
mov edx, r12d
mov qword [rsp + 0x20], rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test rax, rax
je 0x140250fa7
add rax, rsi
mov qword [rdi + 0x10], rsi
mov rcx, 0xffffffffffffffff
mov qword [rdi], rax
mov qword [rdi + 8], rbx
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
lea r9, [rdi + 0x20]
mov rcx, rax
mov r8, rbx
xor eax, eax
mov rdx, r13
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140250f0e
mov rsi, qword [rsp + 0xf8]
mov rax, rdi
mov r15, qword [rsp + 0xb0]
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.14039bbb0
add rsp, 0xb8
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
mov eax, 1
jmp 0x140250dc3
mov eax, 2
jmp 0x140250dc3
call sub.KERNEL32.dll_GetLastError
mov edx, eax
lea rcx, [rbp - 0x61]
call fcn.140258120
mov rcx, rdi
call fcn.14025ed20
xor r8d, r8d
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x41]
call fcn.140258400
lea rdx, [0x140664700]
lea rcx, [rbp - 0x41]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov edx, 0x11
lea rcx, [rbp - 0x61]
call fcn.140258160
xor r8d, r8d
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x41]
call fcn.140258400
lea rdx, [0x140664700]
lea rcx, [rbp - 0x41]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call sub.KERNEL32.dll_GetLastError
mov edx, eax
lea rcx, [rbp - 0x61]
call fcn.140258120
xor r8d, r8d
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x41]
call fcn.140258400
lea rdx, [0x140664700]
lea rcx, [rbp - 0x41]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call sub.KERNEL32.dll_GetLastError
mov edx, eax
lea rcx, [rbp - 0x61]
call fcn.140258120
xor r8d, r8d
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x41]
call fcn.140258400
lea rdx, [0x140664700]
lea rcx, [rbp - 0x41]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov edx, 0x12
lea rcx, [rbp - 0x61]
call fcn.140258160
xor r8d, r8d
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x41]
call fcn.140258400
lea rdx, [0x140664700]
lea rcx, [rbp - 0x41]
call sub.VCRUNTIME140.dll__CxxThrowException
int3