Function at 0x140018bf0
Capabilities:
Terminate thread

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xf8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x68], 0xfffffffffffffffe
mov rbx, r8
call fcn.14001ed70
call fcn.14001c820
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
cmp rax, 0xd
jb 0x140018d04
mov rsi, rax
lea rcx, [rbx + rax*2]
add rcx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140018d04
lea rdx, [rbx + rsi*2]
add rdx, 0xffffffffffffffe6
mov rax, rbx
mov r9, rcx
sub r9, rax
sar r9, 1
xor r8d, r8d
nop dword [rax]
cmp word [rax + r8], 0x69
je 0x140018c80
add r8, 2
dec r9
jne 0x140018c60
jmp 0x140018d04
cmp word [rax + r8 + 2], 0x6e
jne 0x140018cf0
cmp word [rax + r8 + 4], 0x73
jne 0x140018cf0
cmp word [rax + r8 + 6], 0x6f
jne 0x140018cf0
cmp word [rax + r8 + 8], 0x6d
jne 0x140018cf0
cmp word [rax + r8 + 0xa], 0x6e
jne 0x140018cf0
cmp word [rax + r8 + 0xc], 0x69
jne 0x140018cf0
cmp word [rax + r8 + 0xe], 0x61
jne 0x140018cf0
cmp word [rax + r8 + 0x10], 0x63
jne 0x140018cf0
cmp word [rax + r8 + 0x12], 0x2e
jne 0x140018cf0
cmp word [rax + r8 + 0x14], 0x65
jne 0x140018cf0
cmp word [rax + r8 + 0x16], 0x78
jne 0x140018cf0
cmp word [rax + r8 + 0x18], 0x65
je 0x140018d48
nop dword [rax]
lea r9, [rax + r8]
add rax, r8
add rax, 2
cmp r9, rdx
jne 0x140018c51
call fcn.14001c5c0
call fcn.14001c410
xor eax, eax
mov qword [rbp + 0x58], rax
lea rdx, str.You_can_now_launch_Insomniac_Browser
lea r8, str.Success
xor ecx, ecx
mov r9d, 0x40
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rax, qword [rbp + 0x58]
add rsp, 0xf8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
sub rax, rbx
add rax, r8
cmp rax, 0xfffffffffffffffe
je 0x140018d04
sar rax, 1
lea rcx, [rax + 0xd]
cmp rsi, rcx
mov r15, rcx
cmovb r15, rsi
test r15, r15
je 0x140018d80
cmp word [rbx], 0x22
jne 0x140018d83
dec r15
lea rdi, [rbx + 2]
add rax, 0xe
mov rcx, rax
jmp 0x140018d86
xor r15d, r15d
mov rdi, rbx
sub rsi, rcx
jb 0x140018fe3
xorps xmm0, xmm0
movaps xmmword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x30], xmm0
movabs r12, 0x7fffffffffffffff
cmp rsi, r12
jae 0x140018fe8
lea rbx, [rbx + rcx*2]
cmp rsi, 7
ja 0x140018de3
mov qword [rbp + 0x40], rsi
mov qword [rbp + 0x48], 7
lea r8, [rsi + rsi]
lea rcx, [rbp + 0x30]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsi*2 + 0x30]
add rax, rbp
jmp 0x140018e7a
mov qword [rbp + 0x48], 7
mov rax, rsi
or rax, 7
movabs rcx, 0x7ffffffffffffffe
cmp rax, rcx
ja 0x14001902e
cmp rax, 0xb
mov r13d, 0xa
cmovae r13, rax
mov rcx, r13
add rcx, r13
cmp r13, 0x7ff
jb 0x140018e4f
movabs rax, 0x7fffffffffffffec
cmp r13, rax
jae 0x14001902e
add rcx, 0x29
call fcn.14001f640
mov r14, rax
add r14, 0x27
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x140018e5b
add rcx, 2
call fcn.14001f640
mov r14, rax
mov qword [rbp + 0x30], r14
mov qword [rbp + 0x40], rsi
mov qword [rbp + 0x48], r13
lea r8, [rsi + rsi]
mov rcx, r14
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rax, [r14 + rsi*2]
mov word [rax], 0
xorps xmm0, xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
cmp r15, r12
jae 0x140018fed
cmp r15, 7
ja 0x140018ec5
mov qword [rbp + 0x20], r15
mov qword [rbp + 0x28], 7
lea r8, [r15 + r15]
lea rcx, [rbp + 0x10]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [r15*2 + 0x10]
add rax, rbp
jmp 0x140018f61
mov qword [rbp + 0x28], 7
mov rax, r15
or rax, 7
movabs rcx, 0x7ffffffffffffffe
cmp rax, rcx
ja 0x140019033
cmp rax, 0xb
mov ebx, 0xa
cmovae rbx, rax
lea rcx, [rbx + rbx]
cmp rbx, 0x7ff
jb 0x140018f32
movabs rax, 0x7fffffffffffffec
cmp rbx, rax
jae 0x140019033
add rcx, 0x29
mov byte [rbp + 0x67], 1
call fcn.14001f640
mov rsi, rax
add rsi, 0x27
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140018f42
add rcx, 2
mov byte [rbp + 0x67], 1
call fcn.14001f640
mov rsi, rax
mov qword [rbp + 0x10], rsi
mov qword [rbp + 0x20], r15
mov qword [rbp + 0x28], rbx
lea r8, [r15 + r15]
mov rcx, rsi
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsi + r15*2]
mov word [rax], 0
mov byte [rbp + 0x67], 0
lea rcx, [rbp + 0x10]
lea rdx, [rbp + 0x30]
call fcn.140016860
mov qword [0x14004c5d0], rax
mov rcx, rbp
mov rdx, rax
call fcn.14001ed90
mov rax, qword [rbp]
mov rcx, qword [rbp + 8]
mov qword [0x14004c5d8], rcx
mov qword [0x14004c5e0], rax
call fcn.1400185f0
mov rcx, qword [0x14004c5d0]
mov rdx, rax
call section..text
mov rcx, qword [0x14004c5e0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x140018ff6
mov rcx, qword [0x14004c5d0]
call qword [sym.imp.ntdll.dll_NtResumeProcess]
call fcn.14001ed80
xor eax, eax
mov qword [rbp + 0x58], rax
jmp 0x140018d30
call fcn.14001af50
call fcn.140003b50
mov byte [rbp + 0x67], 1
call fcn.140003b50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea rdx, str.Couldnt_terminate_loop_thread
lea rcx, [rbp - 0x20]
call fcn.140002590
lea rcx, [rbp - 0x58]
lea rdx, [rbp - 0x20]
mov r8d, esi
call fcn.140002670
lea rdx, [0x1400455e0]
lea rcx, [rbp - 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
call fcn.140003b70
mov byte [rbp + 0x67], 1
call fcn.140003b70
int3