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

Disassembly:
sub esp, 0xa4
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esi]
mov edx, dword [esi + 4]
cmp edx, dword [edi + 4]
jge 0x40bf36
mov eax, dword [edi + 0xc]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*4]
cmp dword [eax + edi + 4], 9
jne 0x40bf36
lea eax, [edx + 1]
lea ecx, [esp + 0x14]
mov dword [esi + 4], eax
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::constructor_void_]
mov ebp, dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QFileInfo::destructor_void_]
mov ebx, dword [sym.imp.Qt5Core.dll_public:_bool___thiscall_QFileInfo::exists_void_const]
nop word [eax + eax]
mov edx, dword [esi]
mov edi, dword [esi + 4]
cmp edi, dword [edx + 4]
jge 0x40be06
mov eax, dword [edx + 0xc]
lea ecx, [edi + edi*4]
lea eax, [eax + ecx*4]
cmp dword [eax + edx + 4], 1
jne 0x40be06
lea eax, [edi + 1]
mov dword [esi + 4], eax
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0xc]
lea eax, [eax + ecx*4]
push dword [eax + edx - 4]
lea ecx, [esp + 0x20]
push dword [eax + edx - 8]
push ecx
lea ecx, [edx - 0xc]
add ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QByteArray___thiscall_QByteArray::mid_int__int_]
mov edi, dword [sym.imp.Qt5Core.dll_int___cdecl_qstrcmp_class_QByteArray_const___char_const__]
lea eax, [esp + 0x1c]
push 0x419a7c
push eax
call edi
add esp, 8
neg eax
sbb eax, eax
inc eax
test al, al
je 0x40bb83
mov edx, dword [esi]
mov edi, dword [esi + 4]
cmp edi, dword [edx + 4]
jge 0x40bf36
mov eax, dword [edx + 0xc]
lea ecx, [edi + edi*4]
lea eax, [eax + ecx*4]
cmp dword [eax + edx + 4], 4
jne 0x40bf36
lea eax, [edi + 1]
lea ecx, [eax + eax*4]
mov dword [esi + 4], eax
mov eax, dword [edx + 0xc]
lea ecx, [eax + ecx*4]
mov eax, dword [ecx + edx - 4]
add ecx, edx
sub eax, 2
push eax
mov eax, dword [ecx - 8]
add ecx, 0xfffffff4
inc eax
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.Qt5Core.dll_public:_class_QByteArray___thiscall_QByteArray::mid_int__int_]
mov ecx, dword [esp + 0xb8]
lea eax, [esp + 0x20]
push eax
lea ecx, [ecx + 0x2c]
call dword [sym.imp.Qt5Core.dll_public:_class_QByteArray____thiscall_QByteArray::operator_class_QByteArray__]
lea ecx, [esp + 0x20]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
lea ecx, [esp + 0x1c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
jmp 0x40baa0
lea eax, [esp + 0x1c]
push str.FILE
push eax
call edi
add esp, 8
neg eax
sbb eax, eax
inc eax
test al, al
je 0x40bdf7
mov edx, dword [esi]
mov edi, dword [esi + 4]
cmp edi, dword [edx + 4]
jge 0x40bf36
mov eax, dword [edx + 0xc]
lea ecx, [edi + edi*4]
lea eax, [eax + ecx*4]
cmp dword [eax + edx + 4], 4
jne 0x40bf36
lea eax, [edi + 1]
lea ecx, [eax + eax*4]
mov dword [esi + 4], eax
mov eax, dword [edx + 0xc]
lea ecx, [eax + ecx*4]
mov eax, dword [ecx + edx - 4]
add ecx, edx
sub eax, 2
push eax
mov eax, dword [ecx - 8]
add ecx, 0xfffffff4
inc eax
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.Qt5Core.dll_public:_class_QByteArray___thiscall_QByteArray::mid_int__int_]
mov eax, dword [esi + 0x10]
mov eax, dword [eax]
cmp eax, 1
je 0x40bc09
test eax, eax
je 0x40bc09
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
push dword [eax + 4]
call fcn.004060e0
mov ecx, dword [esi + 0x10]
push 0xffffffffffffffff
mov eax, dword [ecx + 0xc]
lea edi, [ecx + eax*4]
lea ecx, [esp + 0x1c]
call dword [sym.imp.Qt5Core.dll_public:_char_const____thiscall_QByteArray::constData_void_const]
push eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromLocal8Bit_char_const___int_]
add esp, 0xc
lea ecx, [edi + 0xc]
push eax
lea eax, [esp + 0x7c]
push eax
push 0xffffffffffffffff
call dword [sym.imp.Qt5Core.dll_public:_char_const____thiscall_QByteArray::constData_void_const]
push eax
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromLocal8Bit_char_const___int_]
add esp, 0xc
lea ecx, [esp + 0x40]
push eax
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QFileInfo::constructor_class_QString_const__]
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QDir___thiscall_QFileInfo::dir_void_]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QFileInfo::constructor_class_QDir_const___class_QString_const__]
lea ecx, [esp + 0x78]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QDir::destructor_void_]
lea ecx, [esp + 0x38]
call ebp
lea ecx, [esp + 0x3c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x40]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov eax, dword [esi + 0xc]
xor edi, edi
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
test ecx, ecx
jle 0x40bd6c
lea ecx, [esp + 0x10]
call ebx
test al, al
jne 0x40bd6c
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 8]
add eax, edi
mov ecx, dword [ecx + eax*4 + 0x10]
cmp byte [ecx + 4], 0
jne 0x40bd5a
push 0xffffffffffffffff
call dword [sym.imp.Qt5Core.dll_public:_char_const____thiscall_QByteArray::constData_void_const]
push eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromLocal8Bit_char_const___int_]
add esp, 0xc
lea ecx, [esp + 0x24]
push eax
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QDir::constructor_class_QString_const__]
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call dword [sym.imp.Qt5Core.dll_public:_char_const____thiscall_QByteArray::constData_void_const]
push eax
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromLocal8Bit_char_const___int_]
add esp, 0xc
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QFileInfo::setFile_class_QDir_const___class_QString_const__]
lea ecx, [esp + 0x44]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x24]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QDir::destructor_void_]
lea ecx, [esp + 0x48]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x10]
call dword [sym.imp.Qt5Core.dll_public:_bool___thiscall_QFileInfo::isDir_void_const]
test al, al
je 0x40bd5a
lea ecx, [esp + 0x4c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QFileInfo::constructor_void_]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.Qt5Core.dll_public:_class_QFileInfo____thiscall_QFileInfo::operator_class_QFileInfo__]
lea ecx, [esp + 0x4c]
call ebp
mov eax, dword [esi + 0xc]
inc edi
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
cmp edi, ecx
jl 0x40bca2
lea ecx, [esp + 0x10]
call ebx
test al, al
je 0x40bfdd
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.Qt5Core.dll_public:_class_QString___thiscall_QFileInfo::canonicalFilePath_void_]
push eax
lea ecx, [esp + 0x34]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QFile::constructor_class_QString_const__]
lea ecx, [esp + 0x50]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
push ecx
mov eax, esp
lea ecx, [esp + 0x34]
mov dword [eax], 1
call dword [sym.imp.Qt5Core.dll_public_virtual:_bool___thiscall_QFile::open_class_QFlags_enum_QIODevice::OpenModeFlag__]
lea ecx, [esp + 0x30]
test al, al
je 0x40bf3f
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.Qt5Core.dll_public:_class_QByteArray___thiscall_QIODevice::readAll_void_]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.Qt5Core.dll_public:_class_QByteArray____thiscall_QByteArray::operator_class_QByteArray__]
lea ecx, [esp + 0x54]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
lea ecx, [esp + 0x30]
call dword [sym.imp.Qt5Core.dll_public_virtual:_void___thiscall_QFile::destructor_void_]
lea ecx, [esp + 0x10]
call ebp
lea ecx, [esp + 0x18]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
lea ecx, [esp + 0x1c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
jmp 0x40baa0
mov eax, dword [esp + 0x14]
cmp dword [eax + 4], 0
je 0x40befb
mov ebx, dword [esp + 0xb8]
lea eax, [esp + 0x14]
push 0
push eax
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.Qt5Core.dll_public:_static_class_QJsonDocument___cdecl_QJsonDocument::fromJson_class_QByteArray_const___struct_QJsonParseError__]
add esp, 0xc
lea ecx, [ebx + 0x34]
push eax
call dword [sym.imp.Qt5Core.dll_public:_class_QJsonDocument____thiscall_QJsonDocument::operator_class_QJsonDocument__]
lea ecx, [esp + 0x70]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QJsonDocument::destructor_void_]
lea ecx, [ebx + 0x34]
call dword [sym.imp.Qt5Core.dll_public:_bool___thiscall_QJsonDocument::isObject_void_const]
test al, al
jne 0x40befb
mov edx, dword [esi]
mov eax, dword [esi + 4]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0xc]
lea eax, [eax + ecx*4]
push dword [eax + edx - 4]
lea ecx, [esp + 0x2c]
push dword [eax + edx - 8]
push ecx
lea ecx, [edx - 0xc]
add ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QByteArray___thiscall_QByteArray::mid_int__int_]
lea eax, [esp + 0x28]
mov dword [esp + 0x7c], str.Plugin_Metadata_file
mov dword [esp + 0x80], eax
lea ecx, [esp + 0x84]
lea eax, [esp + 0x7c]
mov dword [esp + 0x88], str._does_not_contain_a_valid_JSON_object._Declaration_will_be_ignored
mov dword [esp + 0x84], eax
lea eax, [esp + 0x2c]
push eax
call fcn.004014f0
lea ecx, [esp + 0x28]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
lea ecx, [esp + 0x2c]
call dword [sym.imp.Qt5Core.dll_public:_char_const____thiscall_QByteArray::constData_void_const]
push eax
mov ecx, esi
call fcn.00415790
lea ecx, [esp + 0x74]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::constructor_void_]
push eax
lea ecx, [ebx + 0x2c]
call dword [sym.imp.Qt5Core.dll_public:_class_QByteArray____thiscall_QByteArray::operator_class_QByteArray__]
lea ecx, [esp + 0x74]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
lea ecx, [esp + 0x2c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
jmp 0x40bf1f
mov edi, dword [esi]
mov edx, dword [esi + 4]
mov byte [esi + 0x19], 1
cmp edx, dword [edi + 4]
jge 0x40bf36
mov eax, dword [edi + 0xc]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*4]
cmp dword [eax + edi + 4], 0xa
jne 0x40bf36
lea eax, [edx + 1]
mov dword [esi + 4], eax
lea ecx, [esp + 0x14]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret 4
push 0
mov ecx, esi
call fcn.00415680
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.Qt5Core.dll_public:_class_QString___thiscall_QIODevice::errorString_void_]
mov ecx, eax
call dword [sym.imp.Qt5Core.dll__toUtf8_QString__QHAE_AVQByteArray__XZ]
push eax
push str._could_not_be_opened:
lea eax, [esp + 0x64]
mov ecx, esi
push eax
call fcn.00406ce0
push eax
lea eax, [esp + 0x9c]
push str.Plugin_Metadata_file
push eax
call fcn.00401020
add esp, 0xc
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.00401020
add esp, 0xc
push eax
lea eax, [esp + 0xa8]
push eax
call fcn.00401020
add esp, 0xc
mov ecx, eax
call fcn.00403300
lea ecx, [esp + 0x58]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
lea ecx, [esp + 0x5c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
lea ecx, [esp + 0x60]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x64]
call dword [sym.imp.Qt5Core.dll_public:_char_const____thiscall_QByteArray::constData_void_const]
push eax
mov ecx, esi
call fcn.00415680
lea eax, [esp + 0x6c]
mov ecx, esi
push eax
push str._does_not_exist._Declaration_will_be_ignored
lea eax, [esp + 0x70]
push eax
call fcn.00406ce0
push eax
lea eax, [esp + 0xb0]
push str.Plugin_Metadata_file
push eax
call fcn.00401020
add esp, 0xc
push eax
lea eax, [esp + 0xb8]
push eax
call fcn.00401020
add esp, 0xc
mov ecx, eax
call fcn.004032f0
lea ecx, [esp + 0x68]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
lea ecx, [esp + 0x6c]
call dword [sym.imp.Qt5Core.dll_public:_char_const____thiscall_QByteArray::constData_void_const]
push eax
mov ecx, esi
call fcn.00415680
int3