Function at 0x14000ba70
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1f8
mov rax, qword [0x1400b30c0]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
cmp qword [rsp + 0x200], 0
je 0x14000bab2
cmp qword [rsp + 0x200], 0xffffffffffffffff
je 0x14000bab2
mov rcx, qword [rsp + 0x200]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x88]
call fcn.140009dd0
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.14001f330
movzx eax, al
test eax, eax
jne 0x14000bae9
mov dword [rsp + 0x38], 1
jmp 0x14000baf1
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x30], al
lea rcx, [rsp + 0x88]
call fcn.1400067e0
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x14000bb17
xor al, al
jmp 0x14000bcfb
lea rcx, [rsp + 0xa8]
call fcn.140009eb0
nop
mov edx, 0x108
lea rcx, [rsp + 0xd0]
call fcn.14000cf20
lea rcx, [rsp + 0xa8]
call fcn.14000d060
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, Ordinal_35
mov rdx, rax
lea rcx, [rsp + 0xd0]
call fcn.140005ad0
nop
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
mov qword [rsp + 0x70], rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
mov rcx, qword [rsp + 0x70]
imul rcx, rax
mov rax, rcx
cqo
mov ecx, 0x1e8480
idiv rcx
mov rax, rdx
add rax, 0x8af0
mov dword [rsp + 0x34], eax
movsxd rax, dword [rsp + 0x34]
mov rcx, rax
call fcn.1400877ec
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
jmp 0x14000bbd5
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movsxd rax, dword [rsp + 0x34]
cmp qword [rsp + 0x48], rax
jae 0x14000bc05
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
mov ecx, 0xff
idiv ecx
mov eax, edx
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
add rdx, rcx
mov rcx, rdx
mov byte [rcx], al
jmp 0x14000bbc8
movsxd rax, dword [rsp + 0x34]
mov r8, rax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0xd0]
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]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
movzx eax, al
lea rcx, [rsp + 0xd0]
call fcn.14000d110
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.1400877e4
cmp qword [rsp + 0x58], 0
jne 0x14000bc7f
mov qword [rsp + 0x80], 0
jmp 0x14000bc95
mov qword [rsp + 0x40], 0x8123
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0xa8]
call fcn.14000d060
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
test eax, eax
je 0x14000bcd6
mov byte [rsp + 0x31], 0
lea rcx, [rsp + 0xd0]
call fcn.140007ac0
nop
lea rcx, [rsp + 0xa8]
call fcn.1400067e0
movzx eax, byte [rsp + 0x31]
jmp 0x14000bcfb
mov byte [rsp + 0x32], 1
lea rcx, [rsp + 0xd0]
call fcn.140007ac0
nop
lea rcx, [rsp + 0xa8]
call fcn.1400067e0
movzx eax, byte [rsp + 0x32]
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.140087a80
add rsp, 0x1f8
ret