Function at 0x1400339b0
Capabilities:
Move file

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
push rdi
sub rsp, 0xb0
mov rdi, rcx
test rcx, rcx
je 0x140033e52
mov rcx, qword [rcx + 0x210]
test rcx, rcx
je 0x140033e52
mov qword [rax + 8], rbx
mov rbx, qword [rdi + 8]
mov qword [rax + 0x20], rsi
mov qword [rax - 0x10], r12
mov r12, qword [rdi + 0x268]
mov qword [rax - 0x18], r13
mov qword [rax - 0x20], r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov edx, 0x2f
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strchr]
test rax, rax
je 0x140033a3e
mov edx, 0x2f
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov rbx, rax
cmp byte [rax], 0x2f
jne 0x140033a2b
inc rbx
mov edx, 0x2f
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strchr]
test rax, rax
jne 0x140033a12
mov edx, 0x5c
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strchr]
test rax, rax
je 0x140033a7d
mov edx, 0x5c
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov rbx, rax
cmp byte [rax], 0x5c
jne 0x140033a6a
inc rbx
mov edx, 0x5c
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strchr]
test rax, rax
jne 0x140033a51
mov rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp byte [rbx + rax], 0
jne 0x140033a87
mov rcx, rsi
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140033a93
add rax, rcx
mov rcx, rsi
cmp byte [r12 + rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140033aa2
lea r13, [rcx + 0xe]
add r13, rax
mov eax, 1
mov rcx, r13
cmove rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
jne 0x140033aee
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.____out_of_memory__aborting_n
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test byte [rdi + 0x270], 4
lea rcx, [rdi + 0x240]
je 0x140033bd3
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__gmtime64]
test rax, rax
je 0x140033be2
movups xmm0, xmmword [rax]
mov qword [rsp + 0xd0], rbp
xor ebp, ebp
movups xmm1, xmmword [rax + 0x10]
mov qword [rsp + 0x90], r15
movups xmmword [rsp + 0x60], xmm0
mov r15d, dword [rsp + 0x60]
movups xmmword [rsp + 0x70], xmm1
mov ecx, dword [rsp + 0x74]
nop dword [rax]
cmp qword [rdi + 0x250], 0
jne 0x140033bfd
mov r8d, dword [rsp + 0x70]
mov eax, 0x51eb851f
imul ecx
mov qword [rsp + 0x50], rbx
inc r8d
mov dword [rsp + 0x48], r15d
mov r9, r12
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x64
mov rdx, r13
sub ecx, eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r8d
lea r8, str._s__02u_02u_02u__02u_02u_02u__s
mov dword [rsp + 0x20], ecx
mov rcx, r14
call fcn.140004c90
xor edx, edx
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
test eax, eax
jne 0x140033c7b
mov eax, ebp
inc r15d
inc ebp
test eax, eax
jne 0x140033c7b
jmp 0x140033b39
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
test rax, rax
jne 0x140033b11
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, str.gmtime__:_file_rotation_ended
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
jmp 0x140033cc9
mov edx, 0x2e
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
je 0x140033c2f
mov edx, 0x2e
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
mov rdx, rax
sub rdx, rbx
inc rsi
cmp byte [rax + rsi], 0
jne 0x140033c24
jmp 0x140033c3d
mov rdx, rsi
inc rdx
cmp byte [rbx + rdx], 0
jne 0x140033c32
xor esi, esi
mov ecx, dword [rdi + 0x260]
lea r8, str._s__.s__05u_.s
mov r9, r12
lea eax, [rcx + 1]
mov dword [rdi + 0x260], eax
lea rax, [rdx + rbx]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], ecx
mov rcx, r14
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], edx
mov rdx, r13
call fcn.140004c90
mov rbx, qword [rdi + 8]
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
mov r15, qword [rsp + 0x90]
test eax, eax
je 0x140033d01
mov r9, r14
lea rdx, str.rename___s_____s__:_failed_n
mov r8, rbx
xor ecx, ecx
call fcn.14004d730
lea rcx, str.rename__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbp, qword [rsp + 0xd0]
mov rax, qword [rdi + 0x210]
mov r12, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xd8]
mov r13, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xc0]
mov r14, qword [rsp + 0x98]
add rsp, 0xb0
pop rdi
ret
cmp dword [rdi + 0x248], 0
mov qword [rdi + 0x258], 0
je 0x140033d42
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov r8d, dword [rdi + 0x248]
mov r9, rax
mov ecx, dword [rdi + 0x24c]
cqo
idiv r8
sub rcx, rdx
add rcx, r8
add rcx, r9
mov qword [rdi + 0x238], rcx
mov r8, r14
lea rdx, str.rotated:__s_n
mov ecx, 1
call fcn.14004d730
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [rsp + 0xc8], 0
je 0x140033d79
mov qword [rdi + 0x210], 0
jmp 0x140033cc1
mov rdx, rbx
mov rcx, rdi
call fcn.140033050
mov rbp, rax
test rax, rax
jne 0x140033db3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov r8, rbx
lea rdx, str.rotate:__s:_failed:__s_n
mov r9, rax
xor ecx, ecx
call fcn.14004d730
jmp 0x140033cc1
mov rsi, qword [rdi + 0x210]
test rsi, rsi
je 0x140033e23
test byte [rdi + 0x230], 1
jne 0x140033dd8
mov rax, qword [rdi + 0x218]
mov rdx, rsi
mov rcx, rdi
call qword [rax + 0x18]
xorps xmm0, xmm0
movups xmmword [rdi + 0x278], xmm0
movups xmmword [rdi + 0x288], xmm0
movups xmmword [rdi + 0x298], xmm0
movups xmmword [rdi + 0x2a8], xmm0
movups xmmword [rdi + 0x2b8], xmm0
movups xmmword [rdi + 0x2c8], xmm0
cmp dword [rdi + 0x220], 0x100
je 0x140033e23
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor ecx, ecx
mov qword [rdi + 0x210], rbp
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov r8, rbx
lea rdx, str.rotate:_started_new_file:__s_n
mov ecx, 1
mov qword [rdi + 0x240], rax
call fcn.14004d730
jmp 0x140033cc1
xor eax, eax
add rsp, 0xb0
pop rdi
ret