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

Disassembly:
lock xadd dword [eax], ecx
mov eax, dword [sym.imp.QtCore4.dll_struct_QString::Data_QString::shared_null]
mov dword [esp + 0x28], eax
mov edx, 1
lock xadd dword [eax], edx
mov eax, dword [esp + 0x148]
push eax
lea ecx, [esp + 0x120]
mov byte [esp + 0x144], 0x1d
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QDataStream::constructor_class_QByteArray_const__]
lea ecx, [esp + 0x11c]
mov byte [esp + 0x140], 0x1e
call dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QDataStream::atEnd_void_const]
test al, al
jne 0x40fabd
jmp 0x40f706
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x12c]
call dword [sym.imp.QtCore4.dll_public:_class_QDataStream____thiscall_QDataStream::operator___int__]
mov esi, dword [sym.imp.QtCore4.dll_class_QDataStream____cdecl_operator___class_QDataStream___class_QString__]
push eax
call esi
add esp, 8
push eax
call esi
add esp, 8
mov ecx, eax
call dword [sym.imp.QtCore4.dll_public:_class_QDataStream____thiscall_QDataStream::operator___bool__]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 8]
lea eax, [ecx + 8]
dec edx
cmp edx, dword [esp + 0x3c]
je 0x40f7c1
mov edx, dword [ecx]
cmp edx, 1
je 0x40f76d
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 4]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.004391d0
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 8]
lea esi, [eax - 1]
mov eax, dword [ecx + 4]
cmp esi, eax
jg 0x40f791
test byte [ecx + 0xc], 2
jne 0x40f7a1
cmp esi, dword [ecx + 8]
jge 0x40f7a1
mov ecx, eax
sar ecx, 1
cmp esi, ecx
jge 0x40f7a1
push 0
push 4
push esi
push 0x14
call dword [sym.imp.QtCore4.dll_public:_static_int___cdecl_QVectorData::grow_int__int__int__bool_]
add esp, 0x10
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.004391d0
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 8]
lea eax, [ecx + 8]
dec edx
cmp edx, dword [esp + 0x3c]
jne 0x40f752
mov ebx, dword [esp + 0x14]
push 0xc
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
mov byte [esp + 0x140], 0x1f
test esi, esi
je 0x40f8ae
mov edx, dword [esp + 0x64]
push edx
lea ecx, [esp + 0x100]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_bool_]
mov edi, dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_class_QString_const__]
lea eax, [esp + 0x28]
or ebx, 0x800
push eax
lea ecx, [esp + 0xe0]
mov byte [esp + 0x144], 0x20
mov dword [esp + 0x18], ebx
call edi
lea ecx, [esp + 0x2c]
push ecx
or ebx, 0x1000
lea ecx, [esp + 0xc0]
mov dword [esp + 0x144], 0x21
mov dword [esp + 0x18], ebx
call edi
mov eax, dword [sym.imp.QtCore4.dll_struct_QVectorData_QVectorData::shared_null]
or ebx, 0x2000
mov dword [esp + 0x24], eax
mov edx, 1
lock xadd dword [eax], edx
lea eax, [esp + 0xbc]
or ebx, 0x4000
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x144], 0x23
mov dword [esp + 0x18], ebx
call fcn.00405910
lea ecx, [esp + 0xdc]
push ecx
lea ecx, [esp + 0x28]
call fcn.00405910
lea edx, [esp + 0xfc]
push edx
lea ecx, [esp + 0x28]
call fcn.00405910
push 0
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.00407bd0
mov ebp, eax
jmp 0x40f8b0
xor ebp, ebp
mov dword [esp + 0x140], 0x26
test ebx, 0x4000
je 0x40f914
mov eax, dword [esp + 0x24]
and ebx, 0xffffbfff
mov dword [esp + 0x14], ebx
test eax, eax
je 0x40f914
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x40f914
mov eax, dword [esp + 0x24]
mov esi, dword [eax + 8]
lea edi, [eax + 0x10]
shl esi, 4
add esi, edi
mov dword [esp + 0x34], eax
cmp esi, edi
je 0x40f904
sub esi, 0x10
mov ecx, esi
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::destructor_void_]
cmp esi, edi
jne 0x40f8f5
mov edx, dword [esp + 0x34]
push 8
push edx
call dword [sym.imp.QtCore4.dll_public:_static_void___cdecl_QVectorData::free_struct_QVectorData___int_]
add esp, 8
mov esi, dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::destructor_void_]
mov dword [esp + 0x140], 0x25
test ebx, 0x2000
je 0x40f940
and ebx, 0xffffdfff
lea ecx, [esp + 0xbc]
mov dword [esp + 0x14], ebx
call esi
mov dword [esp + 0x140], 0x24
test ebx, 0x1000
je 0x40f966
and ebx, 0xffffefff
lea ecx, [esp + 0xdc]
mov dword [esp + 0x14], ebx
call esi
mov dword [esp + 0x140], 0x1e
test ebx, 0x800
je 0x40f98c
and ebx, 0xfffff7ff
lea ecx, [esp + 0xfc]
mov dword [esp + 0x14], ebx
call esi
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x64], str.Folder
call dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QString::operator_class_QLatin1String_const__const]
test al, al
je 0x40fa50
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
cmp edx, 1
je 0x40f9cb
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.004391d0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
cmp ecx, 1
je 0x40f9eb
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.004391d0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
mov ecx, dword [eax + ecx*4 + 0xc]
push ebp
call fcn.00407c20
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [esp + 0x18]
cmp edx, 1
jne 0x40fa16
mov ecx, dword [eax + 8]
lea edx, [ecx + 1]
cmp edx, dword [eax + 4]
jle 0x40fa43
mov eax, dword [eax + 8]
push 0
push 4
inc eax
push eax
push 0x14
call dword [sym.imp.QtCore4.dll_public:_static_int___cdecl_QVectorData::grow_int__int__int__bool_]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 8]
add esp, 0x10
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.004391d0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
mov dword [eax + ecx*4 + 0x10], ebp
mov eax, dword [esp + 0x18]
inc dword [eax + 8]
jmp 0x40faa1
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
cmp eax, 1
je fcn.0040fa70
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.004391d0
lea ecx, [esp + 0x11c]
call dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QDataStream::atEnd_void_const]
test al, al
je 0x40f702
mov ebp, dword [esp + 0x54]
or edi, 0xffffffff
lea esi, [ebp + 0x20]
mov ecx, esi
call fcn.0040e450
xor eax, eax
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov edx, dword [ebp]
mov edx, dword [edx + 0x2c]
lea ecx, [esp + 0x68]
push ecx
push eax
push eax
lea eax, [esp + 0x84]
push eax
mov ecx, ebp
mov byte [esp + 0x150], 0x28
call edx
xor eax, eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
lea eax, [esp + 0x78]
mov bl, 0x2a
push eax
mov ecx, ebp
mov byte [esp + 0x144], bl
call fcn.0040ef10
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x44]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QPersistentModelIndex::constructor_class_QModelIndex_const__]
mov edx, dword [esp + 0x80]
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], edx
push ecx
lea edx, [esp + 0x90]
push edx
mov ecx, esi
mov byte [esp + 0x14c], 0x2b
call fcn.0040e5b0
lea ecx, [esp + 0x40]
mov byte [esp + 0x140], bl
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QPersistentModelIndex::destructor_void_]
mov ecx, ebp
call dword [sym.imp.QtCore4.dll_protected:_void___thiscall_QAbstractItemModel::endResetModel_void_]
xor esi, esi
lea ecx, [esp + 0x11c]
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov byte [esp + 0x140], 0x1d
call dword [sym.imp.QtCore4.dll_public_virtual:_void___thiscall_QDataStream::destructor_void_]
mov eax, dword [esp + 0x28]
mov byte [esp + 0x140], 0x1c
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x40fbb4
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.QtCore4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__]
add esp, 4
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x140], 0x1b
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x40fbd6
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.QtCore4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__]
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [esp + 0x140], edi
cmp eax, esi
je 0x40fbfb
lock xadd dword [eax], edi
jne 0x40fbfb
mov eax, dword [esp + 0x18]
push 4
push eax
call dword [sym.imp.QtCore4.dll_public:_static_void___cdecl_QVectorData::free_struct_QVectorData___int_]
add esp, 8
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret 4