Function at 0x140002510
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x318
movaps xmmword [rsp + 0x300], xmm6
mov qword [rsp + 0x58], r9
mov ebp, r8d
mov rsi, rcx
mov rbx, qword [rsp + 0x380]
mov rax, qword [0x140069040]
xor rax, rsp
mov qword [rsp + 0x2f8], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
test edx, edx
je 0x140002771
movabs r12, 0x7ffffffffffffff7
lea rdi, [rsp + 0xf0]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140038900
xor ecx, ecx
mov rdx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x90], rax
movaps xmm0, xmmword [0x14005d560]
movaps xmmword [rsp + 0x80], xmm0
mov rcx, rdi
call fcn.14002242c
cmp rax, r12
ja 0x140003238
mov r14, rax
lea r15, [rsp + 0x80]
cmp rax, 0xa
jbe 0x140002761
lea rax, [r12 + 5]
and rax, r14
add rax, 4
mov r13, r14
or r13, 3
cmp r13, 0xb
cmove r13, rax
inc r13
js 0x140003233
lea rcx, [r13*2]
call fcn.14000b844
mov rcx, rax
mov qword [rsp + 0x80], rax
lea rax, [r12 + r13]
add rax, 9
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x88], r14
lea r12, [rcx + r14*2]
cmp rcx, rdi
seta al
cmp r12, rdi
setbe dl
or dl, al
je 0x140003220
test r14, r14
je 0x140002667
add r14, r14
lea rdx, [rsp + 0xf0]
mov r8, r14
call fcn.140038260
mov word [r12], 0
movsx rax, byte [rsp + 0x97]
test rax, rax
cmovs rax, qword [rsp + 0x88]
cmovs r15, qword [rsp + 0x80]
test rax, rax
je 0x1400026b3
add rax, rax
test rax, rax
je 0x1400026b3
lea r9, [rax - 2]
cmp word [r15 + rax - 2], 0x5c
mov rax, r9
jne 0x140002694
cmp r9, 0xfffffffffffffffe
jne 0x14000285f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0xa0]
mov dword [rdi], 0xfe
mov dword [rdi + 4], eax
xorps xmm6, xmm6
movups xmmword [rdi + 8], xmm6
mov qword [rdi + 0x18], 0
mov rcx, rbx
mov rdx, rdi
call fcn.140002330
cmp byte [rdi + 0x1f], 0
jns 0x1400026f7
mov rcx, qword [rsp + 0xa8]
call fcn.14000b880
movups xmmword [rsi + 0x10], xmm6
movups xmmword [rsi], xmm6
mov dil, 1
cmp byte [rsp + 0x97], 0
jns 0x140002718
mov rcx, qword [rsp + 0x80]
call fcn.14000b880
test dil, dil
je 0x1400028ff
cmp byte [rsp + 0x77], 0
jns 0x140002732
mov rcx, qword [rsp + 0x60]
call fcn.14000b880
mov rcx, qword [rsp + 0x2f8]
xor rcx, rsp
call fcn.14000c2c0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x300]
add rsp, 0x318
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov byte [rsp + 0x97], r14b
mov rcx, r15
jmp 0x140002637
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140002818
mov edi, eax
lea eax, [rdi - 1]
movsxd r15, eax
test r15d, r15d
jne 0x14000282e
lea r14, [rsp + 0x60]
mov byte [r14 + 0x17], 0
mov word [r14 + r15*2], 0
cmp byte [rsp + 0x77], 0
js 0x1400027b3
lea rdx, [rsp + 0x60]
jmp 0x1400027b8
mov rdx, qword [rsp + 0x60]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1400028ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0xf0]
mov dword [rdi], 0xf4
mov dword [rdi + 4], eax
xorps xmm6, xmm6
movups xmmword [rdi + 8], xmm6
mov qword [rdi + 0x18], 0
mov rcx, rbx
mov rdx, rdi
call fcn.140002330
cmp byte [rdi + 0x1f], 0
jns 0x14000280c
mov rcx, qword [rsp + 0xf8]
call fcn.14000b880
movups xmmword [rsi + 0x10], xmm6
movups xmmword [rsi], xmm6
jmp 0x140002721
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0xf0]
mov dword [rdi], 0xef
jmp 0x1400027dc
cmp eax, 0xb
jae 0x1400028bc
lea r14, [rsp + 0x60]
lea r8, [r15 + r15]
mov rcx, r14
xor edx, edx
call fcn.140038900
cmp byte [rsp + 0x77], 0
jns 0x1400031ed
mov qword [rsp + 0x68], r15
jmp 0x14000279e
sar r9, 1
inc r9
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x80]
xor r8d, r8d
call fcn.14000b640
cmp byte [rsp + 0x77], 0
jns 0x14000289b
mov rcx, qword [rsp + 0x60]
call fcn.14000b880
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rsp + 0xa0]
movaps xmmword [rsp + 0x60], xmm0
xor edi, edi
jmp 0x140002701
mov r12, rbx
lea r8, [r15 - 0xa]
xor ebx, ebx
mov qword [rsp + 0x30], rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea r14, [rsp + 0x60]
mov edx, 0xa
mov rcx, r14
xor r9d, r9d
call fcn.1400099a0
mov qword [r14 + 8], rbx
cmp byte [r14 + 0x17], 0
jns 0x1400028f7
mov r14, qword [rsp + 0x60]
mov rbx, r12
jmp 0x14000283c
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi], xmm0
lea r12, [rsp + 0xa0]
movaps xmmword [r12], xmm0
mov qword [r12 + 0x10], 0
movaps xmm6, xmmword [0x14005d560]
lea r15, [rsp + 0x80]
movaps xmmword [r15], xmm6
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdi, [rsp + 0xf0]
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
mov dword [rdi + 0x30], 0xaaaaaaaa
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movzx ecx, word [r15 + 0xe]
movzx edx, word [r15 + 0xc]
movzx r8d, word [r15 + 0xa]
movzx r10d, word [r15 + 8]
movzx r11d, word [r15 + 6]
movzx ebx, word [r15 + 2]
movzx r9d, word [r15]
mov r14d, r9d
shr r14d, 2
imul r14d, r14d, 0x147b
shr r14d, 0x11
imul r14d, r14d, 0x64
sub r9d, r14d
movzx r9d, r9w
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], ebx
lea r8, str._02d_02d_02d_02d_02d_02d_03d_d
mov edx, 0x1a
mov rcx, rdi
call fcn.140003340
mov rcx, r12
mov rdx, rdi
call fcn.140009270
movabs r12, 0x7ffffffffffffff7
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [r15 + 0x10], rax
movaps xmmword [r15], xmm6
movsx rdi, byte [rsp + 0x77]
mov r13, rdi
test rdi, rdi
jns 0x140002a07
mov r13, qword [rsp + 0x68]
lea rcx, str.Opera_installer_
call fcn.14002242c
mov r14, rax
lea rbx, [rax + r13]
movaps xmmword [rsp + 0xd0], xmm6
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xe0], rax
cmp rbx, r12
ja 0x140003245
cmp rbx, 0xa
jbe 0x140002aa5
lea rax, [r12 + 5]
and rax, rbx
add rax, 4
mov r12, rbx
or r12, 3
cmp r12, 0xb
cmove r12, rax
inc r12
js 0x140003233
lea rcx, [r12 + r12]
call fcn.14000b844
movabs rcx, 0x7ffffffffffffff7
add rcx, r12
add rcx, 9
mov qword [rsp + 0xe0], rcx
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xd8], rbx
test dil, dil
js 0x140002ac0
lea rdx, [rsp + 0x60]
jmp 0x140002ac5
xorps xmm0, xmm0
lea rax, [rsp + 0xd0]
movaps xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov byte [rax + 0x17], bl
jmp 0x140002a99
mov rdx, qword [rsp + 0x60]
lea rdi, [rax + r13*2]
cmp rdx, rax
jb 0x140002ad7
cmp rdi, rdx
ja 0x140003220
test r13, r13
je 0x140002aea
add r13, r13
mov rcx, rax
mov r8, r13
call fcn.140038260
lea r12, [rdi + r14*2]
lea rcx, str.Opera_installer_
cmp rdi, rcx
seta al
cmp r12, rcx
setbe cl
or cl, al
je 0x140003220
test r14, r14
je 0x140002b23
add r14, r14
lea rdx, str.Opera_installer_
mov rcx, rdi
mov r8, r14
call fcn.140038260
movsx r8, byte [rsp + 0xb7]
test r8, r8
cmovs r8, qword [rsp + 0xa8]
mov word [r12], 0
lea rdx, [rsp + 0xa0]
cmovs rdx, qword [rsp + 0xa0]
lea r14, [rsp + 0xd0]
mov rcx, r14
call fcn.14000b500
movups xmm0, xmmword [rax]
lea rdi, [rsp + 0xf0]
movaps xmmword [rdi], xmm0
mov rcx, qword [rax + 0x10]
mov qword [rdi + 0x10], rcx
xor ebx, ebx
mov qword [rax + 0x10], rbx
xorps xmm6, xmm6
movups xmmword [rax], xmm6
lea rdx, [0x14005da72]
mov r8d, 4
mov rcx, rdi
call fcn.14000b500
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x80], xmm0
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x90], rcx
mov qword [rax + 0x10], rbx
movups xmmword [rax], xmm6
cmp byte [rdi + 0x17], 0
jns 0x140002bc8
mov rcx, qword [rsp + 0xf0]
call fcn.14000b880
cmp byte [rsp + 0xe7], 0
mov rbx, qword [rsp + 0x380]
jns 0x140002be7
mov rcx, qword [rsp + 0xd0]
call fcn.14000b880
cmp byte [rsp + 0x97], 0
jns 0x140002bf9
mov r15, qword [rsp + 0x80]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov rcx, r15
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
mov r12, rax
inc r12
cmp r12, 2
jae 0x140003092
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0xf0]
mov dword [rdi], 0xbe
mov dword [rdi + 4], eax
xorps xmm6, xmm6
movups xmmword [rdi + 8], xmm6
mov qword [rdi + 0x18], 0
mov rcx, rbx
mov rdx, rdi
call fcn.140002330
cmp byte [rdi + 0x1f], 0
jns 0x140002c7d
mov rcx, qword [rsp + 0xf8]
call fcn.14000b880
movaps xmmword [rsp + 0xd0], xmm6
mov qword [rsp + 0xe0], 0
cmp r12, 2
jb 0x140002ca0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rsp + 0x97], 0
jns 0x140002cb7
mov rcx, qword [rsp + 0x80]
call fcn.14000b880
lea rbx, [rsi + 8]
cmp byte [rsp + 0xb7], 0
jns 0x140002cd2
mov rcx, qword [rsp + 0xa0]
call fcn.14000b880
cmp rbx, r14
je 0x140002d0a
cmp byte [rsi + 0x1f], 0
movzx r8d, byte [rsp + 0xe7]
js 0x1400031fb
test r8b, r8b
js 0x140002e50
mov rax, qword [rsp + 0xe0]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [rsp + 0xd0]
movups xmmword [rbx], xmm0
cmp byte [rsp + 0xe7], 0
js 0x140002e6d
mov word [rsp + 0xd0], 0
mov byte [rsp + 0xe7], 0
mov rcx, qword [rsp + 0xd8]
xor eax, eax
test al, al
movzx edx, al
cmovs rdx, rcx
test rdx, rdx
je 0x140002d81
test al, al
jns 0x140002d4e
mov r14, qword [rsp + 0xd0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [rsp + 0xe7], 0
jns 0x140002d92
mov rax, qword [rsp + 0xd0]
mov word [rax], 0
mov qword [rsp + 0xd8], 0
mov al, byte [rsp + 0xe7]
test al, al
jns 0x140002d92
mov rcx, qword [rsp + 0xd0]
call fcn.14000b880
movsx rax, byte [rsi + 0x1f]
test rax, rax
jns 0x140002da0
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x140002fdc
xorps xmm6, xmm6
movups xmmword [rsp + 0xf8], xmm6
mov qword [rsp + 0x108], 0
lea rcx, [0x14005da26]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0xf0], rax
test rax, rax
je 0x140002f08
lea rdx, str.SetDefaultDllDirectories
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
test rax, rax
je 0x140002e94
mov ecx, 0x800
call qword [0x140060218]
test eax, eax
je 0x140002f50
lea rcx, str.version.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
mov qword [rsp + 0xa0], rax
test rax, rax
jne 0x140002e96
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0x80]
mov dword [rdi], 0x93
jmp 0x140002f64
mov rdx, qword [rsp + 0xd0]
mov r8, qword [rsp + 0xd8]
mov rcx, rbx
call fcn.140009380
jmp 0x140002d0a
mov rax, qword [rsp + 0xd0]
mov word [rax], 0
mov qword [rsp + 0xd8], 0
xor ecx, ecx
mov al, byte [rsp + 0xe7]
jmp 0x140002d34
xor edi, edi
cmp byte [rsi + 0x1f], 0
jns 0x140002ea0
mov rbx, qword [rsi + 8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsi], rax
test rdi, rdi
je 0x140002f99
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [rsp + 0xbf]
mov qword [rsp + 0xa0], 0
test al, al
js 0x140003076
je 0x140002f99
lea rcx, [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [rsp + 0xbf], 0
js 0x1400031b9
mov byte [rsp + 0xbf], 0
jmp 0x140002f99
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0xa0]
mov dword [rdi], 0x79
mov dword [rdi + 4], eax
movups xmmword [rdi + 8], xmm6
mov qword [rdi + 0x18], 0
mov rcx, qword [rsp + 0x380]
mov rdx, rdi
call fcn.140002330
cmp byte [rdi + 0x1f], 0
jns 0x140002fac
mov rcx, qword [rsp + 0xa8]
call fcn.14000b880
jmp 0x140002fac
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0x80]
mov dword [rdi], 0x88
mov dword [rdi + 4], eax
xorps xmm0, xmm0
movups xmmword [rdi + 8], xmm0
mov qword [rdi + 0x18], 0
mov rcx, qword [rsp + 0x380]
mov rdx, rdi
call fcn.140002330
cmp byte [rdi + 0x1f], 0
jns 0x140002f99
mov rcx, qword [rsp + 0x88]
call fcn.14000b880
mov rcx, qword [rsp + 0xf0]
test rcx, rcx
je 0x140002fac
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0xf0], 0
cmp byte [rsp + 0x10f], 0
js 0x14000302b
je 0x140002fdc
lea rcx, [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [rsp + 0x10f], 0
js 0x140003045
cmp qword [rsi], 0
mov rcx, qword [rsp + 0x380]
jne 0x140002721
lea rdi, [rsp + 0xf0]
mov dword [rdi], 0x108
xorps xmm0, xmm0
movups xmmword [rdi + 4], xmm0
movups xmmword [rdi + 0x10], xmm0
mov rdx, rdi
call fcn.140002330
cmp byte [rdi + 0x1f], 0
jns 0x140002721
mov rcx, qword [rsp + 0xf8]
call fcn.14000b880
jmp 0x140002721
cmp qword [rsp + 0x100], 0
mov rcx, qword [rsp + 0xf8]
jne 0x140002fcc
call fcn.14000b880
jmp 0x140002fdc
mov rax, qword [rsp + 0xf8]
mov word [rax], 0
mov qword [rsp + 0x100], 0
cmp byte [rsp + 0x10f], 0
jns 0x140002fdc
mov rcx, qword [rsp + 0xf8]
jmp 0x14000303e
cmp qword [rsp + 0xb0], 0
mov rcx, qword [rsp + 0xa8]
jne 0x140002ee7
jmp 0x140002f94
test ebp, ebp
je 0x1400030ef
xor r13d, r13d
lea rdi, [rsp + 0xcc]
mov r14, qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0xcc], 0xaaaaaaaa
mov r8d, ebp
sub r8d, r13d
mov qword [rsp + 0x20], 0
mov rcx, r15
mov rdx, qword [rsp + 0x58]
mov r9, rdi
call r14
test eax, eax
je 0x140003171
mov eax, dword [rsp + 0xcc]
test eax, eax
je 0x140003171
add r13d, eax
cmp r13d, ebp
jne 0x1400030a8
xorps xmm0, xmm0
movaps xmmword [rsp + 0xd0], xmm0
mov qword [rsp + 0xe0], 0
cmp byte [rsp + 0x97], 0
js 0x140003152
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x100], rax
movaps xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0xf0], xmm0
lea r14, [rsp + 0xd0]
lea rcx, [rsp + 0xd0]
lea rdx, [rsp + 0xf0]
call fcn.140003280
jmp 0x140002c91
mov rdx, qword [rsp + 0x80]
mov r8, qword [rsp + 0x88]
lea rcx, [rsp + 0xf0]
call fcn.14000b400
jmp 0x140003130
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0xf0]
mov dword [rdi], 0xc7
mov dword [rdi + 4], eax
xorps xmm6, xmm6
movups xmmword [rdi + 8], xmm6
mov qword [rdi + 0x18], 0
mov rcx, rbx
mov rdx, rdi
call fcn.140002330
cmp byte [rdi + 0x1f], 0
lea r14, [rsp + 0xd0]
jns 0x140002c7d
jmp 0x140002c70
mov rax, qword [rsp + 0xa8]
mov word [rax], 0
mov qword [rsp + 0xb0], 0
cmp byte [rsp + 0xbf], 0
jns 0x140002f99
mov rcx, qword [rsp + 0xa8]
jmp 0x140002f94
mov eax, r15d
and al, 0x7f
mov byte [rsp + 0x77], al
jmp 0x14000279e
test r8b, r8b
cmovs r8, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0xd0]
cmovns rdx, r14
mov rcx, rbx
call fcn.1400092a0
jmp 0x140002d0a
lea rcx, [0x14005d80b]
lea rdx, [0x14005d922]
call fcn.140050390
call fcn.1400395b0
lea rcx, [rsp + 0x80]
call fcn.1400395d0
lea rcx, [rsp + 0xd0]
call fcn.1400395d0
int3