Function at 0x401420
Capabilities:
Copy file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x433bde
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov eax, dword [esp + 0x50]
push ebx
push ebp
mov ebp, ecx
mov ecx, dword [eax]
push esi
push edi
xor edi, edi
mov eax, dword [ecx - 8]
mov dword [esp + 0x1c], ebp
cmp eax, edi
je 0x401c02
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_4
mov edx, dword [ebp + 0xd0]
lea esi, [ebp + 0xd0]
mov dword [esp + 0x58], edi
mov dword [esp + 0x18], edi
cmp dword [edx - 8], edi
jne 0x40155a
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFile::CFile
mov byte [esp + 0x58], 1
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00407bf0
add esp, 8
mov eax, dword [eax + 4]
mov byte [esp + 0x58], 2
cmp eax, edi
jne 0x4014b0
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], 4
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push str.QLiveQ_
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
cmp dword [ebp + 0xcc], 1
jne 0x4014e9
push str.LogeAd.htm
jmp 0x4014ee
push str.LogeAd_mini.htm
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x14]
push edi
push edi
push ecx
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x40153e
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFile::GetLength
mov edi, eax
test edi, edi
jle 0x401535
push edi
push edi
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CFile::Read
push edi
mov ecx, esi
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], 0
call fcn.0043238e
mov edx, dword [esi]
mov eax, dword [edx - 8]
test eax, eax
je 0x401bf1
push esi
lea ecx, [esp + 0x18]
call fcn.00432388
mov eax, dword [esp + 0x60]
mov bl, 5
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], bl
mov eax, dword [eax]
push eax
push str.______adtext_____
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x60]
push ecx
call fcn.00407b30
add esp, 4
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 6
call fcn.0043237c
lea ecx, [esp + 0x60]
mov byte [esp + 0x58], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0xcc]
mov esi, 1
cmp eax, esi
jne 0x4015cb
push str.LogeAd_ok.htm
jmp 0x4015d0
push str.LogeAd_mini_ok.htm
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFile::CFile
mov edx, dword [esp + 0x10]
push 0x80
push edx
mov byte [esp + 0x60], 7
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x10]
push 0
push 0x1001
push eax
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x40162f
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFile::Close
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], bl
call fcn.0043238e
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
test eax, eax
je 0x401bf1
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 8]
test eax, eax
je 0x401bf1
mov cl, byte [esp + 0x60]
push 0
mov byte [esp + 0x34], cl
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x34]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4016b7
mov edi, dword [esp + 0x34]
mov ecx, ebp
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
lea eax, [esp + 0x30]
mov byte [esp + 0x58], 8
push eax
call fcn.004081c0
add esp, 4
lea ecx, [esp + 0x30]
mov esi, eax
mov byte [esp + 0x58], 0
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
test esi, esi
je 0x401bf1
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0xcc], 2
jne 0x401bc1
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
lea edx, [esp + 0x30]
push eax
push edx
call fcn.00407bf0
add esp, 8
mov edi, str.QLiveQ_skinmini_ctrl_msgshow_mid.bmp
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x58], 9
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.QLiveQ_skinmini_ctrl_msgshow_mid.bmp
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
lea eax, [esp + 0x60]
push eax
call fcn.00407b30
add esp, 4
mov cl, byte [esp + 0x60]
mov esi, dword [eax]
mov byte [esp + 0x58], 0xa
mov byte [esp + 0x20], cl
push 0
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x24]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x401795
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
lea ecx, [esp + 0x60]
mov byte [esp + 0x58], 0xc
call sub.MFC42.DLL_CString::CString
mov edi, str.mini_ctrl_msgshow_mid.bmp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.mini_ctrl_msgshow_mid.bmp
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
lea eax, [esp + 0x20]
push eax
call fcn.004081c0
add esp, 4
test eax, eax
jne 0x4017f7
mov ecx, dword [esp + 0x24]
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test ecx, ecx
jne 0x4017e3
mov ecx, edx
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4017ed
mov eax, edx
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.00407bf0
add esp, 8
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x58], 0xd
mov ecx, dword [edx]
push ecx
push 0
push eax
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x5c], 0xc
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.QLiveQ_skinmini_ctrl_msgshow_left.bmp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.QLiveQ_skinmini_ctrl_msgshow_left.bmp
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
lea edx, [esp + 0x60]
push edx
call fcn.00407b30
add esp, 4
mov esi, dword [eax]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x24]
push ebp
mov byte [esp + 0x60], 0xe
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4018ab
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
mov byte [ecx + ebp], 0
lea ecx, [esp + 0x60]
mov byte [esp + 0x58], 0xc
call sub.MFC42.DLL_CString::CString
mov edi, str.mini_ctrl_msgshow_left.bmp
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
repne scasb al, byte es:[edi]
mov eax, dword [edx]
mov edx, dword [esp + 0x28]
mov ebx, dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
sub eax, edx
not ecx
dec ecx
mov esi, ecx
cmp eax, esi
ja 0x4018e4
call ebx
test esi, esi
jbe 0x40192b
mov ecx, dword [esp + 0x28]
push 0
lea ebp, [ecx + esi]
lea ecx, [esp + 0x24]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40192b
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ecx, esi
mov esi, str.mini_ctrl_msgshow_left.bmp
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
lea eax, [esp + 0x20]
push eax
call fcn.004081c0
add esp, 4
test eax, eax
jne 0x401960
mov ecx, dword [esp + 0x24]
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test ecx, ecx
jne 0x40194c
mov ecx, edx
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x401956
mov eax, edx
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.00407bf0
add esp, 8
mov esi, dword [eax + 4]
mov byte [esp + 0x58], 0xf
test esi, esi
jne 0x401988
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x34]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4019c7
mov edi, dword [esp + 0x34]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], ebp
mov byte [eax + ebp], 0
mov eax, dword [esp + 0x44]
mov byte [esp + 0x58], 0xc
test eax, eax
je 0x4019f1
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4019e8
cmp al, 0xff
je 0x4019e8
dec al
mov byte [ecx], al
jmp 0x4019f1
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edi, str.QLiveQ_skinmini_ctrl_msgshow_right.bmp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x38]
sub edx, ecx
cmp edx, esi
ja 0x401a16
call ebx
test esi, esi
jbe 0x401a5e
mov eax, dword [esp + 0x38]
push 0
lea ecx, [esp + 0x34]
lea ebp, [eax + esi]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x401a5e
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
mov esi, str.QLiveQ_skinmini_ctrl_msgshow_right.bmp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x38], ebp
mov byte [ecx + ebp], 0
lea edx, [esp + 0x60]
push edx
call fcn.00407b30
add esp, 4
mov esi, dword [eax]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x24]
push ebp
mov byte [esp + 0x60], 0x10
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x401ab1
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
mov byte [ecx + ebp], 0
lea ecx, [esp + 0x60]
mov byte [esp + 0x58], 0xc
call sub.MFC42.DLL_CString::CString
mov edi, str.mini_ctrl_msgshow_right.bmp
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
repne scasb al, byte es:[edi]
mov eax, dword [edx]
mov edx, dword [esp + 0x28]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x401ae4
call ebx
xor ebx, ebx
cmp esi, ebx
jbe 0x401b2c
mov ecx, dword [esp + 0x28]
push ebx
lea ebp, [ecx + esi]
lea ecx, [esp + 0x24]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x401b2c
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ecx, esi
mov esi, str.mini_ctrl_msgshow_right.bmp
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
mov byte [eax + ebp], bl
lea ecx, [esp + 0x20]
push ecx
call fcn.004081c0
add esp, 4
test eax, eax
jne 0x401b61
mov ecx, dword [esp + 0x24]
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp ecx, ebx
jne 0x401b4d
mov ecx, edx
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x401b57
mov eax, edx
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [esp + 0x24]
mov byte [esp + 0x58], 9
cmp eax, ebx
je 0x401b8b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x401b82
cmp al, 0xff
je 0x401b82
dec al
mov byte [ecx], al
jmp 0x401b8b
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
cmp eax, ebx
mov byte [esp + 0x58], 0
je 0x401bc1
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x401bb8
cmp al, 0xff
je 0x401bb8
dec al
mov byte [ecx], al
jmp 0x401bc1
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
push 0
push edx
call sub.MFC42.DLL_CHtmlView::Navigate2
lea ecx, [esp + 0x10]
mov dword [esp + 0x58], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x401c04
lea ecx, [esp + 0x10]
mov dword [esp + 0x58], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret 4