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

Disassembly:
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x50
mov rbp, qword [0x14015c808]
mov rbx, rcx
mov r14d, dword [rcx + 0xc]
mov dword [rcx + 0x44], 0xffffffff
mov rax, qword [0x14015c808]
test dword [rbp + 0x3d40], 0x400
mov rdx, qword [rax + 0x4210]
mov r15, qword [rdx]
jne 0x140085e37
cmp byte [rcx + 0xca], 0
je 0x140085e11
mov rax, qword [rcx + 0x30]
cmp qword [rax + 0x88], rcx
jne 0x140085e11
xor esi, esi
xorps xmm0, xmm0
mov dword [rax + 0x10], esi
movss dword [rax + 0x14], xmm0
mov qword [rcx + 0x30], r15
mov eax, dword [r15]
mov dword [rcx + 0x38], eax
cmp qword [r15 + 0x88], rbx
sete al
mov byte [rcx + 0xca], al
add rsp, 0x50
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret
mov qword [rsp + 0x88], rdi
xor esi, esi
mov qword [rsp + 0x90], r12
mov qword [rsp + 0x98], r13
mov r13d, r14d
movaps xmmword [rsp + 0x40], xmm6
mov byte [rcx + 0xca], 0
and r13d, 0x6000000
je 0x140085e79
cmp byte [rcx + 0xd1], sil
je 0x140085e79
mov qword [rcx + 0x30], rsi
mov dword [rcx + 0x38], esi
test dword [rbp + 0x40f0], 0x100
jne 0x140085f0d
mov rax, qword [rcx + 0x30]
test rax, rax
jne 0x140085f0d
mov rax, qword [rcx + 0x390]
test rax, rax
je 0x140085ebd
cmp byte [rax + 0xd3], sil
je 0x140085eb0
cmp byte [rax + 0xcc], sil
je 0x140085ebd
mov rax, qword [rax + 0x30]
mov qword [rcx + 0x30], rax
test rax, rax
jne 0x140085f0d
mov ecx, dword [rcx + 0x38]
test ecx, ecx
je 0x140085f0d
call fcn.140071bc0
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x140085f0d
movss xmm0, dword [rbx + 0x3c]
lea r8, [rbx + 0x3c]
movss xmm1, dword [0x1401149ec]
ucomiss xmm0, xmm1
jp 0x140085eea
je 0x140085f0d
movss xmm0, dword [rbx + 0x40]
ucomiss xmm0, xmm1
jp 0x140085ef6
je 0x140085f0d
mov edx, dword [rbx + 8]
lea r9, [rbx + 0x50]
mov rcx, rbx
mov dword [rsp + 0x20], esi
call fcn.140061230
mov qword [rbx + 0x30], rax
movss xmm6, dword [0x14011697c]
xor r12b, r12b
test dword [rbp + 0x40f0], 0x100
je 0x140085f47
mov ecx, dword [rbp + 0x4154]
lea rdi, [rbx + 0x30]
call fcn.140071bc0
mov qword [rdi], rax
mov r12b, 1
mov eax, dword [rbp + 0x4154]
mov dword [rbx + 0x38], eax
jmp 0x140086078
test r14d, 0x11000000
jne 0x140086066
mov rax, qword [rbx + 0x420]
test rax, rax
je 0x140085f7c
mov rax, qword [rax + 0x88]
test rax, rax
je 0x140085f7c
mov rax, qword [rax + 0x30]
lea rdi, [rbx + 0x30]
mov qword [rdi], rax
jmp 0x140086078
bt r14d, 0x19
jae 0x140085f96
mov rax, qword [rbp + 0x4228]
lea rdi, [rbx + 0x30]
mov qword [rdi], rax
jmp 0x140086078
mov rcx, rbx
call fcn.140073300
test al, al
je 0x140085fc2
mov edx, dword [rbx + 8]
lea r9, [rbx + 0x50]
lea r8, [rbx + 0x48]
mov dword [rsp + 0x20], esi
lea rdi, [rbx + 0x30]
call fcn.140061230
mov qword [rdi], rax
jmp 0x140086078
mov rax, qword [rbp + 0x4000]
test rax, rax
je 0x140086027
cmp qword [rax + 0x3b0], rbx
jne 0x140086027
mov rax, qword [0x14015c808]
movss xmm0, dword [rax + 0xd9c]
comiss xmm0, xmm6
movss xmm1, dword [rax + 0xda0]
jb 0x140086027
comiss xmm1, xmm6
jb 0x140086027
mov rax, qword [rbx + 0x30]
lea rdi, [rbx + 0x30]
test rax, rax
je 0x140086078
cmp qword [rax + 0x88], rbx
jne 0x140086078
mov edx, dword [rbx + 8]
lea r9, [rbx + 0x50]
lea r8, [rbx + 0x48]
mov dword [rsp + 0x20], esi
call fcn.140061230
mov qword [rdi], rax
jmp 0x140086078
mov rax, qword [rbx + 0x30]
lea rdi, [rbx + 0x30]
test rax, rax
je 0x140086078
cmp rbx, qword [rax + 0x88]
jne 0x140086078
cmp dword [rbp + 0x4034], esi
je 0x14008604e
cmp byte [rbp + 0x4041], sil
je 0x140086078
mov rax, qword [0x14015c808]
mov rdx, qword [rax + 0x4210]
mov rdx, qword [rdx]
call fcn.140084520
jmp 0x140086078
mov rax, qword [rbx + 0x390]
lea rdi, [rbx + 0x30]
mov rcx, qword [rax + 0x30]
mov qword [rdi], rcx
cmp qword [rdi], rsi
jne 0x1400860a6
mov rdx, r15
mov rcx, rbx
call fcn.140084520
test al, al
jne 0x1400860a6
mov edx, dword [rbx + 8]
lea r9, [rbx + 0x50]
lea r8, [rbx + 0x48]
mov dword [rsp + 0x20], esi
mov rcx, rbx
call fcn.140061230
mov qword [rdi], rax
test r12b, r12b
mov r12, qword [rsp + 0x90]
jne 0x1400862d8
test r13d, r13d
je 0x1400861ed
bt r14d, 0x19
jae 0x1400860d0
lea rcx, [rbp + 0xd9c]
jmp 0x1400860e9
movsxd rax, dword [rbp + 0x41f0]
imul rcx, rax, 0x38
mov rax, qword [rbp + 0x41f8]
add rax, 0xfffffffffffffff4
add rcx, rax
movsd xmm0, qword [rcx]
movsd qword [rsp + 0x38], xmm0
cmp byte [rbp + 0x42aa], sil
jne 0x140086112
cmp byte [rbp + 0x42ab], sil
je 0x140086112
cmp qword [rbp + 0x4268], rsi
je 0x140086112
xor dl, dl
jmp 0x140086114
mov dl, 1
movss xmm0, dword [rsp + 0x38]
comiss xmm0, xmm6
jb 0x14008612e
movss xmm0, dword [rsp + 0x3c]
comiss xmm0, xmm6
jb 0x14008612e
mov al, 1
jmp 0x140086130
xor al, al
cmp byte [rbx + 0xd1], sil
jne 0x140086142
test r14d, 0x12000000
je 0x14008614a
test dl, dl
je 0x14008616d
test al, al
jne 0x14008615c
mov rax, qword [rdi]
movsx esi, word [rax + 0x80]
mov dword [rbx + 0x44], esi
jmp 0x1400862d8
movsd xmm0, qword [rcx]
lea rax, [rsp + 0x30]
movsd qword [rsp + 0x30], xmm0
jmp 0x140086177
lea rcx, [rsp + 0x38]
call fcn.140075c40
mov rcx, qword [0x14015c808]
movsxd rdx, dword [rcx + 0x38c8]
test edx, edx
jle 0x1400861e0
movss xmm4, dword [rax]
mov r8, rdx
mov rcx, qword [rcx + 0x38d0]
mov rdx, rsi
nop word [rax + rax]
movss xmm0, dword [rcx]
comiss xmm4, xmm0
movss xmm3, dword [rcx + 4]
movaps xmm1, xmm0
addss xmm1, dword [rcx + 8]
movaps xmm2, xmm3
addss xmm2, dword [rcx + 0xc]
jb 0x1400861d2
movss xmm0, dword [rax + 4]
comiss xmm0, xmm3
jb 0x1400861d2
comiss xmm1, xmm4
jbe 0x1400861d2
comiss xmm2, xmm0
ja 0x1400861e5
inc esi
inc rdx
add rcx, 0x24
cmp rdx, r8
jl 0x1400861a0
mov esi, 0xffffffff
mov dword [rbx + 0x44], esi
jmp 0x1400862d8
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400862c2
mov r9, qword [rcx + 0x88]
cmp rbx, r9
je 0x1400862c2
test r9, r9
je 0x1400862c2
bt r14d, 0x18
jb 0x1400862c2
cmp qword [rbx + 0x420], rsi
jne 0x1400862c2
movzx edx, byte [rbx + 0x401]
and dl, 5
test dword [rbx + 0xc], 0x20000000
je 0x140086285
mov eax, dword [rbp + 0x3f60]
cmp dword [rcx + 0x64], eax
jge 0x140086285
cmp dl, 1
je 0x140086285
test byte [rbp + 0x560c], 0x40
je 0x14008626b
mov r8d, dword [rcx]
lea rcx, str._viewport__Window__s_steal_Viewport__08X_from_Window__s_n
mov r9, qword [r9]
mov rdx, qword [rbx]
call fcn.140067b80
mov rax, qword [rdi]
mov qword [rax + 0x88], rbx
mov eax, dword [rbx + 8]
mov rcx, qword [rdi]
mov dword [rcx], eax
mov rax, qword [rdi]
mov dword [rax + 0x6c], esi
jmp 0x1400862d8
mov rax, qword [0x14015c808]
mov rcx, rbx
mov rdx, qword [rax + 0x4210]
mov rdx, qword [rdx]
call fcn.140084520
test al, al
jne 0x1400862d8
mov edx, dword [rbx + 8]
lea r9, [rbx + 0x50]
lea r8, [rbx + 0x48]
mov dword [rsp + 0x20], 0x20
mov rcx, rbx
call fcn.140061230
mov qword [rdi], rax
jmp 0x1400862d8
cmp dword [rbx + 0x44], esi
jge 0x1400862d8
bt r14d, 0x18
jb 0x1400862d8
movsx eax, word [rcx + 0x80]
mov dword [rbx + 0x44], eax
mov rcx, qword [rdi]
movaps xmm6, xmmword [rsp + 0x40]
mov r13, qword [rsp + 0x98]
mov rdi, qword [rsp + 0x88]
cmp rbx, qword [rcx + 0x88]
sete al
mov byte [rbx + 0xca], al
mov eax, dword [rcx]
mov dword [rbx + 0x38], eax
add rsp, 0x50
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret