Function at 0x403223
Capabilities:
Copy file

Disassembly:
mov eax, 0x41b147
call fcn.00418d60
sub esp, 0x330
mov eax, dword [0x428480]
push ebx
push esi
xor eax, ebp
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov esi, 0x41ead8
push esi
push eax
mov dword [ebp - 0x298], eax
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 0x294], edi
call fcn.00401149
xor ebx, ebx
mov dword [ebp - 4], ebx
push esi
lea eax, [ebp - 0x26c]
push edi
push eax
call fcn.00401149
add esp, 0x18
mov byte [ebp - 4], 1
push ebx
lea ecx, [ebp - 0x26c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push eax
call esi
push 0x41ead4
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.MSVCR71.dll__wfopen]
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x28c], eax
jne 0x4032ce
push 0x6e
pop esi
jmp 0x403418
mov edi, dword [sym.imp.MSVCR71.dll_fgetws]
mov dword [ebp - 0x290], ebx
push eax
mov ebx, 0x104
jmp 0x4033f0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2b4]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [ebp - 4], 2
push 1
push 3
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x33c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___int_]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2b4]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x33c]
push eax
call dword [sym.imp.MSVCP71.dll_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t______cdecl_std::operator___wchar_t__struct_std::char_traits_wchar_t___class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t_____wchar_t__]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 0xc
test eax, eax
je 0x4033da
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x298]
lea eax, [ebp - 0x288]
push eax
call fcn.00401149
mov byte [ebp - 4], 5
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x294]
lea eax, [ebp - 0x250]
push eax
call fcn.00401149
add esp, 0x18
mov byte [ebp - 4], 6
push 0
lea ecx, [ebp - 0x250]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [ebp - 0x288]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call esi
test eax, eax
jne 0x4033ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x290], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x250]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x288]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x33c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::vbase_dtor_void_]
push dword [ebp - 0x28c]
lea eax, [ebp - 0x218]
push ebx
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x4032e5
push dword [ebp - 0x28c]
call dword [sym.imp.MSVCR71.dll_fclose]
mov esi, dword [ebp - 0x290]
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x26c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418e11
leave
ret