Function at 0x140052a20
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x200
mov rax, qword [0x1400f5608]
xor rax, rsp
mov qword [rsp + 0x1f8], rax
mov r14, rcx
xor r13d, r13d
mov dword [rsp + 0x44], r13d
mov ebx, r13d
mov qword [rsp + 0x48], rbx
cmp byte [rcx + 0x58], r13b
je 0x140052a91
test dl, dl
jne 0x140052a91
mov rdx, qword [rcx + 0x50]
lea rcx, [rsp + 0x48]
call fcn.140045170
mov rbx, qword [rsp + 0x48]
jmp 0x140052a91
lea rcx, [r14 + 0x120]
call fcn.14004ff80
mov rax, qword [r14 + 0x120]
movsxd rcx, dword [rax + 4]
mov eax, 4
cmp qword [rcx + r14 + 0x168], 0
cmovne eax, r13d
mov dword [rcx + r14 + 0x130], eax
test dword [rcx + r14 + 0x134], eax
jne 0x14005321d
lea rdi, [r14 + 0x2a0]
mov edx, dword [r14 + 0x2c8]
mov rcx, rdi
call fcn.140053d80
lea rax, [0x1400c7098]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0xf0], r13
mov qword [rsp + 0x118], r13
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x120], xmm0
lea rax, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rsp + 0xe8], rax
mov dword [rsp + 0x44], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x60]
call fcn.14002aee0
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x68]
call fcn.140018780
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x68], rax
mov qword [rsp + 0xd0], r13
mov dword [rsp + 0xd8], 4
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140052b99
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rsp + 0x60]
call fcn.14000e6f0
lea rdx, [0x1400c2730]
mov rcx, rax
call fcn.14000e1c0
mov rcx, rax
mov edx, 1
call fcn.14001df90
nop
mov qword [rsp + 0x198], r13
mov qword [rsp + 0x1a8], r13
mov qword [rsp + 0x1b0], shutdown
mov byte [rsp + 0x198], 0
mov dword [rsp + 0x44], 5
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x178], xmm0
mov qword [rsp + 0x188], rax
mov ecx, dword [rsp + 0xd8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140052c45
mov rax, qword [rsp + 0xa8]
mov r8, qword [rax]
test r8, r8
je 0x140052c45
mov rax, qword [rsp + 0x88]
mov rdx, qword [rax]
cmp r8, qword [rsp + 0xd0]
cmovb r8, qword [rsp + 0xd0]
sub r8, rdx
jmp 0x140052c88
test cl, 4
jne 0x140052c78
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax]
test rcx, rcx
je 0x140052c78
mov rax, qword [rsp + 0x80]
mov rdx, qword [rax]
mov rax, qword [rsp + 0xb8]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x140052c88
mov r8, qword [rsp + 0x180]
mov rdx, qword [rsp + 0x178]
test rdx, rdx
je 0x140052c9b
lea rcx, [rsp + 0x198]
call fcn.14000b430
nop
call fcn.14003a3c0
mov r15, rax
lea rcx, [rsp + 0x198]
cmp qword [rsp + 0x1b0], 0x10
cmovae rcx, qword [rsp + 0x198]
call fcn.14009ee30
test eax, eax
je 0x140052ccb
call fcn.14009571c
lea rdx, [rsp + 0x198]
cmp qword [rsp + 0x1b0], 0x10
cmovae rdx, qword [rsp + 0x198]
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140052cf2
mov rcx, qword [rdi]
call fcn.14009ef10
test eax, eax
jne 0x140052d00
mov r9d, r13d
jmp 0x140052d08
call fcn.14009571c
mov r9d, dword [rax]
lea r8, [rsp + 0x198]
mov rdx, rdi
mov rcx, r15
call fcn.1400512c0
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140052d28
mov rcx, qword [rdi]
call fcn.14009ee30
test eax, eax
je 0x140052d36
call fcn.14009571c
lea rsi, [r14 + 0x228]
mov rcx, qword [rsi + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 0xe
jb 0x14005325b
mov rax, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140052d65
mov rax, qword [rsi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], shutdown
lea r9, str.Renaming_file
mov r8, rsi
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x1b8]
call fcn.14000f760
nop
mov rcx, qword [rsp + 0x1c8]
mov rdx, qword [rsp + 0x1d0]
mov rax, rdx
sub rax, rcx
cmp rax, 4
jb 0x140052de8
lea rax, [rcx + 4]
mov qword [rsp + 0x1c8], rax
lea rax, [rsp + 0x1b8]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x1b8]
mov dword [rax + rcx], 0x206f7420
mov byte [rax + rcx + 4], 0
lea rax, [rsp + 0x1b8]
jmp 0x140052e0c
mov qword [rsp + 0x20], 4
lea r9, [0x1400c3b6c]
xor r8d, r8d
lea edx, [r8 + 4]
lea rcx, [rsp + 0x1b8]
call fcn.14002ad50
mov qword [rsp + 0x1d8], r13
mov qword [rsp + 0x1e8], r13
mov qword [rsp + 0x1f0], r13
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x1d8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x1e8], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], shutdown
mov byte [rax], 0
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140052e57
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rsp + 0x1d8]
call fcn.140013950
mov qword [rsp + 0x178], r13
mov qword [rsp + 0x188], r13
mov qword [rsp + 0x190], r13
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x178], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x188], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], shutdown
mov byte [rax], 0
lea rdx, [rsp + 0x178]
mov rcx, r15
call fcn.14003b440
nop
mov rdx, qword [rsp + 0x190]
cmp rdx, 0x10
jb 0x140052efa
inc rdx
mov rcx, qword [rsp + 0x178]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140052ef5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053261
call fcn.14008b4c8
mov qword [rsp + 0x188], r13
mov qword [rsp + 0x190], shutdown
mov byte [rsp + 0x178], 0
mov rdx, qword [rsp + 0x1f0]
cmp rdx, 0x10
jb 0x140052f59
inc rdx
mov rcx, qword [rsp + 0x1d8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140052f54
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053267
call fcn.14008b4c8
mov qword [rsp + 0x1e8], r13
mov qword [rsp + 0x1f0], shutdown
mov byte [rsp + 0x1d8], 0
mov rdx, qword [rsp + 0x1d0]
cmp rdx, 0x10
jb 0x140052fb8
inc rdx
mov rcx, qword [rsp + 0x1b8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140052fb3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005326d
call fcn.14008b4c8
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140052fc5
mov rdx, qword [rdi]
mov rcx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140052fd2
mov rcx, qword [rsi]
call fcn.14009ef10
test eax, eax
jne 0x140052fe0
mov r9d, r13d
jmp 0x140052fe8
call fcn.14009571c
mov r9d, dword [rax]
mov r8, rdi
mov rdx, rsi
mov rcx, r15
call fcn.1400512c0
mov rax, qword [r14]
mov edx, shutdown
mov rcx, r14
call qword [rax + 0x50]
mov r8, rsi
lea rdx, [r14 + 0x120]
mov rcx, r15
call fcn.1400511d0
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
cmp rdx, qword [r14 + 0x2c0]
jl 0x14005310f
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x1b8]
mov rcx, r14
call fcn.140050100
mov rdx, rax
mov rcx, rdi
call fcn.140005f10
mov rdx, qword [rsp + 0x1d0]
cmp rdx, 0x10
jb 0x1400530ae
inc rdx
mov rcx, qword [rsp + 0x1b8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400530a9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053273
call fcn.14008b4c8
mov r8d, dword [r14 + 0x298]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x178]
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 [r14 + 0x2c0], rax
mov rdx, qword [rsp + 0x1b0]
cmp rdx, 0x10
jb 0x140053152
inc rdx
mov rcx, qword [rsp + 0x198]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005314d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053279
call fcn.14008b4c8
mov qword [rsp + 0x1a8], r13
mov qword [rsp + 0x1b0], shutdown
mov byte [rsp + 0x198], 0
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x68]
call fcn.140018b50
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x5c], edx
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0xe8], rax
lea rcx, [rsp + 0xe8]
call fcn.140067b08
nop
test rbx, rbx
je 0x1400531f0
mov rcx, rbx
call fcn.140049590
nop
mov rcx, qword [rsp + 0x1f8]
xor rcx, rsp
call fcn.14008bad0
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov edx, 1
lea rcx, [rsp + 0x178]
call fcn.140016190
mov r8, rax
lea rdx, str.ios_base::badbit_set
lea rcx, [rsp + 0x150]
call fcn.14000ff60
lea rdx, [0x1400f2818]
lea rcx, [rsp + 0x150]
call fcn.14008c6e0
nop
call fcn.14000b150
nop
call fcn.140091b3c
nop
call fcn.140091b3c
nop
call fcn.140091b3c
int3
call fcn.140091b3c
nop
call fcn.140091b3c
int3