Function at 0x180140d40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rbx, rcx
call fcn.1800a8c30
mov rdx, qword [rax]
mov rcx, qword [rdx + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp al, 2
jne 0x180141053
mov rax, qword [rbx + 0x2e8]
cmp byte [rax + 8], 0
je 0x180141053
call fcn.1800a8c30
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x180140d9d
lock inc dword [rcx + 8]
mov rsi, qword [rax]
mov qword [rsp + 0x20], rsi
mov rbp, qword [rax + 8]
mov qword [rsp + 0x28], rbp
call fcn.180174f70
mov rdi, rax
mov rcx, qword [rsi + 0x1d00]
mov edx, dword [rcx + 8]
dec edx
cmp edx, 1
jbe 0x180140dd4
mov rcx, qword [rsi + 0x1d10]
cmp byte [rcx + 8], 1
jne 0x180140df9
mov ecx, dword [rsi + 0x2014]
and ecx, 0x80000001
jge 0x180140de9
dec ecx
or ecx, 0xfffffffe
inc ecx
movzx eax, byte [rsi + 0x2029]
cmp ecx, eax
je 0x180140df9
xor r8b, r8b
jmp 0x180140dfc
mov r8b, 1
lea rcx, [rdi + 0xb24]
lea rdx, [rbx + 0x3c]
mov eax, 5
nop dword [rax]
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rdx + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rdx, [rdx + 0x80]
sub rax, 1
jne 0x180140e10
mov rax, qword [rdx]
mov qword [rcx], rax
mov eax, dword [rdx + 8]
mov dword [rcx + 8], eax
mov eax, dword [rbx + 0x28]
mov dword [rdi + 0xe00], eax
movzx eax, byte [rbx + 0x2c]
mov byte [rdi + 0xe04], al
movsd xmm0, qword [rbx + 0x20]
movsd qword [rdi + 0xdf8], xmm0
mov eax, dword [rbx + 0x30]
mov dword [rdi + 0xe08], eax
mov eax, dword [rbx + 0x34]
mov dword [rdi + 0xe0c], eax
movzx eax, byte [rbx + 0x38]
mov byte [rdi + 0xe14], al
movzx eax, byte [rbx + 0x39]
mov byte [rdi + 0xe15], al
movzx eax, byte [rbx + 0x3a]
mov byte [rdi + 0xe16], al
movzx eax, byte [rbx + 0x3b]
mov byte [rdi + 0xe17], al
test r8b, r8b
je 0x18014101b
xor eax, eax
mov qword [rdi + 0xe08], rax
mov rax, qword [0x1804da240]
cmp byte [rax + 0x421], 0
jne 0x180140ef2
mov esi, dword [rax + 0x474]
jmp 0x180140ef8
mov esi, dword [rax + 0x4e4]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
nop
lea rcx, [0x1804da920]
call fcn.18004e5c0
mov rax, qword [0x1804da948]
test rax, rax
jne 0x180140f44
lea rdx, [rsp + 0x88]
lea rcx, str.IVROverlay_026
call qword [sym.imp.openvr_api.dll_VR_GetGenericInterface]
mov qword [0x1804da948], rax
mov rcx, qword [rax]
mov r10, qword [rcx + 0x180]
mov r9d, 0x40
lea r8, [rsp + 0x30]
mov rdx, qword [rbx + 0x240]
mov rcx, rax
call r10
test al, al
je 0x18014101b
mov eax, dword [rsp + 0x30]
sub eax, 0x12c
je 0x180140fe6
sub eax, 1
je 0x180140fd6
sub eax, 1
je 0x180140fc6
cmp eax, 7
jne 0x180140f10
movss xmm2, dword [rsp + 0x40]
movaps xmm0, xmm2
addss xmm0, dword [rbx + 0x34]
movss dword [rbx + 0x34], xmm0
movss xmm1, dword [rsp + 0x44]
addss xmm1, dword [rbx + 0x30]
movss dword [rbx + 0x30], xmm1
movss dword [rdi + 0xe0c], xmm2
movss xmm0, dword [rsp + 0x44]
movss dword [rdi + 0xe08], xmm0
jmp 0x180140f10
mov byte [rbx + 0x28], 0
mov byte [rdi + 0xe00], 0
jmp 0x180140f10
mov byte [rbx + 0x28], 1
mov byte [rdi + 0xe00], 1
jmp 0x180140f10
mov eax, esi
xorps xmm1, xmm1
cvtsi2ss xmm1, rax
subss xmm1, dword [rsp + 0x44]
movss xmm0, dword [rsp + 0x40]
movss dword [rbx + 0x20], xmm0
movss dword [rbx + 0x24], xmm1
movss dword [rdi + 0xdf8], xmm0
movss dword [rdi + 0xdfc], xmm1
jmp 0x180140f10
test rbp, rbp
je 0x180141053
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbp + 8], eax
cmp eax, 1
jne 0x180141053
mov rbx, qword [rsp + 0x28]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x180141053
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
call qword [rax + 8]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret