Function at 0x4496e7
Capabilities:
Delete file
Read file on windows

Disassembly:
mov eax, 0x4c5def
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x1ec
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x24], ebx
call dword [sym.imp.QQBaseClassInDll.dll_public:_void___thiscall_CMarkup::constructor_void_]
push 0x5130ac
xor esi, esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
pop ecx
cmp edi, esi
pop ecx
mov dword [ebp - 0x14], edi
je 0x4497a1
push 2
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push edi
call esi
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push dword [ebp - 0x14]
mov edi, eax
call esi
lea eax, [edi + 1]
push eax
call sub.MFC42.DLL_operatornew
push dword [ebp - 0x14]
mov esi, eax
push 1
push edi
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x30
cmp eax, 1
jne 0x449780
and byte [esi + edi], 0
push esi
lea ecx, [ebp - 0xb4]
call dword [sym.imp.QQHelperDll.dll_public:_bool___thiscall_CMarkup::SetDoc_char_const__]
movzx edi, al
jmp 0x449783
mov edi, dword [ebp - 0x1c]
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll_fclose]
push esi
call sub.MFC42.DLL_operatordelete
pop ecx
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test edi, edi
jne 0x4497a8
xor edi, edi
jmp 0x449ec2
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_3
mov al, byte [ebp + 0xb]
xor edi, edi
mov byte [ebp - 4], 1
mov byte [ebp - 0x40], al
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
push str.portal
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 2
call dword [sym.imp.QQHelperDll.dll_public:_bool___thiscall_CMarkup::FindElem_char_const__]
movzx eax, al
cmp eax, edi
je 0x449eaa
lea eax, [ebp + 8]
push 0x5130a0
push eax
lea ecx, [ebp - 0xb4]
call dword [sym.imp.QQBaseClassInDll.dll_public:_class_CString___thiscall_CMarkup::GetAttrib_char_const__]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x10]
mov esi, dword [sym.imp.MSVCRT.dll_atoi]
call esi
pop ecx
mov dword [ebx + 0x74], eax
push edi
lea ecx, [ebp - 0xb4]
push dword [ebp - 0x90]
push dword [ebp - 0x94]
call dword [sym.imp.QQBaseClassInDll.dll_protected:_void___thiscall_CMarkup::x_SetPos_int__int__int_]
push str.syspanel
lea ecx, [ebp - 0xb4]
call dword [sym.imp.QQHelperDll.dll_public:_bool___thiscall_CMarkup::FindChildElem_char_const__]
movzx eax, al
cmp eax, edi
je 0x449eaa
mov edi, dword [sym.imp.QQHelperDll.dll_public:_bool___thiscall_CMarkup::IntoElem_void_]
lea ecx, [ebp - 0xb4]
call edi
push 0
lea ecx, [ebp - 0xb4]
push dword [ebp - 0x90]
push dword [ebp - 0x94]
call dword [sym.imp.QQBaseClassInDll.dll_protected:_void___thiscall_CMarkup::x_SetPos_int__int__int_]
push str.panel
lea ecx, [ebp - 0xb4]
call dword [sym.imp.QQHelperDll.dll_public:_bool___thiscall_CMarkup::FindChildElem_char_const__]
movzx eax, al
test eax, eax
je 0x449a30
lea ecx, [ebp - 0xb4]
call edi
and dword [ebp + 8], 0
lea eax, [ebp - 0x1c]
push str.panelid
push eax
lea ecx, [ebp - 0xb4]
call dword [sym.imp.QQBaseClassInDll.dll_public:_class_CString___thiscall_CMarkup::GetAttrib_char_const__]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x10]
call esi
and dword [ebp - 0x18], 0
pop ecx
mov dword [ebp - 0x14], eax
lea ecx, [ebx + 0x54]
mov eax, dword [ecx + 4]
test eax, eax
je 0x449925
mov edx, dword [ecx + 8]
sub edx, eax
sar edx, 2
mov eax, edx
mov edx, dword [ebp - 0x18]
cmp edx, eax
jae 0x449925
mov eax, dword [ebx + 0x58]
mov eax, dword [eax + edx*4]
mov dx, word [ebp - 0x14]
mov dword [ebp + 8], eax
cmp word [eax], dx
je 0x449914
inc dword [ebp - 0x18]
jmp 0x4498e5
mov eax, dword [ebx + 0x58]
mov edx, dword [ebp - 0x18]
lea eax, [eax + edx*4]
push eax
call fcn.0044b0e4
jmp 0x449958
push 0x68
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x30], eax
test eax, eax
mov byte [ebp - 4], 5
je 0x449941
mov ecx, eax
call fcn.0044b02b
jmp 0x449943
xor eax, eax
mov cx, word [ebp - 0x14]
mov byte [ebp - 4], 2
mov dword [ebp + 8], eax
mov word [eax], cx
mov eax, dword [ebp + 8]
mov byte [eax + 0x14], 1
mov eax, dword [ebp + 8]
push str.grade
lea ecx, [ebp - 0xb4]
and dword [eax + 0x10], 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.QQBaseClassInDll.dll_public:_class_CString___thiscall_CMarkup::GetAttrib_char_const__]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x10]
call esi
mov ecx, dword [ebp + 8]
mov dword [esp], 0x513078
mov dword [ecx + 0xc], eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xb4]
call dword [sym.imp.QQBaseClassInDll.dll_public:_class_CString___thiscall_CMarkup::GetAttrib_char_const__]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x10]
call esi
cmp word [ebp - 0x14], 0x3f3
pop ecx
mov ecx, dword [ebp + 8]
mov word [ecx + 2], ax
je 0x4499f3
cmp word [ebp - 0x14], 0x3f4
je 0x4499f3
lea eax, [ebp + 8]
lea ecx, [ebp - 0x40]
push eax
call fcn.0045f130
jmp 0x449a0b
mov ecx, dword [ebp + 8]
test ecx, ecx
mov dword [ebp - 0x20], ecx
je 0x449a0b
call fcn.00448c99
push dword [ebp - 0x20]
call sub.MFC42.DLL_operatordelete
pop ecx
lea ecx, [ebp - 0xb4]
call dword [sym.imp.QQHelperDll.dll_public:_bool___thiscall_CMarkup::OutOfElem_void_]
push str.panel
lea ecx, [ebp - 0xb4]
call dword [sym.imp.QQHelperDll.dll_public:_bool___thiscall_CMarkup::FindChildElem_char_const__]
test al, al
jne 0x44989b
lea ecx, [ebp - 0xb4]
call dword [sym.imp.QQHelperDll.dll_public:_bool___thiscall_CMarkup::OutOfElem_void_]
push str.pushpanel
lea ecx, [ebp - 0xb4]
call dword [sym.imp.QQHelperDll.dll_public:_bool___thiscall_CMarkup::FindChildElem_char_const__]
movzx eax, al
test eax, eax
je 0x449e81
lea ecx, [ebp - 0xb4]
call edi
lea ecx, [ebp - 0xb4]
call dword [sym.imp.QQBaseClassInDll.dll_public:_void___thiscall_CMarkup::ResetChildPos_void_]
push str.panel
lea ecx, [ebp - 0xb4]
call dword [sym.imp.QQHelperDll.dll_public:_bool___thiscall_CMarkup::FindChildElem_char_const__]
movzx eax, al
test eax, eax
je 0x449e81
jmp 0x449a90
mov edi, dword [sym.imp.QQHelperDll.dll_public:_bool___thiscall_CMarkup::IntoElem_void_]
lea ecx, [ebp - 0xb4]
call edi
and dword [ebp + 8], 0
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x2c]
push str.panelid
push eax
lea ecx, [ebp - 0xb4]
call dword [sym.imp.QQBaseClassInDll.dll_public:_class_CString___thiscall_CMarkup::GetAttrib_char_const__]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x10]
call esi
pop ecx
mov dword [ebp - 0x14], eax
xor eax, eax
lea ecx, [ebx + 0x54]
mov edx, dword [ecx + 4]
test edx, edx
je 0x449b19
mov edi, dword [ecx + 8]
sub edi, edx
sar edi, 2
cmp eax, edi
jae 0x449b19
mov edx, dword [ebx + 0x58]
mov edx, dword [edx + eax*4]
mov dword [ebp + 8], edx
mov dx, word [edx]
cmp dx, word [ebp - 0x14]
je 0x449b04
inc eax
jmp 0x449adc
mov ebx, dword [ebx + 0x58]
mov dword [ebp - 0x1c], 1
lea eax, [ebx + eax*4]
push eax
call fcn.0044b0e4
jmp 0x449b4f
push 0x68
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0xb8], eax
test eax, eax
mov byte [ebp - 4], 9
je 0x449b38
mov ecx, eax
call fcn.0044b02b
jmp 0x449b3a
xor eax, eax
mov cx, word [ebp - 0x14]
mov byte [ebp - 4], 2
mov dword [ebp + 8], eax
mov word [eax], cx
mov eax, dword [ebp + 8]
mov byte [eax + 0x14], 1
mov eax, dword [ebp + 8]
push str.grade
lea ecx, [ebp - 0xb4]
mov dword [eax + 0x10], 1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.QQBaseClassInDll.dll_public:_class_CString___thiscall_CMarkup::GetAttrib_char_const__]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x10]
call esi
mov ecx, dword [ebp + 8]
mov dword [esp], 0x513078
mov dword [ecx + 0xc], eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0xb4]
call dword [sym.imp.QQBaseClassInDll.dll_public:_class_CString___thiscall_CMarkup::GetAttrib_char_const__]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x10]
call esi
mov ecx, dword [ebp + 8]
mov dword [esp], str.name
mov word [ecx + 2], ax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0xb4]
call dword [sym.imp.QQBaseClassInDll.dll_public:_class_CString___thiscall_CMarkup::GetAttrib_char_const__]
mov edi, dword [eax]
mov eax, dword [ebp + 8]
push edi
mov byte [ebp - 4], 0xc
lea ebx, [eax + 0x28]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push edi
mov ecx, ebx
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_char_const___unsigned_int_]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x44]
push str.tipsinfo
push eax
lea ecx, [ebp - 0xb4]
call dword [sym.imp.QQBaseClassInDll.dll_public:_class_CString___thiscall_CMarkup::GetAttrib_char_const__]
mov edi, dword [eax]
mov eax, dword [ebp + 8]
push edi
mov byte [ebp - 4], 0xd
lea ebx, [eax + 0x38]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push edi
mov ecx, ebx
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_char_const___unsigned_int_]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x58]
push 0x513054
push eax
lea ecx, [ebp - 0xb4]
call dword [sym.imp.QQBaseClassInDll.dll_public:_class_CString___thiscall_CMarkup::GetAttrib_char_const__]
mov edi, dword [eax]
mov eax, dword [ebp + 8]
push edi
mov byte [ebp - 4], 0xe
lea ebx, [eax + 0x18]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push edi
mov ecx, ebx
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_char_const___unsigned_int_]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x4c]
push str.domainid
push eax
lea ecx, [ebp - 0xb4]
call dword [sym.imp.QQBaseClassInDll.dll_public:_class_CString___thiscall_CMarkup::GetAttrib_char_const__]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x10]
call esi
mov ecx, dword [ebp + 8]
mov dword [esp], str.icon
mov word [ecx + 6], ax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0xb4]
call dword [sym.imp.QQBaseClassInDll.dll_public:_class_CString___thiscall_CMarkup::GetAttrib_char_const__]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
push ebx
lea edi, [eax + 0x48]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push ebx
mov ecx, edi
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_char_const___unsigned_int_]
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_3
push 0x2f
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x11
call sub.MFC42.DLL_CString::ReverseFind
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx - 8]
sub ecx, eax
lea eax, [ebp - 0x5c]
dec ecx
push ecx
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x12
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x11
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
add eax, 0x3c
push eax
lea eax, [ebp - 0x54]
push eax
call sub.MFC42.DLL_operator
mov edi, dword [eax]
mov eax, dword [ebp + 8]
push edi
mov byte [ebp - 4], 0x13
lea ebx, [eax + 0x58]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push edi
mov ecx, ebx
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_char_const___unsigned_int_]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x11
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x5c]
test eax, eax
jne 0x449d9f
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]
lea ecx, [ebp - 0x1f8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
lea eax, [ebp - 0x30]
push str.iconver
push eax
lea ecx, [ebp - 0xb4]
call dword [sym.imp.QQBaseClassInDll.dll_public:_class_CString___thiscall_CMarkup::GetAttrib_char_const__]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x14
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x11
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x10]
call esi
mov edi, eax
mov eax, dword [ebp + 8]
cmp ebx, 0xffffffff
pop ecx
je 0x449dfb
cmp dword [ebp - 0x1c], 0
je 0x449dfb
movzx ecx, word [eax + 8]
cmp ecx, edi
je 0x449e2b
mov ecx, dword [eax + 0x5c]
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 0x449e0a
mov ecx, edx
mov eax, dword [eax + 0x4c]
test eax, eax
jne 0x449e13
mov eax, edx
push dword [ebp - 0x14]
push 3
push ecx
push eax
mov eax, dword [ebp - 0x24]
lea ecx, [eax + 0x88]
call fcn.004646ce
mov eax, dword [ebp + 8]
cmp ebx, 0xffffffff
je 0x449e3a
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
mov word [eax + 8], di
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
call fcn.0045f130
lea ecx, [ebp - 0xb4]
call dword [sym.imp.QQHelperDll.dll_public:_bool___thiscall_CMarkup::OutOfElem_void_]
push str.panel
lea ecx, [ebp - 0xb4]
call dword [sym.imp.QQHelperDll.dll_public:_bool___thiscall_CMarkup::FindChildElem_char_const__]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
movzx edi, al
call sub.MFC42.DLL_CString::CString
mov ebx, dword [ebp - 0x24]
test edi, edi
jne 0x449a8a
lea esi, [ebx + 0x54]
push esi
call fcn.00466fcd
pop ecx
push dword [ebp - 0x38]
mov ecx, esi
push dword [ebp - 0x3c]
call fcn.0044b0be
push esi
call fcn.00466f4c
pop ecx
push 1
mov ecx, ebx
pop edi
push edi
call fcn.0044a4f8
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0043af11
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call dword [sym.imp.QQBaseClassInDll.dll_public_virtual:_void___thiscall_CMarkup::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4