Function at 0x4025b0
Capabilities:
Copy file
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x34]
sub esp, 0x34
push 0xffffffffffffffff
push 0x445f10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b4
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 8
lea eax, [ebp - 0x1c0]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp]
call fcn.0040c1f0
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0
call fcn.0040c1f0
mov byte [ebp - 4], 1
lea eax, [ebp]
cmp dword [ebp + 0x14], 0xf
cmova eax, dword [ebp]
push eax
lea eax, [ebp - 0x1c0]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
add esp, 8
test eax, eax
je 0x402651
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, 0x4486fa
call fcn.00405e90
push 0x4060a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
cmp dword [ebp + 0x14], 0xf
lea eax, [ebp]
push esi
push dword [ebp + 0x10]
cmova eax, dword [ebp]
mov ecx, 0x8891b4
push eax
call fcn.00405af0
cmp dword [ebp + 0x2c], 0xf
lea ecx, [ebp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp]
cmova ecx, dword [ebp + 0x18]
cmp dword [ebp + 0x14], 0xf
push 0
cmova eax, dword [ebp]
push ecx
push eax
call esi
cmp dword [ebp + 0x2c], 0xf
lea ecx, [ebp + 0x18]
push 0
cmova ecx, dword [ebp + 0x18]
lea eax, [ebp]
cmp dword [ebp + 0x14], 0xf
push ecx
cmova eax, dword [ebp]
push eax
call esi
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test eax, eax
je 0x4026d7
mov edx, str.Rename:
call fcn.00405e90
cmp dword [ebp + 0x2c], 0xf
lea edx, [ebp + 0x18]
push dword [ebp + 0x28]
cmova edx, dword [ebp + 0x18]
mov ecx, eax
call fcn.00406650
add esp, 4
jmp 0x4026f2
mov edx, str.Error_al_copiar_el_archivo:
call fcn.00405e90
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push 0x4060a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
cmp dword [ebp + 0x2c], 0xf
lea eax, [ebp + 0x18]
lea ecx, [ebp - 0xbc]
cmova eax, dword [ebp + 0x18]
sub esp, 8
push 0x28
push eax
call fcn.00405230
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xbc], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc0], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x6c], 0
pop esi
je 0x4027a5
push 2
push 0
push 0
lea ecx, [ebp - 0xbc]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::seekp_long_long___int64___int_]
push 0
push 1
lea eax, [ebp + 0x33]
mov byte [ebp + 0x33], 2
push eax
lea ecx, [ebp - 0xbc]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___long_long___int64__]
lea ecx, [ebp - 0xb8]
call fcn.00405920
test eax, eax
jne 0x40279e
push eax
mov eax, dword [ebp - 0xbc]
lea ecx, [ebp - 0xbc]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov edx, str.Byte_agregado_exitosamente
jmp 0x4027aa
mov edx, str.Error_al_abrir_el_archivo_copiado
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00405e90
push 0x4060a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea ecx, [ebp - 0xbc]
call fcn.00402860
mov ecx, dword [ebp + 0x2c]
cmp ecx, 0xf
jbe 0x4027fd
mov edx, dword [ebp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4027f3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402835
push ecx
push edx
call fcn.00444ed9
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0xf
mov byte [ebp + 0x18], 0
cmp ecx, 0xf
jbe 0x402845
mov edx, dword [ebp]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40283b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40283b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00444ed9
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
lea esp, [ebp + 0x34]
pop ebp
ret