Function at 0x461590
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push str._n________________Inside_RotateSpecificLogs_Method_______________n
call fcn.00423db0
xor ebx, ebx
add esp, 4
cmp dword [ebp + 8], ebx
jne 0x46161d
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], ebx
call fcn.0045bb50
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4615d7
push esi
push str.RotateSpecificLogs_:_Unable_to_get_the_agent_installed_directory__d__n
call fcn.0048f0ab
add esp, 8
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 8]
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4615e0
sub eax, edx
lea ecx, [eax*4 + 0x3c]
push ecx
push 1
call fcn.00491e51
push esi
push str._slogs_
push eax
mov dword [ebp + 8], eax
call fcn.00492848
mov eax, dword [ebp - 8]
add esp, 0x14
cmp eax, ebx
je 0x46161d
push eax
call fcn.0048efd8
add esp, 4
mov dword [ebp - 8], ebx
mov edx, dword [ebp + 0xc]
push edi
push 0x4d36ec
push edx
call fcn.00496915
mov edi, eax
add esp, 8
mov dword [ebp - 4], edi
cmp edi, ebx
je 0x461a39
jmp 0x461643
mov edi, dword [ebp - 4]
push edi
push str.RotateSpecificLogs_:_Log_File_Name_:__s_n
call fcn.00423db0
mov eax, dword [ebp + 8]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x461657
sub eax, edx
mov ecx, eax
mov eax, edi
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x461667
sub eax, esi
add eax, ecx
lea eax, [eax*4 + 0x2c]
push eax
push 1
call fcn.00491e51
mov ecx, dword [ebp + 8]
push edi
push ecx
mov ebx, eax
push 0x4d14c0
push ebx
call fcn.00492848
xor eax, eax
add esp, 0x18
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x18], eax
jne 0x461754
push eax
push 0x80
push 3
push eax
push eax
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xffffffff
je 0x461795
cmp eax, 2
je 0x461795
lea edx, [ebp - 0x18]
push edx
push ebx
call fcn.0045d890
add esp, 8
test eax, eax
jne 0x461737
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.RotateSpecificLogs_:_The__s_File_size_detection_is_failed_and_the_error_code_is__d__n
call fcn.00423db0
add esp, 0xc
xor eax, eax
push ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x461720
push ebx
push str.RotateSpecificLogs_:_The_file__s_was_successfully_deleted..:_n
call fcn.00423db0
add esp, 8
jmp 0x46174d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.RotateSpecificLogs_:_Unable_to_delete_the_file__s_and_the_error_code_is__:_d_n
call fcn.00423db0
add esp, 0xc
jmp 0x46174d
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push eax
push ecx
push ebx
push str.RotateSpecificLogs_:_Sucessfully_got_the__s_File_size___lld__n
call fcn.00423db0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x14], eax
jg 0x46176f
jl 0x461765
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0x14]
ja 0x46176f
cmp dword [ebp + 0x18], 1
jne 0x461a12
mov eax, dword [ebp + 0x1c]
push eax
push edi
call fcn.00442940
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.004611e0
mov esi, eax
push esi
push str.RotateSpecificLogs_:_The_return_Value_from_FindNumberOfRepeatedFileNames_method_is_:__d__n
call fcn.00423db0
add esp, 0x18
jmp 0x4617b3
push ebx
push eax
push str.RotateSpecificLogs_:_hFile_is_NULL_or_not_AVAILABLE__Errorcode_:__d__for_the_file_name__s_.__n
call fcn.00423ad0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x461a1f
mov edi, dword [ebp - 4]
mov edx, dword [ebp + 0x1c]
push edx
lea eax, [esi - 1]
push eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push edi
push eax
call fcn.004613f0
mov edi, eax
push edi
push str.RotateSpecificLogs_:_The_tempFileName1_:__s_.__n
mov dword [ebp - 0xc], edi
call fcn.00423db0
add esp, 0x18
cmp esi, dword [ebp + 0x10]
jl 0x46183f
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4617fb
push edi
push str.RotateSpecificLogs_:_The_file__s_was_successfully_deleted..:_n
call fcn.00423db0
add esp, 8
jmp 0x461810
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.RotateSpecificLogs_:_Unable_to_delete_the_file__s_and_the_error_code_is_:_d_n
call fcn.00423db0
add esp, 0xc
mov esi, dword [ebp + 0x10]
dec esi
test edi, edi
je 0x461821
push edi
call fcn.0048efd8
add esp, 4
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 4]
push ecx
lea eax, [esi - 1]
push eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push edx
push eax
call fcn.004613f0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
push ecx
push esi
push edx
push eax
call fcn.004613f0
mov edi, eax
push edi
push str.RotateSpecificLogs_:_The_tempFileName2_:__s_.__n
call fcn.00423db0
add esp, 0x18
cmp esi, 1
jne 0x461981
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x4618d8
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x461899
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push ebx
push str.RotateSpecificLogs_:_CopyFile_failed_to_move_from__s_to___s_and_the_error_code_is__d__n
call fcn.00423db0
add esp, 0x10
jmp 0x4619e9
push edi
push ebx
push str.RotateSpecificLogs_:_File_successfully_copied_from__s_to___s_.__n
call fcn.00423db0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4618c6
push ebx
push str.RotateSpecificLogs_:_The_file__s_was_successfully_deleted..:_n
call fcn.00423db0
add esp, 8
jmp 0x4619e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.RotateSpecificLogs_:_Unable_to_delete_the_file__s_and_the_error_code_is__:_d_n
jmp 0x4619e1
cmp eax, 1
jne 0x461981
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x46190a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push ebx
push str.RotateSpecificLogs_:_CopyFile_failed_to_move_from__S_to___s_and_the_error_code_is__d__n
call fcn.00423db0
add esp, 0x10
jmp 0x4619e9
push edi
push ebx
push str.RotateSpecificLogs_:_File_successfully_copied_from__S_to___s_so_we_are_going_to_truncate_the_content_of_the_first_one__n
call fcn.00423db0
mov ecx, dword [0x5172fc]
push ecx
call fcn.004347e0
add esp, 0x10
push 0
push 0
push 5
push 0
push 7
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x461969
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.RotateSpecificLogs_:_Truncate_Existing_backup_File_failed_file_Name___S_errorcode____d_n
call fcn.0048f0ab
mov edx, dword [0x5172fc]
add esp, 0xc
push edx
call fcn.00434820
add esp, 4
jmp 0x4619e9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x5172fc]
push edx
call fcn.00434820
add esp, 4
jmp 0x4619e9
mov esi, dword [ebp - 0xc]
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4619aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push str.RotateSpecificLogs_:_CopyFile_failed_to_move_from__s_to___s_and_the_error_code_is__d__n
call fcn.00423db0
add esp, 0x10
jmp 0x4619e9
push edi
push esi
push str.RotateSpecificLogs_:_File_copied_from__s_to___s_.__n
call fcn.00423db0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4619d4
push esi
push str.RotateSpecificLogs_:_The_file__s_was_successfully_deleted..:_n
call fcn.00423db0
add esp, 8
jmp 0x4619e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.RotateSpecificLogs_:_Unable_to_delete_the_file__s_and_the_error_code_is_:_d_n
call fcn.00423db0
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x4619fc
push eax
call fcn.0048efd8
add esp, 4
test edi, edi
je 0x461a09
push edi
call fcn.0048efd8
add esp, 4
cmp esi, 1
jge 0x4617b0
test ebx, ebx
je 0x461a1f
push ebx
call fcn.0048efd8
add esp, 4
push 0x4d36ec
push 0
call fcn.00496915
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x461640
push 0
push str._n_________________End_of_RotateSpecificLogs_Method_with_error_code__d_______________n
call fcn.00423db0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret