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

Disassembly:
sub esp, 0x6c
push ebx
mov ebx, ecx
push ebp
xor ebp, ebp
mov dword [esp + 8], ebx
mov dword [esp + 0x10], ebp
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x4068cd
mov eax, dword [esp + 0x78]
push esi
push eax
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x3c], xmm0
call fcn.0040d230
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
je 0x4068cc
push edi
push dword [esp + 0x84]
mov ecx, esi
call fcn.004073c0
mov ecx, esi
mov dword [esp + 0x14], eax
xor edi, edi
call fcn.004073f0
test eax, eax
jle 0x40673a
nop dword [eax]
push edi
mov ecx, esi
call fcn.004073c0
mov esi, eax
test esi, esi
je 0x40672a
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.0040cd10
push 0x164
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x34]
call dword [sym.imp.Qt5Core.dll_public:_class_QVariant___thiscall_QModelIndex::data_int_]
mov ecx, eax
or ebp, 1
call dword [sym.imp.Qt5Core.dll_public:_bool___thiscall_QVariant::toBool_void_const]
test al, al
je 0x406709
cmp esi, dword [esp + 0x14]
je 0x406709
mov bl, 1
jmp 0x40670b
xor bl, bl
lea ecx, [esp + 0x4c]
and ebp, 0xfffffffe
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QVariant::destructor_void_]
test bl, bl
mov ebx, dword [esp + 0x10]
je 0x40672a
movups xmm0, xmmword [esp + 0x2c]
movups xmmword [esp + 0x3c], xmm0
mov esi, dword [esp + 0x18]
inc edi
mov ecx, esi
call fcn.004073f0
cmp edi, eax
jl 0x4066c0
push dword [esp + 0x14]
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x20]
push eax
call fcn.0040cd10
push 0x164
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.Qt5Core.dll_public:_class_QVariant___thiscall_QModelIndex::data_int_]
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_bool___thiscall_QVariant::toBool_void_const]
lea ecx, [esp + 0x5c]
mov bl, al
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QVariant::destructor_void_]
mov edi, dword [esp + 0x10]
mov al, byte [edi + 0x14]
test bl, bl
je 0x406788
test al, al
je 0x4068cb
jmp 0x406790
test al, al
jne 0x4068cb
push dword [esp + 0x88]
mov eax, dword [edi]
lea ecx, [esp + 0x70]
push dword [esp + 0x88]
push dword [esp + 0x88]
push ecx
mov ecx, edi
call dword [eax + 0xbc]
push eax
mov ecx, edi
call dword [sym.imp.Qt5Core.dll_protected:_void___thiscall_QAbstractItemModel::beginInsertRows_class_QModelIndex_const___int__int_]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x84]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QPersistentModelIndex::constructor_class_QModelIndex_const__]
push 0
lea eax, [esp + 0x84]
push eax
lea ecx, [edi + 0xc]
call fcn.00406100
lea ecx, [esp + 0x80]
mov esi, eax
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QPersistentModelIndex::destructor_void_]
lea ecx, [esp + 0x18]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QPersistentModelIndex::constructor_void_]
add esi, 1
mov ebx, eax
js 0x406818
mov edx, dword [edi + 0xc]
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 8]
sub ecx, eax
cmp esi, ecx
jge 0x406818
lea ebx, [eax + 4]
add ebx, esi
lea ebx, [edx + ebx*4]
push ebx
lea ecx, [esp + 0x8c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QPersistentModelIndex::constructor_class_QPersistentModelIndex_const__]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x8c]
call dword [sym.imp.Qt5Core.dll_public:_bool___thiscall_QPersistentModelIndex::operator__class_QModelIndex_const__const]
lea ecx, [esp + 0x88]
mov bl, al
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QPersistentModelIndex::destructor_void_]
lea ecx, [esp + 0x18]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QPersistentModelIndex::destructor_void_]
test bl, bl
je 0x4068c3
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x88]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QPersistentModelIndex::constructor_class_QModelIndex_const__]
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
cmp eax, 1
je 0x406893
test eax, eax
je 0x406893
push 1
push esi
lea ecx, [edi + 0xc]
call fcn.00405d10
lea ecx, [esp + 0x84]
push ecx
mov ecx, eax
mov eax, dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QPersistentModelIndex::constructor_class_QPersistentModelIndex_const__]
call eax
jmp 0x4068b6
lea eax, [esp + 0x84]
push eax
mov eax, dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QPersistentModelIndex::constructor_class_QPersistentModelIndex_const__]
lea ecx, [esp + 0x18]
call eax
push esi
lea ecx, [edi + 0xc]
call dword [sym.imp.Qt5Core.dll_public:_void_____thiscall_QListData::insert_int_]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
lea ecx, [esp + 0x84]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QPersistentModelIndex::destructor_void_]
mov ecx, edi
call dword [sym.imp.Qt5Core.dll_protected:_void___thiscall_QAbstractItemModel::endInsertRows_void_]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 0xc