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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x9f8]
sub rsp, 0xad0
mov rax, qword [0x140096008]
xor rax, rsp
mov qword [rbp + 0x9c0], rax
mov rax, qword [rbp + 0xa28]
xor esi, esi
mov r12, qword [rbp + 0xa20]
mov r15d, edx
mov qword [rsp + 0x50], rcx
mov edx, 0x230
mov ebx, r9d
mov qword [rsp + 0x40], rax
lea ecx, [rsi + 2]
mov dword [rsp + 0x30], esi
mov r13d, r8d
mov dword [rsp + 0x34], esi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140062ea4
mov eax, 0x2714
jmp 0x1400632cf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
lea rdx, [rbp + 0x280]
mov ecx, 0x104
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.OPWTMP
lea rcx, [rbp + 0x280]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea rcx, [rdi + 0x10a]
mov r14d, 0x106
lea r8, [rsp + 0x60]
mov edx, r14d
sub r8, rcx
lea rax, [rdx + 0x7ffffef8]
test rax, rax
je 0x140062f15
mov al, byte [r8 + rcx]
test al, al
je 0x140062f15
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140062ef6
test rdx, rdx
lea rax, [rcx - 1]
mov edx, 2
cmovne rax, rcx
lea rcx, [rsp + 0x60]
mov byte [rax], sil
call fcn.14007d020
or rcx, 0xffffffffffffffff
mov qword [rdi + 0x218], rax
mov esi, 0x2717
cmp rax, rcx
jne 0x140062f56
mov r14d, dword [rsp + 0x30]
mov ebx, esi
xor r13d, r13d
jmp 0x1400631d9
mov eax, ebx
neg eax
sbb ecx, ecx
xor r8d, r8d
add ecx, 3
mov dword [rdi + 0x224], ecx
mov qword [rdi + 0x228], 1
test r15d, r15d
je 0x140062f7d
test r13d, r13d
je 0x140062f85
test ebx, ebx
je 0x140063136
mov rcx, qword [rdi + 0x218]
lea r14, [rdi + 0x220]
mov rdx, r14
mov dword [rdi], r15d
call fcn.140046088
xor r13d, r13d
mov ebx, eax
test eax, eax
jne 0x1400631b5
mov rcx, qword [rsp + 0x40]
mov eax, dword [r14]
mov dword [rcx], eax
mov ecx, dword [r14]
call fcn.140062d58
mov ebx, eax
test eax, eax
jne 0x1400631b5
test r15d, r15d
jne 0x140063282
lea rcx, [rdi + 4]
mov r9, r12
sub r9, rcx
lea r14d, [r13 + 1]
mov r8d, 0x105
lea rax, [r8 + 0x7ffffef9]
test rax, rax
je 0x140063002
mov al, byte [r9 + rcx]
test al, al
je 0x140063002
mov byte [rcx], al
add rcx, r14
sub r8, r14
jne 0x140062fe4
lea rax, [rcx - 1]
test r8, r8
mov edx, 2
cmovne rax, rcx
mov rcx, r12
mov byte [rax], r13b
call fcn.14007d020
or r15, 0xffffffffffffffff
mov qword [rdi + 0x210], rax
cmp rax, r15
jne 0x140063282
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x20
ja 0x14006312a
movabs rax, 0x100080020
bt rax, rbx
jae 0x14006312a
lea rax, [rbp + 0x390]
mov dword [rsp + 0x28], 0x105
mov r9d, r15d
mov qword [rsp + 0x20], rax
mov r8, r12
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, qword [0x1400b8300]
mov r9d, 0x105
cmp ebx, 0x20
jne 0x1400630aa
lea r8, [rbp + 0x5a0]
lea edx, [rbx + 0x64]
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1400630c0
lea r8, [rbp + 0x5a0]
jmp 0x1400630ce
lea r8, [rbp + 0x7b0]
mov edx, 0x86
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x1400630c7
mov word [rbp + 0x70], r13w
jmp 0x1400630de
lea r8, [rbp + 0x7b0]
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x390]
call fcn.14007cb7c
mov r8d, 4
lea rdx, [rbp + 0x70]
call fcn.140055b44
cmp eax, 7
jne 0x1400630fe
mov ebx, esi
mov dword [rsp + 0x34], r14d
jmp 0x1400631b5
xor edx, edx
mov rcx, r12
call fcn.14007d020
mov qword [rdi + 0x210], rax
cmp rax, r15
jne 0x14006311b
mov ebx, esi
jmp 0x1400631b5
mov dword [rdi + 0x22c], r14d
mov ebx, r13d
jmp 0x140063282
mov edx, ebx
call fcn.140066fbc
mov ebx, r15d
jmp 0x1400631b5
mov eax, r13d
mov rdx, r12
neg eax
mov ebx, 1
sbb ecx, ecx
and ecx, r15d
lea r15, [rdi + 4]
mov dword [rdi], ecx
sub rdx, r15
mov rcx, r15
lea rax, [r14 + 0x7ffffef8]
test rax, rax
je 0x140063171
mov al, byte [rdx + rcx]
test al, al
je 0x140063171
mov byte [rcx], al
add rcx, rbx
sub r14, rbx
jne 0x140063154
lea rax, [rcx - 1]
test r14, r14
mov edx, 2
cmovne rax, rcx
mov rcx, r12
mov byte [rax], r8b
call fcn.14007d020
mov qword [rdi + 0x210], rax
cmp rax, 0xffffffffffffffff
jne 0x140063206
xor edx, edx
mov rcx, r12
call fcn.14007d020
mov qword [rdi + 0x210], rax
cmp rax, 0xffffffffffffffff
jne 0x140063200
mov ebx, esi
xor r13d, r13d
mov rcx, qword [rdi + 0x218]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14d, dword [rsp + 0x30]
test r14d, r14d
je 0x1400631d9
mov rcx, qword [rdi + 0x210]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [rsp + 0x34], r13d
je 0x140063299
cmp ebx, esi
mov rsi, 0xffffffffffffffff
cmove ebx, esi
jmp 0x14006329d
mov dword [rdi + 0x22c], ebx
mov r9, qword [rdi + 0x218]
mov r8d, ebx
and dword [rsp + 0x20], 0
mov rdx, rax
mov rcx, r12
mov dword [rsp + 0x30], ebx
call fcn.1400615e8
mov ebx, eax
test eax, eax
jne 0x1400631b2
mov rdx, qword [rdi + 0x218]
lea rax, [rsp + 0x48]
lea r14, [rdi + 0x220]
mov qword [rsp + 0x20], rax
mov r8, r14
xor ecx, ecx
call fcn.140045e2c
mov ebx, eax
test eax, eax
jne 0x1400631b2
mov rcx, qword [rsp + 0x40]
mov eax, dword [r14]
mov dword [rcx], eax
test r13d, r13d
jne 0x14006326d
mov rcx, r15
call fcn.140060fd8
mov rcx, qword [rdi + 0x210]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rdi + 0x210], 0xffffffffffffffff
mov rdi, qword [rsp + 0x38]
xor edx, edx
mov rcx, qword [rsp + 0x50]
mov r8, rdi
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
jmp 0x1400632c4
or rsi, 0xffffffffffffffff
cmp dword [rdi + 0x22c], r13d
je 0x1400632bf
test r14d, r14d
je 0x1400632bf
mov rcx, qword [rdi + 0x210]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x210], rsi
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, ebx
mov rcx, qword [rbp + 0x9c0]
xor rcx, rsp
call fcn.14008a940
lea r11, [rsp + 0xad0]
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