Function at 0x415640
Capabilities:
Check if file exists
Move file

Disassembly:
push 0xffffffffffffffff
push 0x57f16e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0xa24]
test eax, eax
push edi
mov dword [esp + 0x28], esi
je 0x4158b6
lea ebx, [eax + 0x5c]
test ebx, ebx
je 0x4158b6
mov al, byte [ebx + 0x6f4]
test al, al
je 0x4158b6
mov ecx, 0x5fda18
call fcn.004bec20
mov edx, dword [eax]
push 1
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call dword [edx + 0xb8]
mov edx, dword [esi + 0xa24]
add edx, 0x728
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_5]
push 0x597664
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::TrimRight]
mov eax, dword [esp + 0x34]
mov ebp, dword [eax]
cmp ebp, eax
je 0x415896
lea eax, [ebp + 8]
push eax
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_5]
push 0x596834
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_6]
push 0x596834
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_6]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x1c]
push 0x598a9c
push eax
mov byte [esp + 0x54], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
add esp, 0x10
xor esi, esi
nop
mov ecx, dword [ebx + 0x6cc]
inc esi
push esi
push ecx
lea edx, [esp + 0x18]
push str._sM4V0_04d.MP4
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
add esp, 0x10
cmp esi, 0x2710
jge 0x415866
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x415740
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ecx, 0x5fda18
call fcn.004bec20
mov ecx, eax
call fcn.004d74d0
mov edi, eax
jmp 0x41585e
mov esi, dword [edi + 0x24]
test esi, esi
je 0x41585b
push 0x596834
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_6]
mov eax, dword [esi]
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
mov byte [esp + 0x48], 5
call dword [eax + 0x38]
push 0x596834
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_6]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x24]
push str._s_s.mp4
push ecx
mov byte [esp + 0x54], 6
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
add esp, 0x10
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CompareNoCase]
test eax, eax
jne 0x415842
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_5]
mov ecx, dword [esp + 0x2c]
push esi
call fcn.004146c0
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4157b1
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov ebp, dword [ebp]
cmp ebp, dword [esp + 0x34]
jne 0x4156e5
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x30]
call fcn.00409b70
mov eax, dword [esp + 0x34]
push eax
call sub.MFC71.DLL_operator_delete_1
add esp, 4
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret