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

Disassembly:
push 0xffffffffffffffff
push 0x43bbe1
mov eax, dword fs:[0]
push eax
sub esp, 0x124
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d0d8c]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x54], ebp
xor ebx, ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.QtCore4.dll_protected:_void___thiscall_QAbstractItemModel::beginResetModel_void_]
mov esi, dword [ebp + 0x1c]
cmp esi, ebx
je 0x40f196
mov ecx, esi
call fcn.00407a50
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebx
push ebx
lea eax, [esp + 0x60]
push 0x16
push eax
call dword [sym.imp.QtGui4.dll_public:_static_class_QStyle____cdecl_QApplication::style_void_]
mov ecx, eax
call dword [sym.imp.QtGui4.dll_public:_class_QIcon___thiscall_QStyle::standardIcon_enum_QStyle::StandardPixmap__class_QStyleOption_const___class_QWidget_const__]
mov esi, dword [sym.imp.QtGui4.dll_public:_class_QIcon____thiscall_QIcon::operator_class_QIcon_const__]
push eax
lea ecx, [ebp + 0x10]
mov dword [esp + 0x144], ebx
call esi
mov edi, dword [sym.imp.QtGui4.dll_public:_void___thiscall_QIcon::destructor_void_]
lea ecx, [esp + 0x58]
mov dword [esp + 0x140], 0xffffffff
call edi
push 0xffffffffffffffff
push str.:_trolltech_assistant_images_bookmark.png
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromLatin1_helper_char_const___int_]
add esp, 8
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x144], 1
call dword [sym.imp.QtGui4.dll_public:_void___thiscall_QIcon::constructor_class_QString_const__]
push eax
lea ecx, [ebp + 0x14]
mov byte [esp + 0x144], 2
call esi
lea ecx, [esp + 0x5c]
mov byte [esp + 0x140], 1
call edi
mov edx, dword [esp + 0x38]
mov dword [esp + 0x140], 0xffffffff
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x40f247
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.QtCore4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__]
add esp, 4
push 0xc
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
mov edi, 3
mov dword [esp + 0x140], edi
test esi, esi
je 0x40f367
push 1
lea ecx, [esp + 0xf0]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_bool_]
push 0
lea edx, [esp + 0x4c]
push str.Address
push edx
mov byte [esp + 0x14c], 4
mov dword [esp + 0x20], 1
call fcn.0040c3b0
add esp, 0xc
mov dword [esp + 0x14], edi
mov edi, dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_class_QString_const__]
push eax
lea ecx, [esp + 0xb0]
mov dword [esp + 0x144], 5
call edi
push 0
lea eax, [esp + 0x50]
push str.Name
mov ebx, 7
push eax
mov dword [esp + 0x14c], 6
mov dword [esp + 0x20], ebx
call fcn.0040c3b0
add esp, 0xc
push eax
lea ecx, [esp + 0x110]
mov dword [esp + 0x144], ebx
mov dword [esp + 0x18], 0xf
call edi
mov eax, dword [sym.imp.QtCore4.dll_struct_QVectorData_QVectorData::shared_null]
mov dword [esp + 0x20], eax
mov ecx, 1
lock xadd dword [eax], ecx
lea edx, [esp + 0x10c]
mov ebx, 0x3f
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x144], 9
mov dword [esp + 0x18], ebx
call fcn.00405910
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x24]
call fcn.00405910
lea ecx, [esp + 0xec]
push ecx
lea ecx, [esp + 0x24]
call fcn.00405910
push 0
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.00407bd0
jmp 0x40f369
xor eax, eax
mov dword [ebp + 0x1c], eax
mov dword [esp + 0x140], 0xe
test bl, 0x20
je 0x40f3a6
mov eax, dword [esp + 0x20]
and ebx, 0xffffffdf
mov dword [esp + 0x14], ebx
test eax, eax
je 0x40f3a6
or edi, 0xffffffff
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x40f3a9
mov edx, dword [esp + 0x20]
push edx
lea ecx, [esp + 0x24]
call fcn.004048e0
jmp 0x40f3a9
or edi, 0xffffffff
mov esi, dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::destructor_void_]
mov dword [esp + 0x140], 0xd
test bl, 0x10
je 0x40f3cf
and ebx, 0xffffffef
lea ecx, [esp + 0x10c]
mov dword [esp + 0x14], ebx
call esi
mov dword [esp + 0x140], 0xc
test bl, 8
je 0x40f400
mov eax, dword [esp + 0x4c]
and ebx, 0xfffffff7
mov dword [esp + 0x14], ebx
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x40f400
mov edx, dword [esp + 0x4c]
push edx
call dword [sym.imp.QtCore4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__]
add esp, 4
mov dword [esp + 0x140], 0xb
test bl, 4
je 0x40f420
and ebx, 0xfffffffb
lea ecx, [esp + 0xac]
mov dword [esp + 0x14], ebx
call esi
mov dword [esp + 0x140], 0xa
test bl, 2
je 0x40f451
mov eax, dword [esp + 0x48]
and ebx, 0xfffffffd
mov dword [esp + 0x14], ebx
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x40f451
mov edx, dword [esp + 0x48]
push edx
call dword [sym.imp.QtCore4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__]
add esp, 4
mov dword [esp + 0x140], edi
test bl, 1
je 0x40f46d
and ebx, 0xfffffffe
lea ecx, [esp + 0xec]
mov dword [esp + 0x14], ebx
call esi
push 0xc
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
mov dword [esp + 0x140], 0x10
test esi, esi
je 0x40f586
push 1
lea ecx, [esp + 0xa0]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_bool_]
lea eax, [esp + 0x50]
or ebx, 0x40
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x144], 0x11
mov dword [esp + 0x18], ebx
mov dword [esp + 0x54], str.Folder
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_class_QLatin1String_const__]
push 0
lea ecx, [esp + 0x48]
push str.Bookmarks_Menu
or ebx, 0x80
push ecx
mov dword [esp + 0x14c], 0x12
mov dword [esp + 0x20], ebx
call fcn.0040c3b0
add esp, 0xc
or ebx, 0x100
push eax
lea ecx, [esp + 0xd0]
mov dword [esp + 0x144], 0x13
mov dword [esp + 0x18], ebx
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_class_QString_const__]
mov eax, dword [sym.imp.QtCore4.dll_struct_QVectorData_QVectorData::shared_null]
or ebx, 0x200
mov dword [esp + 0x1c], eax
mov edx, 1
lock xadd dword [eax], edx
lea eax, [esp + 0xcc]
or ebx, 0x400
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x144], 0x15
mov dword [esp + 0x18], ebx
call fcn.00405910
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0x20]
call fcn.00405910
lea edx, [esp + 0x9c]
push edx
lea ecx, [esp + 0x20]
call fcn.00405910
push 0
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.00407bd0
mov esi, eax
jmp 0x40f588
xor esi, esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x140], 0x19
test ebx, 0x400
je 0x40f5c7
mov eax, dword [esp + 0x1c]
and ebx, 0xfffffbff
mov dword [esp + 0x14], ebx
test eax, eax
je 0x40f5c7
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x40f5c7
mov edx, dword [esp + 0x1c]
push edx
lea ecx, [esp + 0x20]
call fcn.004048e0
mov dword [esp + 0x140], 0x18
test ebx, 0x200
je 0x40f5f1
and ebx, 0xfffffdff
lea ecx, [esp + 0xcc]
mov dword [esp + 0x14], ebx
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::destructor_void_]
mov dword [esp + 0x140], 0x17
test ebx, 0x100
je 0x40f628
mov eax, dword [esp + 0x44]
and ebx, 0xfffffeff
mov dword [esp + 0x14], ebx
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x40f628
mov edx, dword [esp + 0x44]
push edx
call dword [sym.imp.QtCore4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__]
add esp, 4
mov dword [esp + 0x140], 0x16
test bl, bl
jns 0x40f64e
and ebx, 0xffffff7f
lea ecx, [esp + 0x8c]
mov dword [esp + 0x14], ebx
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::destructor_void_]
mov dword [esp + 0x140], edi
test bl, 0x40
je 0x40f66e
and ebx, 0xffffffbf
lea ecx, [esp + 0x9c]
mov dword [esp + 0x14], ebx
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::destructor_void_]
mov ecx, dword [ebp + 0x1c]
push esi
call fcn.00407c20
mov eax, dword [sym.imp.QtCore4.dll_struct_QVectorData_QVectorData::shared_null]
mov dword [esp + 0x18], eax
mov ecx, 1
lock xadd dword [eax], ecx
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x144], 0x1b
call fcn.0040d190
mov eax, dword [sym.imp.QtCore4.dll_struct_QString::Data_QString::shared_null]
mov dword [esp + 0x2c], eax
mov ecx, 1
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 0x40fa70
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 0x40fa90
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
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