Function at 0x4037e9
Capabilities:
Copy file

Disassembly:
mov eax, 0x41760a
call fcn.00415130
sub esp, 0x324
mov eax, dword [0x4233f0]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, ebp
mov esi, 0x41a828
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x234]
push edi
push eax
call fcn.00401149
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 0x250]
push ebx
push eax
call fcn.00401149
add esp, 0x18
mov byte [ebp - 4], 1
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 - 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 0x41a824
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]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x28c], eax
je 0x4039a1
push eax
jmp 0x403977
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2a8]
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 - 0x2a8]
push eax
lea ecx, [ebp - 0x330]
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 - 0x2a8]
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 - 0x330]
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 0x403961
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x288]
push edi
push eax
call fcn.00401149
mov byte [ebp - 4], 5
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x26c]
push ebx
push eax
call fcn.00401149
add esp, 0x18
mov byte [ebp - 4], 6
push 0
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 - 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
mov byte [ebp - 4], 5
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_]
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 - 0x330]
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 0x104
push eax
call dword [sym.imp.MSVCR71.dll_fgetws]
add esp, 0xc
test eax, eax
jne 0x40388a
push dword [ebp - 0x28c]
call dword [sym.imp.MSVCR71.dll_fclose]
pop ecx
mov byte [ebp - 4], 0
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_]
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]
pop esi
xor ecx, ebp
pop ebx
call fcn.004151e1
leave
ret 8