Function at 0x140017c90
Capabilities:
Terminate process

Disassembly:
push rbx
push rsi
push rdi
push r13
push r14
sub rsp, 0x160
mov rax, qword [0x1400f6240]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rax, vtable.sky::Texture.0
mov byte [rcx + 0x18], 0
mov r13, rdx
mov qword [rcx], rax
mov r14, rcx
lea rdx, [rcx + 8]
mov ecx, 1
mov esi, r9d
mov edi, r8d
call qword [sym.imp.OPENGL32.dll_glGenTextures]
mov edx, dword [r14 + 8]
mov ecx, 0xde1
call qword [sym.imp.OPENGL32.dll_glBindTexture]
mov r8d, edi
mov edx, 0x2802
mov ecx, 0xde1
call qword [sym.imp.OPENGL32.dll_glTexParameteri]
mov r8d, esi
mov edx, 0x2803
mov ecx, 0xde1
call qword [sym.imp.OPENGL32.dll_glTexParameteri]
mov r8d, dword [rsp + 0x1b0]
mov edx, 0x2801
mov ecx, 0xde1
call qword [sym.imp.OPENGL32.dll_glTexParameteri]
mov r8d, dword [rsp + 0x1b8]
mov edx, 0x2800
mov ecx, 0xde1
call qword [sym.imp.OPENGL32.dll_glTexParameteri]
cmp qword [r13 + 0x20], 0xf
lea rdx, [r13 + 8]
mov dword [0x1400ffda0], 1
jbe 0x140017d57
mov rdx, qword [rdx]
lea r8, [0x1400d2edc]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ucrtbased.dll_fopen_s]
test eax, eax
je 0x140017d76
xor ebx, ebx
mov qword [rsp + 0x50], rbx
jmp 0x140017d7b
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x158], rbp
mov qword [rsp + 0x150], r15
test rbx, rbx
jne 0x140017db1
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.cant_fopen
mov qword [rdx + rcx], rax
jmp 0x140017f1f
movups xmm0, xmmword [0x1400f6338]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x130], rax
lea rcx, [rsp + 0x60]
movaps xmmword [rsp + 0x70], xmm0
lea rax, [rsp + 0x98]
movsd xmm0, qword [0x1400f6348]
movsd qword [rsp + 0x80], xmm0
mov dword [rsp + 0x94], 0x80
mov dword [rsp + 0x90], 1
mov dword [rsp + 0x118], 0
mov qword [rsp + 0x120], rax
call fcn.140007e20
mov rax, qword [rsp + 0x128]
lea r9, [r14 + 0x14]
lea r8, [r14 + 0x10]
mov qword [rsp + 0x138], rax
lea rdx, [r14 + 0xc]
lea rcx, [rsp + 0x60]
call fcn.140007ba0
mov rdi, rax
mov rcx, rbx
test rax, rax
je 0x140017f19
mov edx, dword [rsp + 0x120]
mov r8d, 1
sub edx, dword [rsp + 0x128]
call qword [sym.imp.ucrtbased.dll_fseek]
mov rcx, rbx
call qword [sym.imp.ucrtbased.dll_fclose]
mov ecx, dword [r14 + 0x14]
cmp ecx, 3
jne 0x140017e8a
mov r8d, 0x1907
jmp 0x140017e9b
mov r8d, dword [rsp + 0x50]
cmp ecx, 4
mov eax, 0x1908
cmove r8d, eax
mov ecx, dword [r14 + 0x10]
xor edx, edx
mov r9d, dword [r14 + 0xc]
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], 0x1401
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], ecx
mov ecx, 0xde1
call qword [sym.imp.OPENGL32.dll_glTexImage2D]
mov ecx, 0xde1
call qword [0x1400f7dc0]
mov rcx, rdi
call qword [sym.imp.ucrtbased.dll_free]
mov r15, qword [rsp + 0x150]
mov rax, r14
mov rbp, qword [rsp + 0x158]
mov byte [r14 + 0x18], 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14009a7a0
add rsp, 0x160
pop r14
pop r13
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.ucrtbased.dll_fclose]
lea rdx, str.data___0
lea rcx, str._Error__Assertion_failed:__s___
call fcn.140005b20
mov rcx, r13
call fcn.140004ee0
mov rdx, rax
lea rcx, str._STB_IMAGE___Error__Failed_to_load_texture__s
call fcn.140005b20
mov r8d, 0x24
lea rdx, str.C:TomProgrammierenSkyEngine_templatesWindowsTemplate_srcplatformopengles_renderer_texture.cpp
lea rcx, str.__in__s:_d_n
call fcn.140005b20
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
int3