Function at 0x422000
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b64a
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x44c264]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1c]
cmp eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
jne 0x4221e9
mov edx, dword [0x44cc60]
mov eax, dword [edx + 0xc]
mov ecx, 0x44cc60
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x30], edi
push ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call fcn.00401e80
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx - 0xc]
test eax, eax
mov byte [ebp - 4], 1
mov ebx, 2
je 0x422117
lea ecx, [ebp - 0x40]
call dword [sym.imp.QQMusicCommon.dll_public:_void___thiscall_QM::CFile::constructor_void_]
mov edx, dword [ebp - 0x38]
push 0
push 1
push edx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call dword [sym.imp.QQMusicCommon.dll_public:_bool___thiscall_QM::CFile::Open_wchar_t_const___bool__bool_]
test al, al
je 0x42210a
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call dword [sym.imp.QQMusicCommon.dll_public:_bool___thiscall_QM::CFile::Read_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____]
lea ecx, [ebp - 0x40]
call dword [sym.imp.QQMusicCommon.dll_public:_void___thiscall_QM::CFile::Close_void_]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
test eax, eax
jbe 0x4220f4
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.QQMusicCommon.dll_class_ATL::CStringT_wchar_t__class_ATL::StrTraitATL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_QM::a2t_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____]
add esp, 8
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.00401820
lea ecx, [ebp - 0x44]
call fcn.00412f60
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call dword [sym.imp.QQMusicCommon.dll_public:_void___thiscall_QM::CFile::destructor_void_]
mov eax, dword [ebp + 0x10]
cmp eax, 7
ja case.0x42211f.2
jmp dword [eax*4 + 0x422208]
cmp dword [edi - 0xc], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
je 0x422148
lea edx, [ebp - 0x30]
push edx
call fcn.00401520
mov eax, dword [esi]
mov edx, dword [eax + 4]
push 0
mov ecx, esi
call edx
jmp 0x4221a3
lea eax, [ebp - 0x30]
push eax
call fcn.00401520
jmp 0x422198
push ecx
lea edx, [ebp - 0x30]
mov ecx, esp
mov dword [ebp - 0x34], esp
push edx
call fcn.00401520
mov eax, dword [esi]
mov edx, dword [eax + 4]
push ebx
mov ecx, esi
call edx
jmp 0x4221a3
push ecx
lea eax, [ebp - 0x30]
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
call fcn.00401520
push 3
jmp 0x42219a
push ecx
lea eax, [edi - 0x10]
mov dword [ebp - 0x34], esp
mov ebx, esp
push eax
call fcn.00401330
add esp, 4
add eax, 0x10
mov dword [ebx], eax
push 1
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4221c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4221e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042798a
mov esp, ebp
pop ebp
ret 0x10