Function at 0x413024
Capabilities:
Copy file

Disassembly:
push ebp
sub esp, 0x104
lea ebp, [esp - 4]
mov eax, dword [0x49ce98]
xor eax, ebp
mov dword [ebp + 0x104], eax
push 0x28
mov eax, 0x46a5dd
call fcn.00467d19
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.0040e7d4
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 0x4130ac
push 0x4772bc
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.0040e7d4
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 0x4130f6
push 0x4772bc
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.0044561f
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 4]
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x4131ee
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.0040e7bb
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.004034a8
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.0044561f
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 0x413117
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.00467d0a
add ebp, 0x108
leave
ret