Function at 0x40fc58
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489e64
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
mov dword [ebp - 0x22c], ecx
push 0x104
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x22c]
call fcn.0040ff47
lea edx, [ebp - 0x214]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 4
jle 0x40fe3c
mov eax, dword [ebp - 0x218]
movsx ecx, byte [ebp + eax - 0x215]
cmp ecx, 0x67
jne 0x40fe3c
mov edx, dword [ebp - 0x218]
movsx eax, byte [ebp + edx - 0x216]
cmp eax, 0x66
jne 0x40fe3c
mov ecx, dword [ebp - 0x218]
movsx edx, byte [ebp + ecx - 0x217]
cmp edx, 0x63
jne 0x40fe3c
lea ecx, [ebp - 0x21c]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x22c]
add eax, 4
push eax
lea ecx, [ebp - 0x220]
push ecx
call fcn.00483c27
add esp, 4
mov dword [ebp - 0x230], eax
mov edx, dword [ebp - 0x230]
mov dword [ebp - 0x234], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax]
push ecx
push str._s_sdown.cfg
lea edx, [ebp - 0x21c]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x220]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x21c]
call fcn.00402e50
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40fdbb
lea eax, [ebp - 0x214]
push eax
push 3
mov ecx, dword [ebp - 0x22c]
mov edx, dword [ecx + 0x24]
push edx
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call sub.MFC42.DLL_CString::CString
jmp 0x40ff37
lea ecx, [ebp - 0x21c]
call fcn.00402e50
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x40fe0f
lea eax, [ebp - 0x214]
push eax
push 3
mov ecx, dword [ebp - 0x22c]
mov edx, dword [ecx + 0x24]
push edx
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call sub.MFC42.DLL_CString::CString
jmp 0x40ff37
mov ecx, dword [ebp - 0x22c]
call fcn.0040f796
mov ecx, dword [ebp - 0x22c]
call fcn.0040f9b2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call sub.MFC42.DLL_CString::CString
jmp 0x40ff37
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp - 0x22c]
call fcn.0040ffaf
mov ecx, dword [ebp - 0x22c]
cmp dword [ecx + 0x28], 0
jne 0x40fe89
lea edx, [ebp - 0x214]
push edx
push 3
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax + 0x24]
push ecx
mov edx, dword [ebp - 0x22c]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40ff37
push ecx
mov ecx, esp
mov dword [ebp - 0x224], esp
lea edx, [ebp - 0x110]
push edx
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x228], esp
mov edx, dword [ebp + 8]
push edx
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax + 0x28]
mov edx, dword [ebp - 0x22c]
mov eax, dword [edx + 0x28]
mov edx, dword [eax]
mov dword [ebp - 4], 0xffffffff
call dword [edx + 0x14]
lea eax, [ebp - 0x214]
push eax
push 4
mov ecx, dword [ebp - 0x22c]
mov edx, dword [ecx + 0x24]
push edx
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp - 0x22c]
call fcn.00410051
mov ecx, dword [ebp - 0x22c]
call fcn.0040f9b2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4