Function at 0x7ff2f9531e8
Capabilities:
Access peb ldr_data
Get ntdll base address
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x60
and qword [rax - 0x38], 0
and qword [rax - 0x40], 0
mov rax, qword gs:[0x30]
mov r12d, ecx
mov rcx, qword [rax + 0x60]
mov ebx, edx
mov rcx, qword [rcx + 0x30]
xor edx, edx
mov r13, r8
lea r8d, [rdx + 0x6a]
xor bpl, bpl
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
and dword [rsp + 0x30], 0
and dword [rsp + 0x98], 0
mov rsi, rax
test rax, rax
jne 0x7ff2f953251
mov ebx, 0xc0000017
jmp 0x7ff2f95344f
test bl, 1
je 0x7ff2f953278
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x30]
call fcn.7ff2f953128
mov ebx, eax
test eax, eax
js 0x7ff2f953278
mov rdi, qword [rsp + 0x38]
jmp 0x7ff2f9533aa
xor r9d, r9d
lea rdx, [rsp + 0x48]
lea r8d, [r9 + 0x18]
lea ecx, [r9 + 7]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
test eax, eax
js 0x7ff2f9533e5
xor ebx, ebx
cmp dword [rsp + 0x48], ebx
jbe 0x7ff2f9533e0
mov rdi, qword [rsp + 0x38]
and qword [rsp + 0x20], 0
lea r8, [0x7ff2f95d690]
mov r9d, ebx
mov edx, 0x35
mov rcx, rsi
call fcn.7ff2f958a3c
test rdi, rdi
je 0x7ff2f9532ef
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x38]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.7ff2f953f20
mov rdi, qword [rsp + 0x38]
test eax, eax
js 0x7ff2f953397
cmp dword [rdi], 1
jne 0x7ff2f953397
xor r9d, r9d
cmp dword [rdi + 4], r9d
jbe 0x7ff2f953397
lea r8, [rdi + 0x48]
mov rdx, qword [r8 + 8]
lea rcx, [0x7ff2f942120]
cmp rdx, qword [rcx]
jne 0x7ff2f95333d
mov rdx, qword [r8 + 0x10]
cmp rdx, qword [rcx + 8]
jne 0x7ff2f95333d
xor eax, eax
jmp 0x7ff2f953342
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x7ff2f95335c
test bpl, bpl
jne 0x7ff2f95336e
mov eax, dword [r8]
mov bpl, 1
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x98], eax
inc r9d
add r8, 0x90
cmp r9d, dword [rdi + 4]
jae 0x7ff2f953397
jmp 0x7ff2f95331f
lea rcx, [rsp + 0x40]
call fcn.7ff2f954334
test eax, eax
js 0x7ff2f9533d9
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x30]
call fcn.7ff2f953d60
test eax, eax
js 0x7ff2f9533d9
inc ebx
cmp ebx, dword [rsp + 0x48]
jb 0x7ff2f9532a9
test bpl, bpl
je 0x7ff2f9533e0
xor ebx, ebx
mov r9d, dword [rsp + 0x30]
neg r12d
lea r8, [0x7ff2f95d690]
sbb eax, eax
mov edx, 0x35
mov rcx, rsi
and eax, dword [rsp + 0x98]
mov dword [rsp + 0x20], eax
call fcn.7ff2f958a3c
mov qword [r13], rsi
jmp 0x7ff2f953406
mov ebx, 0xc0000451
jmp 0x7ff2f9533e5
mov ebx, 0xc0000452
mov rax, qword gs:[0x30]
mov r8, rsi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rdi, qword [rsp + 0x38]
test rdi, rdi
je 0x7ff2f953429
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x38]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp qword [rsp + 0x40], 0
je 0x7ff2f95344f
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret