Function at 0x18004b720
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x1801519f8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov eax, dword [str.libEGL]
mov rbx, rcx
mov dword [rsp + 0x58], eax
movzx eax, word [0x1800fb594]
mov word [rsp + 0x5c], ax
movzx eax, byte [0x1800fb596]
mov byte [rsp + 0x5e], al
call fcn.1800110f0
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_bool___cdecl_QLoggingCategory::isDebugEnabled_void_const___ptr64]
test al, al
je 0x18004b7c3
call fcn.1800110f0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rax + 8]
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x38]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QMessageLogger::constructor_char_const____ptr64__int__char_const____ptr64__char_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [rsp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug___cdecl_QMessageLogger::debug_void____ptr64]
mov rcx, rax
lea rdx, str.Qt:_Using_EGL_from
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___char_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [rsp + 0x58]
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___char_const____ptr64____ptr64]
lea rcx, [rsp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QDebug::destructor_void____ptr64]
mov r8d, 0xffffffff
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromLatin1_char_const____ptr64__int_]
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_unsigned_short_int_const____ptr64___cdecl_QString::utf16_void_const___ptr64]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, [rsp + 0x30]
mov qword [rbx + 0xa0], rax
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
jne 0x18004b838
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea r8, [rsp + 0x58]
lea rdx, str.Failed_to_load__s
call qword [sym.imp.Qt5Core.dll_void___cdecl_qErrnoWarning_int__char_const____ptr64_]
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800eea90
add rsp, 0x70
pop rbx
ret
lea rdx, str.eglGetError
mov qword [rsp + 0x88], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0xa0]
xor edi, edi
mov qword [rbx], rax
test rcx, rcx
je 0x18004baa0
lea rdx, str.eglGetDisplay
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0xa0]
mov qword [rbx + 8], rax
test rcx, rcx
je 0x18004baa4
lea rdx, str.eglInitialize
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0xa0]
mov qword [rbx + 0x10], rax
test rcx, rcx
je 0x18004baa8
lea rdx, str.eglTerminate
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0xa0]
mov qword [rbx + 0x18], rax
test rcx, rcx
je 0x18004baac
lea rdx, str.eglChooseConfig
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0xa0]
mov qword [rbx + 0x20], rax
test rcx, rcx
je 0x18004bab0
lea rdx, str.eglGetConfigAttrib
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0xa0]
mov qword [rbx + 0x28], rax
test rcx, rcx
je 0x18004bab4
lea rdx, str.eglCreateWindowSurface
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0xa0]
mov qword [rbx + 0x30], rax
test rcx, rcx
je 0x18004bab8
lea rdx, str.eglCreatePbufferSurface
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0xa0]
mov qword [rbx + 0x38], rax
test rcx, rcx
je 0x18004babc
lea rdx, str.eglDestroySurface
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0xa0]
mov qword [rbx + 0x40], rax
test rcx, rcx
je 0x18004bac0
lea rdx, str.eglBindAPI
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0xa0]
mov qword [rbx + 0x48], rax
test rcx, rcx
je 0x18004bac4
lea rdx, str.eglSwapInterval
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0xa0]
mov qword [rbx + 0x50], rax
test rcx, rcx
je 0x18004bac8
lea rdx, str.eglCreateContext
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0xa0]
mov qword [rbx + 0x58], rax
test rcx, rcx
je 0x18004bacc
lea rdx, str.eglDestroyContext
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0xa0]
mov qword [rbx + 0x60], rax
test rcx, rcx
je 0x18004bad0
lea rdx, str.eglMakeCurrent
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0xa0]
mov qword [rbx + 0x68], rax
test rcx, rcx
je 0x18004bad4
lea rdx, str.eglGetCurrentContext
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0xa0]
mov qword [rbx + 0x70], rax
test rcx, rcx
je 0x18004bad8
lea rdx, str.eglGetCurrentSurface
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0xa0]
mov qword [rbx + 0x78], rax
test rcx, rcx
je 0x18004badc
lea rdx, str.eglGetCurrentDisplay
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0xa0]
mov qword [rbx + 0x80], rax
test rcx, rcx
je 0x18004bae3
lea rdx, str.eglSwapBuffers
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0xa0]
mov qword [rbx + 0x88], rax
test rcx, rcx
je 0x18004baea
lea rdx, str.eglGetProcAddress
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x18004baed
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov qword [rbx + 0x20], rdi
mov qword [rbx + 0x28], rdi
mov qword [rbx + 0x30], rdi
mov qword [rbx + 0x38], rdi
mov qword [rbx + 0x40], rdi
mov qword [rbx + 0x48], rdi
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], rdi
mov qword [rbx + 0x60], rdi
mov qword [rbx + 0x68], rdi
mov qword [rbx + 0x70], rdi
mov qword [rbx + 0x78], rdi
mov qword [rbx + 0x80], rdi
mov qword [rbx + 0x88], rdi
mov rax, rdi
mov qword [rbx + 0x90], rax
cmp qword [rbx], rdi
je 0x18004bb25
cmp qword [rbx + 8], rdi
je 0x18004bb25
cmp qword [rbx + 0x10], rdi
je 0x18004bb25
test rax, rax
je 0x18004bb25
lea rcx, str.eglGetPlatformDisplayEXT
mov qword [rbx + 0x98], rdi
call rax
mov qword [rbx + 0x98], rax
mov al, 1
jmp 0x18004bb27
xor al, al
mov rdi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800eea90
add rsp, 0x70
pop rbx
ret