Function at 0x40a440
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x4a3039
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push str.codecwmv
lea eax, [esp + 0x10]
push 0x4cbdc0
push eax
mov dword [esp + 0x44], 1
call fcn.004010a0
lea ecx, [esp + 0x50]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x50], 2
call fcn.00409750
add esp, 0x18
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x18]
call fcn.004a117a
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x18]
mov bl, 5
push edx
mov byte [esp + 0x44], bl
call fcn.00409750
add esp, 0xc
push 0
mov ecx, eax
mov byte [esp + 0x3c], 6
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x20]
call sub.MFC71.DLL_CFileFind::FindFile
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x38], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x40a567
test esi, esi
je 0x40a56f
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x54]
push edx
call fcn.00409750
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
mov byte [esp + 0x3c], 7
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call fcn.0049ace0
add esp, 8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x38], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call fcn.0049ace0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp al, cl
jb 0x40a567
jne 0x40a56f
cmp ah, ch
jb 0x40a56f
jmp 0x40a631
test esi, esi
jne 0x40a631
push edi
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00409750
push str..bak
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x54], 8
call fcn.004010a0
mov esi, eax
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x70]
push eax
mov byte [esp + 0x60], 9
call fcn.00409750
add esp, 0x24
push 0
mov ecx, esi
mov edi, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push eax
call esi
lea ecx, [esp + 0x50]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x58]
push eax
call fcn.00409750
add esp, 0xc
push 0
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call esi
lea ecx, [esp + 0x50]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
pop edi
mov eax, dword [esp + 0x48]
test eax, eax
pop esi
pop ebx
je 0x40a674
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00409750
add esp, 0xc
push 1
mov ecx, eax
mov byte [esp + 0x34], 0xa
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call fcn.0049b770
add esp, 8
lea ecx, [esp + 0x44]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 4
call sub.MFC71.DLL_CFileFind::CFileFind
lea ecx, [esp]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x3c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x28]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x34
ret 0x10