Function at 0x7ff2f94c304
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
sub rsp, 0x110
mov rax, qword [0x7ff2f962100]
xor rax, rsp
mov qword [rsp + 0x108], rax
xor ebp, ebp
mov qword [rsp + 0x68], rdx
lea rax, [rsp + 0x30]
and qword [rsp + 0x28], rbp
and qword [rsp + 0x50], rbp
and qword [rsp + 0x30], rbp
lea rdx, [rsp + 0x48]
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], rbp
call fcn.7ff2f94cab8
mov ebx, eax
test eax, eax
js 0x7ff2f94c684
lea r8d, [rbp + 0x18]
lea rdx, [rsp + 0xb8]
lea ecx, [rbp + 7]
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
test eax, eax
js 0x7ff2f94c684
mov rax, qword gs:[0x30]
lea r8d, [rbp + 0x6a]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x7ff2f94c3c1
mov eax, 0xc0000017
jmp 0x7ff2f94c6cd
xor bl, bl
xor r13d, r13d
cmp dword [rsp + 0xb8], ebp
jbe 0x7ff2f94c663
lea r8, [rsp + 0xe0]
lea rdx, [rsp + 0x40]
mov ecx, r13d
call fcn.7ff2f951798
test eax, eax
js 0x7ff2f94c610
cmp qword [rsp + 0x30], 0
mov r8, qword [rsp + 0x70]
jne 0x7ff2f94c451
mov rdx, qword [r8 + 4]
lea rcx, [rsp + 0xe4]
cmp rdx, qword [rcx]
jne 0x7ff2f94c425
mov rdx, qword [r8 + 0xc]
cmp rdx, qword [rcx + 8]
jne 0x7ff2f94c425
mov edx, dword [r8 + 0x14]
cmp edx, dword [rcx + 0x10]
jne 0x7ff2f94c425
xor eax, eax
jmp 0x7ff2f94c42a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x7ff2f94c451
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]
jmp 0x7ff2f94c610
mov rax, qword [rsp + 0x58]
mov esi, dword [r8 + 4]
test rax, rax
je 0x7ff2f94c51b
cmp esi, 1
jne 0x7ff2f94c520
mov eax, dword [rax]
lea r8, [0x7ff2f95d690]
lea edx, [rsi + 0x34]
mov r9d, r13d
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.7ff2f958a3c
lea rcx, [rsp + 0xa8]
mov rdx, rdi
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
and dword [rsp + 0x28], 0
and qword [rsp + 0x80], 0
and qword [rsp + 0x98], 0
and qword [rsp + 0xa0], 0
lea rax, [rsp + 0xa8]
lea r9, [rsp + 0xd0]
lea r8, [rsp + 0x78]
lea rcx, [rsp + 0x60]
mov edx, 0x80000000
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x78], 0x30
mov dword [rsp + 0x90], 0x40
mov dword [rsp + 0x20], 3
call qword [sym.imp.ntdll.dll_NtOpenFile]
test eax, eax
js 0x7ff2f94c5bd
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
mov bl, sil
jmp 0x7ff2f94c5bd
cmp esi, 1
je 0x7ff2f94c528
test esi, esi
jne 0x7ff2f94c5bd
xor r12d, r12d
test esi, esi
jne 0x7ff2f94c53b
mov r12, qword [rsp + 0x48]
test rax, rax
cmovne r12, rax
mov r14, qword [rsp + 0x40]
xor r15d, r15d
cmp dword [r14 + 4], r15d
jbe 0x7ff2f94c5bd
lea rbp, [r14 + 0x48]
mov eax, dword [rbp]
test eax, eax
je 0x7ff2f94c5a4
lea r8, [0x7ff2f95d690]
mov r9d, r13d
mov edx, 0x35
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.7ff2f958a3c
cmp esi, 1
jne 0x7ff2f94c582
mov rcx, qword [rsp + 0x48]
mov rax, qword [rbp - 0x10]
cmp qword [rcx], rax
jmp 0x7ff2f94c5a2
mov rdx, qword [r12]
cmp rdx, qword [rbp + 0x18]
jne 0x7ff2f94c59b
mov rdx, qword [r12 + 8]
cmp rdx, qword [rbp + 0x20]
jne 0x7ff2f94c59b
xor eax, eax
jmp 0x7ff2f94c5a0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x7ff2f94c5b6
inc r15d
add rbp, 0x90
cmp r15d, dword [r14 + 4]
jae 0x7ff2f94c5b8
jmp 0x7ff2f94c54d
mov bl, 1
mov rbp, qword [rsp + 0x38]
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]
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x7ff2f94c621
cmp bl, 1
jne 0x7ff2f94c610
mov rcx, rdi
call fcn.7ff2f94c700
mov rbp, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x7ff2f94c60e
mov rdx, rax
mov rcx, rsi
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x7ff2f94c625
xor bl, bl
inc r13d
cmp r13d, dword [rsp + 0xb8]
jb 0x7ff2f94c3d3
test bl, bl
je 0x7ff2f94c663
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.7ff2f953b64
test eax, eax
js 0x7ff2f94c657
mov rax, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rdi, qword [rsp + 0x50]
mov rax, qword [rsp + 0x68]
xor ebx, ebx
mov qword [rax], rdi
jmp 0x7ff2f94c684
mov rax, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov ebx, 0xc000000d
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp qword [rsp + 0x30], 0
je 0x7ff2f94c6aa
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x30]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test rbp, rbp
je 0x7ff2f94c6cb
mov rax, qword gs:[0x30]
mov r8, rbp
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.7ff2f958660
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret