Function at 0x1400022c0
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], xmm6
mov rbx, r9
mov ebp, r8d
mov rsi, rcx
mov r13, qword [rsp + 0x390]
mov rax, qword [0x140068028]
xor rax, rsp
mov qword [rsp + 0x308], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], 0
test edx, edx
jne 0x140002481
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14000235c
mov r14d, eax
lea eax, [r14 - 1]
movsxd rdi, eax
test edi, edi
jne 0x140002416
lea r15, [rsp + 0x70]
mov byte [r15 + 0x17], 0
mov word [r15 + rdi*2], 0
cmp byte [rsp + 0x87], 0
js 0x140002372
lea rdx, [rsp + 0x70]
jmp 0x140002377
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0x100]
mov dword [rdi], 0xef
jmp 0x14000239c
mov rdx, qword [rsp + 0x70]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x140002584
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0x100]
mov dword [rdi], 0xf4
mov dword [rdi + 4], eax
xorps xmm6, xmm6
movups xmmword [rdi + 8], xmm6
mov qword [rdi + 0x18], 0
mov rcx, r13
mov rdx, rdi
call fcn.1400020d0
cmp byte [rdi + 0x1f], 0
jns 0x1400023cc
mov rcx, qword [rsp + 0x108]
call fcn.14000ca80
movups xmmword [rsi + 0x10], xmm6
movups xmmword [rsi], xmm6
cmp byte [rsp + 0x87], 0
jns 0x1400023e7
mov rcx, qword [rsp + 0x70]
call fcn.14000ca80
mov rcx, qword [rsp + 0x308]
xor rcx, rsp
call fcn.14000d640
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x310]
add rsp, 0x328
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp eax, 0xb
jae 0x140002446
lea r15, [rsp + 0x70]
lea r8, [rdi + rdi]
mov rcx, r15
xor edx, edx
call fcn.14000fdb0
cmp byte [rsp + 0x87], 0
jns 0x140002e53
mov qword [rsp + 0x78], rdi
jmp 0x140002344
lea r8, [rdi - 0xa]
xor r12d, r12d
mov qword [rsp + 0x30], r12
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea r15, [rsp + 0x70]
mov edx, 0xa
mov rcx, r15
xor r9d, r9d
call fcn.14000ac20
mov qword [r15 + 8], r12
cmp byte [r15 + 0x17], 0
jns 0x140002420
mov r15, qword [rsp + 0x70]
jmp 0x140002420
lea rdi, [rsp + 0x100]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14000fdb0
xor ecx, ecx
mov rdx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x90]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [0x14005c610]
movaps xmmword [r14], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.140039860
movzx eax, byte [r14 + 0x17]
test al, al
jns 0x1400024ef
mov rax, qword [rsp + 0x98]
mov r14, qword [rsp + 0x90]
test rax, rax
je 0x140002516
add rax, rax
test rax, rax
je 0x140002516
lea r9, [rax - 2]
cmp word [r14 + rax - 2], 0x5c
mov rax, r9
jne 0x1400024f7
cmp r9, 0xfffffffffffffffe
jne 0x140002e63
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0xb0]
mov dword [rdi], 0xfe
mov dword [rdi + 4], eax
xorps xmm6, xmm6
movups xmmword [rdi + 8], xmm6
mov qword [rdi + 0x18], 0
mov rcx, r13
mov rdx, rdi
call fcn.1400020d0
cmp byte [rdi + 0x1f], 0
jns 0x14000255a
mov rcx, qword [rsp + 0xb8]
call fcn.14000ca80
movups xmmword [rsi + 0x10], xmm6
movups xmmword [rsi], xmm6
mov dil, 1
cmp byte [rsp + 0xa7], 0
jns 0x14000257b
mov rcx, qword [rsp + 0x90]
call fcn.14000ca80
test dil, dil
jne 0x1400023d3
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi], xmm0
lea r13, [rsp + 0xb0]
movaps xmmword [r13], xmm0
mov qword [r13 + 0x10], 0
movaps xmm6, xmmword [0x14005c610]
lea r15, [rsp + 0x90]
movaps xmmword [r15], xmm6
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea r14, [rsp + 0x100]
movaps xmmword [r14 + 0x20], xmm6
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
mov dword [r14 + 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 edi, word [r15 + 2]
movzx r9d, word [r15]
mov r12d, r9d
shr r12d, 2
imul r12d, r12d, 0x147b
shr r12d, 0x11
imul r12d, r12d, 0x64
sub r9d, r12d
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], edi
lea r8, str._02d_02d_02d_02d_02d_02d_03d_d
mov edx, 0x1a
mov rcx, r14
call fcn.140003000
mov rcx, r13
mov rdx, r14
call fcn.14000a3d0
movabs r12, 0x7ffffffffffffff7
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [r15 + 0x10], rax
movaps xmmword [r15], xmm6
movzx edi, byte [rsp + 0x87]
mov r13, rdi
test dil, dil
jns 0x140002691
mov r13, qword [rsp + 0x78]
lea rcx, str.Opera_installer_
call fcn.14002436c
lea r14, [rax + r13]
movaps xmmword [rsp + 0xe0], xmm6
movabs rcx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xf0], rcx
cmp r14, r12
ja 0x140002f03
mov qword [rsp + 0x68], rax
cmp r14, 0xa
jbe 0x140002738
mov qword [rsp + 0x60], rdi
lea rax, [r12 + 5]
and rax, r14
add rax, 4
mov rdi, r14
or rdi, 3
cmp rdi, 0xb
cmove rdi, rax
inc rdi
js 0x140002efe
lea rcx, [rdi + rdi]
call fcn.14000ca44
add r12, 9
or r12, rdi
mov qword [rsp + 0xf0], r12
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xe8], r14
mov rdi, qword [rsp + 0x60]
test dil, dil
js 0x14000286c
lea rdx, [rsp + 0x70]
jmp 0x140002871
xorps xmm0, xmm0
lea rax, [rsp + 0xe0]
movaps xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov byte [rax + 0x17], r14b
jmp 0x140002725
test ebp, ebp
je 0x1400027af
xor r13d, r13d
lea rdi, [rsp + 0xdc]
mov r14, qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0xdc], 0xaaaaaaaa
mov r8d, ebp
sub r8d, r13d
mov qword [rsp + 0x20], 0
mov rcx, r15
mov rdx, rbx
mov r9, rdi
call r14
test eax, eax
je 0x140002839
mov eax, dword [rsp + 0xdc]
test eax, eax
je 0x140002839
add r13d, eax
cmp r13d, ebp
jne 0x14000276a
xorps xmm0, xmm0
movaps xmmword [rsp + 0xe0], xmm0
mov qword [rsp + 0xf0], 0
cmp byte [rsp + 0xa7], 0
js 0x14000281a
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x110], rax
movaps xmm0, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0x100], xmm0
mov r13, qword [rsp + 0x390]
lea rdi, [rsp + 0xe0]
lea rcx, [rsp + 0xe0]
lea rdx, [rsp + 0x100]
call fcn.140002f40
jmp 0x140002a3f
mov rdx, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
lea rcx, [rsp + 0x100]
call fcn.14000c5d0
jmp 0x1400027f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0x100]
mov dword [rdi], 0xc7
mov dword [rdi + 4], eax
xorps xmm6, xmm6
movups xmmword [rdi + 8], xmm6
mov qword [rdi + 0x18], 0
mov r13, qword [rsp + 0x390]
jmp 0x140002a05
mov rdx, qword [rsp + 0x70]
lea rdi, [rax + r13*2]
cmp rdx, rax
jb 0x140002883
cmp rdi, rdx
ja 0x140002eeb
test r13, r13
je 0x140002896
add r13, r13
mov rcx, rax
mov r8, r13
call fcn.14000f700
mov r8, qword [rsp + 0x68]
lea r12, [rdi + r8*2]
lea rax, str.Opera_installer_
cmp rdi, rax
ja 0x1400028b4
cmp r12, rax
ja 0x140002eeb
test r8, r8
mov r13, qword [rsp + 0x390]
je 0x1400028d3
add r8, r8
lea rdx, str.Opera_installer_
mov rcx, rdi
call fcn.14000f700
movzx r8d, byte [rsp + 0xc7]
test r8b, r8b
cmovs r8, qword [rsp + 0xb8]
mov word [r12], 0
lea rdx, [rsp + 0xb0]
cmovs rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0xe0]
call fcn.14000c6d0
movups xmm0, xmmword [rax]
lea rdi, [rsp + 0x100]
movaps xmmword [rdi], xmm0
mov rcx, qword [rax + 0x10]
mov qword [rdi + 0x10], rcx
xor r14d, r14d
mov qword [rax + 0x10], r14
xorps xmm6, xmm6
movups xmmword [rax], xmm6
lea rdx, [0x14005cb22]
mov r8d, 4
mov rcx, rdi
call fcn.14000c6d0
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x90], xmm0
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0xa0], rcx
mov qword [rax + 0x10], r14
movups xmmword [rax], xmm6
cmp byte [rdi + 0x17], 0
jns 0x140002976
mov rcx, qword [rsp + 0x100]
call fcn.14000ca80
cmp byte [rsp + 0xf7], 0
jns 0x14000298d
mov rcx, qword [rsp + 0xe0]
call fcn.14000ca80
cmp byte [rsp + 0xa7], 0
jns 0x14000299f
mov r15, qword [rsp + 0x90]
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 0x140002754
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0x100]
mov dword [rdi], 0xbe
mov dword [rdi + 4], eax
xorps xmm6, xmm6
movups xmmword [rdi + 8], xmm6
mov qword [rdi + 0x18], 0
mov rcx, r13
mov rdx, rdi
call fcn.1400020d0
cmp byte [rdi + 0x1f], 0
jns 0x140002a23
mov rcx, qword [rsp + 0x108]
call fcn.14000ca80
movaps xmmword [rsp + 0xe0], xmm6
mov qword [rsp + 0xf0], 0
lea rdi, [rsp + 0xe0]
cmp r12, 2
jb 0x140002a4e
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rsp + 0xa7], 0
jns 0x140002a65
mov rcx, qword [rsp + 0x90]
call fcn.14000ca80
lea rbx, [rsi + 8]
cmp byte [rsp + 0xc7], 0
jns 0x140002a80
mov rcx, qword [rsp + 0xb0]
call fcn.14000ca80
cmp rbx, rdi
je 0x140002ab9
cmp byte [rsi + 0x1f], 0
movzx r8d, byte [rsp + 0xf7]
js 0x140002ec6
test r8b, r8b
jns 0x140002bf5
mov rdx, qword [rsp + 0xe0]
mov r8, qword [rsp + 0xe8]
mov rcx, rbx
call fcn.14000a610
cmp byte [rsp + 0xf7], 0
js 0x140002c11
mov word [rsp + 0xe0], 0
mov byte [rsp + 0xf7], 0
mov rcx, qword [rsp + 0xe8]
xor eax, eax
test al, al
movzx edx, al
cmovs rdx, rcx
test rdx, rdx
je 0x140002b30
test al, al
jns 0x140002afd
mov rdi, qword [rsp + 0xe0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [rsp + 0xf7], 0
jns 0x140002b41
mov rax, qword [rsp + 0xe0]
mov word [rax], 0
mov qword [rsp + 0xe8], 0
mov al, byte [rsp + 0xf7]
test al, al
jns 0x140002b41
mov rcx, qword [rsp + 0xe0]
call fcn.14000ca80
movzx eax, byte [rsi + 0x1f]
test al, al
jns 0x140002b4d
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x140002d8a
xorps xmm6, xmm6
movups xmmword [rsp + 0x108], xmm6
mov qword [rsp + 0x118], 0
lea rcx, [0x14005cad6]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x100], rax
test rax, rax
je 0x140002cc0
lea rdx, str.SetDefaultDllDirectories
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0xb0], xmm6
test rax, rax
je 0x140002c38
mov ecx, 0x800
call qword [0x14005f188]
test eax, eax
je 0x140002d03
lea rcx, str.version.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
jne 0x140002c3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0x90]
mov dword [rdi], 0x93
jmp 0x140002d17
mov rax, qword [rsp + 0xf0]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [rsp + 0xe0]
movups xmmword [rbx], xmm0
jmp 0x140002ab9
mov rax, qword [rsp + 0xe0]
mov word [rax], 0
mov qword [rsp + 0xe8], 0
xor ecx, ecx
mov al, byte [rsp + 0xf7]
jmp 0x140002ae3
xor edi, edi
cmp byte [rsi + 0x1f], 0
jns 0x140002c44
mov rbx, qword [rsi + 8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsi], rax
test rdi, rdi
je 0x140002d47
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [rsp + 0xcf]
mov qword [rsp + 0xb0], 0
test al, al
js 0x140002ca8
je 0x140002d47
lea rcx, [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [rsp + 0xcf], 0
js 0x140002e1f
mov byte [rsp + 0xcf], 0
jmp 0x140002d47
cmp qword [rsp + 0xc0], 0
mov rcx, qword [rsp + 0xb8]
jne 0x140002c87
jmp 0x140002d42
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0xb0]
mov dword [rdi], 0x79
mov dword [rdi + 4], eax
movups xmmword [rdi + 8], xmm6
mov qword [rdi + 0x18], 0
mov rcx, r13
mov rdx, rdi
call fcn.1400020d0
cmp byte [rdi + 0x1f], 0
jns 0x140002d5a
mov rcx, qword [rsp + 0xb8]
call fcn.14000ca80
jmp 0x140002d5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0x90]
mov dword [rdi], 0x88
mov dword [rdi + 4], eax
xorps xmm0, xmm0
movups xmmword [rdi + 8], xmm0
mov qword [rdi + 0x18], 0
mov rcx, r13
mov rdx, rdi
call fcn.1400020d0
cmp byte [rdi + 0x1f], 0
jns 0x140002d47
mov rcx, qword [rsp + 0x98]
call fcn.14000ca80
mov rcx, qword [rsp + 0x100]
test rcx, rcx
je 0x140002d5a
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x100], 0
cmp byte [rsp + 0x11f], 0
js 0x140002dd4
je 0x140002d8a
lea rcx, [rsp + 0x108]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [rsp + 0x11f], 0
js 0x140002dee
cmp qword [rsi], 0
jne 0x1400023d3
lea rdi, [rsp + 0x100]
mov dword [rdi], 0x108
xorps xmm0, xmm0
movups xmmword [rdi + 4], xmm0
movups xmmword [rdi + 0x10], xmm0
mov rcx, r13
mov rdx, rdi
call fcn.1400020d0
cmp byte [rdi + 0x1f], 0
jns 0x1400023d3
mov rcx, qword [rsp + 0x108]
call fcn.14000ca80
jmp 0x1400023d3
cmp qword [rsp + 0x110], 0
mov rcx, qword [rsp + 0x108]
jne 0x140002d7a
call fcn.14000ca80
jmp 0x140002d8a
mov rax, qword [rsp + 0x108]
mov word [rax], 0
mov qword [rsp + 0x110], 0
cmp byte [rsp + 0x11f], 0
jns 0x140002d8a
mov rcx, qword [rsp + 0x108]
jmp 0x140002de7
mov rax, qword [rsp + 0xb8]
mov word [rax], 0
mov qword [rsp + 0xc0], 0
cmp byte [rsp + 0xcf], 0
jns 0x140002d47
mov rcx, qword [rsp + 0xb8]
jmp 0x140002d42
mov eax, edi
and al, 0x7f
mov byte [rsp + 0x87], al
jmp 0x140002344
sar r9, 1
inc r9
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0xb0]
lea rdx, [rsp + 0x90]
xor r8d, r8d
call fcn.14000a400
cmp byte [rsp + 0x87], 0
jns 0x140002ea2
mov rcx, qword [rsp + 0x70]
call fcn.14000ca80
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x80], rax
movups xmm0, xmmword [rsp + 0xb0]
movaps xmmword [rsp + 0x70], xmm0
xor edi, edi
jmp 0x140002564
test r8b, r8b
cmovs r8, qword [rsp + 0xe8]
mov rdx, qword [rsp + 0xe0]
cmovns rdx, rdi
mov rcx, rbx
call fcn.14000a540
jmp 0x140002ab9
lea rcx, [0x14005c8bb]
lea rdx, [0x14005c9d2]
call fcn.14004f950
call fcn.140039980
lea rcx, [rsp + 0xe0]
call fcn.1400399a0
int3