Function at 0x18001ed10
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x1801432e0]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov edx, 0x2802
mov ecx, 0xde1
mov r8d, 0x812f
call qword [sym.imp.OPENGL32.dll_glTexParameteri]
mov edx, 0x2803
mov ecx, 0xde1
mov r8d, 0x812f
call qword [sym.imp.OPENGL32.dll_glTexParameteri]
mov edx, 0x2801
mov ecx, 0xde1
mov r8d, 0x2601
call qword [sym.imp.OPENGL32.dll_glTexParameteri]
mov edx, 0x2800
mov ecx, 0xde1
mov r8d, 0x2601
call qword [sym.imp.OPENGL32.dll_glTexParameteri]
cmp byte [0x1800fd405], 0
mov eax, dword [0x1800fd400]
movsd xmm0, qword [str.r_bobMjGI]
mov dword [rbp + 0x68], eax
movzx eax, word [0x1800fd404]
mov word [rbp + 0x6c], ax
movsd qword [rbp + 0x60], xmm0
je 0x18001ef21
xor r8d, r8d
cmp dword [0x1801432f0], 2
jl 0x18001eee5
movdqa xmm2, xmmword [0x1800ff470]
mov eax, 4
movdqa xmm4, xmmword [0x1800ff5e0]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1800ff4b0]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
mov r8d, 8
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movaps xmmword [rsp + 0x180], xmm6
movd xmm6, eax
mov eax, 0x1f
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movd xmm5, eax
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800ff4c0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [str.r_bobMjGI]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1800ff500]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.1111111111111111]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rbp + 0x60], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movaps xmm6, xmmword [rsp + 0x180]
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800ff4c0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rbp + 0x64]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800ff500]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.1111111111111111]
xorps xmm2, xmm0
movd dword [rbp + 0x64], xmm2
movsxd rax, r8d
lea r9, [rbp + 0x60]
add r9, rax
nop
mov eax, 0x4ec4ec4f
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x31
xor byte [r9 - 1], al
cmp r8d, 0xe
jl 0x18001eef0
lea r8, [0x1800f57bc]
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
test eax, eax
je 0x18001ef44
xor ebx, ebx
mov qword [rsp + 0x50], rbx
jmp 0x18001ef49
mov rbx, qword [rsp + 0x50]
test rbx, rbx
jne 0x18001ef78
mov rax, qword gs:[0x58]
xor edi, edi
mov ecx, dword [0x18018d84c]
mov edx, 0x28
mov rcx, qword [rax + rcx*8]
lea rax, str.cant_fopen
mov qword [rdx + rcx], rax
jmp 0x18001f010
movups xmm0, xmmword [0x180143410]
lea rax, [rbp - 0x48]
mov qword [rbp - 0x58], rbx
mov qword [rbp + 0x50], rax
lea rcx, [rbp - 0x80]
movups xmmword [rbp - 0x70], xmm0
lea rax, [rbp - 0x48]
movsd xmm0, qword [0x180143420]
movsd qword [rbp - 0x60], xmm0
mov dword [rbp - 0x4c], 0x80
mov dword [rbp - 0x50], 1
mov dword [rbp + 0x38], 0
mov qword [rbp + 0x40], rax
call fcn.180003830
mov rax, qword [rbp + 0x48]
lea r9, [rsp + 0x6c]
lea r8, [rsp + 0x58]
mov qword [rbp + 0x58], rax
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x20], 0
lea rcx, [rbp - 0x80]
call fcn.180003490
mov rdi, rax
test rax, rax
je 0x18001f007
mov edx, dword [rbp + 0x40]
mov r8d, 1
sub edx, dword [rbp + 0x48]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rdx, [rsp + 0x68]
mov ecx, 1
call qword [sym.imp.OPENGL32.dll_glGenTextures]
mov edx, dword [rsp + 0x68]
mov ecx, 0xde1
call qword [sym.imp.OPENGL32.dll_glBindTexture]
mov eax, dword [rsp + 0x58]
xor edx, edx
mov r9d, dword [rsp + 0x60]
mov ecx, 0xde1
mov qword [rsp + 0x40], rdi
mov r8d, 0x1907
mov dword [rsp + 0x38], 0x1401
mov dword [rsp + 0x30], 0x1907
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], eax
call qword [sym.imp.OPENGL32.dll_glTexImage2D]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movss xmm1, dword [0x1800ff3c0]
xorps xmm0, xmm0
call fcn.18006f070
movaps xmm1, xmmword [0x1800ff5d0]
lea rax, [rbp + 0x60]
mov ecx, dword [0x18018d8a0]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x60]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x50], 0x3f800000
xorps xmm0, xmm0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x54], 0x3f800000
movups xmmword [rbp + 0x60], xmm0
mov qword [rsp + 0x60], 0
movups xmmword [rsp + 0x70], xmm1
mov dword [rsp + 0x58], 0x42000000
mov dword [rsp + 0x5c], 0x42000000
call fcn.18008c180
call fcn.18008cdc0
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1800d0db0
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret