Function at 0x10054d60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x90
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0x44], 0
push esi
push edi
mov dword [esp + 0x74], ebp
mov eax, dword [ebp + 0x48]
test al, 2
jne 0x10054ddb
push dword [ebp + 0x18]
push 0xde1
call dword [sym.imp.libGLESv2.dll_Ordinal_7]
mov eax, dword [ebp + 4]
test byte [eax + 0x40], 0x30
je 0x10054db9
test byte [ebp + 0x48], 0x10
jne 0x10054db9
call dword [sym.imp.Qt5Gui.dll_public:_static_class_QOpenGLContext____cdecl_QOpenGLContext::currentContext_void_]
mov ecx, eax
call dword [sym.imp.Qt5Gui.dll_public:_class_QOpenGLFunctions____thiscall_QOpenGLContext::functions_void_const]
push 0xde1
call dword [sym.imp.libGLESv2.dll_Ordinal_51]
or dword [ebp + 0x48], 0x10
mov eax, dword [ebp + 0x48]
mov ecx, ebp
shr eax, 2
and al, 1
movzx eax, al
push eax
call sym.Qt5Quick.dll_public:_void___thiscall_QSGTexture::updateBindOptions_bool_
and dword [ebp + 0x48], 0xfffffffb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
and eax, 0xfffffffd
cmp byte [0x1020751c], 0
mov dword [ebp + 0x48], eax
jne 0x10054dfb
cmp byte [sym.Qt5Quick.dll_bool_QQuickProfiler::enabled], 0
jne 0x10054dfb
xor bl, bl
mov byte [esp + 0x12], bl
jmp 0x10054e0c
mov bl, 1
mov ecx, 0x10207520
mov byte [esp + 0x12], bl
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QElapsedTimer::start_void_]
lea edi, [ebp + 8]
mov ecx, edi
mov dword [esp + 0x4c], edi
call dword [sym.imp.Qt5Gui.dll_public:_bool___thiscall_QImage::isNull_void_const]
lea esi, [ebp + 0x18]
test al, al
je 0x10054ed5
cmp dword [esi], 0
je 0x10054eb2
test byte [ebp + 0x48], 8
je 0x10054eb2
push esi
push 1
call dword [sym.imp.libGLESv2.dll_Ordinal_31]
cmp byte [0x1020751c], 0
je 0x10054e84
push dword [ebp + 0x20]
mov ecx, 0x10207520
push dword [ebp + 0x1c]
call dword [sym.imp.Qt5Core.dll_public:_long_long___int64____thiscall_QElapsedTimer::elapsed_void_const]
push eax
push str._____texture_deleted_in__dms__size:__dx_d_
push str.void___thiscall_QSGPlainTexture::bind_void_
push 0x274
push str.scenegraphutilqsgtexture.cpp
lea ecx, [esp + 0x94]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMessageLogger::constructor_char_const___int__char_const__]
push eax
call dword [sym.imp.Qt5Core.dll_public:_void___cdecl_QMessageLogger::debug_char_const__const]
add esp, 0x14
cmp byte [sym.Qt5Quick.dll_bool_QQuickProfiler::enabled], 0
je 0x10054eb2
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, 0x10207520
call dword [sym.imp.Qt5Core.dll_public:_long_long___int64____thiscall_QElapsedTimer::nsecsElapsed_void_const]
push edx
push eax
call fcn.100549e0
add esp, 0x28
and dword [ebp + 0x48], 0xfffffffe
mov dword [esi], 0
mov dword [ebp + 0x1c], 0xffffffff
mov dword [ebp + 0x20], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
cmp dword [esi], 0
jne 0x10054ee3
push esi
push 1
call dword [sym.imp.libGLESv2.dll_Ordinal_54]
push dword [esi]
push 0xde1
call dword [sym.imp.libGLESv2.dll_Ordinal_7]
xorps xmm0, xmm0
movlpd qword [esp + 0x78], xmm0
test bl, bl
je 0x10054f0e
mov ecx, 0x10207520
call dword [sym.imp.Qt5Core.dll_public:_long_long___int64____thiscall_QElapsedTimer::nsecsElapsed_void_const]
mov dword [esp + 0x24], edx
jmp 0x10054f1a
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x78]
mov ecx, edi
mov dword [esp + 0x48], eax
call dword [sym.imp.Qt5Gui.dll_public:_int___thiscall_QImage::width_void_const]
mov ecx, edi
mov dword [esp + 0x50], eax
call dword [sym.imp.Qt5Gui.dll_public:_int___thiscall_QImage::height_void_const]
mov esi, dword [sym.imp.Qt5Gui.dll_public:_enum_QImage::Format___thiscall_QImage::format_void_]
mov ecx, edi
mov dword [esp + 0x78], eax
call esi
cmp eax, 4
je 0x10054f71
mov ecx, edi
call esi
cmp eax, 6
je 0x10054f71
push ecx
mov eax, esp
mov ebx, 1
push 6
mov ecx, edi
mov dword [esp + 0x1c], ebx
mov dword [eax], 0
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.Qt5Gui.dll_public:_class_QImage___thiscall_QImage::convertToFormat_enum_QImage::Format__class_QFlags_enum_Qt::ImageConversionFlag__]
jmp 0x10054f85
mov ebx, 2
lea ecx, [esp + 0x54]
push edi
mov dword [esp + 0x18], ebx
call dword [sym.imp.Qt5Gui.dll_public:_void___thiscall_QImage::constructor_class_QImage_const__]
push eax
lea ecx, [esp + 0x68]
call dword [sym.imp.Qt5Gui.dll_public:_void___thiscall_QImage::constructor_class_QImage__]
mov eax, dword [sym.imp.Qt5Gui.dll_public_virtual:_void___thiscall_QImage::destructor_void_]
test bl, 2
je 0x10054fac
and ebx, 0xfffffffd
lea ecx, [esp + 0x54]
mov dword [esp + 0x14], ebx
call eax
mov eax, dword [sym.imp.Qt5Gui.dll_public_virtual:_void___thiscall_QImage::destructor_void_]
test bl, 1
je 0x10054fbe
and ebx, 0xfffffffe
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], ebx
call eax
lea ecx, [esp + 0x64]
call dword [sym.imp.Qt5Gui.dll_public:_int___thiscall_QImage::width_void_const]
mov esi, eax
lea ecx, [esp + 0x64]
shl esi, 2
call dword [sym.imp.Qt5Gui.dll_public:_int___thiscall_QImage::bytesPerLine_void_const]
cmp esi, eax
je 0x10055012
movdqa xmm0, xmmword [0x1016a6d0]
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x6c]
movdqu xmmword [esp + 0x5c], xmm0
call dword [sym.imp.Qt5Gui.dll_public:_class_QImage___thiscall_QImage::copy_class_QRect_const__]
push eax
lea ecx, [esp + 0x68]
call dword [sym.imp.Qt5Gui.dll_public:_class_QImage____thiscall_QImage::operator_class_QImage__]
lea ecx, [esp + 0x34]
call dword [sym.imp.Qt5Gui.dll_public_virtual:_void___thiscall_QImage::destructor_void_]
cmp byte [esp + 0x12], 0
xorps xmm0, xmm0
mov esi, dword [sym.imp.Qt5Core.dll_public:_long_long___int64____thiscall_QElapsedTimer::nsecsElapsed_void_const]
movlpd qword [esp + 0x54], xmm0
je 0x10055035
mov ecx, 0x10207520
call esi
mov dword [esp + 0x20], edx
jmp 0x10055041
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x54], eax
mov ecx, ebp
mov eax, dword [ebp + 0x48]
shr eax, 2
and al, 1
movzx eax, al
push eax
call sym.Qt5Quick.dll_public:_void___thiscall_QSGTexture::updateBindOptions_bool_
mov dword [esp + 0x30], 0x1908
mov dword [esp + 0x2c], 0x1908
call dword [sym.imp.Qt5Gui.dll_public:_static_class_QOpenGLContext____cdecl_QOpenGLContext::currentContext_void_]
lea ecx, [esp + 0x34]
mov dword [esp + 0x44], eax
push ecx
mov ecx, eax
mov dword [esp + 0x38], 0x1016b10c
call dword [sym.imp.Qt5Gui.dll_public:_bool___thiscall_QOpenGLContext::hasExtension_class_QByteArray_const__const]
lea ecx, [esp + 0x34]
mov bl, al
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
test bl, bl
je 0x100550ac
mov dword [esp + 0x30], 0x80e1
mov dword [esp + 0x2c], 0x80e1
jmp 0x10055148
cmp byte [0x10207530], 0
mov ebx, dword [esp + 0x14]
jne 0x100550fc
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x18]
push eax
or ebx, 4
mov dword [esp + 0x1c], 0x1016b128
call dword [sym.imp.Qt5Gui.dll_public:_bool___thiscall_QOpenGLContext::hasExtension_class_QByteArray_const__const]
test al, al
jne 0x100550f5
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x34]
push eax
or ebx, 8
mov dword [esp + 0x38], 0x1016b158
call dword [sym.imp.Qt5Gui.dll_public:_bool___thiscall_QOpenGLContext::hasExtension_class_QByteArray_const__const]
test al, al
je 0x100550fc
mov byte [esp + 0x13], 1
jmp 0x10055101
mov byte [esp + 0x13], 0
test bl, 8
je 0x10055113
lea ecx, [esp + 0x34]
and ebx, 0xfffffff7
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
test bl, 4
je 0x10055122
lea ecx, [esp + 0x18]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
cmp byte [esp + 0x13], 0
je 0x1005513b
mov dword [esp + 0x30], 0x80e1
mov dword [esp + 0x2c], 0x80e1
jmp 0x10055148
lea eax, [esp + 0x64]
push eax
call fcn.10055410
add esp, 4
mov bl, byte [esp + 0x12]
xorps xmm0, xmm0
movlpd qword [esp + 0x34], xmm0
test bl, bl
je 0x10055166
mov ecx, 0x10207520
call esi
mov dword [esp + 0x28], edx
jmp 0x10055172
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x64]
mov dword [esp + 0x34], eax
call dword [sym.imp.Qt5Gui.dll_public:_unsigned_char_const____thiscall_QImage::constBits_void_const]
push eax
push 0x1401
push dword [esp + 0x38]
push 0
push dword [esp + 0x88]
push dword [esp + 0x64]
push dword [esp + 0x44]
push 0
push 0xde1
call dword [sym.imp.libGLESv2.dll_Ordinal_106]
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
test bl, bl
je 0x100551c8
mov ecx, 0x10207520
call esi
mov esi, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
jmp 0x100551d8
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
mov eax, dword [ebp + 4]
test byte [eax + 0x40], 0x30
je 0x100551fa
mov ecx, dword [esp + 0x44]
call dword [sym.imp.Qt5Gui.dll_public:_class_QOpenGLFunctions____thiscall_QOpenGLContext::functions_void_const]
push 0xde1
call dword [sym.imp.libGLESv2.dll_Ordinal_51]
or dword [ebp + 0x48], 0x10
cmp byte [0x1020751c], 0
je 0x1005530c
mov ecx, 0x10207520
call dword [sym.imp.Qt5Core.dll_public:_long_long___int64____thiscall_QElapsedTimer::nsecsElapsed_void_const]
mov ebx, dword [ebp + 0x20]
mov ecx, 0x10207520
mov ebp, dword [ebp + 0x1c]
mov edi, eax
mov esi, edx
call dword [sym.imp.Qt5Core.dll_public:_long_long___int64____thiscall_QElapsedTimer::elapsed_void_const]
sub edi, dword [esp + 0x18]
push eax
sbb esi, dword [esp + 0x18]
push 0
push 0xf4240
push esi
push edi
call fcn.10160490
mov esi, dword [esp + 0x1c]
mov ecx, esi
mov edi, dword [esp + 0x38]
sub ecx, edi
push eax
mov eax, dword [esp + 0x1c]
sbb eax, dword [esp + 0x30]
push 0
push 0xf4240
push eax
push ecx
call fcn.10160490
cmp dword [esp + 0x34], 0x80e1
mov ecx, str.BGRA
push eax
mov eax, ecx
mov edx, 0x1016b0a0
cmovne eax, edx
cmp dword [esp + 0x3c], 0x80e1
push eax
mov eax, dword [esp + 0x38]
cmovne ecx, edx
sub edi, dword [esp + 0x64]
push ecx
sbb eax, dword [esp + 0x34]
push 0
push 0xf4240
push eax
push edi
call fcn.10160490
mov ecx, dword [esp + 0x68]
mov edi, dword [esp + 0x5c]
sub ecx, edi
push eax
mov eax, dword [esp + 0x38]
sbb eax, dword [esp + 0x3c]
push 0
push 0xf4240
push eax
push ecx
call fcn.10160490
push eax
push 0
push 0xf4240
push dword [esp + 0x48]
push edi
call fcn.10160490
push eax
push ebx
push ebp
push str._____plaintexture__dx_d__bind_d__convert_d__swizzle_d___s___s___upload_d__mipmap_d__total_d
push str.void___thiscall_QSGPlainTexture::bind_void_
push 0x2dd
push str.scenegraphutilqsgtexture.cpp
lea ecx, [esp + 0xc4]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMessageLogger::constructor_char_const___int__char_const__]
push eax
call dword [sym.imp.Qt5Core.dll_public:_void___cdecl_QMessageLogger::debug_char_const__const]
mov ebp, dword [esp + 0xa4]
add esp, 0x30
mov edi, dword [esp + 0x4c]
cmp byte [sym.Qt5Quick.dll_bool_QQuickProfiler::enabled], 0
je 0x1005535e
mov ecx, 0x10207520
call dword [sym.imp.Qt5Core.dll_public:_long_long___int64____thiscall_QElapsedTimer::nsecsElapsed_void_const]
mov ecx, dword [esp + 0x14]
sub eax, esi
mov ebx, dword [esp + 0x20]
sbb edx, ecx
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x3c]
sub esi, eax
sbb ecx, edx
push ecx
mov ecx, dword [esp + 0x60]
sub eax, ecx
push esi
sbb edx, ebx
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x60]
sub ecx, eax
sbb ebx, edx
push ebx
push ecx
push edx
push eax
call fcn.10051a50
add esp, 0x28
mov eax, dword [esp + 0x50]
xorps xmm0, xmm0
movaps xmm1, xmmword [0x1016a000]
mov dword [ebp + 0x1c], eax
mov eax, dword [esp + 0x78]
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 0x48]
and eax, 0xfffffffb
mov dword [ebp + 0x48], eax
movdqu xmmword [ebp + 0x28], xmm0
movdqu xmmword [ebp + 0x38], xmm1
test al, 0x20
jne 0x100553aa
lea ecx, [esp + 0x78]
call dword [sym.imp.Qt5Gui.dll_public:_void___thiscall_QImage::constructor_void_]
push eax
mov ecx, edi
call dword [sym.imp.Qt5Gui.dll_public:_class_QImage____thiscall_QImage::operator_class_QImage__]
lea ecx, [esp + 0x78]
call dword [sym.imp.Qt5Gui.dll_public_virtual:_void___thiscall_QImage::destructor_void_]
lea ecx, [esp + 0x64]
call dword [sym.imp.Qt5Gui.dll_public_virtual:_void___thiscall_QImage::destructor_void_]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret