Function at 0x1400411b0
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 [0x14009ad80]
xor rax, rbp
mov qword [rbp + 0x218], rax
lea rcx, [0x1401a0c96]
call fcn.140068b20
cmp qword [rbp + 0x240], 0
je 0x140041218
mov rax, qword [rbp + 0x240]
cmp qword [rax + 0x210], 0
jne 0x14004121f
xor eax, eax
jmp 0x1400417a4
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 0x140041292
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 0x140041290
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
jmp 0x140041254
mov edx, 0x5c
mov rcx, qword [rbp + 0x28]
call sub.VCRUNTIME140D.dll_strchr
test rax, rax
je 0x1400412d0
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 0x1400412ce
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
jmp 0x140041292
mov rcx, qword [rbp + 8]
call sub.ucrtbased.dll_strlen
mov qword [rbp + 0x1f8], rax
lea rcx, [0x140086fec]
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.140068550
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 0x14004139d
mov rax, qword [rbp + 0x240]
add rax, 0x240
mov rdx, rax
lea rcx, [rbp + 0x88]
call fcn.14003fd90
mov dword [rbp + 0xc4], eax
jmp 0x1400413bf
mov rax, qword [rbp + 0x240]
add rax, 0x240
mov rdx, rax
lea rcx, [rbp + 0x88]
call fcn.14003ffd0
mov dword [rbp + 0xc4], eax
cmp dword [rbp + 0xc4], 0
je 0x1400413f2
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 0x1400417a4
mov dword [rbp + 0xc4], 0
mov rax, qword [rbp + 0x240]
cmp qword [rax + 0x250], 0
je 0x140041519
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 0x140041475
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 0x140041490
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 0x1400415f3
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 0x1400415f3
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 0x1400415db
mov dword [rbp + 0x1f8], 1
jmp 0x1400415e5
mov dword [rbp + 0x1f8], 0
cmp dword [rbp + 0x1f8], 0
je 0x1400415f3
jmp 0x1400413fc
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 0x14004165f
mov r9, qword [rbp + 0x48]
mov r8, qword [rbp + 0x28]
lea rdx, str.rename___s_____s__:_failed_n
xor ecx, ecx
call fcn.14002ddd0
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 0x1400417a4
mov rax, qword [rbp + 0x240]
mov qword [rax + 0x258], 0
mov rax, qword [rbp + 0x240]
cmp dword [rax + 0x248], 0
je 0x1400416b9
xor ecx, ecx
call fcn.1400425f0
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.1400400c0
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.14002ddd0
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ucrtbased.dll_free]
cmp dword [rbp + 0x248], 0
je 0x1400416f8
mov rax, qword [rbp + 0x240]
mov qword [rax + 0x210], 0
jmp 0x140041796
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x240]
call fcn.140040350
mov qword [rbp + 0x128], rax
cmp qword [rbp + 0x128], 0
jne 0x14004173d
call qword [sym.imp.ucrtbased.dll__errno]
mov ecx, dword [rax]
call fcn.14005ebe0
mov r9, rax
mov r8, qword [rbp + 0x28]
lea rdx, str.rotate:__s:_failed:__s_n
xor ecx, ecx
call fcn.14002ddd0
jmp 0x140041796
mov rax, qword [rbp + 0x240]
mov rdx, qword [rax + 0x210]
mov rcx, qword [rbp + 0x240]
call fcn.14003fbe0
mov rax, qword [rbp + 0x240]
mov rcx, qword [rbp + 0x128]
mov qword [rax + 0x210], rcx
xor ecx, ecx
call fcn.1400425f0
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.14002ddd0
mov rax, qword [rbp + 0x240]
mov rax, qword [rax + 0x210]
mov rdi, rax
lea rcx, [rbp - 0x60]
lea rdx, [0x140086ee0]
call fcn.140068a90
mov rax, rdi
mov rcx, qword [rbp + 0x218]
xor rcx, rbp
call fcn.140068cb0
lea rsp, [rbp + 0x228]
pop rdi
pop rbp
ret