Function at 0x140002250
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, 0x368
movaps xmmword [rsp + 0x350], xmm7
movaps xmmword [rsp + 0x340], xmm6
mov rbp, r9
mov dword [rsp + 0x64], r8d
mov r13, rcx
mov r15, qword [rsp + 0x3d0]
mov rax, qword [0x140063018]
xor rax, rsp
mov qword [rsp + 0x338], rax
movabs r12, 0x7fffffffffffffef
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xa0], 0
movabs r14, 0xaaaaaaaaaaaaaaaa
test edx, edx
je 0x140002362
lea rsi, [rsp + 0x130]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.140010e80
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0xc0], r14
movaps xmm0, xmmword [0x140058b00]
movaps xmmword [rsp + 0xb0], xmm0
mov rcx, rsi
call fcn.1400203fc
cmp rax, r12
ja 0x14000305e
mov rsi, rax
cmp rax, 0xb
jae 0x1400023c8
lea rdi, [rsp + 0xb0]
mov byte [rdi + 0x17], sil
cmp rsi, 3
jne 0x140003043
movzx eax, word [rsp + 0x134]
mov word [rsp + 0xb4], ax
mov eax, dword [rsp + 0x130]
mov dword [rsp + 0xb0], eax
jmp 0x140002412
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140002acb
mov esi, eax
dec eax
movsxd rdx, eax
lea rdi, [rsp + 0x90]
mov rcx, rdi
xor r8d, r8d
call fcn.14000d910
cmp byte [rdi + 0x17], 0
jns 0x14000239c
mov rdi, qword [rsp + 0x90]
mov ecx, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x14000250a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rsi, [rsp + 0x130]
mov dword [rsi], 0xf4
jmp 0x140002adf
lea rbx, [rsi + 8]
and rbx, 0xfffffffffffffff8
lea rcx, [rbx + rbx]
call fcn.14000dab4
mov rdi, rax
mov qword [rsp + 0xb0], rax
lea rax, [r12 + 0x11]
or rax, rbx
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xb8], rsi
mov r8, rsi
add r8, rsi
lea rdx, [rsp + 0x130]
mov rcx, rdi
call fcn.140010a70
mov word [rdi + rsi*2], 0
lea rcx, [rsp + 0xb0]
mov dx, 0x5c
mov r8, 0xffffffffffffffff
call fcn.14000d8c0
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000249b
lea r9, [rsi + 1]
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0xd0]
lea rdx, [rsp + 0xb0]
xor r8d, r8d
call fcn.14000bcb0
cmp byte [rsp + 0xa7], 0
jns 0x140002479
mov rcx, qword [rsp + 0x90]
call fcn.14000daf0
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xa0], rax
movups xmm0, xmmword [rsp + 0xd0]
movaps xmmword [rsp + 0x90], xmm0
jmp 0x1400024e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0xd0]
mov dword [rdi], 0xfe
mov dword [rdi + 4], eax
xorps xmm6, xmm6
movups xmmword [rdi + 8], xmm6
mov qword [rdi + 0x18], 0
mov rcx, r15
mov rdx, rdi
call fcn.1400020a0
cmp byte [rdi + 0x1f], 0
jns 0x1400024df
mov rcx, qword [rsp + 0xd8]
call fcn.14000daf0
movups xmmword [r13 + 0x10], xmm6
movups xmmword [r13], xmm6
cmp byte [rsp + 0xc7], 0
jns 0x140002500
mov rcx, qword [rsp + 0xb0]
call fcn.14000daf0
cmp rsi, 0xffffffffffffffff
je 0x140002f89
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x58], r13
xorps xmm6, xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
xor r12d, r12d
lea r13, [rsp + 0xd0]
mov qword [r13 + 0x10], r12
movaps xmmword [r13], xmm6
movaps xmm7, xmmword [0x140058b00]
lea r15, [rsp + 0xb0]
movaps xmmword [r15], xmm7
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rbx, [rsp + 0x130]
movaps xmmword [rbx + 0x20], xmm7
movaps xmmword [rbx + 0x10], xmm7
movaps xmmword [rbx], xmm7
mov dword [rbx + 0x30], 0xaaaaaaaa
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movzx r11d, word [r15 + 0xe]
movzx edx, word [r15 + 0xc]
movzx ebp, word [r15 + 0xa]
movzx esi, word [r15 + 8]
movzx r8d, word [r15 + 6]
movzx r10d, word [r15 + 2]
movzx edi, word [r15]
mov ecx, edi
shr ecx, 2
imul ecx, ecx, 0x147b
shr ecx, 0x11
imul ecx, ecx, 0x64
sub edi, ecx
movzx r9d, di
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], r10d
lea r8, str._02d_02d_02d_02d_02d_02d_03d_d
mov edx, 0x1a
mov rcx, rbx
call fcn.140003130
mov rcx, r13
mov rdx, rbx
call fcn.14000bc80
mov qword [r15 + 0x10], r14
movaps xmmword [r15], xmm7
mov qword [rsp + 0x120], r12
movaps xmmword [rsp + 0x110], xmm6
movzx ebp, byte [rsp + 0xa7]
mov r12, rbp
test bpl, bpl
jns 0x14000261b
mov r12, qword [rsp + 0x98]
lea rcx, str.Opera_installer_
call fcn.1400203fc
mov rbx, rax
test bpl, bpl
jns 0x140002639
mov rsi, qword [rsp + 0x90]
jmp 0x140002641
lea rsi, [rsp + 0x90]
lea rbp, [r12 + rbx]
movabs rax, 0x7fffffffffffffef
cmp rbp, rax
ja 0x140003051
cmp rbp, 0xa
ja 0x14000266c
lea r14, [rsp + 0x110]
mov byte [r14 + 0x17], r12b
jmp 0x1400026ab
add rbp, 8
and rbp, 0xfffffffffffffff8
mov rcx, rbp
add rcx, rbp
call fcn.14000dab4
mov r14, rax
mov qword [rsp + 0x110], rax
movabs rax, 0x7fffffffffffffef
add rax, 0x11
or rax, rbp
mov qword [rsp + 0x120], rax
mov qword [rsp + 0x118], r12
test r12, r12
je 0x1400026bf
lea r8, [r12 + r12]
mov rcx, r14
mov rdx, rsi
call fcn.140010a70
mov word [r14 + r12*2], 0
lea rdx, str.Opera_installer_
lea rbp, [rsp + 0x110]
mov rcx, rbp
mov r8, rbx
call fcn.14000d460
movzx r8d, byte [rsp + 0xe7]
test r8b, r8b
cmovs r8, qword [rsp + 0xd8]
cmovs r13, qword [rsp + 0xd0]
mov rcx, rbp
mov rdx, r13
call fcn.14000d460
movups xmm0, xmmword [rax]
lea rsi, [rsp + 0x130]
movaps xmmword [rsi], xmm0
mov rcx, qword [rax + 0x10]
mov qword [rsi + 0x10], rcx
xor edi, edi
mov qword [rax + 0x10], rdi
xorps xmm6, xmm6
movups xmmword [rax], xmm6
lea rdx, [0x140058d6a]
mov rcx, rsi
call fcn.14000beb0
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0xc0], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0xb0], xmm0
movups xmmword [rax], xmm6
mov qword [rax + 0x10], rdi
cmp byte [rsi + 0x17], 0
jns 0x14000276b
mov rcx, qword [rsp + 0x130]
call fcn.14000daf0
cmp byte [rsp + 0x127], 0
mov rdi, qword [rsp + 0x68]
jns 0x140002787
mov rcx, qword [rsp + 0x110]
call fcn.14000daf0
cmp byte [rsp + 0xc7], 0
jns 0x140002799
mov r15, qword [rsp + 0xb0]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor ebp, ebp
mov rcx, r15
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
mov r14, rax
inc r14
cmp r14, 2
jae 0x1400028bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rsi, [rsp + 0x130]
mov dword [rsi], 0xbe
mov dword [rsi + 4], eax
xorps xmm6, xmm6
movups xmmword [rsi + 8], xmm6
mov qword [rsi + 0x18], 0
mov r15, qword [rsp + 0x3d0]
mov rcx, r15
mov rdx, rsi
call fcn.1400020a0
cmp byte [rsi + 0x1f], 0
jns 0x140002827
mov rcx, qword [rsp + 0x138]
call fcn.14000daf0
movaps xmmword [rsp + 0xf0], xmm6
mov qword [rsp + 0x100], 0
mov r13, qword [rsp + 0x58]
cmp r14, 2
jb 0x14000284f
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rsp + 0xc7], 0
jns 0x140002866
mov rcx, qword [rsp + 0xb0]
call fcn.14000daf0
cmp byte [rsp + 0xe7], 0
jns 0x14000287d
mov rcx, qword [rsp + 0xd0]
call fcn.14000daf0
lea rbx, [rsp + 0x78]
cmp byte [rbx + 0x17], 0
movzx r8d, byte [rsp + 0x107]
js 0x140003022
test r8b, r8b
jns 0x140002925
mov rdx, qword [rsp + 0xf0]
mov r8, qword [rsp + 0xf8]
mov rcx, rbx
call fcn.14000be00
jmp 0x14000293c
lea r13, [rsp + 0x138]
lea rsi, [rsp + 0x110]
mov rbx, qword [sym.imp.KERNEL32.dll_WriteFile]
mov r15, qword [rsp + 0x3d0]
mov r8d, dword [rsp + 0x64]
cmp ebp, r8d
je 0x140002b68
mov dword [rsp + 0x110], 0xaaaaaaaa
sub r8d, ebp
mov qword [rsp + 0x20], 0
mov rcx, r12
mov rdx, rdi
mov r9, rsi
call rbx
test eax, eax
je 0x140002bab
mov eax, dword [rsp + 0x110]
test eax, eax
je 0x140002bab
add ebp, eax
jmp 0x1400028da
mov rax, qword [rsp + 0x100]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [rsp + 0xf0]
movups xmmword [rbx], xmm0
cmp byte [rsp + 0x107], 0
js 0x140002964
mov word [rsp + 0xf0], 0
mov byte [rsp + 0x107], 0
mov rcx, qword [rsp + 0xf8]
xor eax, eax
jmp 0x140002986
mov rax, qword [rsp + 0xf0]
mov word [rax], 0
mov qword [rsp + 0xf8], 0
xor ecx, ecx
mov al, byte [rsp + 0x107]
test al, al
movzx edx, al
cmovs rdx, rcx
test rdx, rdx
je 0x1400029da
test al, al
jns 0x1400029a2
mov rcx, qword [rsp + 0xf0]
jmp 0x1400029aa
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [rsp + 0x107], 0
jns 0x1400029eb
mov rax, qword [rsp + 0xf0]
mov word [rax], 0
mov qword [rsp + 0xf8], 0
mov al, byte [rsp + 0x107]
test al, al
jns 0x1400029eb
mov rcx, qword [rsp + 0xf0]
call fcn.14000daf0
movzx eax, byte [rsp + 0x8f]
test al, al
jns 0x1400029ff
mov rax, qword [rsp + 0x80]
test rax, rax
je 0x140002e80
xorps xmm6, xmm6
movups xmmword [rsp + 0x138], xmm6
mov qword [rsp + 0x148], 0
lea rcx, [0x140058d1e]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x130], rax
test rax, rax
je 0x140002b1e
lea rdx, str.SetDefaultDllDirectories
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movaps xmmword [rsp + 0xe0], xmm6
movaps xmmword [rsp + 0xd0], xmm6
test rax, rax
je 0x140002aa9
mov ecx, 0x800
call qword [0x14006c010]
test eax, eax
je 0x140002bd7
lea rcx, str.version.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov rcx, qword [rsp + 0xd0]
test rcx, rcx
je 0x140002a98
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0xd0], rsi
test rsi, rsi
je 0x140002d04
cmp byte [rsp + 0x8f], 0
mov rcx, rbx
jns 0x140002abb
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x70], rax
jmp 0x140002d48
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rsi, [rsp + 0x130]
mov dword [rsi], 0xef
mov dword [rsi + 4], eax
xorps xmm6, xmm6
movups xmmword [rsi + 8], xmm6
mov qword [rsi + 0x18], 0
mov rcx, r15
mov rdx, rsi
call fcn.1400020a0
cmp byte [rsi + 0x1f], 0
jns 0x140002b0f
mov rcx, qword [rsp + 0x138]
call fcn.14000daf0
movups xmmword [r13 + 0x10], xmm6
movups xmmword [r13], xmm6
jmp 0x140002f89
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rsi, [rsp + 0xd0]
mov dword [rsi], 0x79
mov dword [rsi + 4], eax
movups xmmword [rsi + 8], xmm6
mov qword [rsi + 0x18], 0
mov rcx, r15
mov rdx, rsi
call fcn.1400020a0
cmp byte [rsi + 0x1f], 0
jns 0x140002df7
mov rcx, qword [rsp + 0xd8]
call fcn.14000daf0
jmp 0x140002df7
xorps xmm0, xmm0
movaps xmmword [rsp + 0x130], xmm0
mov qword [rsp + 0x140], 0
cmp byte [rsp + 0xc7], 0
js 0x140002bf0
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x120], rax
movaps xmm0, xmmword [rsp + 0xb0]
movaps xmmword [rsp + 0x110], xmm0
jmp 0x140002c0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rsi, [rsp + 0x130]
mov dword [rsi], 0xc7
mov dword [rsi + 4], eax
xorps xmm6, xmm6
movups xmmword [r13], xmm6
mov qword [r13 + 0x10], 0
jmp 0x140002809
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rsi, [rsp + 0xb0]
mov dword [rsi], 0x88
jmp 0x140002d18
mov rdx, qword [rsp + 0xb0]
mov r8, qword [rsp + 0xb8]
lea rcx, [rsp + 0x110]
call fcn.14000d3e0
mov r13, qword [rsp + 0x58]
lea rsi, [rsp + 0x130]
lea rdx, [rsp + 0x110]
mov rcx, rsi
call fcn.140003070
cmp byte [rsi + 0x17], 0
js 0x140002c52
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x100], rax
movaps xmm0, xmmword [rsp + 0x130]
movaps xmmword [rsp + 0xf0], xmm0
jmp 0x140002c7d
mov rdx, qword [rsp + 0x130]
mov r8, qword [rsp + 0x138]
lea rcx, [rsp + 0xf0]
call fcn.14000d3e0
cmp byte [rsp + 0x147], 0
js 0x140002ffb
mov word [rsp + 0x130], 0
mov byte [rsp + 0x147], 0
mov rcx, qword [rsp + 0x138]
xor eax, eax
test al, al
movzx edx, al
cmovs rdx, rcx
test rdx, rdx
je 0x140002cea
test al, al
jns 0x140002cb3
mov rsi, qword [rsp + 0x130]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [rsp + 0x147], 0
jns 0x140002840
mov rax, qword [rsp + 0x130]
mov word [rax], 0
mov qword [rsp + 0x138], 0
mov al, byte [rsp + 0x147]
test al, al
jns 0x140002840
mov rcx, qword [rsp + 0x130]
call fcn.14000daf0
jmp 0x140002840
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rsi, [rsp + 0xb0]
mov dword [rsi], 0x93
mov dword [rsi + 4], eax
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
mov qword [rsi + 0x18], 0
mov rcx, r15
mov rdx, rsi
call fcn.1400020a0
cmp byte [rsi + 0x1f], 0
jns 0x140002d48
mov rcx, qword [rsp + 0xb8]
call fcn.14000daf0
mov rcx, qword [rsp + 0xd0]
test rcx, rcx
je 0x140002d5b
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0xd0], 0
movzx eax, byte [rsp + 0xef]
mov rcx, rax
test al, al
jns 0x140002d7e
mov rcx, qword [rsp + 0xe0]
test rcx, rcx
je 0x140002dd3
test al, al
jns 0x140002d91
mov rcx, qword [rsp + 0xd8]
jmp 0x140002d99
lea rcx, [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [rsp + 0xef], 0
js 0x140002db3
mov byte [rsp + 0xef], 0
jmp 0x140002de4
mov rax, qword [rsp + 0xd8]
mov word [rax], 0
mov qword [rsp + 0xe0], 0
mov al, byte [rsp + 0xef]
test al, al
jns 0x140002de4
mov rcx, qword [rsp + 0xd8]
call fcn.14000daf0
mov rcx, qword [rsp + 0x130]
test rcx, rcx
je 0x140002df7
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x130], 0
movzx eax, byte [rsp + 0x14f]
mov rcx, rax
test al, al
jns 0x140002e1a
mov rcx, qword [rsp + 0x140]
test rcx, rcx
je 0x140002e6f
test al, al
jns 0x140002e2d
mov rcx, qword [rsp + 0x138]
jmp 0x140002e35
lea rcx, [rsp + 0x138]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [rsp + 0x14f], 0
js 0x140002e4f
mov byte [rsp + 0x14f], 0
jmp 0x140002e80
mov rax, qword [rsp + 0x138]
mov word [rax], 0
mov qword [rsp + 0x140], 0
mov al, byte [rsp + 0x14f]
test al, al
jns 0x140002e80
mov rcx, qword [rsp + 0x138]
call fcn.14000daf0
mov rax, qword [rsp + 0x70]
test rax, rax
jne 0x140002ec6
lea rsi, [rsp + 0x130]
mov dword [rsi], 0x108
xorps xmm0, xmm0
movups xmmword [rsi + 4], xmm0
movups xmmword [rsi + 0x10], xmm0
mov rcx, r15
mov rdx, rsi
call fcn.1400020a0
cmp byte [rsi + 0x1f], 0
jns 0x140002ec1
mov rcx, qword [rsp + 0x138]
call fcn.14000daf0
mov rax, qword [rsp + 0x70]
mov qword [r13], rax
lea rcx, [r13 + 8]
cmp byte [rsp + 0x8f], 0
js 0x140002ee8
mov rax, qword [rbx + 0x10]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rbx]
movups xmmword [rcx], xmm0
jmp 0x140002f08
mov rdx, qword [rsp + 0x78]
mov r8, qword [rsp + 0x80]
call fcn.14000d3e0
cmp byte [rsp + 0x8f], 0
js 0x140002fd7
mov word [rsp + 0x78], 0
mov byte [rsp + 0x8f], 0
mov rcx, qword [rsp + 0x80]
xor eax, eax
mov qword [rsp + 0x70], 0
test al, al
movzx edx, al
cmovs rdx, rcx
test rdx, rdx
je 0x140002f7b
test al, al
jns 0x140002f41
mov rbx, qword [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [rsp + 0x8f], 0
js 0x140002f5e
mov byte [rsp + 0x8f], 0
jmp 0x140002f89
mov rax, qword [rsp + 0x78]
mov word [rax], 0
mov qword [rsp + 0x80], 0
mov al, byte [rsp + 0x8f]
test al, al
jns 0x140002f89
mov rcx, qword [rsp + 0x78]
call fcn.14000daf0
cmp byte [rsp + 0xa7], 0
jns 0x140002fa0
mov rcx, qword [rsp + 0x90]
call fcn.14000daf0
mov rcx, qword [rsp + 0x338]
xor rcx, rsp
call fcn.14000e1d0
mov rax, r13
movaps xmm6, xmmword [rsp + 0x340]
movaps xmm7, xmmword [rsp + 0x350]
add rsp, 0x368
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsp + 0x78]
mov word [rax], 0
mov qword [rsp + 0x80], 0
xor ecx, ecx
mov al, byte [rsp + 0x8f]
jmp 0x140002f21
mov rax, qword [rsp + 0x130]
mov word [rax], 0
mov qword [rsp + 0x138], 0
xor ecx, ecx
mov al, byte [rsp + 0x147]
jmp 0x140002c99
test r8b, r8b
lea rdx, [rsp + 0xf0]
cmovs r8, qword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, rbx
call fcn.14000bd80
jmp 0x14000293c
test rsi, rsi
je 0x140002412
jmp 0x1400023fc
lea rcx, [rsp + 0x110]
call fcn.14004a510
lea rcx, [rsp + 0xb0]
call fcn.14004a510
int3