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

Disassembly:
push 0xffffffffffffffff
push 0x4adcf6
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0xc18374]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0xc18374]
xor eax, esp
push eax
lea eax, [esp + 0x1c0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1d0]
mov esi, dword [esp + 0x1d4]
push eax
mov dword [esp + 0x1c], ecx
call fcn.0040f020
mov ecx, eax
call fcn.0040ee40
cmp dword [esi + 0x18], 0x10
mov edi, eax
mov dword [esp + 0x40], edi
jb 0x40361b
mov esi, dword [esi + 4]
jmp 0x40361e
add esi, 4
push 0xffffffffffffffff
push esi
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x1cc], 0
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QFileInfo::constructor_class_QString_const__]
lea edx, [esp + 0x1c]
push edx
mov ecx, eax
mov byte [esp + 0x1cc], 1
call dword [sym.imp.QtCore4.dll_public:_class_QDir___thiscall_QFileInfo::dir_void_]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1c8], 3
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QFileInfo::destructor_void_]
mov eax, dword [esp + 0x20]
mov byte [esp + 0x1c8], 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
mov esi, dword [sym.imp.QtCore4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__]
jne 0x403694
mov edx, dword [esp + 0x20]
push edx
call esi
add esp, 4
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.QtCore4.dll_public:_class_QString___thiscall_QDir::path_void_]
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
mov byte [esp + 0x1cc], 5
call dword [sym.imp.QtCore4.dll_public:_class_QByteArray___thiscall_QString::toLocal8Bit_void_]
mov edx, dword [eax]
mov eax, dword [edx + 0xc]
push eax
lea ecx, [esp + 0x1a4]
mov byte [esp + 0x1cc], 6
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov eax, dword [esp + 0x24]
mov byte [esp + 0x1c8], 8
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4036f6
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.QtCore4.dll_void___cdecl_qFree_void__]
add esp, 4
mov eax, dword [esp + 0x28]
mov byte [esp + 0x1c8], 9
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x403715
mov edx, dword [esp + 0x28]
push edx
call esi
add esp, 4
lea eax, [esp + 0x1a0]
push eax
lea ecx, [esp + 0xc8]
call fcn.0047b3c0
cmp byte [esp + 0xe4], 0
mov byte [esp + 0x1c8], 0xa
jne 0x403772
lea ecx, [esp + 0x2c]
push str.Checksum_is_not_on__skip...
push ecx
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], str.AppCore::VerifyImageChksum
mov dword [esp + 0x3c], str....._flashtoolPublicAppCore.cpp
mov dword [esp + 0x40], 0xcf
call fcn.0040b750
add esp, 8
jmp 0x403bd9
push 1
push 2
lea ecx, [esp + 0x128]
mov byte [esp + 0x1f], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
lea edx, [esp + 0x44]
push edx
mov ecx, edi
mov byte [esp + 0x1cc], 0xb
call fcn.0040f1b0
mov ecx, eax
call fcn.00404ca0
mov ecx, dword [esp + 0x58]
mov edi, dword [ecx]
mov ebp, dword [esp + 0x44]
mov byte [esp + 0x1c8], 0xc
mov dword [esp + 0x30], edi
lea esp, [esp]
mov esi, ecx
test ebp, ebp
je 0x4037cc
cmp ebp, dword [esp + 0x44]
je 0x4037da
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
call ebx
mov ecx, dword [esp + 0x58]
jmp 0x4037e0
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp edi, esi
je 0x403b7f
test ebp, ebp
jne 0x403859
call ebx
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4037f7
call ebx
cmp dword [edi + 0x17c], 0
jne 0x403863
test ebp, ebp
jne 0x40385e
call ebx
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x40380f
call ebx
lea eax, [edi + 8]
push eax
lea ecx, [esp + 0x9c]
push str.skip_chksum_for_rom__s_.
push ecx
mov dword [esp + 0xa4], 1
mov dword [esp + 0xa8], str.AppCore::VerifyImageChksum
mov dword [esp + 0xac], str....._flashtoolPublicAppCore.cpp
mov dword [esp + 0xb0], 0xdf
call fcn.0040b750
add esp, 0xc
jmp 0x4039bc
mov eax, dword [ebp]
jmp 0x4037f0
mov eax, dword [ebp]
jmp 0x403808
test ebp, ebp
jne 0x40397d
call ebx
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x403876
call ebx
lea ebx, [edi + 8]
push ebx
lea ecx, [esp + 0x80]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov edx, dword [esp + 0x18]
mov esi, dword [edx]
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0xc8]
mov byte [esp + 0x1cc], 0xd
call fcn.0047b120
lea ecx, [esp + 0x7c]
mov dword [esi + 0xc], eax
mov byte [esp + 0x1c8], 0xc
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test ebp, ebp
jne 0x403985
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4038d6
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x18]
movzx ecx, word [edi + 0x170]
mov eax, dword [edx]
mov word [eax + 0x10], cx
mov ecx, dword [edx]
lea edx, [esp + 0x7c]
push edx
call fcn.0047a290
mov esi, eax
mov ecx, 7
lea edi, [esp + 0xa8]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x7c]
call fcn.00401710
test ebp, ebp
jne 0x40398d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov ecx, dword [esp + 0x30]
cmp ecx, dword [eax + 0x14]
jne 0x403927
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
movzx edx, word [esp + 0xa8]
mov eax, dword [esp + 0xac]
push edx
push eax
push ebx
lea ecx, [esp + 0x6c]
push str.image_name__s___chksum_value__d___index__d_
push ecx
mov dword [esp + 0x74], 1
mov dword [esp + 0x78], str.AppCore::VerifyImageChksum
mov dword [esp + 0x7c], str....._flashtoolPublicAppCore.cpp
mov dword [esp + 0x80], 0xe8
call fcn.0040b750
mov ecx, dword [esp + 0x54]
add esp, 0x14
call fcn.0040f1b0
test eax, eax
jne 0x403992
jmp 0x403994
mov eax, dword [ebp]
jmp 0x40386f
mov eax, dword [ebp]
jmp 0x4038cb
mov eax, dword [ebp]
jmp 0x403918
mov eax, dword [eax]
lea edx, [esp + 0x17]
push edx
lea ecx, [esp + 0xac]
push ecx
push eax
call sub.Flashtoollib.dll_Ordinal_236
cmp eax, 0x3e8
je 0x4039e1
test eax, eax
jne 0x403a08
mov edi, dword [esp + 0x30]
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test ebp, ebp
jne 0x4039dc
call ebx
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4039cb
call ebx
mov edx, dword [edi]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x30], edx
mov edi, edx
jmp 0x4037c0
mov eax, dword [ebp]
jmp 0x4039c4
push 0xf0
push str....._flashtoolPublicAppCore.cpp
push str.AppCore::VerifyImageChksum
lea ecx, [esp + 0x6c]
call fcn.0044df40
push 0xbe94b8
lea eax, [esp + 0x64]
push eax
call sub.MSVCR90.dll__CxxThrowException
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
lea edx, [esp + 0x60]
push edx
call fcn.0047a290
mov ecx, 7
mov esi, eax
lea edi, [esp + 0x7c]
mov byte [esp + 0x1c8], 0xe
rep movsd dword es:[edi], dword [esi]
test ebp, ebp
jne 0x403b27
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x30]
cmp esi, dword [ebp + 0x14]
jne 0x403a4a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push ecx
push str.Please_re_fill_correct_checksum_value_and_re_load_scatter_file_again.
push 0x4017e0
mov edx, ecx
mov ecx, dword [esp + 0x8c]
push edx
push str._in_the_config_ini_file.
push ecx
push str.Checksum_reference_value_0x
push 0x401800
push edx
push str._checksum_failed_
lea eax, [esi + 8]
push eax
lea eax, [esp + 0x14c]
push str.Image
push eax
call fcn.00402aa0
add esp, 8
push eax
call fcn.00402aa0
add esp, 8
push eax
call fcn.00402aa0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
push eax
call fcn.00402aa0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int_]
push eax
call fcn.00402aa0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
push eax
call fcn.00402aa0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea ecx, [esp + 0x60]
mov byte [esp + 0x1c8], 0xc
call fcn.00401710
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x124]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x1c8], 0xf
jb 0x403b2f
mov eax, dword [eax + 4]
jmp 0x403b32
mov ebp, dword [ebp]
jmp 0x403a3b
add eax, 4
push eax
lea ecx, [esp + 0x80]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0xfe
push str....._flashtoolPublicAppCore.cpp
push str.AppCore::VerifyImageChksum
lea edx, [esp + 0x88]
push edx
push 0xffffffffffffffff
lea ecx, [esp + 0xfc]
mov byte [esp + 0x1dc], 0x10
call fcn.00410320
push 0xbe947c
lea eax, [esp + 0xec]
push eax
call sub.MSVCR90.dll__CxxThrowException
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x58]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x58]
xor edi, edi
mov dword [esp + 0x5c], edi
cmp eax, ecx
je 0x403bad
mov esi, dword [eax]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x5c]
add esp, 4
mov eax, esi
cmp esi, ecx
jne 0x403b98
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x48]
push ecx
mov dword [esp + 0x60], edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 8
lea ecx, [esp + 0x120]
mov byte [esp + 0x1c8], 0xa
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
lea ecx, [esp + 0xc4]
mov byte [esp + 0x1c8], 9
call fcn.0047b3b0
lea ecx, [esp + 0x1a0]
mov byte [esp + 0x1c8], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c8], 0xffffffff
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QDir::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.004ac9a4
add esp, 0x1b8
ret 8