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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5f0]
sub rsp, 0x6f0
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rbp + 0x5e0], rax
mov rbx, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1c0]
call sub.VCRUNTIME140.dll_memset
mov edi, 4
xor r12d, r12d
test rbx, rbx
jne 0x140178624
lea eax, [rdi + 6]
jmp 0x1401789bd
lea rdx, [rbp + 0x1c0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x1401789bb
lea r9, [rbp + 0x3d0]
xor r8d, r8d
lea rdx, [0x140201ed8]
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1401789bb
lea rcx, [rbp + 0x3d0]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], r12w
jne 0x140178680
lea r8, [rbp + 0x3d0]
mov edx, 0x104
lea rcx, [rbp + 0x1c0]
cmp rax, rdx
jae 0x1401786aa
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
jmp 0x1401786be
mov r9d, 0x103
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov word [rbp + 0x3c6], r12w
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401786cd
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, 0x10000
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
mov r15, r12
test rax, rax
cmovne r15, rsi
xor edx, edx
mov rcx, rbx
call fcn.1401774a0
mov edx, 5
lea rcx, [rbp + 0x1c0]
call fcn.1401776b0
mov r13, rax
test rax, rax
je 0x14017893b
mov esi, dword [rbx + 0x24]
cmp dword [rbx + 0x28], r12d
jbe 0x14017882b
nop dword [rax + rax]
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbx + 0x10]
call fcn.14018d0b0
cmp rax, 0xffffffffffffffff
je 0x140178826
mov r8d, 0x24
lea rdx, [rsp + 0x78]
mov rcx, qword [rbx + 0x10]
call fcn.14018ce80
cmp rax, 0x24
jne 0x140178826
cmp dword [rsp + 0x78], 0x638bcfdc
jne 0x140178826
test byte [rbp - 0x6c], 1
jne 0x140178812
mov edi, dword [rsp + 0x7c]
mov ecx, dword [rbp - 0x80]
sub edi, ecx
cmp rdi, r15
jbe 0x14017879d
lfence
mov edx, edi
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x14017892b
mov r14, rax
mov r15d, edi
mov ecx, dword [rbp - 0x80]
mov eax, ecx
add rsi, rax
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbx + 0x10]
call fcn.14018d0b0
cmp rax, 0xffffffffffffffff
je 0x14017892b
mov r8, rdi
mov rdx, r14
mov rcx, qword [rbx + 0x10]
call fcn.14018ce80
cmp rdi, rax
jne 0x14017892b
mov eax, dword [rbp - 0x68]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], 0
mov eax, dword [rbp - 0x6c]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 0x74]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, r14
mov edx, dword [rbp - 0x7c]
mov rcx, r13
call fcn.140177970
cmp eax, 0xffffffff
je 0x14017892b
add rsi, rdi
jmp 0x140178819
mov eax, dword [rsp + 0x7c]
add rsi, rax
inc r12d
cmp r12d, dword [rbx + 0x28]
jb 0x140178720
mov edi, 4
xor edx, edx
mov rcx, r13
call fcn.140177570
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rsp + 0x50], xmm1
xor r12d, r12d
mov dword [rbx + 0x28], r12d
mov dword [rbx + 0x50], r12d
mov dl, 1
mov rcx, rbx
call fcn.1401774a0
mov edx, dword [rbx + 0x24]
xor r8d, r8d
mov rcx, qword [rbx + 0x10]
call fcn.14018d0b0
cmp rax, 0xffffffffffffffff
je 0x140178933
xor r8d, r8d
lea edx, [r12 + 0x38]
mov rcx, qword [r13 + 0x10]
call fcn.14018d0b0
cmp rax, 0xffffffffffffffff
je 0x140178933
mov r8, r15
mov rdx, r14
mov rcx, qword [r13 + 0x10]
call fcn.14018ce80
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14017892e
mov rcx, qword [rbx + 0x10]
test rdi, rdi
je 0x1401788d6
mov r8, rdi
mov rdx, r14
call fcn.14018cf60
cmp rdi, rax
jne 0x14017892e
mov r8, r15
mov rdx, r14
mov rcx, qword [r13 + 0x10]
call fcn.14018ce80
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1401788a3
jmp 0x14017892e
xor edx, edx
lea r8d, [rdx + 1]
call fcn.14018d0b0
mov rdx, rax
mov rcx, qword [rbx + 0x10]
call fcn.14018d010
movups xmm0, xmmword [r13 + 0x20]
movups xmmword [rbx + 0x20], xmm0
movups xmm1, xmmword [r13 + 0x30]
movups xmmword [rbx + 0x30], xmm1
movups xmm0, xmmword [r13 + 0x40]
movups xmmword [rbx + 0x40], xmm0
movsd xmm1, qword [r13 + 0x50]
movsd qword [rbx + 0x50], xmm1
mov rax, qword [rsp + 0x54]
mov qword [rbx + 0x34], rax
mov dl, 1
mov rcx, rbx
call fcn.1401774a0
mov edi, r12d
jmp 0x140178933
xor r12d, r12d
mov edi, 4
mov rcx, r13
call fcn.140177610
test r14, r14
je 0x140178949
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rax, [rbp - 0x48]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 0x104
mov qword [rbp - 0x50], r12
lea r9, [rbp - 0x60]
movzx r8d, byte [0x140256a90]
lea rcx, [rbp + 0x1c0]
call fcn.14018c810
test eax, eax
je 0x14017898a
cmp eax, 1
jne 0x140178994
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140178994
mov rcx, qword [rbp - 0x60]
call fcn.14018eeb0
nop
lea rax, [rbp - 0x48]
mov rcx, qword [rbp - 0x60]
cmp rcx, rax
je 0x1401789ac
test rcx, rcx
je 0x1401789ac
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401789bb
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov rcx, qword [rbp + 0x5e0]
xor rcx, rsp
call fcn.1401c5190
lea r11, [rsp + 0x6f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret