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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb0
mov eax, dword [ecx + 8]
push ebx
push ebp
lea ebp, [ecx + 8]
cmp dword [eax + 4], 0
push esi
push edi
mov dword [esp + 0x54], ebp
jne 0x10005448
mov ecx, dword [ecx + 0xc]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.Qt5Core.dll_public:_class_QList_class_QJsonObject____thiscall_QFactoryLoader::metaData_void_]
mov eax, dword [esp + 0x1c]
xor edx, edx
or edi, 0xffffffff
mov dword [esp + 0x20], edx
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
test ecx, ecx
jle 0x10005423
mov esi, dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QJsonValue::destructor_void_]
mov ebx, dword [sym.imp.Qt5Core.dll_bool___cdecl_operator__class_QString_const___class_QString_const__]
lea esp, [esp]
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], 0x10046564
push ecx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0xb8]
push ecx
mov ecx, dword [eax + 8]
add ecx, edx
mov ecx, dword [eax + ecx*4 + 0x10]
call dword [sym.imp.Qt5Core.dll_public:_class_QJsonValue___thiscall_QJsonObject::value_class_QString_const__]
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QJsonObject___thiscall_QJsonValue::toObject_void_]
lea ecx, [esp + 0xb0]
call esi
lea ecx, [esp + 0x14]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
push dword [esp + 0x20]
lea ecx, [esp + 0x6c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QJsonValue::constructor_int_]
lea eax, [esp + 0x68]
mov dword [esp + 0x2c], 0x10046588
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x30]
call dword [sym.imp.Qt5Core.dll_public:_class_QJsonObject::iterator___thiscall_QJsonObject::insert_class_QString_const___class_QJsonValue_const__]
lea ecx, [esp + 0x2c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x68]
call esi
lea eax, [esp + 0x30]
mov dword [esp + 0x14], 0x100465a4
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x30]
call dword [sym.imp.Qt5Core.dll_public:_class_QJsonValue___thiscall_QJsonObject::value_class_QString_const__]
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QJsonArray___thiscall_QJsonValue::toArray_void_]
lea ecx, [esp + 0xa0]
call esi
lea ecx, [esp + 0x14]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x30]
call dword [sym.imp.Qt5Core.dll_public:_bool___thiscall_QJsonArray::isEmpty_void_const]
test al, al
je 0x100051d7
lea eax, [esp + 0x5c]
mov dword [esp + 0x14], 0x100465c8
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x30]
call dword [sym.imp.Qt5Core.dll_public:_class_QJsonValue___thiscall_QJsonObject::value_class_QString_const__]
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QJsonArray___thiscall_QJsonValue::toArray_void_]
push eax
lea ecx, [esp + 0x34]
call dword [sym.imp.Qt5Core.dll_public:_class_QJsonArray____thiscall_QJsonArray::operator_class_QJsonArray_const__]
lea ecx, [esp + 0x5c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QJsonArray::destructor_void_]
lea ecx, [esp + 0x90]
call esi
lea ecx, [esp + 0x14]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x3c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QJsonArray::constructor_class_QJsonArray_const__]
lea eax, [esp + 0x44]
mov dword [esp + 0x40], 0
push eax
lea ecx, [esp + 0x3c]
call dword [sym.imp.Qt5Core.dll_public:_class_QJsonArray::const_iterator___thiscall_QJsonArray::begin_void_]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x3c]
call dword [sym.imp.Qt5Core.dll_public:_class_QJsonArray::const_iterator___thiscall_QJsonArray::end_void_]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x40]
mov ecx, eax
inc eax
mov dword [esp + 0x40], eax
test ecx, ecx
jne 0x100053ea
cmp edx, dword [esp + 0x50]
je 0x100053ea
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x78]
push edx
push eax
call dword [sym.imp.Qt5Core.dll_public:_class_QJsonValue___thiscall_QJsonArray::at_int_]
cmp dword [esp + 0x40], 0
je 0x100053d6
jmp 0x10005250
lea ecx, [esp + 0x58]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_void_]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x80]
call dword [sym.imp.Qt5Core.dll_public:_class_QString___thiscall_QJsonValue::toString_class_QString_const__]
lea ecx, [esp + 0x58]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov esi, dword [ebp]
mov esi, dword [esi + 0xc]
test esi, esi
je 0x100052c0
xor edi, edi
lea eax, [esp + 0x18]
push eax
lea eax, [esi + 0xc]
push eax
call ebx
add esp, 8
test al, al
jne 0x1000529c
mov edi, esi
mov esi, dword [esi + 4]
jmp 0x1000529f
mov esi, dword [esi + 8]
test esi, esi
jne 0x10005283
test edi, edi
je 0x100052bd
lea eax, [edi + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
call ebx
add esp, 8
test al, al
je 0x10005344
or edi, 0xffffffff
mov eax, dword [sym.imp.Qt5Core.dll_struct_QListData::Data_const_QListData::shared_null]
mov ecx, ebp
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.100044e0
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
test eax, eax
je 0x100052fb
cmp eax, 0xffffffff
je 0x10005344
mov eax, edi
lock xadd dword [esi], eax
setne al
test al, al
jne 0x10005344
mov edi, dword [esi + 0xc]
mov ebp, dword [esi + 8]
add edi, 4
add ebp, 4
lea edi, [esi + edi*4]
lea ebp, [esi + ebp*4]
cmp ebp, edi
je 0x10005336
mov ebx, dword [edi - 4]
sub edi, 4
test ebx, ebx
je 0x1000532c
mov ecx, ebx
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QJsonObject::destructor_void_]
push ebx
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp edi, ebp
jne 0x10005311
mov ebx, dword [sym.imp.Qt5Core.dll_bool___cdecl_operator__class_QString_const___class_QString_const__]
push esi
call dword [sym.imp.Qt5Core.dll_public:_static_void___cdecl_QListData::dispose_struct_QListData::Data__]
mov ebp, dword [esp + 0x58]
add esp, 4
lea eax, [esp + 0x18]
mov ecx, ebp
push eax
call fcn.10003d00
mov ecx, dword [eax]
mov ecx, dword [ecx]
cmp ecx, 1
je 0x1000538a
test ecx, ecx
je 0x1000538a
push 1
push 0x7fffffff
mov ecx, eax
call fcn.10004310
push 8
mov esi, eax
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x100053b1
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QJsonObject::constructor_class_QJsonObject_const__]
jmp 0x100053b3
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_void_____thiscall_QListData::append_void_]
push 8
mov esi, eax
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x100053b1
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QJsonObject::constructor_class_QJsonObject_const__]
jmp 0x100053b3
xor eax, eax
lea ecx, [esp + 0x18]
mov dword [esi], eax
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
dec dword [esp + 0x40]
mov edi, 0xffffffff
jne 0x10005250
mov esi, dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QJsonValue::destructor_void_]
or edi, edi
lea ecx, [esp + 0x78]
call esi
mov edx, dword [esp + 0x48]
inc edx
mov dword [esp + 0x48], edx
jmp 0x10005210
lea ecx, [esp + 0x38]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QJsonArray::destructor_void_]
lea ecx, [esp + 0x30]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QJsonArray::destructor_void_]
lea ecx, [esp + 0x24]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QJsonObject::destructor_void_]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
inc edx
mov dword [esp + 0x20], edx
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
cmp edx, ecx
jl 0x100050b0
mov ecx, dword [eax]
test ecx, ecx
je 0x1000543e
cmp ecx, 0xffffffff
je 0x10005448
lock xadd dword [eax], edi
dec edi
setne al
test al, al
jne 0x10005448
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x20]
call fcn.10004140
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret