Function at 0x1400194a0
Capabilities:
Delete file

Disassembly:
push rdi
sub rsp, 0x240
mov rax, qword [0x140034040]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov dword [rsp + 0x88], 0
cmp qword [0x140039ef8], 0
je 0x1400194e7
cmp qword [0x140039ef8], 0xffffffffffffffff
je 0x1400194e7
mov rcx, qword [0x140039ef8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0xe0]
call fcn.140019870
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x98]
call fcn.140001dc0
movzx eax, al
test eax, eax
jne 0x14001952a
mov dword [rsp + 0x3c], 1
jmp 0x140019532
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x30], al
lea rcx, [rsp + 0xe0]
call fcn.140002620
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x140019558
xor al, al
jmp 0x14001984e
lea rcx, [rsp + 0x100]
call fcn.140019950
nop
lea rax, [rsp + 0x120]
mov rdi, rax
xor eax, eax
mov ecx, 0x108
rep stosb byte [rdi], al
lea rax, [rsp + 0x100]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x58]
cmp qword [rax + 0x18], 7
jbe 0x1400195a7
mov dword [rsp + 0x40], 1
jmp 0x1400195af
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x31], al
movzx eax, byte [rsp + 0x31]
test eax, eax
je 0x1400195de
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 0x22
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x120]
call fcn.1400276d0
nop
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
cqo
mov ecx, 0x2fc76a
idiv rcx
mov rax, rdx
add rax, 0x16939
mov dword [rsp + 0x38], eax
movsxd rax, dword [rsp + 0x38]
mov rcx, rax
call fcn.14002b5b8
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 0
jmp 0x14001967e
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
movsxd rax, dword [rsp + 0x38]
cmp qword [rsp + 0x50], rax
jae 0x1400196ae
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 + 0x50]
mov rdx, qword [rsp + 0x48]
add rdx, rcx
mov rcx, rdx
mov byte [rcx], al
jmp 0x140019671
movsxd rax, dword [rsp + 0x38]
mov r8, rax
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x120]
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 + 0x70], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x70]
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 + 0x120]
call fcn.1400275e0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.14002b224
cmp qword [rsp + 0x78], 0
jne 0x140019728
mov qword [rsp + 0xc0], 0
jmp 0x14001973e
mov qword [rsp + 0x48], 0x8123
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x18], 7
jbe 0x14001976e
mov dword [rsp + 0x44], 1
jmp 0x140019776
mov dword [rsp + 0x44], 0
movzx eax, byte [rsp + 0x44]
mov byte [rsp + 0x32], al
movzx eax, byte [rsp + 0x32]
test eax, eax
je 0x1400197a8
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xd8], rax
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
test eax, eax
je 0x140019815
mov byte [rsp + 0x33], 0
lea rax, [rsp + 0x1c8]
mov rcx, rax
call fcn.140027640
lea rax, [rsp + 0x1c8]
mov rcx, rax
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 + 0x100]
call fcn.140002620
movzx eax, byte [rsp + 0x33]
jmp 0x14001984e
mov byte [rsp + 0x34], 1
lea rax, [rsp + 0x1c8]
mov rcx, rax
call fcn.140027640
lea rax, [rsp + 0x1c8]
mov rcx, rax
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 + 0x100]
call fcn.140002620
movzx eax, byte [rsp + 0x34]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14002b1c0
add rsp, 0x240
pop rdi
ret