Function at 0x461a8c
Capabilities:
Delete file
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4f0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x004bf230]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rbp, r8
mov r14, rdx
mov r13, rcx
call fcn.004551b8
mov rsi, qword [rax + 0x70]
mov r12d, 1
cmp qword [rbp + 0x20], 8
jb 0x461ae8
lea rbx, [rbp + 8]
mov rcx, qword [rbx]
jmp 0x461aef
lea rbx, [rbp + 8]
mov rcx, rbx
lea rdx, str._watson.msm
call fcn.00445330
xor r15d, r15d
cmp rax, r15
jne 0x461b27
cmp qword [rbp + 0x20], 8
jb 0x461b0f
mov rcx, qword [rbx]
jmp 0x461b12
mov rcx, rbx
lea rdx, str._watsonintl.msm
call fcn.00445330
cmp rax, r15
je 0x461dad
mov word [rsp + 0x2d0], r15w
mov edi, 0x208
mov r8, rdi
xor edx, edx
lea rcx, [rsp + 0x2d2]
call fcn.00449860
mov word [rsp + 0xc0], r15w
mov r8, rdi
xor edx, edx
lea rcx, [rsp + 0xc2]
call fcn.00449860
lea rdx, [rsp + 0x2d0]
mov ecx, 0x104
call fcn.0040ddbc
cmp eax, r15d
jne 0x461b94
cmp rsi, r15
je 0x461b8d
lea rdx, str.ERROR:_Failed_to_get_the_temp_path
mov rcx, rsi
call fcn.0045fe58
xor al, al
jmp 0x461db0
lea r9, [rsp + 0xc0]
xor r8d, r8d
lea rdx, [0x00495318]
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp eax, r15d
jne 0x461bd4
cmp rsi, r15
je 0x461bcd
lea rdx, str.ERROR:_Failed_to_get_a_unique_file_name_
mov rcx, rsi
call fcn.0045fe58
xor al, al
jmp 0x461db0
cmp rsi, r15
je 0x461bff
cmp qword [rbp + 0x20], 8
jb 0x461be5
mov r8, qword [rbx]
jmp 0x461be8
mov r8, rbx
lea r9, [rsp + 0xc0]
lea rdx, str.Processing_Stream___s__into_file___s_
mov rcx, rsi
call fcn.0045fe58
lea rax, [rsp + 0x20]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], r15
mov word [rsp + 0x28], r15w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xc0]
repne scasw ax, word [rdi]
not rcx
sub rcx, r12
mov r8, rcx
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x20]
call fcn.00404e54
nop
mov edi, 7
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbp
lea rcx, [rsp + 0x48]
call fcn.004020b0
nop
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x48]
mov rcx, r14
call fcn.0046adec
cmp al, r15b
jne 0x461cc8
cmp rsi, r15
je 0x461cc1
lea rdx, str.ERROR:_Failed_to_extract_the_stream:
mov rcx, rsi
call fcn.0045fe58
cmp qword [rbp + 0x20], 8
jb 0x461cb6
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rsi
call fcn.0045fe58
xor al, al
jmp 0x461db0
lea rcx, [rsp + 0x88]
call fcn.0046b988
nop
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r15
mov word [rsp + 0x28], r15w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xc0]
repne scasw ax, word [rdi]
not rcx
sub rcx, r12
mov r8, rcx
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x20]
call fcn.00404e54
nop
cmp r13, r15
je 0x461d1e
lea rdx, [r13 + 8]
jmp 0x461d21
mov rdx, r15
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x88]
call fcn.0046bb64
cmp al, r15b
sete dil
cmp qword [rsp + 0x40], 8
jb 0x461d4c
mov rcx, qword [rsp + 0x28]
call fcn.00443d3c
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], r15
mov word [rsp + 0x28], r15w
cmp dil, r15b
je 0x461d91
cmp rsi, r15
je 0x461d8e
lea rdx, str.ERROR:_Failed_to_enumerate_the_Files_for_the_following_cab:
mov rcx, rsi
call fcn.0045fe58
cmp qword [rbp + 0x20], 8
jb 0x461d83
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rsi
call fcn.0045fe58
mov r12b, r15b
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea rcx, [rsp + 0x88]
call fcn.0046ada8
mov al, r12b
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.00443d60
mov rbx, qword [rsp + 0x548]
add rsp, 0x4f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret