Function at 0x140002b50
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, 0x328
movaps xmmword [rsp + 0x310], xmm7
movaps xmmword [rsp + 0x300], xmm6
mov rbx, r9
mov ebp, r8d
mov rsi, rcx
mov rdi, qword [rsp + 0x390]
mov rax, qword [0x140068028]
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 0x140002c1b
lea r15, [rsp + 0xf0]
mov r8d, 0x208
mov rcx, r15
mov dl, 0xaa
call fcn.140012640
xor ecx, ecx
mov rdx, r15
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x80]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [0x14005c820]
movaps xmmword [r14], xmm0
mov rcx, r14
mov rdx, r15
call fcn.1400024d0
movzx eax, byte [r14 + 0x17]
test al, al
jns 0x140002c83
mov rax, qword [rsp + 0x88]
mov r14, qword [rsp + 0x80]
jmp 0x140002c86
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x140002dcb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rbx, [rsp + 0xf0]
mov dword [rbx], 0xef
mov dword [rbx + 4], eax
xorps xmm6, xmm6
movups xmmword [rbx + 8], xmm6
mov qword [rbx + 0x18], 0
mov rcx, rdi
mov rdx, rbx
call fcn.140002940
cmp byte [rbx + 0x1f], 0
jns 0x140002c71
mov rcx, qword [rsp + 0xf8]
call fcn.14000f340
xor eax, eax
mov qword [rsi], rax
movups xmmword [rsi + 8], xmm6
mov qword [rsi + 0x18], rax
jmp 0x140002d25
and eax, 0x7f
test rax, rax
je 0x140002cad
add rax, rax
test rax, rax
je 0x140002cad
lea r9, [rax - 2]
cmp word [r14 + rax - 2], 0x5c
mov rax, r9
jne 0x140002c8e
cmp r9, 0xfffffffffffffffe
jne 0x140002d6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r14, [rsp + 0xa0]
mov dword [r14], 0xfe
mov dword [r14 + 4], eax
xorps xmm6, xmm6
movups xmmword [r14 + 8], xmm6
mov qword [r14 + 0x18], 0
mov rcx, rdi
mov rdx, r14
call fcn.140002940
cmp byte [r14 + 0x1f], 0
jns 0x140002cf5
mov rcx, qword [rsp + 0xa8]
call fcn.14000f340
xor eax, eax
mov qword [rsi], rax
movups xmmword [rsi + 8], xmm6
mov qword [rsi + 0x18], rax
mov r14b, 1
cmp byte [rsp + 0x97], 0
jns 0x140002d1c
mov rcx, qword [rsp + 0x80]
call fcn.14000f340
test r14b, r14b
je 0x140002e18
cmp byte [rsp + 0x77], 0
jns 0x140002d36
mov rcx, qword [rsp + 0x60]
call fcn.14000f340
mov rcx, qword [rsp + 0x2f8]
xor rcx, rsp
call fcn.14000ff00
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x300]
movaps xmm7, xmmword [rsp + 0x310]
add rsp, 0x328
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
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.14000d980
cmp byte [rsp + 0x77], 0
jns 0x140002da9
mov rcx, qword [rsp + 0x60]
call fcn.14000f340
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rsp + 0xa0]
movaps xmmword [rsp + 0x60], xmm0
xor r14d, r14d
jmp 0x140002d05
mov r14d, eax
dec eax
movsxd rdx, eax
lea r15, [rsp + 0x60]
mov rcx, r15
xor r8d, r8d
call fcn.14000f140
cmp byte [r15 + 0x17], 0
jns 0x140002def
mov r15, qword [rsp + 0x60]
mov ecx, r14d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x140002e18
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rbx, [rsp + 0xf0]
mov dword [rbx], 0xf4
jmp 0x140002c41
xor eax, eax
mov qword [rsi], rax
xorps xmm6, xmm6
movups xmmword [rsi + 8], xmm6
mov qword [rsi + 0x18], rax
lea r12, [rsp + 0xa0]
mov qword [r12 + 0x10], rax
movaps xmmword [r12], xmm6
movaps xmm7, xmmword [0x14005c820]
lea r14, [rsp + 0x80]
movaps xmmword [r14], xmm7
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea r15, [rsp + 0xf0]
movaps xmmword [r15 + 0x20], xmm7
movaps xmmword [r15 + 0x10], xmm7
movaps xmmword [r15], xmm7
mov dword [r15 + 0x30], 0xaaaaaaaa
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movzx ecx, word [r14 + 0xe]
movzx edx, word [r14 + 0xc]
movzx r8d, word [r14 + 0xa]
movzx r10d, word [r14 + 8]
movzx r11d, word [r14 + 6]
movzx r13d, word [r14 + 2]
movzx edi, word [r14]
mov r9d, edi
shr r9d, 2
imul r9d, r9d, 0x147b
shr r9d, 0x11
imul r9d, r9d, 0x64
sub edi, r9d
movzx r9d, di
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], r13d
lea r8, str._02d_02d_02d_02d_02d_02d_03d_d
mov edx, 0x1a
mov rcx, r15
call fcn.140003860
mov rcx, r15
call fcn.140025a8c
mov rcx, r12
mov rdx, r15
mov r8, rax
call fcn.14000d6d0
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [r14 + 0x10], r15
movaps xmmword [r14], xmm7
lea r8, str.Opera_installer_
lea rdi, [rsp + 0xd0]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140003720
movzx r8d, byte [r12 + 0x17]
test r8b, r8b
jns 0x140002f4e
mov r8, qword [rsp + 0xa8]
mov r12, qword [rsp + 0xa0]
jmp 0x140002f52
and r8d, 0x7f
mov rcx, rdi
mov rdx, r12
call fcn.14000d7d0
movups xmm0, xmmword [rax]
lea r12, [rsp + 0xf0]
movaps xmmword [r12], xmm0
mov rcx, qword [rax + 0x10]
mov qword [r12 + 0x10], rcx
xor edi, edi
mov qword [rax + 0x10], rdi
movups xmmword [rax], xmm6
lea rdx, [0x14005cc7a]
mov r8d, 4
mov rcx, r12
call fcn.14000d7d0
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x90], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x80], xmm0
movups xmmword [rax], xmm6
mov qword [rax + 0x10], rdi
cmp byte [r12 + 0x17], 0
jns 0x140002fc7
mov rcx, qword [rsp + 0xf0]
call fcn.14000f340
cmp byte [rsp + 0xe7], 0
jns 0x140002fde
mov rcx, qword [rsp + 0xd0]
call fcn.14000f340
cmp byte [rsp + 0x97], 0
jns 0x140002ff0
mov r14, qword [rsp + 0x80]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov rcx, r14
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov r13, rax
inc r13
cmp r13, 2
jae 0x14000325a
mov r14, rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rbx, [rsp + 0xf0]
mov dword [rbx], 0xbe
mov dword [rbx + 4], eax
xorps xmm6, xmm6
movups xmmword [rbx + 8], xmm6
mov qword [rbx + 0x18], 0
mov rdi, qword [rsp + 0x390]
mov rcx, rdi
mov rdx, rbx
call fcn.140002940
cmp byte [rbx + 0x1f], 0
jns 0x14000307f
mov rcx, qword [rsp + 0xf8]
call fcn.14000f340
movaps xmmword [rsp + 0xd0], xmm6
mov qword [rsp + 0xe0], 0
cmp r13, 2
jb 0x1400030a2
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rsp + 0x97], 0
jns 0x1400030b9
mov rcx, qword [rsp + 0x80]
call fcn.14000f340
lea rbx, [rsi + 8]
cmp byte [rsp + 0xb7], 0
jns 0x1400030d4
mov rcx, qword [rsp + 0xa0]
call fcn.14000f340
lea r14, [rsp + 0xd0]
mov rcx, rbx
mov rdx, r14
call fcn.1400038f0
cmp byte [r14 + 0x17], 0
js 0x14000310c
mov word [rsp + 0xd0], 0
mov byte [rsp + 0xe7], 0
mov rcx, qword [rsp + 0xd8]
xor eax, eax
jmp 0x14000312e
mov rax, qword [rsp + 0xd0]
mov word [rax], 0
mov qword [rsp + 0xd8], 0
xor ecx, ecx
mov al, byte [rsp + 0xe7]
mov edx, eax
and dl, 0x7f
test al, al
movzx edx, dl
cmovs rdx, rcx
test rdx, rdx
je 0x140003180
test al, al
jns 0x14000314d
mov r14, qword [rsp + 0xd0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [rsp + 0xe7], 0
jns 0x140003191
mov rax, qword [rsp + 0xd0]
mov word [rax], 0
mov qword [rsp + 0xd8], 0
mov al, byte [rsp + 0xe7]
test al, al
jns 0x140003191
mov rcx, qword [rsp + 0xd0]
call fcn.14000f340
movzx eax, byte [rsi + 0x1f]
test al, al
jns 0x14000319f
mov rax, qword [rsi + 0x10]
jmp 0x1400031a2
and eax, 0x7f
test rax, rax
je 0x140003539
xorps xmm6, xmm6
movups xmmword [rsp + 0xf8], xmm6
mov qword [rsp + 0x108], 0
lea rcx, [0x14005cc2e]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0xf0], rax
test rax, rax
je 0x140003307
lea rdx, str.SetDefaultDllDirectories
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xa0], r15
movups xmmword [rsp + 0xa8], xmm6
mov qword [rsp + 0xb8], 0
test rax, rax
je 0x140003351
mov ecx, 0x800
call qword [0x140071008]
test eax, eax
je 0x1400033f8
lea rcx, str.version.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r14, rax
test rax, rax
jne 0x140003354
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rbx, [rsp + 0x80]
mov dword [rbx], 0x93
jmp 0x14000340c
mov qword [rsp + 0x58], r13
test ebp, ebp
je 0x1400032ba
xor r15d, r15d
lea r13, [rsp + 0xcc]
mov r14, qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0xcc], 0xaaaaaaaa
mov r8d, ebp
sub r8d, r15d
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rbx
mov r9, r13
call r14
test eax, eax
je 0x140003381
mov eax, dword [rsp + 0xcc]
test eax, eax
je 0x140003381
add r15d, eax
cmp r15d, ebp
jne 0x140003275
xorps xmm0, xmm0
movaps xmmword [rsp + 0xd0], xmm0
mov qword [rsp + 0xe0], 0
cmp byte [rsp + 0x97], 0
js 0x140003588
mov r14, rdi
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x100], rax
movaps xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0xf0], xmm0
jmp 0x140003622
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rbx, [rsp + 0xa0]
mov dword [rbx], 0x79
mov dword [rbx + 4], eax
movups xmmword [rbx + 8], xmm6
mov qword [rbx + 0x18], 0
mov rcx, rdi
mov rdx, rbx
call fcn.140002940
cmp byte [rbx + 0x1f], 0
jns 0x1400034c4
mov rcx, qword [rsp + 0xa8]
call fcn.14000f340
jmp 0x1400034c4
xor r14d, r14d
cmp byte [rsi + 0x1f], 0
jns 0x14000335e
mov rbx, qword [rsi + 8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsi], rax
test r14, r14
je 0x14000343c
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14000343c
mov r14, rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rbx, [rsp + 0xf0]
mov dword [rbx], 0xc7
mov dword [rbx + 4], eax
xorps xmm6, xmm6
movups xmmword [rbx + 8], xmm6
mov qword [rbx + 0x18], 0
mov rdi, qword [rsp + 0x390]
mov rcx, rdi
mov rdx, rbx
call fcn.140002940
cmp byte [rbx + 0x1f], 0
mov r13, qword [rsp + 0x58]
jns 0x1400033d5
mov rcx, qword [rsp + 0xf8]
call fcn.14000f340
movaps xmmword [rsp + 0xd0], xmm6
mov qword [rsp + 0xe0], 0
movabs r15, 0xaaaaaaaaaaaaaaaa
jmp 0x140003093
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rbx, [rsp + 0x80]
mov dword [rbx], 0x88
mov dword [rbx + 4], eax
xorps xmm0, xmm0
movups xmmword [rbx + 8], xmm0
mov qword [rbx + 0x18], 0
mov rcx, rdi
mov rdx, rbx
call fcn.140002940
cmp byte [rbx + 0x1f], 0
jns 0x14000343c
mov rcx, qword [rsp + 0x88]
call fcn.14000f340
mov qword [rsp + 0xa0], 0
cmp byte [rsp + 0xbf], 0
js 0x14000345e
je 0x1400034b1
lea rcx, [rsp + 0xa8]
jmp 0x140003471
cmp qword [rsp + 0xb0], 0
je 0x1400034a4
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [rsp + 0xbf], 0
jns 0x1400034b1
mov rax, qword [rsp + 0xa8]
mov word [rax], 0
mov qword [rsp + 0xb0], 0
cmp byte [rsp + 0xbf], 0
jns 0x1400034b1
mov rcx, qword [rsp + 0xa8]
call fcn.14000f340
mov rcx, qword [rsp + 0xf0]
test rcx, rcx
je 0x1400034c4
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0xf0], 0
cmp byte [rsp + 0x10f], 0
js 0x1400034e6
je 0x140003539
lea rcx, [rsp + 0xf8]
jmp 0x1400034f9
cmp qword [rsp + 0x100], 0
je 0x14000352c
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [rsp + 0x10f], 0
jns 0x140003539
mov rax, qword [rsp + 0xf8]
mov word [rax], 0
mov qword [rsp + 0x100], 0
cmp byte [rsp + 0x10f], 0
jns 0x140003539
mov rcx, qword [rsp + 0xf8]
call fcn.14000f340
cmp qword [rsi], 0
jne 0x140002d25
lea rbx, [rsp + 0xf0]
mov qword [rbx], 0x108
xorps xmm0, xmm0
movups xmmword [rbx + 8], xmm0
mov qword [rbx + 0x18], 0
mov rcx, rdi
mov rdx, rbx
call fcn.140002940
cmp byte [rbx + 0x1f], 0
jns 0x140002d25
mov rcx, qword [rsp + 0xf8]
call fcn.14000f340
jmp 0x140002d25
mov r13, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
cmp rbx, 0xa
ja 0x1400035a7
mov byte [rsp + 0x107], bl
jmp 0x1400035f5
movabs r14, 0x7fffffffffffffef
cmp rbx, r14
ja 0x140003709
mov r15, rbx
or r15, 7
inc r15
js 0x14000370e
lea rcx, [r15 + r15]
call fcn.14000f304
mov r12, rax
mov qword [rsp + 0xf0], rax
add r14, 0x11
or r14, r15
mov qword [rsp + 0x100], r14
mov qword [rsp + 0xf8], rbx
cmp r12, r13
ja 0x14000360b
lea rax, [r12 + rbx*2]
add rax, 2
cmp rax, r13
ja 0x1400036dd
mov r14, rdi
inc rbx
add rbx, rbx
mov rcx, r12
mov rdx, r13
mov r8, rbx
call fcn.140011f90
cmp byte [rsp + 0xe7], 0
mov rdi, qword [rsp + 0x390]
lea rcx, [rsp + 0xd0]
mov r13, qword [rsp + 0x58]
js 0x14000364f
movabs r15, 0xaaaaaaaaaaaaaaaa
jne 0x14000366c
jmp 0x1400036a9
cmp qword [rsp + 0xd8], 0
movabs r15, 0xaaaaaaaaaaaaaaaa
je 0x1400036a9
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [rsp + 0xe7], 0
js 0x140003690
mov word [rsp + 0xd0], 0
mov byte [rsp + 0xe7], 0
jmp 0x1400036a9
mov rax, qword [rsp + 0xd0]
mov word [rax], 0
mov qword [rsp + 0xd8], 0
lea rcx, [rsp + 0xd0]
lea rbx, [rsp + 0xf0]
mov rdx, rbx
call fcn.1400038f0
cmp byte [rbx + 0x17], 0
jns 0x140003093
mov rcx, qword [rsp + 0xf0]
call fcn.14000f340
jmp 0x140003093
lea rax, [0x14005cb4b]
mov qword [rsp + 0x20], rax
lea rcx, [0x14005cac1]
lea rdx, [0x14005cb8e]
lea r9, [0x14005cb6e]
mov r8d, 0x134
call fcn.14004fdb0
call fcn.140023ca8
call fcn.14003abe0
int3