Function at 0x1400751b0
Capabilities:
Check os version

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4a0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x14035c8c0]
xor rax, rsp
mov qword [rsp + 0x498], rax
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
lea rcx, [r11 - 0x50]
call fcn.140009e28
nop
mov byte [rsp + 0x470], sil
lea r8d, [rsi + 0x1a]
lea rdx, str.srl::DirectX_8::Initialize
lea rcx, [rsp + 0x478]
call fcn.140009a80
nop
call fcn.1400224d0
cmp dword [rax + 8], 4
jl 0x14007523a
mov byte [rsp + 0x470], 1
lea rcx, [rsp + 0x470]
call fcn.140018570
movzx r12d, byte [rbx + 0x30]
mov byte [rsp + 0x34], r12b
test r12b, r12b
jne 0x140075dd1
lea rcx, [0x1402f6a20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14007526c
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rbx + 0x38], rsi
mov qword [rbx + 0x38], rdi
test rdi, rdi
je 0x140075827
lea rdx, str.Direct3DCreate8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x28], rax
test rax, rax
je 0x1400752a3
mov r12b, 1
mov byte [rsp + 0x34], r12b
jmp 0x140075dc9
call fcn.1400224d0
cmp dword [rax + 8], 2
jl 0x140075dc9
call fcn.1400224d0
mov r13, rax
lea rcx, [rsp + 0x220]
call fcn.14001b770
nop
lea rcx, [rsp + 0x450]
call fcn.140009e28
nop
mov r15d, 4
mov r8d, r15d
lea rdx, str.WARN
lea rcx, [rsp + 0x450]
call fcn.140009a80
lea rcx, [rsp + 0x3e0]
call fcn.140009e28
nop
mov dword [rsp + 0x38], esi
lea r14d, [r15 - 2]
nop dword [rax]
cmp esi, dword [r13 + 0x10]
jge 0x14007539d
cmp esi, 0xa
jge 0x14007539d
mov rcx, qword [rsp + 0x3f0]
mov rdx, qword [rsp + 0x3f8]
mov rax, rdx
sub rax, rcx
cmp rax, r14
jb 0x140075376
lea rdi, [rcx + 2]
mov qword [rsp + 0x3f0], rdi
lea rbx, [rsp + 0x3e0]
cmp rdx, 8
cmovae rbx, qword [rsp + 0x3e0]
lea rcx, [rbx + rcx*2]
mov r8, r15
lea rdx, [0x1402f1358]
call fcn.14022e750
xor eax, eax
mov word [rbx + rdi*2], ax
jmp 0x140075392
mov qword [rsp + 0x20], r14
lea r9, [0x1402f1358]
mov rdx, r14
lea rcx, [rsp + 0x3e0]
call fcn.140023320
inc esi
mov dword [rsp + 0x38], esi
jmp 0x140075310
lea rcx, [rsp + 0x430]
call fcn.140009e28
nop
lea rcx, [rsp + 0x410]
call fcn.140009e28
nop
lea r8, [rsp + 0x410]
lea rdx, [rsp + 0x430]
mov rcx, r13
call fcn.140022600
lea rsi, [rsp + 0x3e0]
cmp qword [rsp + 0x3f8], 8
cmovae rsi, qword [rsp + 0x3e0]
mov edx, 0x2040
lea rcx, [rsp + 0x1c0]
call fcn.14022c844
mov rcx, qword [rsp + 0x230]
movsxd rdx, dword [rcx + 4]
lea rcx, [rsp + 0x230]
add rcx, rdx
mov edx, dword [rax + 8]
call qword [rax]
lea rdx, [rsp + 0x430]
cmp qword [rsp + 0x448], 8
cmovae rdx, qword [rsp + 0x430]
mov r8, qword [rsp + 0x440]
lea rcx, [rsp + 0x230]
call fcn.140018ee0
mov rbx, rax
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rsp + 0x1d0]
call fcn.14022c844
mov rdi, rax
lea rdx, [0x1402f0eb0]
mov rcx, rbx
call fcn.140018b00
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov edx, dword [rdi + 8]
call qword [rdi]
mov edx, 6
lea rcx, [rsp + 0x1e0]
call fcn.14022c86c
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov rdx, qword [rax + 8]
call qword [rax]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
mov eax, 0x30
mov word [rcx + rbx + 0x58], ax
lea edx, [rax - 0x2d]
lea rcx, [rsp + 0x1f0]
call fcn.14022c858
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov rdx, qword [rax + 8]
call qword [rax]
lea rdx, [rsp + 0x410]
cmp qword [rsp + 0x428], 8
cmovae rdx, qword [rsp + 0x410]
mov r8, qword [rsp + 0x420]
mov rcx, rbx
call fcn.140018ee0
mov rbx, rax
mov edx, 5
lea rcx, [rsp + 0x200]
call fcn.14022c86c
mov rdi, rax
lea rdx, [0x1402f0eb0]
mov rcx, rbx
call fcn.140018b00
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov rdx, qword [rdi + 8]
call qword [rdi]
mov rcx, qword [rbx]
movsxd rdx, dword [rcx + 4]
mov eax, 0x20
mov word [rdx + rbx + 0x58], ax
lea edx, [rax + 0x20]
lea rcx, [rsp + 0x210]
call fcn.14022c844
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov edx, dword [rax + 8]
call qword [rax]
lea rdx, [rsp + 0x450]
cmp qword [rsp + 0x468], 8
cmovae rdx, qword [rsp + 0x450]
mov r8, qword [rsp + 0x460]
mov rcx, rbx
call fcn.140018ee0
lea rdx, [0x1402f13a8]
mov rcx, rax
call fcn.140018b00
mov rcx, rax
mov rdx, rsi
call fcn.140018b00
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14036bfc0], eax
jle 0x140075606
lea rcx, [0x14036bfc0]
call fcn.14022a558
cmp dword [0x14036bfc0], 0xffffffff
jne 0x140075606
lea rbx, [0x14036bfc8]
mov rcx, rbx
call fcn.140009e28
lea rcx, [0x14027d390]
call fcn.14022a060
lea rcx, [0x14036bfc0]
call fcn.14022a4f8
jmp 0x14007560d
lea rbx, [0x14036bfc8]
lea rcx, [rsp + 0x3c0]
call fcn.140009a0c
xor esi, esi
mov qword [rsp + 0x3d0], rsi
mov qword [rsp + 0x3d8], 7
mov word [rsp + 0x3c0], si
mov dword [rsp + 0x30], r14d
mov rdx, qword [rsp + 0x2a8]
test dl, 2
jne 0x14007569b
mov rax, qword [rsp + 0x278]
mov rcx, qword [rax]
test rcx, rcx
je 0x14007569b
mov rax, qword [rsp + 0x258]
mov rdx, qword [rax]
mov qword [rsp + 0x48], rcx
lea r8, [rsp + 0x2a0]
lea rax, [rsp + 0x48]
cmp rcx, qword [rsp + 0x2a0]
cmovae r8, rax
mov r8, qword [r8]
sub r8, rdx
sar r8, 1
lea rcx, [rsp + 0x3c0]
call fcn.140009a80
jmp 0x1400756df
test dl, 4
jne 0x1400756df
mov rax, qword [rsp + 0x270]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400756df
mov rax, qword [rsp + 0x250]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x288]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
lea rcx, [rsp + 0x3c0]
call fcn.140009a80
and r14d, 0xfffffffd
mov dword [rsp + 0x30], r14d
mov edi, 1
mov dword [rsp + 0x30], edi
mov rdx, qword [0x14036bfe0]
cmp rdx, 8
jb 0x140075747
lea rdx, [rdx*2 + 2]
mov qword [rsp + 0x400], rdx
mov rcx, qword [0x14036bfc8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140075742
add rdx, 0x27
mov qword [rsp + 0x400], rdx
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140075e0f
call fcn.140004518
mov qword [0x14036bfd8], rsi
mov qword [0x14036bfe0], 7
mov word [0x14036bfc8], si
movups xmm0, xmmword [rsp + 0x3c0]
movups xmmword [0x14036bfc8], xmm0
movups xmm1, xmmword [rsp + 0x3d0]
movups xmmword [0x14036bfd8], xmm1
mov qword [rsp + 0x3d0], rsi
mov qword [rsp + 0x3d8], 7
mov word [rsp + 0x3c0], si
and edi, 0xfffffffe
mov dword [rsp + 0x30], edi
lea rcx, [rsp + 0x3c0]
call fcn.140009824
nop
lea rcx, [rsp + 0x410]
call fcn.140009824
nop
lea rcx, [rsp + 0x430]
call fcn.140009824
nop
lea rcx, [rsp + 0x3e0]
call fcn.140009824
nop
lea rcx, [rsp + 0x450]
call fcn.140009824
nop
lea rcx, [rsp + 0x220]
call fcn.14001b430
call fcn.1400224d0
cmp qword [0x14036bfe0], 8
cmovae rbx, qword [0x14036bfc8]
mov r8, qword [0x14036bfd8]
mov rdx, rbx
mov rcx, rax
call fcn.140018ee0
lea rdx, str.Unable_to_get_all_proc_addresses_from_DirectX_8
jmp 0x140075d99
call fcn.1400224d0
cmp dword [rax + 8], 2
jl 0x140075dc9
call fcn.1400224d0
mov r13, rax
lea rcx, [rsp + 0xc0]
call fcn.14001b770
nop
lea rcx, [rsp + 0x3a0]
call fcn.140009e28
nop
mov r15d, 4
mov r8d, r15d
lea rdx, str.WARN
lea rcx, [rsp + 0x3a0]
call fcn.140009a80
lea rcx, [rsp + 0x340]
call fcn.140009e28
nop
mov dword [rsp + 0x3c], esi
lea r14d, [r15 - 2]
nop dword [rax]
cmp esi, dword [r13 + 0x10]
jge 0x14007591d
cmp esi, 0xa
jge 0x14007591d
mov rcx, qword [rsp + 0x350]
mov rdx, qword [rsp + 0x358]
mov rax, rdx
sub rax, rcx
cmp rax, r14
jb 0x1400758f6
lea rdi, [rcx + 2]
mov qword [rsp + 0x350], rdi
lea rbx, [rsp + 0x340]
cmp rdx, 8
cmovae rbx, qword [rsp + 0x340]
lea rcx, [rbx + rcx*2]
mov r8, r15
lea rdx, [0x1402f1358]
call fcn.14022e750
xor eax, eax
mov word [rbx + rdi*2], ax
jmp 0x140075912
mov qword [rsp + 0x20], r14
lea r9, [0x1402f1358]
mov rdx, r14
lea rcx, [rsp + 0x340]
call fcn.140023320
inc esi
mov dword [rsp + 0x3c], esi
jmp 0x140075890
lea rcx, [rsp + 0x380]
call fcn.140009e28
nop
lea rcx, [rsp + 0x360]
call fcn.140009e28
nop
lea r8, [rsp + 0x360]
lea rdx, [rsp + 0x380]
mov rcx, r13
call fcn.140022600
lea rsi, [rsp + 0x340]
cmp qword [rsp + 0x358], 8
cmovae rsi, qword [rsp + 0x340]
mov edx, 0x2040
lea rcx, [rsp + 0x78]
call fcn.14022c844
mov rcx, qword [rsp + 0xd0]
movsxd rdx, dword [rcx + 4]
lea rcx, [rsp + 0xd0]
add rcx, rdx
mov edx, dword [rax + 8]
call qword [rax]
lea rdx, [rsp + 0x380]
cmp qword [rsp + 0x398], 8
cmovae rdx, qword [rsp + 0x380]
mov r8, qword [rsp + 0x390]
lea rcx, [rsp + 0xd0]
call fcn.140018ee0
mov rbx, rax
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rsp + 0x88]
call fcn.14022c844
mov rdi, rax
lea rdx, [0x1402f0eb0]
mov rcx, rbx
call fcn.140018b00
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov edx, dword [rdi + 8]
call qword [rdi]
mov edx, 6
lea rcx, [rsp + 0x98]
call fcn.14022c86c
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov rdx, qword [rax + 8]
call qword [rax]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
mov eax, 0x30
mov word [rcx + rbx + 0x58], ax
lea edx, [rax - 0x2d]
lea rcx, [rsp + 0xa8]
call fcn.14022c858
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov rdx, qword [rax + 8]
call qword [rax]
lea rdx, [rsp + 0x360]
cmp qword [rsp + 0x378], 8
cmovae rdx, qword [rsp + 0x360]
mov r8, qword [rsp + 0x370]
mov rcx, rbx
call fcn.140018ee0
mov rbx, rax
mov edx, 5
lea rcx, [rsp + 0x50]
call fcn.14022c86c
mov rdi, rax
lea rdx, [0x1402f0eb0]
mov rcx, rbx
call fcn.140018b00
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov rdx, qword [rdi + 8]
call qword [rdi]
mov rcx, qword [rbx]
movsxd rdx, dword [rcx + 4]
mov eax, 0x20
mov word [rdx + rbx + 0x58], ax
lea edx, [rax + 0x20]
lea rcx, [rsp + 0x60]
call fcn.14022c844
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov edx, dword [rax + 8]
call qword [rax]
lea rdx, [rsp + 0x3a0]
cmp qword [rsp + 0x3b8], 8
cmovae rdx, qword [rsp + 0x3a0]
mov r8, qword [rsp + 0x3b0]
mov rcx, rbx
call fcn.140018ee0
lea rdx, [0x1402f13a8]
mov rcx, rax
call fcn.140018b00
mov rcx, rax
mov rdx, rsi
call fcn.140018b00
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14036bfc0], eax
jle 0x140075b7d
lea rcx, [0x14036bfc0]
call fcn.14022a558
cmp dword [0x14036bfc0], 0xffffffff
jne 0x140075b7d
lea rbx, [0x14036bfc8]
mov rcx, rbx
call fcn.140009e28
lea rcx, [0x14027d390]
call fcn.14022a060
lea rcx, [0x14036bfc0]
call fcn.14022a4f8
jmp 0x140075b84
lea rbx, [0x14036bfc8]
lea rcx, [rsp + 0x320]
call fcn.140009a0c
xor esi, esi
mov qword [rsp + 0x330], rsi
mov qword [rsp + 0x338], 7
mov word [rsp + 0x320], si
mov edi, 8
mov dword [rsp + 0x30], edi
mov rdx, qword [rsp + 0x148]
test dl, 2
jne 0x140075c16
mov rax, qword [rsp + 0x118]
mov rcx, qword [rax]
test rcx, rcx
je 0x140075c16
mov rax, qword [rsp + 0xf8]
mov rdx, qword [rax]
mov qword [rsp + 0x40], rcx
lea r8, [rsp + 0x140]
lea rax, [rsp + 0x40]
cmp rcx, qword [rsp + 0x140]
cmovae r8, rax
mov r8, qword [r8]
sub r8, rdx
sar r8, 1
lea rcx, [rsp + 0x320]
call fcn.140009a80
jmp 0x140075c5a
test dl, 4
jne 0x140075c5a
mov rax, qword [rsp + 0x110]
mov rcx, qword [rax]
test rcx, rcx
je 0x140075c5a
mov rax, qword [rsp + 0xf0]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x128]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
lea rcx, [rsp + 0x320]
call fcn.140009a80
and edi, 0xfffffff7
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x30], r15d
mov rdx, qword [0x14036bfe0]
cmp rdx, 8
jb 0x140075cbc
lea rdx, [rdx*2 + 2]
mov qword [rsp + 0x408], rdx
mov rcx, qword [0x14036bfc8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140075cb7
add rdx, 0x27
mov qword [rsp + 0x408], rdx
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140075e15
call fcn.140004518
mov qword [0x14036bfd8], rsi
mov qword [0x14036bfe0], 7
mov word [0x14036bfc8], si
movups xmm0, xmmword [rsp + 0x320]
movups xmmword [0x14036bfc8], xmm0
movups xmm1, xmmword [rsp + 0x330]
movups xmmword [0x14036bfd8], xmm1
mov qword [rsp + 0x330], rsi
mov qword [rsp + 0x338], 7
mov word [rsp + 0x320], si
and r15d, 0xfffffffb
mov dword [rsp + 0x30], r15d
lea rcx, [rsp + 0x320]
call fcn.140009824
nop
lea rcx, [rsp + 0x360]
call fcn.140009824
nop
lea rcx, [rsp + 0x380]
call fcn.140009824
nop
lea rcx, [rsp + 0x340]
call fcn.140009824
nop
lea rcx, [rsp + 0x3a0]
call fcn.140009824
nop
lea rcx, [rsp + 0xc0]
call fcn.14001b430
call fcn.1400224d0
cmp qword [0x14036bfe0], 8
cmovae rbx, qword [0x14036bfc8]
mov r8, qword [0x14036bfd8]
mov rdx, rbx
mov rcx, rax
call fcn.140018ee0
lea rdx, str.Unable_to_open_d3d8.dll
mov rcx, rax
call fcn.140018b00
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
mov rbx, rax
mov dl, 0xa
add rcx, rax
call fcn.1400193d0
movzx edx, ax
mov rcx, rbx
call fcn.140019210
mov rcx, rbx
call fcn.140019e90
nop
jmp 0x140075dd1
lea rcx, [rsp + 0x470]
call fcn.140019fe0
movzx eax, r12b
mov rcx, qword [rsp + 0x498]
xor rcx, rsp
call fcn.140229da0
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.1402311b4
nop
call fcn.1402311b4
int3