Function at 0x1400a34d0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov rax, qword [0x14016f898]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r13, rcx
mov rbx, qword [rdx + 8]
test rbx, rbx
je 0x1400a350e
lock inc dword [rbx + 8]
mov rbx, qword [rdx + 8]
mov r14, qword [rdx]
mov qword [rbp - 0x51], r14
mov qword [rbp - 0x49], rbx
mov esi, dword [r14 + 0xc]
mov edi, dword [r14 + 8]
xor r12d, r12d
cmp esi, dword [rcx + 0x804]
jne 0x1400a3538
cmp edi, dword [rcx + 0x808]
je 0x1400a365d
mov dword [rcx + 0x804], esi
mov dword [rcx + 0x808], edi
mov dword [rbp - 0x41], esi
mov dword [rbp - 0x3d], edi
mov qword [rbp - 0x1d], 0x10000
mov dword [rbp - 0x31], 0x57
mov dword [rbp - 0x39], 1
mov dword [rbp - 0x35], 1
mov qword [rbp - 0x2d], 1
mov dword [rbp - 0x25], 2
mov dword [rbp - 0x21], 8
mov rcx, qword [rcx + 0x930]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [r13 + 0x8b0]
mov rax, qword [rcx]
lea r9, [r13 + 0x930]
xor r8d, r8d
lea rdx, [rbp - 0x41]
call qword [rax + 0x28]
test eax, eax
jns 0x1400a35c7
xor r9d, r9d
lea r8, str.Texture2d
lea rdx, [0x1401131a8]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x1400a3701
mov rcx, qword [r13 + 0x930]
mov dword [rbp - 0x75], 4
mov rax, qword [rcx]
lea rdx, [rbp - 0x11]
call qword [rax + 0x50]
mov dword [rbp - 0x79], 0x57
mov dword [rbp - 0x71], r12d
mov eax, dword [rbp - 9]
mov dword [rbp - 0x6d], eax
mov rcx, qword [r13 + 0x8b0]
mov rax, qword [rcx]
lea r9, [r13 + 0x938]
lea r8, [rbp - 0x79]
mov rdx, qword [r13 + 0x930]
call qword [rax + 0x38]
test eax, eax
jns 0x1400a3631
xor r9d, r9d
lea r8, [0x1401131b4]
lea rdx, [0x1401131c0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x1400a3701
mov rcx, qword [r13 + 0x8c0]
mov rax, qword [rcx]
lea r9, [r13 + 0x938]
xor edx, edx
lea r8d, [rdx + 1]
call qword [rax + 0x40]
mov rcx, qword [r13 + 0x7f0]
mov rax, qword [rcx]
mov r8d, edi
mov edx, esi
call qword [rax + 0x18]
mov rcx, qword [r13 + 0x8c0]
mov rax, qword [rcx]
lea rdx, [rbp - 0x61]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], r12d
mov r9d, 4
xor r8d, r8d
mov rdx, qword [r13 + 0x930]
call qword [rax + 0x70]
mov rsi, qword [rbp - 0x61]
test eax, eax
js 0x1400a36f3
mov rdi, qword [r14 + 0x10]
mov edx, dword [r14 + 8]
mov eax, dword [r14 + 0xc]
mov ecx, dword [rbp - 0x59]
cmp eax, ecx
cmova ecx, eax
test edx, edx
jle 0x1400a36da
lea eax, [rax*4]
movsxd r14, eax
movsxd r12, ecx
mov r15d, edx
nop dword [rax + rax]
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
add rsi, r12
sub r15, 1
jne 0x1400a36c0
mov rcx, qword [r13 + 0x8c0]
mov rax, qword [rcx]
xor r8d, r8d
mov rdx, qword [r13 + 0x930]
call qword [rax + 0x78]
jmp 0x1400a3701
lea rcx, str.map_texture_fail
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
test rbx, rbx
je 0x1400a3732
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400a3732
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400a3732
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400f2a70
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret