Function at 0x140074be0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x300]
sub rsp, 0x400
xor r12d, r12d
mov r8d, 0x104
lea rdx, [rbp + 0x1f0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r12
lea rax, [rbp + 0x1f0]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], r12b
jne 0x140074c40
lea rdx, [rbp + 0x1f0]
lea rcx, [rsp + 0x70]
call fcn.14000d580
nop
lea rdi, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
setae r15b
mov r14, qword [rsp + 0x70]
cmovae rdi, r14
mov rsi, qword [rbp - 0x80]
test rsi, rsi
je 0x140074ceb
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0xd0]
call fcn.14009e4b0
lea rcx, [0x1400fa878]
lea rdx, [0x1400fa87a]
nop dword [rax]
movzx eax, byte [rcx]
mov byte [rbp + rax + 0xd0], 1
inc rcx
cmp rcx, rdx
jne 0x140074ca0
lea rax, [rsi - 1]
mov rcx, rbx
cmp rax, rbx
cmovb rcx, rax
add rcx, rdi
movzx eax, byte [rcx]
cmp byte [rbp + rax + 0xd0], 0
jne 0x140074ce6
cmp rcx, rdi
je 0x140074ceb
dec rcx
movzx eax, byte [rcx]
cmp byte [rbp + rax + 0xd0], 0
je 0x140074cd1
sub rcx, rdi
jmp 0x140074cee
mov rcx, rbx
cmp rcx, 0xffffffffffffffff
je 0x140074d8b
inc rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
cmp rsi, rcx
jb 0x1400750f1
sub rsi, rcx
mov r8, rbx
cmp rsi, rbx
cmovb r8, rsi
lea rdx, [rsp + 0x70]
test r15b, r15b
cmovne rdx, r14
add rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.14000d580
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x140074d78
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140074d73
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400751a2
call fcn.14009ba30
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rbp - 0x80], xmm1
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
lea rax, [rbp + 0x1f0]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140074da4
mov r8, rbx
lea rdx, [rbp + 0x1f0]
lea rcx, [rsp + 0x30]
call fcn.14000d580
nop
mov r8d, 4
lea rdx, str..bak
lea rcx, [rsp + 0x30]
call fcn.14000c100
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], select
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140074e48
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140074e43
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400750f7
call fcn.14009ba30
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], select
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rdx, [rbp + 0x1f0]
lea rcx, [rbp - 0x40]
call fcn.140083970
nop
cmp qword [rbp + 0x50], 0
je 0x140074fdb
mov r13d, 2
mov r8d, r13d
lea rcx, [rbp - 0x40]
call fcn.140084990
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x40]
call fcn.1400848b0
mov r14, qword [rax + 8]
add r14, qword [rax]
xor r8d, r8d
lea rcx, [rbp - 0x40]
call fcn.140084990
movsxd r15, r14d
mov rcx, r15
call fcn.14009bf50
mov rsi, rax
mov r8, r15
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140084ca0
lea rcx, [rbp - 0x30]
call fcn.14000c840
lea edi, [r13 + 4]
test rax, rax
jne 0x140074f19
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
mov eax, edi
cmp qword [rbp + rcx + 8], 0
cmovne eax, r13d
or eax, dword [rbp + rcx - 0x30]
and eax, 0x17
mov dword [rbp + rcx - 0x30], eax
and eax, dword [rbp + rcx - 0x2c]
jne 0x1400750fd
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, eax
movsxd rcx, r14d
mov dword [rcx + rsi - 4], ebx
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rdx, qword [rsp + 0x50]
lea rcx, [rbp + 0x1f0]
call fcn.1400b0554
test eax, eax
jne 0x140074fdb
lea rdx, [rbp + 0x1f0]
lea rcx, [rbp + 0xd0]
call fcn.140083af0
nop
mov r8, r15
mov rdx, rsi
lea rcx, [rbp + 0xe0]
call fcn.14000be20
lea rcx, [rbp + 0xd0]
call fcn.140084b80
lea rcx, [rbp + 0xe8]
call fcn.14000c840
test rax, rax
jne 0x140074fce
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
cmp qword [rbp + rcx + 0x118], 0
cmovne edi, r13d
or edi, dword [rbp + rcx + 0xe0]
and edi, 0x17
mov dword [rbp + rcx + 0xe0], edi
and edi, dword [rbp + rcx + 0xe4]
jne 0x14007514e
lea rcx, [rbp + 0xd0]
call fcn.140073850
nop
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x40], rax
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x44], edx
lea rcx, [rbp - 0x30]
call fcn.14000ba00
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x40], rax
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx - 0x44], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x70], rax
lea rcx, [rbp + 0x70]
call fcn.140099c48
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14007507f
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007507a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400751a2
call fcn.14009ba30
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], select
mov byte [rsp + 0x50], 0
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x1400750ca
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400750c5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400750eb
call fcn.14009ba30
lea r11, [rsp + 0x400]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400a4160
nop
call fcn.14000d060
nop
call fcn.1400a4160
nop
test al, 4
je 0x14007510a
lea rbx, str.ios_base::badbit_set
jmp 0x14007511f
test r13b, al
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140001580
mov r8, rax
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.140001df0
lea rdx, [0x1401109b8]
lea rcx, [rbp - 0x70]
call fcn.14009dc78
nop
test dil, 4
je 0x14007515d
lea rbx, str.ios_base::badbit_set
jmp 0x140075173
test dil, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140001580
mov r8, rax
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.140001df0
lea rdx, [0x1401109b8]
lea rcx, [rbp - 0x70]
call fcn.14009dc78
nop
call fcn.1400a4160
int3