Function at 0x4081f0
Capabilities:
Delete file
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43494c
push eax
mov al, byte [0x445e04]
mov dword fs:[0], esp
sub esp, 0x5c4
test al, 1
jne 0x408236
mov dl, al
mov ecx, 0x445e00
or dl, 1
mov byte [0x445e04], dl
call sub.MFC42.DLL_CString::CString_4
push 0x4084c0
call fcn.004327c8
add esp, 4
mov eax, dword [0x445e10]
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
jne 0x4082dc
push str.C:QLiveQQLiveQ.exe.txt
mov ecx, 0x445e00
call fcn.0043242a
mov al, byte [esp + 0x13]
mov edx, dword [0x445e00]
mov byte [esp + 0x14], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x1c]
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, [esp + 0x14]
mov dword [esp + 0x5dc], ebx
push ecx
call fcn.004081c0
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [0x445e0c], eax
mov dword [0x445e10], 1
cmp ecx, ebx
mov dword [esp + 0x5dc], 0xffffffff
je 0x4082dc
mov al, byte [ecx - 1]
cmp al, bl
je 0x4082d2
cmp al, 0xff
je 0x4082d2
dec al
mov byte [ecx - 1], al
jmp 0x4082dc
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x1d1]
mov byte [esp + 0x1d0], bl
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [esp + 0x5e4]
lea edx, [esp + 0x5e8]
push edx
push eax
lea ecx, [esp + 0x1d8]
push 0x400
push ecx
call dword [sym.imp.MSVCRT.dll__vsnprintf]
mov ecx, dword [0x445e0c]
add esp, 0x10
cmp ecx, ebx
je 0x4084a1
cmp eax, ebx
jle 0x4084a1
mov edx, dword [0x445e00]
push 0x443074
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x408468
mov al, byte [0x442fcc]
mov edi, dword [sym.imp.MSVCRT.dll_fprintf]
cmp al, bl
je 0x40836f
push str._n_n_n_n_n
push esi
mov byte [0x442fcc], bl
call edi
add esp, 8
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0x22]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1e]
and ecx, 0xffff
push ecx
mov ecx, dword [esp + 0x20]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x22]
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x22]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push ecx
mov ecx, dword [esp + 0x24]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
lea edx, [esp + 0x16c]
push str._04d__02d__02d__02d:_02d:_02d__03d
push edx
call ebp
add esp, 0x24
lea eax, [esp + 0x150]
push eax
push esi
call edi
add esp, 8
lea ecx, [esp + 0x1d0]
push ecx
push esi
call edi
add esp, 8
lea edx, [esp + 0x28]
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x2c]
mov dword [esp + 0x28], ebx
push edx
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.MSVCRT.dll__fileno]
add esp, 4
push eax
call dword [sym.imp.MSVCRT.dll__fstat]
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0xc
cmp edi, ebx
jne 0x4084a1
cmp dword [esp + 0x3c], 0xa00000
jle 0x4084a1
mov eax, dword [0x445e00]
lea ecx, [esp + 0x4c]
push eax
push str._s.bak
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [0x445e00]
lea eax, [esp + 0x4c]
push eax
push ecx
jmp 0x408498
mov edx, dword [0x445e00]
lea eax, [esp + 0x4c]
push edx
push str._s.old
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x445e00]
lea edx, [esp + 0x4c]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 8
mov ecx, dword [esp + 0x5d4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5d0
ret