Function at 0x140043aa0
Capabilities:
Move file

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x288
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0x5a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2a8]
mov rax, qword [0x14009f088]
xor rax, rbp
mov qword [rbp + 0x218], rax
lea rcx, [0x1401a4cd2]
call fcn.14006b9e0
cmp qword [rbp + 0x240], 0
je 0x140043b08
mov rax, qword [rbp + 0x240]
cmp qword [rax + 0x210], 0
jne 0x140043b0f
xor eax, eax
jmp 0x140044094
mov rax, qword [rbp + 0x240]
mov rax, qword [rax + 0x268]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x240]
mov rax, qword [rax + 8]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x240]
mov rcx, qword [rax + 0x210]
call qword [sym.imp.ucrtbased.dll_fflush]
mov edx, 0x2f
mov rcx, qword [rbp + 0x28]
call sub.VCRUNTIME140D.dll_strchr
test rax, rax
je 0x140043b82
mov edx, 0x2f
mov rcx, qword [rbp + 0x28]
call sub.VCRUNTIME140D.dll_strchr
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
movsx eax, byte [rax]
cmp eax, 0x2f
jne 0x140043b80
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
jmp 0x140043b44
mov edx, 0x5c
mov rcx, qword [rbp + 0x28]
call sub.VCRUNTIME140D.dll_strchr
test rax, rax
je 0x140043bc0
mov edx, 0x5c
mov rcx, qword [rbp + 0x28]
call sub.VCRUNTIME140D.dll_strchr
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
movsx eax, byte [rax]
cmp eax, 0x5c
jne 0x140043bbe
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
jmp 0x140043b82
mov rcx, qword [rbp + 8]
call sub.ucrtbased.dll_strlen
mov qword [rbp + 0x1f8], rax
lea rcx, [0x140078c04]
call sub.ucrtbased.dll_strlen
mov rcx, qword [rbp + 0x1f8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x200], rax
mov rcx, qword [rbp + 0x28]
call sub.ucrtbased.dll_strlen
mov rcx, qword [rbp + 0x200]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x208], rax
lea rcx, str.1308201101_
call sub.ucrtbased.dll_strlen
mov rcx, qword [rbp + 0x208]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x210], rax
mov rcx, qword [rbp + 0x28]
call sub.ucrtbased.dll_strlen
mov rcx, qword [rbp + 0x210]
lea rax, [rcx + rax + 2]
mov qword [rbp + 0x68], rax
mov rcx, qword [rbp + 0x68]
call fcn.14006b410
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x240]
mov eax, dword [rax + 0x270]
shr eax, 1
and eax, 1
test eax, eax
je 0x140043c8d
mov rax, qword [rbp + 0x240]
add rax, 0x240
mov rdx, rax
lea rcx, [rbp + 0x88]
call fcn.140042680
mov dword [rbp + 0xc4], eax
jmp 0x140043caf
mov rax, qword [rbp + 0x240]
add rax, 0x240
mov rdx, rax
lea rcx, [rbp + 0x88]
call fcn.1400428c0
mov dword [rbp + 0xc4], eax
cmp dword [rbp + 0xc4], 0
je 0x140043ce2
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ucrtbased.dll_free]
lea rcx, str.gmtime__:_file_rotation_ended
call qword [sym.imp.ucrtbased.dll_perror]
mov rax, qword [rbp + 0x240]
mov rax, qword [rax + 0x210]
jmp 0x140044094
mov dword [rbp + 0xc4], 0
mov rax, qword [rbp + 0x240]
cmp qword [rax + 0x250], 0
je 0x140043e09
mov qword [rbp + 0xe8], 0
mov qword [rbp + 0x108], 0
mov edx, 0x2e
mov rcx, qword [rbp + 0x28]
call sub.VCRUNTIME140D.dll_strrchr
test rax, rax
je 0x140043d65
mov edx, 0x2e
mov rcx, qword [rbp + 0x28]
call sub.VCRUNTIME140D.dll_strrchr
sub rax, qword [rbp + 0x28]
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov rcx, rax
call sub.ucrtbased.dll_strlen
mov qword [rbp + 0x108], rax
jmp 0x140043d80
mov rcx, qword [rbp + 0x28]
call sub.ucrtbased.dll_strlen
mov qword [rbp + 0xe8], rax
mov qword [rbp + 0x108], 0
mov rax, qword [rbp + 0x240]
mov eax, dword [rax + 0x260]
mov dword [rbp + 0x1f4], eax
mov rax, qword [rbp + 0x240]
mov eax, dword [rax + 0x260]
inc eax
mov rcx, qword [rbp + 0x240]
mov dword [rcx + 0x260], eax
mov rax, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov eax, dword [rbp + 0x108]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp + 0x1f4]
mov dword [rsp + 0x30], eax
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x28], rax
mov eax, dword [rbp + 0xe8]
mov dword [rsp + 0x20], eax
mov r9, qword [rbp + 8]
lea r8, str._s__.s__05u_.s
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x48]
call fcn.140003740
jmp 0x140043ee3
mov eax, dword [rbp + 0x98]
inc eax
mov dword [rbp + 0x1f4], eax
mov eax, dword [rbp + 0x9c]
cdq
mov ecx, 0x64
idiv ecx
mov eax, edx
mov rcx, qword [rbp + 0x28]
mov qword [rsp + 0x50], rcx
mov ecx, dword [rbp + 0x88]
mov dword [rsp + 0x48], ecx
mov ecx, dword [rbp + 0x8c]
mov dword [rsp + 0x40], ecx
mov ecx, dword [rbp + 0x90]
mov dword [rsp + 0x38], ecx
mov ecx, dword [rbp + 0x94]
mov dword [rsp + 0x30], ecx
mov ecx, dword [rbp + 0x1f4]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
mov r9, qword [rbp + 8]
lea r8, str._s__02u_02u_02u__02u_02u_02u__s
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x48]
call fcn.140003740
xor edx, edx
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ucrtbased.dll__access]
test eax, eax
jne 0x140043ee3
mov eax, dword [rbp + 0x88]
inc eax
mov dword [rbp + 0x88], eax
mov eax, dword [rbp + 0xc4]
mov dword [rbp + 0x1f4], eax
mov eax, dword [rbp + 0xc4]
inc eax
mov dword [rbp + 0xc4], eax
cmp dword [rbp + 0x1f4], 0
jne 0x140043ecb
mov dword [rbp + 0x1f8], 1
jmp 0x140043ed5
mov dword [rbp + 0x1f8], 0
cmp dword [rbp + 0x1f8], 0
je 0x140043ee3
jmp 0x140043cec
mov rax, qword [rbp + 0x240]
mov rax, qword [rax + 8]
mov qword [rbp + 0x28], rax
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_rename]
mov dword [rbp + 0xc4], eax
cmp dword [rbp + 0xc4], 0
je 0x140043f4f
mov r9, qword [rbp + 0x48]
mov r8, qword [rbp + 0x28]
lea rdx, str.rename___s_____s__:_failed_n
xor ecx, ecx
call fcn.14002f7e0
lea rcx, str.rename__
call qword [sym.imp.ucrtbased.dll_perror]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ucrtbased.dll_free]
mov rax, qword [rbp + 0x240]
mov rax, qword [rax + 0x210]
jmp 0x140044094
mov rax, qword [rbp + 0x240]
mov qword [rax + 0x258], 0
mov rax, qword [rbp + 0x240]
cmp dword [rax + 0x248], 0
je 0x140043fa9
xor ecx, ecx
call fcn.140044ee0
mov rcx, qword [rbp + 0x240]
mov r8d, dword [rcx + 0x24c]
mov rcx, qword [rbp + 0x240]
mov edx, dword [rcx + 0x248]
mov rcx, rax
call fcn.1400429b0
mov rcx, qword [rbp + 0x240]
mov qword [rcx + 0x238], rax
mov r8, qword [rbp + 0x48]
lea rdx, str.rotated:__s_n
mov ecx, 1
call fcn.14002f7e0
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ucrtbased.dll_free]
cmp dword [rbp + 0x248], 0
je 0x140043fe8
mov rax, qword [rbp + 0x240]
mov qword [rax + 0x210], 0
jmp 0x140044086
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x240]
call fcn.140042c40
mov qword [rbp + 0x128], rax
cmp qword [rbp + 0x128], 0
jne 0x14004402d
call qword [sym.imp.ucrtbased.dll__errno]
mov ecx, dword [rax]
call fcn.140061a80
mov r9, rax
mov r8, qword [rbp + 0x28]
lea rdx, str.rotate:__s:_failed:__s_n
xor ecx, ecx
call fcn.14002f7e0
jmp 0x140044086
mov rax, qword [rbp + 0x240]
mov rdx, qword [rax + 0x210]
mov rcx, qword [rbp + 0x240]
call fcn.1400424d0
mov rax, qword [rbp + 0x240]
mov rcx, qword [rbp + 0x128]
mov qword [rax + 0x210], rcx
xor ecx, ecx
call fcn.140044ee0
mov rcx, qword [rbp + 0x240]
mov qword [rcx + 0x240], rax
mov r8, qword [rbp + 0x28]
lea rdx, str.rotate:_started_new_file:__s_n
mov ecx, 1
call fcn.14002f7e0
mov rax, qword [rbp + 0x240]
mov rax, qword [rax + 0x210]
mov rdi, rax
lea rcx, [rbp - 0x60]
lea rdx, [0x14008a970]
call fcn.14006b950
mov rax, rdi
mov rcx, qword [rbp + 0x218]
xor rcx, rbp
call fcn.14006bb70
lea rsp, [rbp + 0x228]
pop rdi
pop rbp
ret