Function at 0x140022b40
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xfa0]
mov eax, 0x10a0
call fcn.140038950
sub rsp, rax
mov rax, qword [0x140056038]
xor rax, rsp
mov qword [rbp + 0xf90], rax
mov r15, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
movabs rbx, 0x10004001c0000
cmp qword [0x1400560e8], rsi
jne 0x140022c4f
xor edx, edx
mov r8d, 0x1e00
lea rcx, str.amfrt64.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x1400560e8], rax
test rax, rax
jne 0x140022bd0
mov eax, 1
lea rcx, str.amf_init_failed:__d
jmp 0x1400231af
lea rdx, str.AMFInit
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140022bbf
lea rdx, [0x1400560f0]
mov rcx, rbx
call rax
test eax, eax
jne 0x140022c1b
lea rdx, str.AMFQueryVersion
mov rcx, qword [0x1400560e8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140022bbf
lea rcx, [0x140056108]
call rax
test eax, eax
je 0x140022c27
lea rcx, str.amf_init_failed:__d
jmp 0x1400231af
mov rcx, qword [0x1400560f0]
mov rax, qword [rcx]
lea rdx, [0x140056100]
call qword [rax + 0x28]
mov rcx, qword [0x1400560f0]
mov rax, qword [rcx]
lea rdx, [0x1400560f8]
call qword [rax + 0x20]
lock inc dword [0x140056110]
mov rdx, rbx
lea rcx, str.AMF_version__header_:___I64X_n
call fcn.140002630
mov rdx, qword [0x140056108]
lea rcx, str.AMF_version__runtime_:__I64X_n
call fcn.140002630
mov rcx, qword [0x1400560f8]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x10]
mov r13d, esi
mov r14d, dword [rsp + 0x30]
nop
mov rbx, qword [0x1400560f0]
mov rax, qword [rbx]
mov rdi, qword [rax]
mov rcx, qword [r15 + 0x100]
test rcx, rcx
je 0x140022caf
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [r15 + 0x100], rsi
lea rdx, [r15 + 0x100]
mov rcx, rbx
call rdi
test eax, eax
jne 0x1400231a8
xorps xmm0, xmm0
movups xmmword [rbp + 0x4e4], xmm0
movups xmmword [rbp + 0x4f4], xmm0
movups xmmword [rbp + 0x504], xmm0
movups xmmword [rbp + 0x514], xmm0
movups xmmword [rbp + 0x524], xmm0
movups xmmword [rbp + 0x534], xmm0
movups xmmword [rbp + 0x544], xmm0
movups xmmword [rbp + 0x554], xmm0
movups xmmword [rbp + 0x564], xmm0
mov dword [rbp + 0x4e0], 0x94
lea rcx, [rbp + 0x4e0]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rbp + 0x4e4], 6
jb 0x140023180
xor edx, edx
cmp dword [rbp + 0x4e8], 2
jb 0x140022f4b
mov r8d, 0x378
lea rcx, [rbp + 0x580]
call sub.VCRUNTIME140.dll_memset
lea rax, vtable.DeviceDX11.0
mov qword [rbp + 0x580], rax
lea rax, [rbp + 0x588]
mov qword [rsp + 0x38], rax
mov qword [rbp + 0x588], rsi
mov dword [rbp + 0x590], esi
mov qword [rbp + 0x798], rsi
mov qword [rbp + 0x7a8], rsi
mov qword [rbp + 0x7b0], rsi
mov qword [rbp + 0x7a8], rsi
mov qword [rbp + 0x7b0], 7
mov word [rbp + 0x798], si
xor eax, eax
mov qword [rbp + 0x7b8], rax
xor edx, edx
mov r8d, 0x130
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp + 0x7c8]
lea rcx, [rsp + 0x60]
mov edx, 2
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rax + 0x60], xmm0
lea rax, [rax + 0x80]
movups xmm1, xmmword [rcx + 0x70]
movups xmmword [rax - 0x10], xmm1
lea rcx, [rcx + 0x80]
sub rdx, 1
jne 0x140022dd2
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
mov r8d, 0x200
lea rcx, [rbp + 0x594]
call sub.VCRUNTIME140.dll_memset
lea rcx, str.Dxgi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbp + 0x7c0], rax
mov edx, r13d
lea rcx, [rbp + 0x580]
call fcn.140024210
test eax, eax
jne 0x140023188
mov rdi, qword [r15 + 0x100]
mov rax, qword [rdi]
mov rsi, qword [rax + 0x90]
mov rbx, qword [rbp + 0x588]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x140022ea3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
or r14d, 1
mov dword [rsp + 0x30], r14d
mov r8d, 0x6e
mov rdx, rbx
mov rcx, rdi
call rsi
test eax, eax
sete dil
and r14d, 0xfffffffe
mov dword [rsp + 0x30], r14d
test rbx, rbx
je 0x140022ed7
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov eax, dword [rbp + 0x8c8]
mov dword [r15 + 0xd8], eax
mov eax, dword [rbp + 0x8cc]
mov dword [r15 + 0xdc], eax
lea rbx, [r15 + 0xe0]
lea rax, [rbp + 0x7c8]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140022f06
mov rcx, rbx
call fcn.14000ed70
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140022f25
mov rcx, qword [rbx]
mov r8, qword [r15 + 0xf0]
lea rdx, [rbp + 0x7c8]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs]
nop
lea rcx, [rbp + 0x580]
call fcn.140024140
jmp 0x140023152
mov r8d, 0x690
lea rcx, [rbp + 0x900]
call sub.VCRUNTIME140.dll_memset
lea rax, vtable.DeviceDX9.0
mov qword [rbp + 0x900], rax
lea rax, [rbp + 0x908]
mov qword [rsp + 0x48], rax
mov qword [rbp + 0x908], rsi
lea rax, [rbp + 0x910]
mov qword [rsp + 0x50], rax
mov qword [rbp + 0x910], rsi
mov dword [rbp + 0x918], esi
mov qword [rbp + 0xb20], rsi
mov qword [rbp + 0xb30], rsi
mov qword [rbp + 0xb38], rsi
mov qword [rbp + 0xb30], rsi
mov qword [rbp + 0xb38], 7
mov word [rbp + 0xb20], si
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x91c]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x450
lea rcx, [rbp + 0x90]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0xb40]
lea rax, [rbp + 0x90]
mov edx, 8
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x140023000
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
mov r8d, r13d
mov dl, 1
lea rcx, [rbp + 0x900]
call fcn.140023a10
test eax, eax
je 0x1400230a6
mov r8d, r13d
xor edx, edx
lea rcx, [rbp + 0x900]
call fcn.140023a10
test eax, eax
jne 0x140023196
mov rdi, qword [r15 + 0x100]
mov rax, qword [rdi]
mov rsi, qword [rax + 0x70]
mov rbx, qword [rbp + 0x910]
mov qword [rsp + 0x58], rbx
test rbx, rbx
je 0x1400230cf
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
or r14d, 2
mov dword [rsp + 0x30], r14d
mov rdx, rbx
mov rcx, rdi
call rsi
test eax, eax
sete dil
and r14d, 0xfffffffd
mov dword [rsp + 0x30], r14d
test rbx, rbx
je 0x1400230fd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov eax, dword [rbp + 0xf68]
mov dword [r15 + 0xd8], eax
mov eax, dword [rbp + 0xf6c]
mov dword [r15 + 0xdc], eax
lea rax, [rbp + 0xd40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140023125
lea rbx, [r15 + 0xe0]
lea rdx, [rbp + 0xd40]
mov rcx, rbx
call fcn.140008a50
nop
lea rcx, [rbp + 0x900]
call fcn.140023910
cmp qword [rbx + 0x18], 0x10
jb 0x14002315c
mov rbx, qword [rbx]
mov r9, rbx
mov r8d, dword [r15 + 0xdc]
mov edx, dword [r15 + 0xd8]
lea rcx, str.amf_device:_0x_x__0x_x___s_n
call fcn.140002630
test dil, dil
jne 0x1400231a4
xor esi, esi
inc r13d
jmp 0x140022c90
lea rcx, [rbp + 0x580]
call fcn.140024140
jmp 0x1400231b6
lea rcx, [rbp + 0x900]
call fcn.140023910
jmp 0x1400231b6
mov al, 1
jmp 0x1400231b8
lea rcx, str.failed_to_create_context:__d_n
mov edx, eax
call fcn.140002630
xor al, al
mov rcx, qword [rbp + 0xf90]
xor rcx, rsp
call fcn.140037fe0
lea r11, [rsp + 0x10a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret