Function at 0x140002250
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rbx, rcx
cmp byte [rcx + 0xa0], 1
je 0x14000229f
call fcn.1400032f0
mov rcx, rbx
call fcn.140003a44
mov rcx, rbx
call fcn.1400037ac
cmp qword [rbx], 0xffffffffffffffff
je 0x1400022ae
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140004670
nop
mov rdx, rax
call fcn.1400042a8
mov edi, eax
lea rcx, [rsp + 0x30]
call fcn.1400055dc
test edi, edi
js 0x14000246c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400047ac
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140005e64
nop
lea rcx, [rsp + 0x30]
call fcn.1400055dc
cmp qword [rsp + 0x60], 0
jne 0x140002310
mov edi, 0xc0000001
jmp 0x140002462
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.1400053e8
nop
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
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.14000a2bc
mov rbx, rax
xor esi, esi
test r14, r14
je 0x1400023ba
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
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 [rsi + rbx], r9b
inc rsi
cmp rsi, r14
jb 0x140002387
mov r8, r14
mov rdx, rbx
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rsp + 0x78]
call fcn.140005a68
test rax, rax
jne 0x1400023f8
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rcx, rbx
call fcn.140009d90
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140002400
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call fcn.14000537c
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x50]
call fcn.1400055dc
mov eax, edi
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140009d70
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret