Function at 0x180002490
Capabilities:
Print debug messages

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x498]
sub rsp, 0x598
mov rax, qword [0x180022028]
xor rax, rsp
mov qword [rbp + 0x480], rax
mov rbx, r9
mov r14, rcx
add rcx, 8
mov r15, r8
mov rsi, rdx
mov qword [rbp - 0x40], rbx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor edi, edi
mov qword [r14 + 0xf8], rsi
mov qword [r14 + 0xb8], rdi
mov qword [r14 + 0xc4], rdi
mov qword [r14 + 0xcc], rdi
mov qword [r14 + 0x68], rdi
mov qword [r14 + 0x70], rdi
mov qword [r14 + 0x78], rdi
mov qword [r14 + 0x80], rdi
mov qword [r14 + 0x88], rdi
mov qword [r14 + 0x90], rdi
mov qword [r14 + 0x98], rdi
mov qword [r14 + 0xa0], rdi
mov qword [r14 + 0xa8], rdi
mov qword [r14 + 0xb0], rdi
mov qword [r14 + 0x100], rdi
mov qword [r14 + 0x108], rdi
mov qword [r14 + 0x38], rdi
mov qword [r14 + 0x48], rdi
mov dword [r14 + 0x50], edi
mov qword [r14 + 0x58], rdi
mov qword [r14 + 0x60], rdi
mov dword [r14 + 0xc0], edi
mov qword [r14], rbx
mov qword [r14 + 0x30], r15
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 8]
lea rax, str.overlay.fx
lea r8, str._s_s
lea rcx, [rbp + 0x370]
mov r9, rbx
mov edx, 0x104
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
call fcn.180006908
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x60]
lea r9, str.PSNormal
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
lea rax, str.ps_4_0
mov dword [rsp + 0x30], edi
lea rcx, [rbp + 0x370]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], 0x800
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x68], rdi
call qword [sym.imp.d3dx11_43.dll_D3DX11CompileFromFileA]
mov rcx, qword [rsp + 0x68]
mov ebx, eax
test rcx, rcx
je 0x180002610
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
jns 0x180002626
lea rcx, str.pixelshader_compilation_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x180002d1a
mov rcx, qword [rsp + 0x60]
mov rdi, qword [rsi]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rsp + 0x60]
mov rbx, rax
mov rax, qword [rcx]
call qword [rax + 0x18]
xor r9d, r9d
mov r8, rbx
mov rdx, rax
lea rax, [r14 + 0x68]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [rdi + 0x78]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
jns 0x18000267d
lea rcx, str.CreatePixelShader_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x180002d1a
xor ecx, ecx
lea rax, [rsp + 0x68]
lea r9, [0x18001e5bc]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rcx
lea rax, str.vs_4_0
lea rcx, [rbp + 0x370]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], 0x800
mov qword [rsp + 0x20], rax
call qword [sym.imp.d3dx11_43.dll_D3DX11CompileFromFileA]
mov rcx, qword [rsp + 0x68]
mov ebx, eax
test rcx, rcx
je 0x1800026ea
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
jns 0x180002700
lea rcx, str.vertexshader_compilation_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x180002d1a
mov rcx, qword [rsp + 0x60]
mov rdi, qword [rsi]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rsp + 0x60]
mov rbx, rax
mov rax, qword [rcx]
call qword [rax + 0x18]
xor r9d, r9d
mov r8, rbx
mov rdx, rax
lea rax, [r14 + 0x70]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [rdi + 0x60]
test eax, eax
jns 0x180002755
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
lea rcx, str.CreateVertexShader_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x180002d1a
mov rdi, qword [rsi]
xor ecx, ecx
lea rax, str.POSITION
mov dword [rbp - 0x28], ecx
mov qword [rbp - 0x1c], rcx
mov dword [rbp - 0x14], ecx
mov dword [rbp - 8], ecx
mov dword [rbp + 0xc], ecx
mov rcx, qword [rsp + 0x60]
mov qword [rbp - 0x30], rax
lea rax, str.TEXCOORD
mov qword [rbp - 0x24], 6
mov qword [rbp - 4], 0x10
mov qword [rbp + 4], 0xc
mov qword [rbp - 0x10], rax
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rsp + 0x60]
mov rbx, rax
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rdx, [rbp - 0x30]
mov r8d, 2
mov r9, rax
lea rax, [r14 + 0x78]
mov rcx, rsi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [rdi + 0x58]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
movaps xmm0, xmmword [0x18001e860]
movaps xmm1, xmmword [0x18001e870]
xor eax, eax
lea r9, [r14 + 0x38]
lea r8, [rbp - 0x50]
mov qword [rbp + 0x80], rax
movaps xmmword [rbp + 0x2f0], xmm0
movaps xmm0, xmmword [0x18001e890]
mov qword [rbp + 0x88], rax
mov qword [rbp - 0x50], rax
mov qword [rbp + 0x90], rax
movaps xmmword [rbp + 0x300], xmm1
movaps xmm1, xmmword [0x18001e880]
movaps xmmword [rbp + 0x310], xmm0
mov qword [rbp - 0x48], rax
lea rax, [rbp + 0x2f0]
lea rdx, [rbp + 0x80]
movaps xmm0, xmmword [0x18001e830]
movaps xmmword [rbp + 0x320], xmm1
movaps xmm1, xmmword [0x18001e7f0]
mov qword [rbp - 0x50], rax
mov rax, qword [rsi]
mov rcx, rsi
movaps xmmword [rbp + 0x330], xmm0
movaps xmm0, xmmword [0x18001e850]
movaps xmmword [rbp + 0x340], xmm1
mov dword [rbp + 0x364], 0
mov dword [rbp + 0x84], 1
mov dword [rbp + 0x80], 0x78
movss xmm1, dword [0x18001e7c4]
movss dword [rbp + 0x360], xmm1
movaps xmmword [rbp + 0x350], xmm0
mov dword [rbp + 0x88], 1
call qword [rax + 0x18]
test eax, eax
jns 0x1800028cf
lea rcx, str.Vertexbuffer_creation_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x180002d1a
movdqa xmm0, xmmword [0x18001e800]
xor eax, eax
lea r8, [r14 + 0x80]
mov qword [rbp + 0xf0], rax
mov qword [rbp + 0xf4], rax
mov qword [rbp + 0xc8], rax
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xe0], rax
mov qword [rbp + 0xd8], rax
movdqu xmmword [rbp + 0xc8], xmm0
movss xmm0, dword [0x18001e7cc]
movss dword [rbp + 0xf8], xmm0
mov qword [rbp + 0xe8], rax
mov rax, qword [rsi]
lea rdx, [rbp + 0xc8]
mov rcx, rsi
mov dword [rbp + 0xe0], 1
call qword [rax + 0xb8]
test eax, eax
js 0x180002d1a
movdqa xmm0, xmmword [0x18001e7e0]
xor eax, eax
xor ebx, ebx
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], rax
movdqu xmmword [rbp + 0x40], xmm0
mov qword [rbp + 0x58], rax
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x50], rax
mov rax, qword [rsi]
lea r8, [r14 + 0x88]
lea rdx, [rbp + 0x40]
mov rcx, rsi
mov qword [rbp + 0x58], rbx
mov qword [rbp + 0x60], rbx
call qword [rax + 0xb0]
test eax, eax
js 0x180002d1a
mov rax, qword [rsi]
lea r8, [r14 + 0x100]
lea rdx, [rbp + 0x40]
mov rcx, rsi
mov dword [rbp + 0x40], 2
call qword [rax + 0xb0]
test eax, eax
jns 0x1800029c7
mov qword [r14 + 0x100], rbx
xor eax, eax
lea r8, [r14 + 0x108]
lea rdx, [rbp + 0x150]
mov qword [rbp + 0x150], rax
mov qword [rbp + 0x158], rax
mov qword [rbp + 0x160], rax
mov qword [rbp + 0x168], rax
mov qword [rbp + 0x170], rax
mov qword [rbp + 0x178], rax
mov dword [rbp + 0x180], eax
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0xa8]
test eax, eax
jns 0x180002a1e
mov qword [r14 + 0x108], rbx
xor eax, eax
lea rcx, [rbp + 0x1e0]
xor edx, edx
mov r8d, 0x108
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
call fcn.180008ef0
movdqa xmm0, xmmword [0x18001e810]
movups xmmword [rbp + 0x1e8], xmm0
mov rax, qword [rsi]
mov dword [rbp - 0x60], 5
mov dword [rbp - 0x5c], 6
mov dword [rbp - 0x58], 1
mov byte [rbp - 0x54], 0xf
lea r8, [r14 + 0x90]
movups xmm0, xmmword [rbp - 0x60]
lea rdx, [rbp + 0x1e0]
mov rcx, rsi
mov qword [rbp + 0x1e0], rbx
movups xmmword [rbp + 0x1f8], xmm0
call qword [rax + 0xa0]
test eax, eax
js 0x180002d1a
mov rax, qword [r15]
lea r9, [rsp + 0x70]
lea r8, [0x18001e730]
xor edx, edx
mov rcx, r15
mov qword [rsp + 0x70], rbx
call qword [rax + 0x48]
test eax, eax
js 0x180002d1a
mov rax, qword [rsi]
mov rdx, qword [rsp + 0x70]
lea r9, [r14 + 0xa0]
xor r8d, r8d
mov rcx, rsi
call qword [rax + 0x48]
mov rcx, qword [rsp + 0x70]
mov edi, eax
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [r15]
lea rdx, [rbp + 0x190]
mov rcx, r15
call qword [rax + 0x60]
test eax, eax
js 0x180002b97
mov eax, dword [rbp + 0x194]
lea r9, [r14 + 0x110]
lea rdx, [rbp + 0x98]
mov dword [rbp + 0x9c], eax
mov eax, dword [rbp + 0x190]
xor r8d, r8d
mov dword [rbp + 0x98], eax
mov rax, qword [rsi]
mov rcx, rsi
mov dword [rbp + 0xa4], 1
mov qword [rbp + 0xb8], 0x28
mov dword [rbp + 0xa8], 0x1c
mov dword [rbp + 0xa0], 1
mov dword [rbp + 0xc0], ebx
mov qword [rbp + 0xac], 1
mov dword [rbp + 0xb4], ebx
call qword [rax + 0x28]
test eax, eax
js 0x180002b97
mov rdx, qword [r14 + 0x110]
lea r9, [r14 + 0x118]
xor r12d, r12d
mov qword [r9], r12
mov rax, qword [rsi]
xor r8d, r8d
mov rcx, rsi
call qword [rax + 0x48]
test edi, edi
js 0x180002d1a
xor eax, eax
lea rdx, [rbp + 0x100]
mov rcx, r15
mov qword [rbp + 0x100], rax
mov qword [rbp + 0x108], rax
mov qword [rbp + 0x110], rax
mov qword [rbp + 0x118], rax
mov qword [rbp + 0x120], rax
mov qword [rbp + 0x128], rax
mov qword [rbp + 0x130], rax
mov qword [rbp + 0x138], rax
mov qword [rbp + 0x140], rax
mov rax, qword [r15]
call qword [rax + 0x60]
xor eax, eax
lea r9, [r14 + 0x98]
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x34], rax
mov eax, dword [rbp + 0x100]
lea rdx, [rbp + 0x10]
xor r8d, r8d
mov dword [rbp + 0x10], eax
mov eax, dword [rbp + 0x104]
mov rcx, rsi
mov dword [rbp + 0x14], eax
mov rax, qword [rsi]
mov dword [rbp + 0x18], 1
mov dword [rbp + 0x1c], 1
mov dword [rbp + 0x20], 0x2d
mov qword [rbp + 0x24], 1
mov dword [rbp + 0x2c], ebx
mov dword [rbp + 0x30], 0x40
mov dword [rbp + 0x38], ebx
call qword [rax + 0x28]
test eax, eax
js 0x180002d1a
mov rdx, qword [r14 + 0x98]
xor eax, eax
lea r9, [r14 + 0xa8]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov eax, dword [rbp + 0x20]
lea r8, [rsp + 0x78]
xor r12d, r12d
mov dword [rsp + 0x78], eax
mov rax, qword [rsi]
mov rcx, rsi
mov dword [rsp + 0x7c], 3
mov dword [rbp - 0x7c], r12d
call qword [rax + 0x50]
test eax, eax
js 0x180002d1a
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx + 0x434]
add rax, rcx
mov rcx, r14
mov qword [r14 + 0x60], rax
call fcn.180001d90
mov r10, qword [rsi]
xor eax, eax
lea r9, [r14 + 0xb0]
lea rdx, [rbp + 0x68]
mov qword [rbp + 0x68], rax
mov qword [rbp + 0x70], rax
xor r8d, r8d
mov rcx, rsi
mov qword [rbp + 0x78], rax
mov qword [rbp + 0x68], 0x60
mov qword [rbp + 0x70], 4
call qword [r10 + 0x18]
test eax, eax
js 0x180002d1a
lea edx, [r12 + 0x20]
mov rcx, r14
mov dword [r14 + 0x40], r12d
call fcn.1800019e0
mov dword [r14 + 0xc0], 1
mov rax, r14
mov rcx, qword [rbp + 0x480]
xor rcx, rsp
call fcn.180006780
add rsp, 0x598
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret