Function at 0x180097460
Capabilities:
Access peb ldr_data

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 - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x1803320c0]
xor rax, rsp
mov qword [rbp + 0xc0], rax
movzx edi, dl
mov rbx, rcx
mov qword [rsp + 0x58], rcx
xor ecx, ecx
mov qword [rbx], rcx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], rcx
lea r13, [rbx + 0x20]
mov qword [r13], rcx
mov qword [rbx + 0x28], rcx
mov qword [rbx + 0x30], rcx
mov qword [rbx + 0x38], rcx
mov qword [rbx + 0x40], rcx
mov dword [rbx + 0x48], ecx
mov qword [rbx + 0x50], rcx
mov qword [rbx + 0x58], rcx
mov qword [rbx + 0x60], rcx
mov qword [rbx + 0x68], rcx
mov qword [rbx + 0x70], rcx
mov qword [rbx + 0x78], rcx
mov ecx, dword [0x18033650c]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x18035480c], ecx
jg 0x1800978f7
mov rax, qword [0x180354818]
test rax, rax
je 0x18009796a
test dil, dil
jne 0x180097547
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x1d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rax
test eax, eax
jns 0x180097563
mov rax, qword [0x180354818]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x1d
xor r9d, r9d
xor r8d, r8d
mov edx, 5
xor ecx, ecx
call rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x18009798d
xor edi, edi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
lea rdx, [0x1802e0790]
call qword [rax]
test eax, eax
js 0x1800979b0
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
lea r8, [rsp + 0x48]
lea rdx, [0x1802e07a0]
call qword [rax + 0x30]
test eax, eax
js 0x1800979d3
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
lea r8, [rbx + 8]
lea rdx, [0x1802e07b0]
call qword [rax + 0x30]
test eax, eax
js 0x1800979f6
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1800975e2
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1800975f3
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbx]
mov rax, qword [rcx]
lea r9, [rbx + 0x10]
mov r8d, 0x360
lea rdx, str.DXBCv
call qword [rax + 0x278]
test eax, eax
js 0x180097a19
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, qword [rbx + 0x10]
call qword [rax + 0x38]
mov rcx, qword [rbx]
mov rax, qword [rcx]
lea r9, [rbx + 0x18]
mov r8d, 0x294
lea rdx, str.DXBC
call qword [rax + 0x290]
test eax, eax
js 0x180097a3c
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, qword [rbx + 0x18]
call qword [rax + 0x28]
lea rax, str.POSITION
mov qword [rbp + 0x50], rax
mov dword [rbp + 0x58], edi
mov qword [rbp + 0x5c], 0x10
mov qword [rbp + 0x64], rdi
mov dword [rbp + 0x6c], edi
lea rax, str.TEXCOORD
mov qword [rbp + 0x70], rax
mov dword [rbp + 0x78], edi
mov qword [rbp + 0x7c], 0x10
mov qword [rbp + 0x84], 8
mov dword [rbp + 0x8c], edi
lea rax, str.COLOR
mov qword [rbp + 0x90], rax
mov dword [rbp + 0x98], edi
mov qword [rbp + 0x9c], 0x1c
mov qword [rbp + 0xa4], 0x10
mov dword [rbp + 0xac], edi
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], 0x360
lea r9, str.DXBCv
mov r8d, 3
lea rdx, [rbp + 0x50]
call qword [rax + 0x270]
test eax, eax
js 0x180097a5f
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, qword [r13]
call qword [rax + 0x58]
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov edx, 4
call qword [rax + 0x90]
movdqa xmm0, xmmword [0x1802f5560]
movdqa xmmword [rsp + 0x60], xmm0
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x1802f5650]
movdqa xmmword [rbp - 0x80], xmm1
mov dword [rbp - 0x70], 2
mov dword [rbp - 0x6c], 6
mov dword [rbp - 0x68], 1
mov qword [rbp - 0x64], 0xf
mov rcx, qword [rbx]
mov rax, qword [rcx]
lea r8, [rbx + 0x28]
lea rdx, [rsp + 0x60]
call qword [rax + 0x298]
test eax, eax
js 0x180097a82
xorps xmm0, xmm0
movups xmmword [rbp + 0xb0], xmm0
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov r9d, 0xffffffff
lea r8, [rbp + 0xb0]
mov rdx, qword [rbx + 0x28]
call qword [rax + 0xc8]
movdqa xmm0, xmmword [0x1802f5580]
movdqu xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], 0
movdqa xmm1, xmmword [0x1802f5570]
movdqu xmmword [rbp + 0x38], xmm1
mov rcx, qword [rbx]
mov rax, qword [rcx]
lea r8, [rbx + 0x30]
lea rdx, [rbp + 0x20]
call qword [rax + 0x2a8]
test eax, eax
js 0x180097aa5
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, qword [rbx + 0x30]
call qword [rax + 0xe8]
movdqa xmm0, xmmword [0x1802f55d0]
movdqu xmmword [rbp - 0x18], xmm0
mov dword [rbp - 8], 0
movdqa xmm0, xmmword [0x1802f56c0]
movdqu xmmword [rbp - 4], xmm0
movdqu xmmword [rbp + 0xc], xmm0
mov rcx, qword [rbx]
mov rax, qword [rcx]
lea r8, [rbx + 0x38]
lea rdx, [rbp - 0x18]
call qword [rax + 0x2a0]
test eax, eax
js 0x180097ac8
mov rcx, qword [rbx]
mov rax, qword [rcx]
xor r8d, r8d
mov rdx, qword [rbx + 0x38]
call qword [rax + 0xd0]
movdqa xmm0, xmmword [0x1802f5640]
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], 0
mov dword [rbp - 0x38], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x34], xmm0
mov qword [rbp - 0x24], 0
mov rcx, qword [rbx]
mov rax, qword [rcx]
lea r8, [rbx + 0x40]
lea rdx, [rbp - 0x50]
call qword [rax + 0x2b0]
test eax, eax
js 0x1800978d4
mov rcx, qword [rbx]
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x30]
lea r9, [rbx + 0x40]
xor edx, edx
mov r8d, 1
call r10
nop
mov rax, rbx
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.1801e5610
lea r11, [rsp + 0x1d0]
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
lea rdx, str.failed_to_create_sampler_state
lea rcx, [rsp + 0x30]
call fcn.1800948b0
lea rdx, [0x18032edd8]
lea rcx, [rsp + 0x30]
call fcn.1801e8590
int3
lea rcx, [0x18035480c]
call fcn.1801e56d8
cmp dword [0x18035480c], 0xffffffff
jne 0x18009750e
lea rcx, str.D3D10
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x180354810], rax
test rax, rax
je 0x180097942
lea rdx, str.D3D10CreateDevice
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180354818], rax
jmp 0x18009794d
mov qword [0x180354818], 0
lea rcx, [0x180244730]
call fcn.1801e5b18
lea rcx, [0x18035480c]
call fcn.1801e566c
jmp 0x18009750e
lea rdx, str.Direct3D_10_is_not_installed_on_this_system
lea rcx, [rsp + 0x30]
call fcn.1800948b0
lea rdx, [0x18032edd8]
lea rcx, [rsp + 0x30]
call fcn.1801e8590
int3
lea rdx, str.failed_to_create_Direct3D_10_device
lea rcx, [rsp + 0x30]
call fcn.1800948b0
lea rdx, [0x18032edd8]
lea rcx, [rsp + 0x30]
call fcn.1801e8590
nop
lea rdx, str.failed_to_get_DXGI_device
lea rcx, [rsp + 0x30]
call fcn.1800948b0
lea rdx, [0x18032edd8]
lea rcx, [rsp + 0x30]
call fcn.1801e8590
int3
lea rdx, str.failed_to_get_DXGI_adapter
lea rcx, [rsp + 0x30]
call fcn.1800948b0
lea rdx, [0x18032edd8]
lea rcx, [rsp + 0x30]
call fcn.1801e8590
int3
lea rdx, str.failed_to_get_DXGI_factory
lea rcx, [rsp + 0x30]
call fcn.1800948b0
lea rdx, [0x18032edd8]
lea rcx, [rsp + 0x30]
call fcn.1801e8590
nop
lea rdx, str.failed_to_create_vertex_shader
lea rcx, [rsp + 0x30]
call fcn.1800948b0
lea rdx, [0x18032edd8]
lea rcx, [rsp + 0x30]
call fcn.1801e8590
int3
lea rdx, str.failed_to_create_pixel_shader
lea rcx, [rsp + 0x30]
call fcn.1800948b0
lea rdx, [0x18032edd8]
lea rcx, [rsp + 0x30]
call fcn.1801e8590
int3
lea rdx, str.failed_to_create_layout_of_vertex_shader_inputs
lea rcx, [rsp + 0x30]
call fcn.1800948b0
lea rdx, [0x18032edd8]
lea rcx, [rsp + 0x30]
call fcn.1801e8590
int3
lea rdx, str.failed_to_create_blend_state
lea rcx, [rsp + 0x30]
call fcn.1800948b0
lea rdx, [0x18032edd8]
lea rcx, [rsp + 0x30]
call fcn.1801e8590
int3
lea rdx, str.failed_to_create_rasterizer_state
lea rcx, [rsp + 0x30]
call fcn.1800948b0
lea rdx, [0x18032edd8]
lea rcx, [rsp + 0x30]
call fcn.1801e8590
int3
lea rdx, str.failed_to_create_depth_stencil_state
lea rcx, [rsp + 0x30]
call fcn.1800948b0
lea rdx, [0x18032edd8]
lea rcx, [rsp + 0x30]
call fcn.1801e8590
int3