Function at 0x10001dc28
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2f0
mov rax, qword [0x10009e100]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov rsi, rcx
lea rbp, str.RenderManager.cpp
mov r15d, 2
lea r9, str.Initializing_the_rendering_system.
mov edx, 0x45d
mov r8, rbp
mov ecx, r15d
call fcn.100002c98
mov rax, qword [rsi + 0x40]
cmp dword [rax + 0x10], 0x10
je 0x10001dc94
cmp dword [rax + 0x10], 0x20
jne 0x10002fb73
lea r9, str.Creating_the_D3D9_Object
mov r8, rbp
mov edx, 0x466
mov ecx, r15d
call fcn.100002c98
mov ecx, 0x20
call sub.d3d9.dll_Direct3DCreate9
xor r14d, r14d
mov r8, rbp
mov rdi, rax
mov ecx, r15d
cmp rax, r14
je 0x10002fb8f
lea r9, str.Adding_the_RGB_Rasterizer
mov edx, 0x46f
call fcn.100002c98
lea rcx, str.rgb9rast.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r8, rbp
mov ecx, r15d
mov rbx, rax
cmp rax, r14
je 0x10002fbae
lea r9, str.Found_rgbrast__calling_GetProcAddress
mov edx, 0x474
call fcn.100002c98
lea rdx, str.D3D9GetSWInfo
mov rcx, rbx
call sub.KERNEL32.dll_GetProcAddress
mov rdx, rax
cmp rax, r14
je 0x10002fb9d
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea r9, str.RGBRast_Registered
mov edx, 0x47e
jmp 0x10001dd3d
mov r8, rbp
mov ecx, r15d
jmp 0x10001dd45
call fcn.100002c98
lea r9, str.Finding_an_adapter
mov r8, rbp
mov edx, 0x489
mov ecx, r15d
call fcn.100002c98
jmp 0x10001dd63
lea r8, [rsp + 0x90]
mov rdx, rdi
mov rcx, rsi
call fcn.10001e4f0
cmp al, r14b
je 0x10002fbbf
mov r12d, dword [rsp + 0x94]
lea r9, str.Using_adapter__ordinal__d
mov r8, rbp
mov edx, 0x4a2
mov ecx, r15d
mov dword [rsp + 0x20], r12d
call fcn.100002c98
bt dword [rsp + 0xac], 0x10
mov r13d, dword [rsp + 0x90]
mov bpl, r14b
mov ebx, 1
jae 0x10001ddc8
movzx ebp, r14b
cmp r13d, ebx
cmove ebp, ebx
lea rcx, [0x100081f38]
lea rax, [0x100081f40]
cmp bpl, r14b
cmovne rax, rcx
lea r9, str.Using_Hardware_TNL___s
lea r8, str.RenderManager.cpp
mov ecx, r15d
mov edx, 0x4ae
mov qword [rsp + 0x20], rax
call fcn.100002c98
mov eax, r13d
sub eax, ebx
jne 0x10002fbe7
lea r9, str.Using_HAL
mov edx, 0x4b4
lea r8, str.RenderManager.cpp
mov ecx, r15d
call fcn.100002c98
mov rax, qword [rdi]
lea r8, [rsp + 0x80]
mov edx, r12d
mov rcx, rdi
call qword [rax + 0x40]
mov r9d, dword [rsp + 0x8c]
mov dword [rsp + 0x30], 0x15
mov dword [rsi + 0x48], r9d
mov rax, qword [rdi]
mov r8d, r13d
mov edx, r12d
mov rcx, rdi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r14d
call qword [rax + 0x50]
cmp eax, r14d
jl 0x10002fc66
mov rax, qword [rsi + 0x40]
cmp dword [rax + 0x10], 0x10
je 0x10002fc66
mov r15b, r14b
jmp 0x10001de83
mov al, r15b
mov r12d, 2
lea r9, str.Using_bitcount:__d
neg al
lea r8, str.RenderManager.cpp
mov edx, 0x4de
sbb ecx, ecx
and ecx, 0xfffffff0
add ecx, 0x20
mov dword [rsp + 0x20], ecx
mov ecx, r12d
call fcn.100002c98
lea r8d, [r12 + 0x3e]
lea rcx, [rsp + 0x40]
xor edx, edx
call sub.msvcrt.dll_memset
mov r11, qword [rsi + 0x40]
mov ecx, r14d
cmp byte [r11 + 0x14], r14b
mov dword [rsp + 0x4c], ebx
mov dword [rsp + 0x6c], r14d
sete cl
mov dword [rsp + 0x68], ecx
mov rax, qword [r11]
mov dword [rsp + 0x58], ebx
mov qword [rsp + 0x60], rax
mov eax, dword [r11 + 0xc]
mov dword [rsp + 0x44], eax
mov eax, dword [r11 + 8]
mov dword [rsp + 0x74], r14d
mov dword [rsp + 0x7c], ebx
mov dword [rsp + 0x40], eax
cmp ecx, r14d
je 0x10002fcef
mov eax, dword [rsp + 0x8c]
jmp 0x10001df18
lea rcx, [rsp + 0x1c4]
xor edx, edx
mov r8d, 0x110
mov dword [rsp + 0x48], eax
mov dword [rsi + 4], eax
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x1c0]
mov dword [rsp + 0x1c0], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [rsp + 0x1c8]
mov r11d, dword [rsp + 0x1cc]
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x1c4]
lea r9, str.Creating_The_Device_on_OS:__d._d._d
lea r8, str.RenderManager.cpp
mov edx, 0x513
mov ecx, r12d
mov dword [rsp + 0x20], eax
call fcn.100002c98
neg bpl
sbb r12d, r12d
and r12d, 0x20
add r12d, 0x20
cmp dword [rsp + 0x1c4], 6
jb 0x10001dfca
lea r9, str.Adding_9.L_flag
lea r8, str.RenderManager.cpp
mov edx, 0x51c
mov ecx, 2
call fcn.100002c98
bts r12d, 0xc
mov r14b, bl
jmp 0x10001dfca
mov r9, qword [rsi + 0x40]
mov rax, qword [rdi]
mov edx, dword [rsp + 0x94]
mov r9, qword [r9]
lea rcx, [rsi + 0x50]
mov r8d, r13d
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov rcx, rdi
mov dword [rsp + 0x20], r12d
call qword [rax + 0x80]
mov ebp, eax
test eax, eax
jns 0x10001e041
cmp ebp, 0x8876086c
jne 0x10002fd0a
test r14b, r14b
je 0x10002fd0a
lea r9, str.Falling_back_from_9.L
lea r8, str.RenderManager.cpp
mov edx, 0x532
mov ecx, 2
call fcn.100002c98
xor r14b, r14b
btr r12d, 0xc
jmp 0x10001dfca
mov rax, qword [rdi]
mov edx, dword [rsp + 0x94]
mov rcx, rdi
call qword [rax + 0x78]
mov rcx, rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rdi]
call qword [rax + 0x10]
mov r14d, 2
lea r9, str.Device_Created__parsing_caps
lea r8, str.RenderManager.cpp
mov ecx, r14d
mov edx, 0x560
call fcn.100002c98
mov rcx, qword [0x10009e1f0]
call sub.msvcrt.dll_free
lea ebp, [r14 + 0x12]
mov rcx, rbp
call fcn.100002580
xor r13d, r13d
mov rdi, rax
cmp rax, r13
je 0x10002fde9
mov r8, rbp
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov qword [0x10009e1f0], rdi
jmp 0x10001e0bc
mov rdx, qword [rsi + 0x50]
mov rcx, rdi
call fcn.10001c644
mov r11d, dword [rsp + 0xe8]
mov eax, dword [rsp + 0xec]
mov rcx, qword [rsi + 0x50]
mov dword [rsi + 0xc], r11d
mov dword [rsi + 0x10], eax
mov rax, qword [rcx]
mov r8d, ebx
mov edx, 0x16
call qword [rax + 0x1c8]
mov rcx, qword [rsi + 0x50]
xor r8d, r8d
mov rax, qword [rcx]
mov edx, 0x89
call qword [rax + 0x1c8]
cmp r15b, r13b
jne 0x10002fdf8
lea r15, str.RenderManager.cpp
lea r9, str.Creating_and_initializing_materials
mov edx, 0x578
mov r8, r15
mov ecx, r14d
call fcn.100002c98
mov rcx, rsi
call fcn.10001c730
lea rbp, [rsi + 0x60]
mov edi, r13d
mov qword [rsi + 0x38], rbp
mov rcx, qword [rbp]
mov rax, qword [rcx]
call qword [rax]
cmp al, r13b
je 0x10002fe66
add edi, ebx
add rbp, 8
cmp edi, 3
jb 0x10001e142
mov rcx, qword [rsi + 0x50]
mov r9d, dword [rsi + 4]
lea rax, [rsi + 0xc8]
mov r10, qword [rcx]
mov edx, 4
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rax
mov r8d, edx
mov dword [rsp + 0x20], r14d
call qword [r10 + 0x120]
cmp eax, r13d
mov edi, eax
jl 0x10002fe08
lea r9, str.Creating_render_target_for_the_cached_back_buffer.
mov r8, r15
mov edx, 0x5a4
mov ecx, r14d
call fcn.100002c98
mov rcx, qword [0x10009e1e0]
call fcn.10001c0b8
call fcn.100012ed8
mov rcx, rsi
call fcn.10001e210
jmp 0x10001e1cc
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.1000024e0
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea r9, str.Invalid_bit_depth_in_parameters
mov r8, rbp
mov edx, 0x462
mov ecx, r15d
call fcn.100002c98
jmp 0x10002fe81
lea r9, str.Direct3DCreate9_failed
mov edx, 0x46b
jmp 0x10002fb85
lea r9, str.Couldnt_find_D3D9GetSWInfo
mov edx, 0x479
jmp 0x10001dd3d
lea r9, str.No_RGBRast_found
mov edx, 0x485
jmp 0x10001dd45
cmp byte [0x10009e052], r14b
je 0x10002fc04
cmp dword [rsi + 0xd4], r14d
jne 0x10002fc04
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.100047dc0
nop
jmp 0x10001dd63
sub eax, ebx
je 0x10002fc55
cmp eax, ebx
jne 0x10001de23
lea r9, str.Using_SW
mov edx, 0x4b9
jmp 0x10001de14
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
lea r9, str.Couldnt_find_a_sufficient_display_to_render_to.
mov r8, rbp
mov edx, 0x49d
mov ecx, r15d
call fcn.100002c98
mov edx, 0x386
mov ebx, 1
mov byte [rsp + 0x30], bl
lea ecx, [rdx - 1]
mov r9d, 0xfffe
mov r8d, ebx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call fcn.100051f7c
xor ecx, ecx
call fcn.1000286a0
int3
lea r9, str.Using_REF
mov edx, 0x4be
jmp 0x10001de14
mov rax, qword [rdi]
mov r9d, dword [rsp + 0x8c]
mov dword [rsp + 0x30], 0x17
mov r8d, r13d
mov edx, r12d
mov rcx, rdi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r14d
call qword [rax + 0x50]
cmp eax, r14d
jge 0x10002fce7
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
lea r9, str.Display_is_using_less_then_16_bit_color
lea r8, str.RenderManager.cpp
mov edx, 0x4d4
mov ecx, r15d
call fcn.100002c98
mov edx, 0x389
mov byte [rsp + 0x30], bl
lea ecx, [rdx - 4]
mov r9d, 0xfffe
mov r8d, ebx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call fcn.100051f7c
xor ecx, ecx
call fcn.1000286a0
int3
mov r15b, bl
jmp 0x10001de83
mov al, r15b
mov dword [rsp + 0x78], r14d
mov dword [rsp + 0x7c], r14d
neg al
sbb eax, eax
neg eax
add eax, 0x16
jmp 0x10001df18
cmp byte [0x10009e052], 0
je 0x10002fd32
cmp dword [rsi + 0xd4], 0
jne 0x10002fd32
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.100047dc0
nop
jmp 0x10001dfca
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
cmp ebp, 0x8876017c
jne 0x10002fd8e
lea r9, str.OOM_in_device_creating____bailing
lea r8, str.RenderManager.cpp
mov edx, 0x54d
mov ecx, 2
call fcn.100002c98
mov edx, 0x37d
mov byte [rsp + 0x30], bl
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea ecx, [rdx + 8]
mov r9d, 0xfffe
mov r8d, ebx
call fcn.100051f7c
xor ecx, ecx
call fcn.1000286a0
int3
mov ecx, ebp
call fcn.1000193c4
lea r9, str.CreateDevice_Failed:__x__s_
lea r8, str.RenderManager.cpp
mov qword [rsp + 0x28], rax
mov edx, 0x555
mov ecx, 2
mov dword [rsp + 0x20], ebp
call fcn.100002c98
mov edx, 0x388
mov byte [rsp + 0x30], bl
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea ecx, [rdx - 3]
mov r9d, 0xfffe
mov r8d, ebx
call fcn.100051f7c
xor ecx, ecx
call fcn.1000286a0
int3
mov rdi, r13
mov qword [0x10009e1f0], r13
jmp 0x10001e0bc
mov rax, qword [rsi + 0x40]
mov dword [rax + 0x10], 0x10
jmp 0x10001e111
mov ecx, eax
call fcn.1000193c4
lea r9, str.CreateOffscreenPlainSurface_Failed:__x__s_
mov r8, r15
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov ecx, r14d
mov edx, 0x596
call fcn.100002c98
mov byte [rsp + 0x30], bl
mov ecx, 0x385
mov qword [rsp + 0x28], r13
mov r9d, 0xfffe
mov r8d, ebx
lea edx, [rcx - 8]
mov qword [rsp + 0x20], r13
cmp edi, 0x8876017c
je 0x10002fe59
lea edx, [rcx + 3]
call fcn.100051f7c
xor ecx, ecx
call fcn.1000286a0
int3
lea r9, str.Material__d_failed_to_create
mov r8, r15
mov edx, 0x588
mov ecx, r14d
mov dword [rsp + 0x20], edi
call fcn.100002c98
xor al, al
jmp 0x10001e1cc