Function at 0x1401f2f30
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rdi, rdx
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x60], rax
movaps xmm0, xmmword [0x140232ef0]
lea rsi, [rsp + 0x30]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov qword [rsp + 0x20], rcx
mov r14, qword [rcx]
lea rdx, str.NaClPageAlloc___0x_I64x__n
mov ecx, 3
mov r8, rdi
call fcn.1401f7e70
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r8d, dword [rsi + 4]
cmp r8d, 0x1000
je 0x1401f2d82
lea rdx, str.page_size_is_0x_x__expected_0x_x_n
mov ecx, 2
mov r9d, 0x1000
call fcn.1401f7e70
mov r8d, dword [rsp + 0x58]
cmp r8d, 0x10000
je 0x1401f2da7
lea rdx, str.allocation_granularity_is_0x_x__expected_0x_x_n
mov ecx, 0xfffffffd
mov r9d, 0x10000
call fcn.1401f7e70
add rdi, 0xffff
and rdi, 0xffffffffffff0000
xor ebp, ebp
mov r15, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea rbx, str.NaClPageAlloc:__VirtualAlloc__0x_I64x__succeeded__0x_016I64x__releasing_and_re_allocating_in_64K_chunks...._n
mov r12, qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r13d, 0x10000
mov rcx, r14
mov rdx, rdi
mov r8d, 0x2000
mov r9d, 1
call r15
test rax, rax
je 0x1401f2eff
mov rsi, rax
mov qword [rsp + 0x28], rbp
mov ecx, 3
mov rdx, rbx
mov r8, rdi
mov r9, rax
call fcn.1401f7e70
mov rcx, rsi
xor edx, edx
mov r8d, 0x8000
call r12
test rdi, rdi
jle 0x1401f2ec1
lea r14, [rsi + rdi]
mov rbp, rsi
mov rbx, rsi
mov edx, 0x10000
mov rcx, rbx
mov r8d, 0x2000
mov r9d, 1
call r15
test rax, rax
je 0x1401f2e55
add rbx, r13
add rbp, r13
cmp rbx, r14
jb 0x1401f2e2c
jmp 0x1401f2ec1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0xfffffffd
lea rdx, str.NaClPageAlloc:_re_allocation_failed_at_0x_016I64x__error__d_n
mov r8, rbp
mov r9d, eax
call fcn.1401f7e70
cmp rsi, rbx
jae 0x1401f2e8e
mov rcx, rsi
xor edx, edx
mov r8d, 0x8000
call r12
add rsi, 0x10000
jmp 0x1401f2e72
mov ecx, 2
lea rdx, str.NaClPageAllocAtAddr:_retrying_w_o_hint_n
call fcn.1401f7e70
mov rbp, qword [rsp + 0x28]
inc ebp
mov r14d, 0
cmp ebp, 0x100
lea rbx, str.NaClPageAlloc:__VirtualAlloc__0x_I64x__succeeded__0x_016I64x__releasing_and_re_allocating_in_64K_chunks...._n
jne 0x1401f2dd2
jmp 0x1401f2f13
lea rdx, str.NaClPageAlloc:_p__0x_016I64x__returning_success._n
mov ecx, 2
mov r8, rsi
call fcn.1401f7e70
mov rax, qword [rsp + 0x20]
mov qword [rax], rsi
xor esi, esi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401a4270
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, str.NaClPageAlloc:_VirtualAlloc__0x_I64x__failed_n
mov ecx, 0xfffffffd
mov r8, rdi
call fcn.1401f7e70
mov esi, 0xfffffff4
jmp 0x1401f2edf
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.1401f7130
mov ebx, eax
lea rdx, str.NaClPageAllocRandomized:_0x_I64x_n
mov ecx, 2
mov r8, rbx
call fcn.1401f7e70
and ebx, 0x7ffffff
shl rbx, 0x10
mov qword [rdi], rbx
lea rdx, str.NaClPageAllocRandomized:_hint_0x_I64x_n
mov ecx, 2
mov r8, rbx
call fcn.1401f7e70
mov rcx, rdi
mov rdx, rsi
call 0x1401f2d00
test eax, eax
jne 0x1401f2f96
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
movabs r14, 0x7ffffff0000
call fcn.1401f7130
mov ebx, eax
lea rdx, str.NaClPageAllocRandomized:_0x_I64x_n
mov ecx, 2
mov r8, rbx
call fcn.1401f7e70
shl rbx, 0x10
and rbx, r14
mov qword [rdi], rbx
lea rdx, str.NaClPageAllocRandomized:_hint_0x_I64x_n
mov ecx, 2
mov r8, rbx
call fcn.1401f7e70
mov rcx, rdi
mov rdx, rsi
call 0x1401f2d00
test eax, eax
je 0x1401f2f8a
call fcn.1401f7130
mov ebx, eax
lea rdx, str.NaClPageAllocRandomized:_0x_I64x_n
mov ecx, 2
mov r8, rbx
call fcn.1401f7e70
shl rbx, 0x10
and rbx, r14
mov qword [rdi], rbx
lea rdx, str.NaClPageAllocRandomized:_hint_0x_I64x_n
mov ecx, 2
mov r8, rbx
call fcn.1401f7e70
mov rcx, rdi
mov rdx, rsi
call 0x1401f2d00
test eax, eax
je 0x1401f2f8a
call fcn.1401f7130
mov ebx, eax
lea rdx, str.NaClPageAllocRandomized:_0x_I64x_n
mov ecx, 2
mov r8, rbx
call fcn.1401f7e70
shl rbx, 0x10
and rbx, r14
mov qword [rdi], rbx
lea rdx, str.NaClPageAllocRandomized:_hint_0x_I64x_n
mov ecx, 2
mov r8, rbx
call fcn.1401f7e70
mov rcx, rdi
mov rdx, rsi
call 0x1401f2d00
test eax, eax
je 0x1401f2f8a
neg eax
lea rdx, str.NaClPageAllocRandomized:_failed___d___dropping_hints_n
mov ecx, 0xffffffff
mov r8d, eax
call fcn.1401f7e70
mov qword [rdi], 0
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x1401f2d00