Function at 0x140130ad0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x140232100]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rbx, rcx
cmp byte [rcx + 0xa0], 1
je 0x140130b17
call fcn.140131e50
mov rcx, rbx
call fcn.140132180
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140130b26
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1401341e0
nop
mov rdx, rax
mov rcx, rbx
call fcn.140133020
mov esi, eax
lea rcx, [rsp + 0x30]
call fcn.14002c6f0
test esi, esi
js 0x140130d1b
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1401343c0
nop
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1401347b0
nop
lea rcx, [rsp + 0x30]
call fcn.14002c6f0
cmp qword [rbp - 0x78], 0
jne 0x140130b8a
mov esi, 0xc0000001
jmp 0x140130d11
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x60]
call fcn.140172380
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x60]
call fcn.140134570
nop
call fcn.14014711c
movsxd rcx, eax
movabs rax, 0x1c926b9d39431d5f
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, rdx, 0x23d6df
sub rcx, rax
add ecx, 0xdd9d
movsxd r14, ecx
mov rcx, r14
call fcn.1401387ec
mov rdi, rax
xor ebx, ebx
test r14, r14
je 0x140130c32
nop dword [rax]
call fcn.14014711c
mov r9d, eax
mov eax, 0x80808081
imul r9d
add edx, r9d
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0xff
sub r9d, ecx
mov byte [rdi + rbx], r9b
inc rbx
cmp rbx, r14
jb 0x140130c00
mov r8, r14
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.140046800
lea rcx, [rbp - 0x58]
call fcn.1401151c0
test rax, rax
jne 0x140130c7f
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx - 0x18], 0
cmovne eax, edx
or eax, dword [rbp + rcx - 0x50]
and eax, 0x17
mov dword [rbp + rcx - 0x50], eax
and eax, dword [rbp + rcx - 0x4c]
jne 0x140130d44
mov rcx, rdi
call fcn.1401383fc
nop word [rax + rax]
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140130c90
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], rax
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x64], edx
lea rcx, [rbp - 0x58]
call fcn.1401135b0
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], rax
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x64], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x48], rax
lea rcx, [rbp + 0x48]
call fcn.140137ac4
nop
lea rcx, [rsp + 0x78]
call fcn.14002c6f0
mov eax, esi
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.140138160
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
test al, 4
je 0x140130d51
lea rbx, str.ios_base::badbit_set
jmp 0x140130d65
test dl, 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.14002a890
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.14002b070
lea rdx, [0x14022f7f0]
lea rcx, [rsp + 0x50]
call fcn.14013a760
int3