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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x427021
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x14]
mov al, byte [eax + 0x1c]
push esi
push edi
test al, al
je 0x413860
push 0xffffffffffffffff
push 0x42bd3f
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
mov dword [esp + 0x30], eax
push 0
lea ecx, [esp + 0x3c]
push str.PNG__.PNG___BMP__.BMP___All_Files__._
push ecx
mov dword [esp + 0xa0], 0
call fcn.00405490
mov esi, eax
push 0
lea edx, [esp + 0x44]
push str.Import_Sprites_s_
push edx
mov byte [esp + 0xac], 1
call fcn.00405490
add esp, 0x1c
mov ecx, esp
mov dword [esp + 0x78], esp
push 0
push esi
mov dword [ecx], 0
lea ecx, [esp + 0x34]
push ecx
push eax
lea edx, [esp + 0x30]
push ebp
push edx
mov byte [esp + 0xa8], 2
call dword [sym.imp.QtGui4.dll_public:_static_class_QStringList___cdecl_QFileDialog::getOpenFileNames_class_QWidget___class_QString_const___class_QString_const___class_QString_const___class_QString___class_QFlags_enum_QFileDialog::Option__]
add esp, 0x1c
mov eax, dword [esp + 0x2c]
mov esi, dword [sym.imp.QtCore4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__]
mov byte [esp + 0x8c], 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x413018
mov edx, dword [esp + 0x2c]
push edx
call esi
add esp, 4
mov eax, dword [esp + 0x30]
mov byte [esp + 0x8c], 5
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x413037
mov edx, dword [esp + 0x30]
push edx
call esi
add esp, 4
mov eax, dword [esp + 0x28]
mov byte [esp + 0x8c], 6
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x413056
mov edx, dword [esp + 0x28]
push edx
call esi
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
cmp ecx, 1
jne 0x41356c
mov edx, dword [eax]
cmp edx, ecx
je 0x413078
lea ecx, [esp + 0x1c]
call fcn.004118a0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 8]
lea edx, [eax + ecx*4 + 0x14]
push edx
lea ecx, [esp + 0x24]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
push 0xc
mov byte [esp + 0x90], 7
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x74], esi
mov byte [esp + 0x8c], 8
mov ebx, 0x20
test esi, esi
je 0x4130cb
push 5
push ebx
push ebx
mov ecx, esi
call dword [sym.imp.QtGui4.dll_public:_void___thiscall_QImage::constructor_int__int__enum_QImage::Format_]
mov dword [esi], vtable.QImage.0
jmp 0x4130cd
xor esi, esi
push 0
lea eax, [esp + 0x24]
push eax
mov ecx, esi
mov byte [esp + 0x94], 7
call dword [sym.imp.QtGui4.dll_public:_bool___thiscall_QImage::load_class_QString_const___char_const__]
push esi
mov ecx, ebp
call fcn.00407010
mov ecx, dword [ebp + 0x28]
call dword [sym.imp.Qt3Support4.dll_public:_class_Q3ListViewItem____thiscall_Q3ListView::currentItem_void_const]
mov edi, eax
test edi, edi
je 0x413500
mov ecx, esi
call dword [sym.imp.QtGui4.dll_public:_int___thiscall_QImage::height_void_const]
cmp eax, ebx
jg 0x413318
mov ecx, esi
call dword [sym.imp.QtGui4.dll_public:_int___thiscall_QImage::width_void_const]
cmp eax, ebx
jg 0x413318
push 0
lea ecx, [esp + 0x3c]
push str.Overwrite_the_currently_selected_sprite_with_the_imported_image_
push ecx
call fcn.00405490
mov ebx, eax
push 0
lea edx, [esp + 0x44]
push str.Overwrite_
push edx
mov byte [esp + 0xa4], 0xe
call fcn.00405490
add esp, 0x18
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x7c], esp
push ebx
push eax
mov dword [ecx], 0
push ebp
mov byte [esp + 0xa0], 0xf
mov dword [ecx], 0x414000
call dword [sym.imp.QtGui4.dll_public:_static_enum_QMessageBox::StandardButton___cdecl_QMessageBox::question_class_QWidget___class_QString_const___class_QString_const___class_QFlags_enum_QMessageBox::StandardButton___enum_QMessageBox::StandardButton_]
mov ebx, eax
mov eax, dword [esp + 0x48]
add esp, 0x14
mov byte [esp + 0x8c], 0xe
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x41319c
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.QtCore4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__]
add esp, 4
mov eax, dword [esp + 0x38]
mov byte [esp + 0x8c], 7
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4131bf
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.QtCore4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__]
add esp, 4
cmp ebx, 0x4000
je 0x413232
cmp ebx, 0x10000
je 0x4131e6
test esi, esi
je 0x4132ef
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
jmp 0x4132ef
push 0x18
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x74], eax
mov byte [esp + 0x8c], 0x12
test eax, eax
je 0x413210
push 0xffff
mov ecx, eax
call fcn.00420260
mov edi, eax
jmp 0x413212
xor edi, edi
mov ecx, dword [edi + 0x10]
push esi
mov byte [esp + 0x90], 7
call dword [sym.imp.QtGui4.dll_public:_class_QImage____thiscall_QImage::operator_class_QImage_const__]
mov ecx, dword [ebp + 0x14]
push edi
call fcn.00420f70
jmp 0x4132ef
mov eax, dword [edi]
mov edx, dword [eax + 0x1c]
push 1
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
call edx
push 0xa
push 0
mov ecx, eax
mov byte [esp + 0x94], 0x10
call dword [sym.imp.QtCore4.dll_public:_int___thiscall_QString::toInt_bool___int_const]
movzx ebx, ax
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x8c], 7
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x41327c
mov edx, dword [esp + 0x3c]
push edx
call dword [sym.imp.QtCore4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__]
add esp, 4
mov ecx, dword [ebp + 0x14]
push esi
push ebx
call fcn.00421010
test al, al
je 0x4132ef
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [ebp + 0x14]
movzx eax, bx
add ecx, 0xc
mov dword [esp + 0x6c], eax
call fcn.00411ea0
mov eax, dword [eax]
test eax, eax
je 0x4132ef
push ecx
mov ecx, esp
mov dword [ecx], 0
mov edx, dword [eax + 0x10]
mov dword [esp + 0x78], esp
push edx
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.QtGui4.dll_public:_static_class_QPixmap___cdecl_QPixmap::fromImage_class_QImage_const___class_QFlags_enum_Qt::ImageConversionFlag__]
add esp, 0xc
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x20]
push 0
mov ecx, edi
mov byte [esp + 0x94], 0x11
call eax
lea ecx, [esp + 0x78]
mov byte [esp + 0x8c], 7
call dword [sym.imp.QtGui4.dll_public_virtual:_void___thiscall_QPixmap::destructor_void_]
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x8c], 6
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4134e7
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.QtCore4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__]
jmp 0x4134e4
mov byte [esp + 0x68], bl
mov ecx, dword [esp + 0x68]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
mov byte [esp + 0x68], bl
mov edx, dword [esp + 0x68]
push edx
lea ecx, [esp + 0x16]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
mov byte [esp + 0x68], bl
mov eax, dword [esp + 0x68]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
push 0
lea ecx, [esp + 0x54]
push str.__1__has_invalid_dimensions_of__2x_3_nDimensions_must_be_32x32.
push ecx
call fcn.00405490
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x58]
push edx
mov ecx, eax
mov byte [esp + 0x9c], 9
call dword [sym.imp.QtCore4.dll_public:_class_QString___thiscall_QString::arg_class_QString_const___int__class_QChar_const__]
mov ebx, eax
lea eax, [esp + 0x12]
push eax
push 0xa
push 0
mov ecx, esi
mov byte [esp + 0x98], 0xa
call dword [sym.imp.QtGui4.dll_public:_int___thiscall_QImage::height_void_const]
push eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, ebx
call dword [sym.imp.QtCore4.dll_public:_class_QString___thiscall_QString::arg_int__int__int__class_QChar_const__]
mov ebx, eax
lea edx, [esp + 0x14]
push edx
push 0xa
push 0
mov ecx, esi
mov byte [esp + 0x98], 0xb
call dword [sym.imp.QtGui4.dll_public:_int___thiscall_QImage::width_void_const]
push eax
lea eax, [esp + 0x54]
push eax
mov ecx, ebx
call dword [sym.imp.QtCore4.dll_public:_class_QString___thiscall_QString::arg_int__int__int__class_QChar_const__]
mov ebx, eax
push 0
lea ecx, [esp + 0x44]
push str.Wrong_dimensions
push ecx
mov byte [esp + 0x98], 0xc
call fcn.00405490
add esp, 0xc
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x7c], esp
push ebx
push eax
push ebp
mov byte [esp + 0xa0], 0xd
mov dword [ecx], 0x400
call dword [sym.imp.QtGui4.dll_public:_static_enum_QMessageBox::StandardButton___cdecl_QMessageBox::information_class_QWidget___class_QString_const___class_QString_const___class_QFlags_enum_QMessageBox::StandardButton___enum_QMessageBox::StandardButton_]
add esp, 0x14
mov edx, dword [esp + 0x40]
mov edi, dword [sym.imp.QtCore4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__]
mov byte [esp + 0x8c], 0xc
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x41343e
mov ecx, dword [esp + 0x40]
push ecx
call edi
add esp, 4
mov edx, dword [esp + 0x44]
mov byte [esp + 0x8c], 0xb
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x41345d
mov ecx, dword [esp + 0x44]
push ecx
call edi
add esp, 4
mov edx, dword [esp + 0x48]
mov byte [esp + 0x8c], 0xa
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x41347c
mov ecx, dword [esp + 0x48]
push ecx
call edi
add esp, 4
mov edx, dword [esp + 0x4c]
mov byte [esp + 0x8c], 9
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x41349b
mov ecx, dword [esp + 0x4c]
push ecx
call edi
add esp, 4
mov edx, dword [esp + 0x50]
mov byte [esp + 0x8c], 7
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4134ba
mov ecx, dword [esp + 0x50]
push ecx
call edi
add esp, 4
test esi, esi
je 0x4134c8
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x8c], 6
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4134e7
mov eax, dword [esp + 0x20]
push eax
call edi
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x8c], 0xffffffff
call fcn.00411d00
jmp 0x413860
push 0x18
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x74], eax
mov byte [esp + 0x8c], 0x13
test eax, eax
je 0x41352a
push 0xffff
mov ecx, eax
call fcn.00420260
mov edi, eax
jmp 0x41352c
xor edi, edi
mov ecx, dword [edi + 0x10]
push esi
mov byte [esp + 0x90], 7
call dword [sym.imp.QtGui4.dll_public:_class_QImage____thiscall_QImage::operator_class_QImage_const__]
mov ecx, dword [ebp + 0x14]
push edi
call fcn.00420f70
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x8c], 6
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4134e7
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.QtCore4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__]
jmp 0x4134e4
mov ecx, dword [eax]
cmp ecx, 1
je 0x41357c
lea ecx, [esp + 0x1c]
call fcn.004118a0
mov edi, dword [esp + 0x1c]
mov edx, dword [edi + 8]
lea edi, [edi + edx*4 + 0x14]
mov dword [esp + 0x24], edi
mov ebx, 0x20
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
cmp ecx, 1
je 0x4135a4
lea ecx, [esp + 0x1c]
call fcn.004118a0
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0xc]
lea ecx, [eax + edx*4 + 0x14]
cmp edi, ecx
je 0x41381d
push 0xc
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x68], esi
mov byte [esp + 0x8c], 0x14
test esi, esi
je 0x4135e7
push 5
push ebx
push ebx
mov ecx, esi
call dword [sym.imp.QtGui4.dll_public:_void___thiscall_QImage::constructor_int__int__enum_QImage::Format_]
mov dword [esi], vtable.QImage.0
jmp 0x4135e9
xor esi, esi
push 0
push edi
mov ecx, esi
mov byte [esp + 0x94], 6
call dword [sym.imp.QtGui4.dll_public:_bool___thiscall_QImage::load_class_QString_const___char_const__]
push esi
mov ecx, ebp
call fcn.00407010
mov ecx, esi
call dword [sym.imp.QtGui4.dll_public:_int___thiscall_QImage::height_void_const]
cmp eax, ebx
jg 0x413671
mov ecx, esi
call dword [sym.imp.QtGui4.dll_public:_int___thiscall_QImage::width_void_const]
cmp eax, ebx
jg 0x413671
push 0x18
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x68], eax
mov byte [esp + 0x8c], 0x1a
test eax, eax
je 0x413646
push 0xffff
mov ecx, eax
call fcn.00420260
mov edi, eax
jmp 0x413648
xor edi, edi
mov ecx, dword [edi + 0x10]
push esi
mov byte [esp + 0x90], 6
call dword [sym.imp.QtGui4.dll_public:_class_QImage____thiscall_QImage::operator_class_QImage_const__]
mov ecx, dword [ebp + 0x14]
push edi
call fcn.00420f70
add dword [esp + 0x24], 4
mov edi, dword [esp + 0x24]
jmp 0x413590
mov byte [esp + 0x6c], bl
mov eax, dword [esp + 0x6c]
push eax
lea ecx, [esp + 0x1e]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
mov byte [esp + 0x70], bl
mov ecx, dword [esp + 0x70]
push ecx
lea ecx, [esp + 0x1c]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
mov byte [esp + 0x74], bl
mov edx, dword [esp + 0x74]
push edx
lea ecx, [esp + 0x1a]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
push 0
lea eax, [esp + 0x68]
push str.__1__has_invalid_dimensions_of__2x_3_nDimensions_must_be_32x32.
push eax
call fcn.00405490
add esp, 0xc
lea ecx, [esp + 0x16]
push ecx
push 0
push edi
lea edx, [esp + 0x6c]
push edx
mov ecx, eax
mov byte [esp + 0x9c], 0x15
call dword [sym.imp.QtCore4.dll_public:_class_QString___thiscall_QString::arg_class_QString_const___int__class_QChar_const__]
mov edi, eax
lea eax, [esp + 0x18]
push eax
push 0xa
push 0
mov ecx, esi
mov byte [esp + 0x98], 0x16
call dword [sym.imp.QtGui4.dll_public:_int___thiscall_QImage::height_void_const]
push eax
lea ecx, [esp + 0x6c]
push ecx
mov ecx, edi
call dword [sym.imp.QtCore4.dll_public:_class_QString___thiscall_QString::arg_int__int__int__class_QChar_const__]
mov edi, eax
lea edx, [esp + 0x1a]
push edx
push 0xa
push 0
mov ecx, esi
mov byte [esp + 0x98], 0x17
call dword [sym.imp.QtGui4.dll_public:_int___thiscall_QImage::width_void_const]
push eax
lea eax, [esp + 0x68]
push eax
mov ecx, edi
call dword [sym.imp.QtCore4.dll_public:_class_QString___thiscall_QString::arg_int__int__int__class_QChar_const__]
mov esi, eax
push 0
lea ecx, [esp + 0x58]
push str.Wrong_dimensions
push ecx
mov byte [esp + 0x98], 0x18
call fcn.00405490
add esp, 0xc
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x70], esp
push esi
push eax
push ebp
mov byte [esp + 0xa0], 0x19
mov dword [ecx], 0x400
call dword [sym.imp.QtGui4.dll_public:_static_enum_QMessageBox::StandardButton___cdecl_QMessageBox::information_class_QWidget___class_QString_const___class_QString_const___class_QFlags_enum_QMessageBox::StandardButton___enum_QMessageBox::StandardButton_]
add esp, 0x14
mov byte [esp + 0x8c], 0x18
mov edx, dword [esp + 0x54]
mov esi, dword [sym.imp.QtCore4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x413793
mov ecx, dword [esp + 0x54]
push ecx
call esi
add esp, 4
mov edx, dword [esp + 0x58]
mov byte [esp + 0x8c], 0x17
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4137b2
mov ecx, dword [esp + 0x58]
push ecx
call esi
add esp, 4
mov edx, dword [esp + 0x5c]
mov byte [esp + 0x8c], 0x16
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4137d1
mov ecx, dword [esp + 0x5c]
push ecx
call esi
add esp, 4
mov edx, dword [esp + 0x60]
mov byte [esp + 0x8c], 0x15
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4137f0
mov ecx, dword [esp + 0x60]
push ecx
call esi
add esp, 4
mov edx, dword [esp + 0x64]
mov byte [esp + 0x8c], 6
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x41380f
mov ecx, dword [esp + 0x64]
push ecx
call esi
add esp, 4
add dword [esp + 0x24], 4
mov edi, dword [esp + 0x24]
jmp 0x413590
mov dword [esp + 0x8c], 0xffffffff
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x413860
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xc]
lea edx, [eax + ecx*4 + 0x14]
mov ecx, dword [eax + 8]
push edx
lea edx, [eax + ecx*4 + 0x14]
push edx
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.00406bb0
mov eax, dword [esi]
test eax, eax
jne 0x413860
push esi
call dword [sym.imp.QtCore4.dll_void___cdecl_qFree_void__]
add esp, 4
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x80
ret