Function at 0x7ffcbe294460
Capabilities:
Check os version
Enumerate pe sections
Get number of processors
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0xb8
mov rax, qword gs:[0x60]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x7ffcbe294493
cmp qword [rsp + 0x60], 0
je 0x7ffcbe29449a
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x118], 0xa
je 0x7ffcbe29449a
xor eax, eax
jmp 0x7ffcbe294756
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x38], 0
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x18]
add rax, 0x20
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x80]
cmp qword [rsp + 0x58], rax
je 0x7ffcbe294751
mov rax, qword [rsp + 0x58]
sub rax, 0x10
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
add rax, 0x58
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 8]
call fcn.7ffcbe2942b0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x78], 0
je 0x7ffcbe29473f
cmp qword [rsp + 0x40], 0
je 0x7ffcbe29473f
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x7ffcbe2945b1
xor eax, eax
jmp 0x7ffcbe294756
mov rax, qword [rsp + 0x98]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
cmp dword [rax], 0x4550
je 0x7ffcbe2945e1
xor eax, eax
jmp 0x7ffcbe294756
mov dword [rsp + 0x34], 0
jmp 0x7ffcbe2945f5
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x68]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x34], eax
jge 0x7ffcbe294680
mov rax, qword [rsp + 0x68]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + rax + 0x18]
movsxd rcx, dword [rsp + 0x34]
imul rcx, rcx, 0x28
add rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
or eax, 0x20202020
cmp eax, 0x7865742e
jne 0x7ffcbe29467b
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
jmp 0x7ffcbe2945eb
cmp qword [rsp + 0x48], 0
je 0x7ffcbe29469b
cmp qword [rsp + 0x50], 0
je 0x7ffcbe29469b
cmp qword [rsp + 0x88], 0
jne 0x7ffcbe2946a2
xor eax, eax
jmp 0x7ffcbe294756
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, pe_nt_image_headers64
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, 0xffffffffffffffff
call fcn.7ffcbe294b10
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x30], 0
jge 0x7ffcbe2946d7
xor eax, eax
jmp 0x7ffcbe294756
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x50]
call fcn.7ffcbe251520
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x38]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, 0xffffffffffffffff
call fcn.7ffcbe294b10
cmp dword [rsp + 0x30], 0
jge 0x7ffcbe29471e
xor eax, eax
jmp 0x7ffcbe294756
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x78]
mov rcx, 0xffffffffffffffff
call fcn.7ffcbe294c00
cmp dword [rsp + 0x30], 0
jge 0x7ffcbe29473f
xor eax, eax
jmp 0x7ffcbe294756
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
jmp 0x7ffcbe294514
mov eax, 1
add rsp, 0xb8
ret