Function at 0x1800ad920
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rsi, rcx
xor r13d, r13d
mov dword [rsp + 0x30], r13d
lea rax, [rsp + 0x70]
mov qword [rbp + 0x90], rax
mov qword [rbp - 0x58], r13
lea rax, vtable.std::_Func_impl_no_alloc_class__public_virtual:_void___cdecl_VR::on_present_void____ptr64::_2::_lambda_1___void___.0
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rcx
lea rax, [rsp + 0x70]
mov qword [rbp - 0x58], rax
lea rax, [rsp + 0x70]
mov qword [rbp + 0x98], rax
lea rax, [rbp - 0x50]
mov qword [rbp + 0xa0], rax
mov qword [rbp - 0x18], r13
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x1800ad9a4
mov rax, qword [rsp + 0x70]
lea rdx, [rbp - 0x50]
call qword [rax]
mov qword [rbp - 0x18], rax
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x1800ad9c2
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp - 0x58], r13
mov rax, qword [rsi + 0x30]
mov ecx, dword [rax + 0x290]
mov dword [rsi + 0x1efc], ecx
mov rax, qword [rsi + 0x1ca8]
mov ecx, dword [rax + 8]
dec ecx
cmp ecx, 1
jbe 0x1800ad9f0
mov rax, qword [rsi + 0x1cb8]
cmp byte [rax + 8], 1
jne 0x1800ada10
mov ecx, dword [rsi + 0x1f00]
and ecx, 0x80000001
jge 0x1800ada05
dec ecx
or ecx, 0xfffffffe
inc ecx
movzx eax, byte [rsi + 0x1f11]
cmp ecx, eax
jne 0x1800ada1d
mov rcx, qword [rsi + 0x1c0]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov r14, qword [rsi + 0x30]
cmp byte [r14 + 8], 0
je 0x1800addeb
mov rax, qword [r14]
lea rcx, [rbp + 0x10]
mov qword [rbp + 0x90], rcx
mov qword [rbp + 0x48], r13
lea rdx, [rbp + 0x10]
mov rcx, r14
call qword [rax + 0x48]
mov rcx, qword [rsi + 0x18]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r15, qword [rsi + 0x30]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x18]
cmp al, 2
jne 0x1800adaf1
cmp byte [r15 + 0xc], 0
je 0x1800adae7
mov rcx, qword [r15 + 0x2a8]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x78]
dec eax
cmp eax, 1
jbe 0x1800ada88
xor bl, bl
jmp 0x1800ada96
mov bl, 1
call fcn.1802664cc
mov qword [r15 + 0x52b0], rax
call fcn.1802664cc
sub rax, qword [r15 + 0x52b0]
cmp rax, 0x2faf080
jg 0x1800adab5
mov bl, 1
mov byte [r15 + 0x298], bl
jmp 0x1800adac0
mov byte [r15 + 0x298], bl
test bl, bl
je 0x1800adacf
cmp byte [r15 + 0x299], 0
jne 0x1800adacf
mov byte [r15 + 9], 1
mov byte [r15 + 0x299], bl
mov rcx, rsi
call fcn.18003fde0
test al, al
jne 0x1800adaf1
jmp 0x1800addeb
mov word [r15 + 0x298], 0x101
lea rbx, [rsi + 0x60]
mov qword [rbp + 0x98], rbx
mov rcx, rbx
call fcn.18026701c
test eax, eax
jne 0x1800ade4e
mov eax, dword [rbx + 0x4c]
cmp eax, 0x7fffffff
je 0x1800ade59
mov byte [rsi + 0x1f10], 0
mov rax, qword [0x1804d7680]
movzx edi, byte [rax + 0x421]
mov rax, qword [rsi + 0x1ca8]
mov ecx, dword [rax + 8]
dec ecx
cmp ecx, 1
jbe 0x1800adb4d
mov rax, qword [rsi + 0x1cb8]
cmp byte [rax + 8], 1
jne 0x1800adb6d
mov ecx, dword [rsi + 0x1f00]
and ecx, 0x80000001
jge 0x1800adb62
dec ecx
or ecx, 0xfffffffe
inc ecx
movzx eax, byte [rsi + 0x1f11]
cmp ecx, eax
jne 0x1800adbb0
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x68]
cmp eax, 1
jne 0x1800adbb0
movzx r12d, byte [r14 + 0xe]
mov rax, qword [r14]
mov byte [rbp + 0x94], 0
mov rdx, qword [rbp + 0x90]
mov rcx, r14
call qword [rax + 0x28]
cmp byte [r14 + 0xc], 0
je 0x1800adba3
test r12b, r12b
jne 0x1800adbb0
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.1800b00a0
test dil, dil
jne 0x1800adcd0
cmp byte [r14 + 0xe], dil
jne 0x1800adcb8
call fcn.180266398
mov rdi, rax
call fcn.18026637c
cmp rdi, 0x989680
jne 0x1800adbdf
imul rdi, rax, 0x64
jmp 0x1800adbfb
cqo
idiv rdi
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rdi
lea rdi, [rax + rcx]
mov rax, rdi
sub rax, qword [0x1804d8390]
cmp rax, 0x3b9aca00
je 0x1800adc0f
jl 0x1800adc86
call fcn.180254440
lea rcx, str.Attempting_to_sync_
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], 0x13
lea rcx, str.D:_aUEVRUEVR_srcmodsVR.cpp
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x58], 0x781
lea rcx, str.VR::on_present
mov qword [rsp + 0x60], rcx
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x10], xmm1
movsd xmm0, qword [rsp + 0x60]
movsd qword [rbp], xmm0
lea r9, [rsp + 0x40]
mov r8d, 2
lea rdx, [rbp - 0x10]
mov rcx, rax
call fcn.1800266c0
mov qword [0x1804d8390], rdi
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x68]
cmp eax, 1
jne 0x1800adcab
mov rax, qword [r14]
mov byte [rbp + 0x94], 0
mov rdx, qword [rbp + 0x90]
mov rcx, r14
call qword [rax + 0x28]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.1800b00a0
mov byte [rsi + 0x1f15], 0
lea rcx, [rsi + 0x1f0]
mov rdx, rsi
call fcn.1800ccb20
jmp 0x1800adcec
cmp dil, 1
jne 0x1800add05
mov byte [rsi + 0x1f15], dil
lea rcx, [rsi + 0x540]
mov rdx, rsi
call fcn.1800d6960
cmp eax, 0x6c
jne 0x1800add05
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x18]
cmp al, 2
jne 0x1800add05
mov word [r15 + 0xb], 1
cmp byte [rsi + 0x1f10], 0
je 0x1800adde2
cmp byte [rsi + 0x1b38], 0
jne 0x1800add27
lea rcx, [rsi + 0x15f0]
call fcn.180130c90
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x18]
mov byte [rsi + 0x1f10], 0
cmp byte [rsi + 0x1f14], 0
je 0x1800adde2
mov byte [rsi + 0x1f14], 0
mov ecx, 1
call fcn.18026a164
mov qword [rbp + 0x90], rax
mov dword [rsp + 0x30], 1
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r13d
mov r9, rax
lea r8, [0x18008e3a0]
xor edx, edx
xor ecx, ecx
call fcn.18028d0dc
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1800ade3e
mov qword [rbp + 0x90], r13
mov eax, 1
and eax, 0xfffffffe
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x48], 0
je 0x1800ade6f
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call fcn.180266cd0
test eax, eax
jne 0x1800ade6f
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
cmp dword [rsp + 0x48], eax
jne 0x1800ade69
mov rcx, rbx
call fcn.18026707c
nop
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1800addfb
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea rax, [rbp - 0x50]
mov qword [rbp + 0x90], rax
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1800ade23
mov rax, qword [rcx]
lea rdx, [rbp - 0x50]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp - 0x18], r13
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [rsp + 0x48], r13d
mov ecx, 6
call fcn.1802673a8
nop
mov ecx, 5
call fcn.1802673a8
int3
dec eax
mov dword [rbx + 0x4c], eax
mov ecx, 6
call fcn.1802673a8
nop
call fcn.18028cf18
nop
mov ecx, 1
call fcn.1802673a8
int3