Function at 0x1400538b0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0xf0
mov rax, qword [0x1400f5608]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov r15, rcx
xor esi, esi
mov ebx, esi
mov qword [rsp + 0x48], rbx
cmp byte [rcx + 0x58], sil
je 0x14005391c
test dl, dl
jne 0x14005391c
mov rdx, qword [rcx + 0x50]
lea rcx, [rsp + 0x48]
call fcn.140045170
mov rbx, qword [rsp + 0x48]
jmp 0x14005391c
lea rcx, [r15 + 0x120]
call fcn.14004ff80
mov rax, qword [r15 + 0x120]
movsxd rcx, dword [rax + 4]
mov eax, 4
cmp qword [rcx + r15 + 0x168], 0
cmovne eax, esi
mov dword [rcx + r15 + 0x130], eax
test dword [rcx + r15 + 0x134], eax
jne 0x140053d2a
cmp qword [r15 + 0x238], 0
je 0x140053c4f
call fcn.14003a3c0
mov r12, rax
lea rdi, [r15 + 0x2c0]
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140053984
mov rcx, qword [rdi]
call fcn.14009ee30
test eax, eax
je 0x140053992
call fcn.14009571c
lea r14, [r15 + 0x228]
mov rcx, qword [r14 + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 0xe
jb 0x140053d62
mov rax, r14
cmp qword [r14 + 0x18], 0x10
jb 0x1400539c1
mov rax, qword [r14]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], shutdown
lea r9, str.Renaming_file
mov r8, r14
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0xc0]
call fcn.14000f760
nop
mov rcx, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0xd8]
mov rax, rdx
sub rax, rcx
cmp rax, 4
jb 0x140053a44
lea rax, [rcx + 4]
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0xc0]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0xc0]
mov dword [rax + rcx], 0x206f7420
mov byte [rax + rcx + 4], 0
lea rax, [rsp + 0xc0]
jmp 0x140053a68
mov qword [rsp + 0x20], 4
lea r9, str._to
xor r8d, r8d
lea edx, [r8 + 4]
lea rcx, [rsp + 0xc0]
call fcn.14002ad50
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xb8], rsi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0xa0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0xb0], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], shutdown
mov byte [rax], 0
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140053ab3
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rsp + 0xa0]
call fcn.140013950
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], rsi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x90], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], shutdown
mov byte [rax], 0
lea rdx, [rsp + 0x80]
mov rcx, r12
call fcn.14003b440
nop
mov rdx, qword [rsp + 0x98]
cmp rdx, 0x10
jb 0x140053b56
inc rdx
mov rcx, qword [rsp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140053b51
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053d68
call fcn.14008b4c8
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], shutdown
mov byte [rsp + 0x80], 0
mov rdx, qword [rsp + 0xb8]
cmp rdx, 0x10
jb 0x140053bb5
inc rdx
mov rcx, qword [rsp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140053bb0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053d6e
call fcn.14008b4c8
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xb8], shutdown
mov byte [rsp + 0xa0], 0
mov rdx, qword [rsp + 0xd8]
cmp rdx, 0x10
jb 0x140053c14
inc rdx
mov rcx, qword [rsp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140053c0f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053d74
call fcn.14008b4c8
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140053c21
mov rdx, qword [rdi]
mov rcx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x140053c2e
mov rcx, qword [r14]
call fcn.14009ef10
test eax, eax
je 0x140053c3e
call fcn.14009571c
mov esi, dword [rax]
mov r9d, esi
mov r8, rdi
mov rdx, r14
mov rcx, r12
call fcn.1400512c0
call fcn.140067e50
mov rcx, rax
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rsp + 0x50], rdx
mov rcx, r15
call fcn.14004fc50
mov rax, qword [r15]
mov edx, shutdown
mov rcx, r15
call qword [rax + 0x50]
mov r8d, dword [r15 + 0x2b8]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x80]
call fcn.14004f980
mov r8, qword [rax]
lea rcx, [r8 + r8*4]
add rcx, rcx
movabs rax, 0xd6bf94d5e57a42bd
imul rcx
add rdx, rcx
sar rdx, 0x17
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, rdx, 0xf4240
lea rcx, [rdx - 1]
cmp r8, rax
cmovge rcx, rdx
imul rax, rcx, 0xf4240
mov qword [r15 + 0x2f0], rax
test rbx, rbx
je 0x140053cfc
mov rcx, rbx
call fcn.140049590
nop
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.14008bad0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
mov edx, 1
lea rcx, [rsp + 0x80]
call fcn.140016190
mov r8, rax
lea rdx, str.ios_base::badbit_set
lea rcx, [rsp + 0x58]
call fcn.14000ff60
lea rdx, [0x1400f2818]
lea rcx, [rsp + 0x58]
call fcn.14008c6e0
int3
call fcn.14000b150
nop
call fcn.140091b3c
nop
call fcn.140091b3c
nop
call fcn.140091b3c
int3