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

Disassembly:
sub esp, 0xbc
push ebx
push ebp
push esi
push edi
push 0x50e02
push dword [esp + 0xd8]
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0x98]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QCoreApplication::constructor_int___char____int_]
push 0
lea ecx, [esp + 0x98]
call dword [sym.imp.Qt5Quick3DAssetImport.dll_public:_void___thiscall_QSSGAssetImportManager::constructor_class_QObject__]
mov eax, dword [sym.imp.Qt5Core.dll_struct_QHashData_const_QHashData::shared_null]
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], eax
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QCommandLineParser::constructor_void_]
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.Qt5Core.dll_public:_class_QCommandLineOption___thiscall_QCommandLineParser::addHelpOption_void_]
lea ecx, [esp + 0x88]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QCommandLineOption::destructor_void_]
lea ecx, [esp + 0x54]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_void_]
push 0xffffffffffffffff
push 0
mov edi, eax
lea eax, [esp + 0x58]
push str.Asset_file_to_be_imported
push eax
call dword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QObject::tr_char_const___char_const___int_]
add esp, 0x10
lea ecx, [esp + 0x44]
mov esi, eax
push str.sourceFilename
push 0xe
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QLatin1String_]
push edi
push esi
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QCommandLineParser::addPositionalArgument_class_QString_const___class_QString_const___class_QString_const__]
lea ecx, [esp + 0x44]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x50]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x54]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QDir::currentPath_void_]
push 0xffffffffffffffff
push 0
mov ebx, eax
lea eax, [esp + 0x70]
push str.outputPath
push eax
call dword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QObject::tr_char_const___char_const___int_]
push 0xffffffffffffffff
push 0
mov ebp, eax
lea eax, [esp + 0x7c]
push str.Sets_the_location_to_place_the_generated_file_s_._Default_is_the_current_directory
push eax
call dword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QObject::tr_char_const___char_const___int_]
mov esi, dword [sym.imp.Qt5Core.dll_private:_static_struct_QTypedArrayData_unsigned_short_int_____cdecl_QString::fromAscii_helper_char_const___int_]
push 0xa
push str.outputPath
mov dword [esp + 0x88], eax
call esi
push 1
push 0x405394
mov dword [esp + 0x7c], eax
call esi
mov dword [esp + 0x80], eax
add esp, 0x34
mov eax, dword [sym.imp.Qt5Core.dll_struct_QListData::Data_const_QListData::shared_null]
mov dword [esp + 0x24], eax
cmp dword [eax + 4], 2
jge 0x403188
mov eax, dword [eax]
cmp eax, 1
je 0x40317c
test eax, eax
je 0x40317c
push 2
lea ecx, [esp + 0x28]
call fcn.004017a0
jmp 0x403188
push 2
lea ecx, [esp + 0x28]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QListData::realloc_int_]
mov edi, dword [sym.imp.Qt5Core.dll_public:_void_____thiscall_QListData::append_void_]
lea esi, [esp + 0x48]
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
cmp eax, 1
je 0x4031bc
test eax, eax
je 0x4031bc
push 1
push 0x7fffffff
lea ecx, [esp + 0x2c]
call fcn.00401840
push esi
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
jmp 0x4031d3
push esi
lea ecx, [esp + 0x5c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
lea ecx, [esp + 0x24]
call edi
mov ecx, dword [esp + 0x58]
mov dword [eax], ecx
add esi, 4
lea eax, [esp + 0x50]
cmp esi, eax
jne 0x403192
push ebx
push ebp
push dword [esp + 0x64]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x40]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QCommandLineOption::constructor_class_QStringList_const___class_QString_const___class_QString_const___class_QString_const__]
lea ecx, [esp + 0x24]
call fcn.00401070
mov esi, 2
lea edi, [esp + 0x50]
sub edi, 4
mov ecx, edi
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
sub esi, 1
jne 0x403205
lea ecx, [esp + 0x60]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x64]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x68]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.Qt5Core.dll_public:_bool___thiscall_QCommandLineParser::addOption_class_QCommandLineOption_const__]
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x98]
call dword [sym.imp.Qt5Quick3DAssetImport.dll_public:_class_QHash_class_QString__class_QMap_class_QString__class_QVariant_____thiscall_QSSGAssetImportManager::getAllOptions_void_]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x44]
call fcn.00402e70
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, 1
je 0x403281
test eax, eax
je 0x403281
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push dword [eax + 4]
call fcn.00401710
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 8]
add esi, 4
lea esi, [eax + esi*4]
mov eax, dword [eax]
cmp eax, 1
je 0x4032a9
test eax, eax
je 0x4032a9
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push dword [eax + 4]
call fcn.00401710
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0xc]
add edi, 4
lea edi, [eax + edi*4]
cmp esi, edi
je 0x4032d6
nop word [eax + eax]
push dword [esi]
lea ecx, [esp + 0x38]
call fcn.00401a00
add esi, 4
cmp esi, edi
jne 0x4032c0
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
or ebp, 0xffffffff
test eax, eax
je 0x4032f7
cmp eax, ebp
je 0x403322
mov eax, dword [esp + 0x10]
mov ecx, ebp
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x403322
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [esi + 0xc]
add eax, 4
lea eax, [esi + eax*4]
push eax
mov eax, dword [esi + 8]
add eax, 4
lea eax, [esi + eax*4]
push eax
call fcn.004024a0
push esi
call dword [sym.imp.Qt5Core.dll_public:_static_void___cdecl_QListData::dispose_struct_QListData::Data__]
add esp, 4
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x38]
call fcn.00402ce0
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
cmp eax, 1
je 0x40334f
test eax, eax
je 0x40334f
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push dword [eax + 4]
call fcn.00401690
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 8]
add esi, 4
lea esi, [eax + esi*4]
mov eax, dword [eax]
cmp eax, 1
je 0x403377
test eax, eax
je 0x403377
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push dword [eax + 4]
call fcn.00401690
mov ecx, dword [esp + 0x14]
xor edx, edx
xor edi, edi
mov eax, dword [ecx + 0xc]
add eax, 4
lea eax, [ecx + eax*4]
mov ebx, eax
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, eax
cmova ebx, edx
test ebx, ebx
je 0x4033b8
nop dword [eax + eax]
push dword [esi]
lea ecx, [esp + 0x1c]
call dword [sym.imp.Qt5Core.dll_public:_bool___thiscall_QCommandLineParser::addOption_class_QCommandLineOption_const__]
inc edi
lea esi, [esi + 4]
cmp edi, ebx
jne 0x4033a0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
test eax, eax
je 0x4033d7
cmp eax, 0xffffffff
je 0x4033e4
mov eax, dword [esp + 0x14]
mov ecx, ebp
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x4033e4
push dword [esp + 0x14]
call dword [sym.imp.Qt5Core.dll_public:_static_void___cdecl_QListData::dispose_struct_QListData::Data__]
add esp, 4
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QCommandLineParser::process_class_QCoreApplication_const__]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.Qt5Core.dll_public:_class_QStringList___thiscall_QCommandLineParser::positionalArguments_void_]
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QDir::currentPath_void_]
mov esi, dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QDir::constructor_class_QString_const__]
lea ecx, [esp + 0x30]
add esp, 4
push eax
call esi
lea ecx, [esp + 0x6c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.Qt5Core.dll_public:_bool___thiscall_QCommandLineParser::isSet_class_QCommandLineOption_const__const]
mov edi, dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QDebug::destructor_void_]
test al, al
je 0x40351f
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.Qt5Core.dll_public:_class_QString___thiscall_QCommandLineParser::value_class_QCommandLineOption_const__]
push eax
lea ecx, [esp + 0x74]
call esi
push eax
lea ecx, [esp + 0x30]
call dword [sym.imp.Qt5Core.dll_public:_class_QDir____thiscall_QDir::operator_class_QDir__]
lea ecx, [esp + 0x70]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QDir::destructor_void_]
lea ecx, [esp + 0x74]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x2c]
call dword [sym.imp.Qt5Core.dll_public:_bool___thiscall_QDir::exists_void_const]
test al, al
jne 0x40351f
mov byte [esp + 0x23], al
lea ecx, [esp + 0x23]
lea eax, [esp + 0x78]
push eax
call fcn.00401430
push eax
lea ecx, [esp + 0x30]
call dword [sym.imp.Qt5Core.dll_public:_bool___thiscall_QDir::mkpath_class_QString_const__const]
lea ecx, [esp + 0x78]
mov bl, al
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
test bl, bl
jne 0x40351f
push 0
push 0
push 0
lea ecx, [esp + 0xb0]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMessageLogger::constructor_char_const___int__char_const__]
lea ecx, [esp + 0x80]
push ecx
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug___thiscall_QMessageLogger::warning_void_]
lea ecx, [esp + 0x2c]
push ecx
push str.Failed_to_create_export_directory:
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___char_const__]
push ecx
mov ecx, esp
mov eax, dword [eax]
mov dword [ecx], eax
inc dword [eax + 0xc]
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.Qt5Core.dll_class_QDebug___cdecl_operator___class_QDebug__class_QDir_const__]
add esp, 0xc
lea ecx, [esp + 0x7c]
call edi
lea ecx, [esp + 0x80]
call edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xc]
cmp ecx, dword [eax + 8]
je 0x403729
mov eax, dword [eax]
cmp eax, 1
je 0x40354a
test eax, eax
je 0x40354a
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
push dword [eax + 4]
call fcn.004017a0
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 8]
add esi, 4
lea esi, [eax + esi*4]
mov eax, dword [eax]
cmp eax, 1
je 0x403572
test eax, eax
je 0x403572
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
push dword [eax + 4]
call fcn.004017a0
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0xc]
add edi, 4
lea edi, [eax + edi*4]
cmp esi, edi
je 0x403729
nop word [eax + eax]
lea ecx, [esp + 0x3c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_void_]
push esi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x9c]
call dword [sym.imp.Qt5Quick3DAssetImport.dll_public:_class_QMap_class_QString__class_QVariant____thiscall_QSSGAssetImportManager::getOptionsForFile_class_QString_const__]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x40]
call fcn.00402520
mov ecx, dword [sym.imp.Qt5Core.dll_struct_QMapDataBase_const_QMapDataBase::shared_null]
mov edx, dword [eax]
mov dword [eax], ecx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x28], edx
mov eax, dword [ebx]
test eax, eax
je 0x4035f2
cmp eax, 0xffffffff
je 0x403615
mov eax, ebp
lock xadd dword [ebx], eax
cmp eax, 1
setne al
test al, al
jne 0x403615
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x40360b
call fcn.00401650
push 8
push dword [ebx + 0xc]
mov ecx, ebx
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMapDataBase::freeTree_struct_QMapNodeBase___int_]
push ebx
call dword [sym.imp.Qt5Core.dll_public:_static_void___cdecl_QMapDataBase::freeData_struct_QMapDataBase__]
add esp, 4
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
test eax, eax
je 0x403638
cmp eax, 0xffffffff
je 0x40365f
mov eax, dword [esp + 0x38]
mov ecx, ebp
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x40365f
mov ebx, dword [esp + 0x38]
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x403655
call fcn.00401650
push 8
push dword [ebx + 0xc]
mov ecx, ebx
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMapDataBase::freeTree_struct_QMapNodeBase___int_]
push ebx
call dword [sym.imp.Qt5Core.dll_public:_static_void___cdecl_QMapDataBase::freeData_struct_QMapDataBase__]
add esp, 4
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x34]
push eax
push esi
lea ecx, [esp + 0xa4]
call dword [sym.imp.Qt5Quick3DAssetImport.dll_public:_enum_QSSGAssetImportManager::ImportState___thiscall_QSSGAssetImportManager::importFile_class_QString_const___class_QDir_const___class_QMap_class_QString__class_QVariant__const___class_QString__]
test al, al
je 0x4036ca
push 0
push 0
push 0
lea ecx, [esp + 0xc4]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMessageLogger::constructor_char_const___int__char_const__]
lea ecx, [esp + 0x84]
push ecx
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug___thiscall_QMessageLogger::warning_void_]
push str.Failed_to_import_file_with_error:
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___char_const__]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___class_QString_const__]
lea ecx, [esp + 0x84]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QDebug::destructor_void_]
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
test eax, eax
je 0x4036ed
cmp eax, 0xffffffff
je 0x403714
mov eax, dword [esp + 0x28]
mov ecx, ebp
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x403714
mov ebx, dword [esp + 0x28]
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x40370a
call fcn.00401650
push 8
push dword [ebx + 0xc]
mov ecx, ebx
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMapDataBase::freeTree_struct_QMapNodeBase___int_]
push ebx
call dword [sym.imp.Qt5Core.dll_public:_static_void___cdecl_QMapDataBase::freeData_struct_QMapDataBase__]
add esp, 4
lea ecx, [esp + 0x3c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
add esi, 4
cmp esi, edi
jne 0x403590
lea ecx, [esp + 0x2c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QDir::destructor_void_]
lea ecx, [esp + 0x1c]
call fcn.00401070
mov ecx, dword [esp + 0x40]
add ecx, 8
mov eax, dword [ecx]
test eax, eax
je 0x40375c
cmp eax, 0xffffffff
je 0x40376b
lock xadd dword [ecx], ebp
cmp ebp, 1
setne al
test al, al
jne 0x40376b
mov ecx, dword [esp + 0x40]
push 0x4015f0
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QHashData::free_helper_void____cdecl___struct_QHashData::Node___]
lea ecx, [esp + 0x30]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QCommandLineOption::destructor_void_]
lea ecx, [esp + 0x18]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QCommandLineParser::destructor_void_]
lea ecx, [esp + 0x34]
call fcn.004010d0
lea ecx, [esp + 0x94]
call dword [sym.imp.Qt5Quick3DAssetImport.dll_public_virtual:_void___thiscall_QSSGAssetImportManager::destructor_void_]
lea ecx, [esp + 0x8c]
call dword [sym.imp.Qt5Core.dll_public_virtual:_void___thiscall_QCoreApplication::destructor_void_]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xbc
ret