Function at 0x1400bc7f0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov r14, rdx
mov r13, rcx
mov esi, 0xffffffff
mov eax, dword [0x1401765b8]
test eax, eax
jne 0x1400bc8da
mov rdi, qword [rdx + 8]
test rdi, rdi
je 0x1400bc836
lock inc dword [rdi + 8]
mov rdi, qword [rdx + 8]
mov rbx, qword [rdx]
mov qword [rsp + 0x70], rbx
mov edx, dword [rcx + 0x118]
mov ecx, 0xde1
call qword [sym.imp.OPENGL32.dll_glBindTexture]
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0x1401
mov dword [rsp + 0x30], 0x80e1
mov eax, dword [r13 + 0xe8]
mov dword [rsp + 0x28], eax
mov eax, dword [r13 + 0xe4]
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xde1
call qword [sym.imp.OPENGL32.dll_glTexSubImage2D]
xor edx, edx
mov ecx, 0xde1
call qword [sym.imp.OPENGL32.dll_glBindTexture]
test rdi, rdi
je 0x1400bc9f5
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400bc9f5
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, esi
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x1400bc9f5
mov rax, qword [rdi]
mov rcx, rdi
jmp 0x1400bc9f1
cmp eax, 1
jne 0x1400bc9f5
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov rcx, qword [rdx + 8]
test rcx, rcx
je 0x1400bc8fd
lock inc dword [rcx + 8]
mov rcx, qword [rdx + 8]
mov rax, qword [rdx]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0xd0], rax
mov rcx, qword [0x1401768c0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0
mov r9d, 4
xor r8d, r8d
mov rdx, qword [r13 + 0x120]
call qword [rax + 0x70]
mov rdi, qword [rsp + 0x60]
test eax, eax
js 0x1400bc9b3
mov rax, qword [rsp + 0x50]
mov rbx, qword [rax + 0x10]
mov edx, dword [rax + 8]
mov eax, dword [rax + 0xc]
mov ecx, dword [rsp + 0x68]
cmp eax, ecx
cmova ecx, eax
test edx, edx
jle 0x1400bc99a
lea eax, [rax*4]
movsxd rbp, eax
movsxd r12, ecx
mov r15d, edx
nop dword [rax + rax]
mov r8, rbp
mov rdx, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rbx, rbp
add rdi, r12
sub r15, 1
jne 0x1400bc980
mov rcx, qword [0x1401768c0]
mov rax, qword [rcx]
xor r8d, r8d
mov rdx, qword [r13 + 0x120]
call qword [rax + 0x78]
jmp 0x1400bc9c1
lea rcx, str.map_texture_fail
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x1400bc9f5
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400bc9f5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400bc9f5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rbx, qword [r14 + 8]
test rbx, rbx
je 0x1400bca25
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400bca25
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x1400bca25
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov al, 1
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret