Function at 0x412fa5
Capabilities:
Copy file

Disassembly:
push ebp
sub esp, 0x104
lea ebp, [esp - 4]
mov eax, dword [0x49ce78]
xor eax, ebp
mov dword [ebp + 0x104], eax
push 0x28
mov eax, 0x46a3fc
call fcn.00467be3
mov eax, dword [ebp + 0x118]
mov edi, dword [ebp + 0x110]
mov ebx, dword [ebp + 0x114]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.0040e7af
pop ecx
pop ecx
push dword [eax + 4]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov esi, dword [sym.imp.RTFC.dll_public_virtual:_void___thiscall_CStringLite::destructor_void_]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call esi
push edi
call sub.MSVCR90.dll_strlen
pop ecx
test eax, eax
je 0x41302d
push 0x4772ac
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_945]
push edi
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_945]
xor edi, edi
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.0040e7af
pop ecx
pop ecx
push dword [eax + 4]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc90.dll_Ordinal_310]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call esi
push ebx
call sub.MSVCR90.dll_strlen
pop ecx
test eax, eax
je 0x413077
push 0x4772ac
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_945]
push ebx
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_945]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call fcn.00445344
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 4]
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x41316f
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.0040e796
push eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_300]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call sub.MSVCR90.dll_strlen
pop ecx
lea ecx, [ebp - 0x1c]
mov ebx, eax
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call sub.MSVCR90.dll_strlen
pop ecx
sub ebx, eax
push ebx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_5997]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 7
call fcn.004034a5
add esp, 0xc
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 9
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
lea eax, [ebp]
push 0x104
push eax
call dword [sym.imp.MSVCR90.dll_strcpy_s]
add esp, 0xc
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp]
push eax
call fcn.00445344
pop ecx
push edi
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call dword [sym.imp.mfc90.dll_Ordinal_601]
cmp dword [ebp - 0x14], edi
jne 0x413098
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.00467bd4
add ebp, 0x108
leave
ret