Function at 0x495485
Capabilities:
Delete file

Disassembly:
mov eax, 0x4e9710
call fcn.00471450
sub esp, 0x18
push ebx
push esi
push edi
call sub.MFC42.DLL_AfxGetAppModuleState
mov eax, dword [eax + 4]
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov edi, dword [eax + 0xd4]
je 0x49565d
cmp edi, ebx
je 0x49565d
mov esi, 0x4f423c
lea ecx, [ebp - 0x14]
push esi
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x20]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.BasicCtrlDll.dll_class_CString___cdecl_GetExeFolder_void_]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
mov dword [esp], str.Gad.dat
call fcn.004897b6
push eax
mov eax, dword [ebp - 0x24]
push dword [eax]
lea eax, [ebp - 0x14]
push str._s_u_s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_1
push dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push 0x551a9c
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push dword [ebp - 0x1c]
push 0x54fd60
push 0x81
call dword [sym.imp.QQHelperDll.dll_void___cdecl_QQTRACE_unsigned_long_int__char_const__]
add esp, 0xc
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], ebx
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push ecx
push 0x4f5078
push edi
mov byte [ebp - 4], 4
call dword [eax + 0x1c]
test eax, eax
jne 0x495624
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x49557b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x10]
push edx
push 1
mov ecx, dword [eax]
push str.groupad_stream
push dword [ebp - 0x14]
push eax
call dword [ecx + 0x28]
test eax, eax
jne 0x495624
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x20]
mov ecx, dword [eax]
push edx
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
call dword [ecx + 0x74]
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
lea edx, [ebp + 8]
push edx
mov dword [ebp + 8], ebx
push dword [ebp - 0x24]
mov ecx, dword [eax]
push dword [ebp - 0x20]
push eax
call dword [ecx + 0x10]
push dword [ebp - 0x24]
mov esi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
cmp esi, ebx
sete al
mov esi, eax
mov eax, dword [ebp - 0x18]
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x4955f8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x495609
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x49565f
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x495635
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x495646
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret