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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rdi, qword [0x140078100]
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x40], xmm8
movaps xmmword [rsp + 0x30], xmm9
cmp byte [rdi + 0xcb], 0
je 0x140016856
test byte [rdi + 0xc], 2
jne 0x140016856
mov byte [rdi + 0xcb], 0
xor esi, esi
cmp byte [rdi + 0x2f60], sil
jne 0x1400168bf
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x1400168b8
lea r8, [rsp + 0x90]
mov qword [rsp + 0x90], rsi
call fcn.140013120
mov rbx, rax
test rax, rax
je 0x1400168b8
mov rdx, qword [rsp + 0x90]
mov rcx, rax
call fcn.140023ab0
mov rcx, qword [0x140078100]
test rcx, rcx
je 0x1400168a9
dec dword [rcx + 0x3bc]
mov rdx, qword [0x1400780f0]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov byte [rdi + 0x2f60], 1
movss xmm0, dword [rdi + 0x2f64]
xorps xmm6, xmm6
comiss xmm0, xmm6
jbe 0x1400168fe
subss xmm0, dword [rdi + 0x18]
comiss xmm6, xmm0
movss dword [rdi + 0x2f64], xmm0
jb 0x1400168fe
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x1400168f1
call fcn.140023d20
jmp 0x1400168f8
mov byte [rdi + 0x3a4], 1
mov dword [rdi + 0x2f64], esi
inc dword [rdi + 0x1a00]
movss xmm1, dword [rdi + 0x18]
cvtps2pd xmm0, xmm1
mov byte [rdi + 0x1a0c], 1
mov dword [rdi + 0x2f2c], esi
mov dword [rdi + 0x1a60], esi
addsd xmm0, qword [rdi + 0x19f8]
movsd qword [rdi + 0x19f8], xmm0
mov ecx, dword [rdi + 0x2f44]
test ecx, ecx
jns 0x14001695a
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
lea rcx, [rdi + 0x2f40]
test eax, eax
cmovg edx, eax
call fcn.140024f80
movss xmm1, dword [rdi + 0x18]
movss xmm8, dword [0x140058e98]
movaps xmm0, xmm1
movss xmm9, dword [0x140058ca4]
mov dword [rdi + 0x2f40], esi
movsxd rax, dword [rdi + 0x31b4]
subss xmm0, dword [rdi + rax*4 + 0x2fd4]
addss xmm0, dword [rdi + 0x31b8]
movss dword [rdi + 0x31b8], xmm0
movss dword [rdi + rax*4 + 0x2fd4], xmm1
mov eax, 0x88888889
mov ecx, dword [rdi + 0x31b4]
movss xmm1, dword [rdi + 0x31b8]
inc ecx
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x78
sub ecx, eax
comiss xmm1, xmm6
mov dword [rdi + 0x31b4], ecx
jbe 0x1400169e3
divss xmm1, dword [0x140058dfc]
movaps xmm0, xmm9
divss xmm0, xmm1
jmp 0x1400169e7
movaps xmm0, xmm8
mov rax, qword [rdi + 0xa8]
movss dword [rdi + 0x3a8], xmm0
mov byte [rax], 1
mov rax, qword [0x140078100]
mov rcx, qword [rax + 0xb8]
test rcx, rcx
jne 0x140016a1a
mov rax, qword [rax + 0xa8]
mov rcx, qword [rax + 0x48]
mov rcx, qword [rcx]
mov qword [rsp + 0xa0], r14
call fcn.14001de70
movss xmm0, dword [rdi + 0x14]
movss xmm2, dword [rdi + 0x10]
mov eax, dword [rdi + 0x1610]
mov qword [rsp + 0x20], rsi
movups xmm1, xmmword [rsp + 0x20]
mov dword [rdi + 0x193c], eax
shufps xmm1, xmm1, 0xd2
movss xmm1, xmm2
shufps xmm1, xmm1, 0x27
movss xmm1, xmm0
shufps xmm1, xmm1, 0x39
movups xmmword [rdi + 0x1944], xmm1
movss xmm1, dword [rdi + 0x1614]
movss xmm0, dword [rdi + 0x1940]
ucomiss xmm0, xmm1
jp 0x140016a7d
je 0x140016b13
mov qword [rsp + 0x98], rbp
lea r14, [rdi + 0x19b8]
movaps xmmword [rsp + 0x50], xmm7
mov ebx, esi
movss xmm7, dword [0x140058d54]
mov ebp, 0x200
movss dword [rdi + 0x1940], xmm1
nop dword [rax + rax]
movd xmm1, ebx
cvtdq2ps xmm1, xmm1
addss xmm1, xmm9
movaps xmm0, xmm1
subss xmm0, dword [rdi + 0x1940]
divss xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_acosf
movaps xmm1, xmm7
divss xmm1, xmm0
cvttss2si edx, xmm1
cmp edx, 0xc
jge 0x140016ae7
mov edx, 0xc
jmp 0x140016aec
cmp edx, ebp
cmovg edx, ebp
mov ecx, 0xff
movzx eax, dl
cmp edx, ecx
cmovl ecx, eax
inc ebx
mov byte [r14], cl
inc r14
cmp ebx, 0x40
jl 0x140016ab0
movaps xmm7, xmmword [rsp + 0x50]
mov rbp, qword [rsp + 0x98]
mov eax, esi
mov dword [rdi + 0x1954], esi
cmp byte [rdi + 0x160c], sil
je 0x140016b2f
mov eax, 1
mov dword [rdi + 0x1954], eax
cmp byte [rdi + 0x160d], sil
je 0x140016b41
or eax, 2
mov dword [rdi + 0x1954], eax
test byte [rdi + 0xc], 8
je 0x140016b50
or eax, 4
mov dword [rdi + 0x1954], eax
lea rcx, [rdi + 0x1da0]
call fcn.14002c3d0
mov rdx, qword [rdi + 0xa8]
lea rcx, [rdi + 0x1da0]
mov rdx, qword [rdx + 8]
call fcn.14002ca60
mov rax, qword [rdi + 0x1dd8]
lea rcx, [rdi + 0x1da0]
xor r9d, r9d
movss xmm1, dword [rax + 0x28]
movss xmm0, dword [rax + 0x24]
movss xmm2, dword [rax + 0x20]
unpcklps xmm0, xmm1
movss xmm1, dword [rax + 0x1c]
movq r8, xmm0
unpcklps xmm1, xmm2
movq rdx, xmm1
call fcn.14002c930
lea rcx, [rdi + 0x1e48]
call fcn.14002c3d0
mov rdx, qword [rdi + 0xa8]
lea rcx, [rdi + 0x1e48]
mov rdx, qword [rdx + 8]
call fcn.14002ca60
mov rax, qword [rdi + 0x1e80]
lea rcx, [rdi + 0x1e48]
xor r9d, r9d
movss xmm1, dword [rax + 0x28]
movss xmm0, dword [rax + 0x24]
movss xmm2, dword [rax + 0x20]
unpcklps xmm0, xmm1
movss xmm1, dword [rax + 0x1c]
movq r8, xmm0
unpcklps xmm1, xmm2
movq rdx, xmm1
call fcn.14002c930
mov rdx, qword [0x140078100]
mov byte [rdi + 0x1d40], sil
mov qword [rdi + 0x1d48], rsi
mov qword [rdi + 0x1d54], rsi
mov dword [rdi + 0x1d50], esi
mov qword [rdi + 0x1d6c], rsi
mov qword [rdi + 0x1d64], rsi
mov qword [rdi + 0x1d5c], rsi
cmp byte [rdi + 0x1ef4], sil
je 0x140016c75
mov eax, dword [rdi + 0x1f14]
cmp eax, dword [rdi + 0x1ab0]
jne 0x140016c75
cmp dword [rdx + 0x1ab0], eax
jne 0x140016c66
mov dword [rdx + 0x1ab4], eax
cmp dword [rdx + 0x1af0], eax
jne 0x140016c75
mov byte [rdx + 0x1af4], 1
mov eax, dword [rdi + 0x1a9c]
cmp dword [rdi + 0x1aa4], esi
jne 0x140016c8b
mov dword [rdi + 0x1aa8], esi
jmp 0x140016c99
mov ecx, eax
test eax, eax
je 0x140016ca1
cmp dword [rdi + 0x1ab0], eax
jne 0x140016ca1
mov dword [rdi + 0x1aac], esi
mov ecx, eax
movss xmm2, dword [rdi + 0x18]
mov eax, dword [rdi + 0x1ab0]
test ecx, ecx
je 0x140016cda
movaps xmm0, xmm2
addss xmm0, dword [rdi + 0x1aa8]
movss dword [rdi + 0x1aa8], xmm0
cmp eax, ecx
je 0x140016cda
movaps xmm0, xmm2
addss xmm0, dword [rdi + 0x1aac]
movss dword [rdi + 0x1aac], xmm0
movaps xmm1, xmm2
mov dword [rdi + 0x1aa4], ecx
mov ecx, eax
mov dword [rdi + 0x1a9c], esi
mov byte [rdi + 0x1aa0], sil
cmp dword [rdi + 0x1ab4], eax
je 0x140016d5c
cmp dword [rdi + 0x1af0], eax
jne 0x140016d5c
test eax, eax
je 0x140016d5c
mov ecx, dword [rdx + 0x1ab0]
test ecx, ecx
setne al
mov byte [rdx + 0x1abc], al
test ecx, ecx
je 0x140016d28
mov dword [rdx + 0x1ab8], esi
mov word [rdx + 0x1abe], si
mov dword [rdx + 0x1ab0], esi
mov byte [rdx + 0x1abd], sil
mov qword [rdx + 0x1ae0], rsi
mov byte [rdx + 0x1ac0], sil
mov qword [rdx + 0x1ac4], rsi
mov qword [rdx + 0x1ad0], rsi
mov ecx, dword [rdi + 0x1ab0]
movss xmm1, dword [rdi + 0x18]
test ecx, ecx
je 0x140016d73
movaps xmm0, xmm1
addss xmm0, dword [rdi + 0x1ab8]
movss dword [rdi + 0x1ab8], xmm0
mov rax, qword [rdi + 0x1ae0]
addss xmm1, dword [rdi + 0x1b04]
mov qword [rdi + 0x1af8], rax
movzx eax, byte [rdi + 0x1abf]
mov byte [rdi + 0x1af5], al
mov eax, dword [rdi + 0x2ef0]
movss dword [rdi + 0x1b04], xmm1
mov dword [rdi + 0x1af0], ecx
mov dword [rdi + 0x1ab4], esi
mov byte [rdi + 0x1ac0], sil
mov byte [rdi + 0x1af4], sil
mov byte [rdi + 0x1abc], sil
test eax, eax
je 0x140016dd3
cmp ecx, eax
je 0x140016dd3
mov dword [rdi + 0x2ef0], esi
test ecx, ecx
jne 0x140016de5
mov qword [rdi + 0x1ac4], rsi
mov qword [rdi + 0x1ad0], rsi
mov eax, dword [rdi + 0x1f64]
lea rcx, [rdi + 0xca0]
lea rdx, [rdi + 0x4a0]
mov dword [rdi + 0x1f68], eax
mov r8d, 0x800
mov qword [rdi + 0x1f60], 0x7f7fffff
mov byte [rdi + 0x1ef5], sil
call sub.VCRUNTIME140.dll_memcpy
movss xmm1, dword [0x140058eb0]
lea rcx, [rdi + 0x14d]
lea rax, [rdi + 0x4a4]
mov edx, 0x80
cmp byte [rcx - 1], sil
je 0x140016e53
movss xmm0, dword [rax - 4]
comiss xmm6, xmm0
jbe 0x140016e4c
movaps xmm0, xmm6
jmp 0x140016e56
addss xmm0, dword [rdi + 0x18]
jmp 0x140016e56
movaps xmm0, xmm1
movss dword [rax - 4], xmm0
cmp byte [rcx], sil
je 0x140016e75
movss xmm0, dword [rax]
comiss xmm6, xmm0
jbe 0x140016e6e
movaps xmm0, xmm6
jmp 0x140016e78
addss xmm0, dword [rdi + 0x18]
jmp 0x140016e78
movaps xmm0, xmm1
movss dword [rax], xmm0
cmp byte [rcx + 1], sil
je 0x140016e98
movss xmm0, dword [rax + 4]
comiss xmm6, xmm0
jbe 0x140016e91
movaps xmm0, xmm6
jmp 0x140016e9b
addss xmm0, dword [rdi + 0x18]
jmp 0x140016e9b
movaps xmm0, xmm1
movss dword [rax + 4], xmm0
cmp byte [rcx + 2], sil
je 0x140016ebc
movss xmm0, dword [rax + 8]
comiss xmm6, xmm0
jbe 0x140016eb5
movaps xmm0, xmm6
jmp 0x140016ebf
addss xmm0, dword [rdi + 0x18]
jmp 0x140016ebf
movaps xmm0, xmm1
movss dword [rax + 8], xmm0
add rcx, 4
add rax, 0x10
sub rdx, 1
jne 0x140016e37
call fcn.140021160
call fcn.140015a90
call fcn.140016380
call fcn.140015610
mov r10, qword [0x140078100]
movsxd rax, dword [r10 + 0x1bb8]
test eax, eax
jle 0x140016f31
lea rdx, [rax - 1]
mov rax, qword [r10 + 0x1bc0]
lea r8, [rdx + rdx*2]
add rax, 8
shl r8, 4
add r8, rax
mov rax, qword [r8]
test rax, rax
je 0x140016f27
test dword [rax + 0xc], 0x8000000
jne 0x140016f47
sub r8, 0x30
sub rdx, 1
jns 0x140016f16
cmp qword [rdi + 0x1cf0], rsi
je 0x140016f63
movss xmm0, dword [rdi + 0x1d0c]
comiss xmm0, xmm6
jbe 0x140016f63
movss xmm1, dword [rdi + 0x18]
mulss xmm1, dword [0x140058d4c]
addss xmm1, dword [rdi + 0x1d98]
minss xmm1, xmm9
jmp 0x140016f80
movss xmm0, dword [rdi + 0x18]
mulss xmm0, dword [0x140058d64]
movss xmm1, dword [rdi + 0x1d98]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [rdi + 0x1d98], xmm1
mov dword [rdi + 0x1ef0], esi
mov qword [rdi + 0x31c0], 0xffffffffffffffff
mov dword [rdi + 0x31bc], 0xffffffff
mov dword [rdi + 0x2f50], 0x3f800000
mov dword [rdi + 0x2f54], 0x3f800000
call fcn.140015e30
mov r8, qword [r10 + 0x1bd8]
movaps xmm9, xmmword [rsp + 0x30]
test r8, r8
je 0x140016ffc
cmp byte [r8 + 0x7e], sil
je 0x140016ffc
test dword [r8 + 0xc], 0x40000
jne 0x140016ffc
cmp byte [r10 + 0x148], sil
jne 0x140016ffc
mov ecx, dword [r10 + 0x3c]
test ecx, ecx
js 0x140016ffc
call fcn.1400187e0
test al, al
je 0x140016ffc
mov al, 1
jmp 0x140016ffe
xor al, al
mov byte [r10 + 0x1d38], al
cmp dword [r10 + 0x1ab0], esi
jne 0x140017069
test al, al
je 0x140017069
mov qword [r10 + 0x1d20], r8
mov dword [r10 + 0x1d30], 0x7fffffff
cmp dword [r10 + 0x1be0], esi
je 0x140017056
mov ecx, dword [r10 + 0x1c24]
cmp ecx, 0x7fffffff
je 0x140017056
cmp byte [r10 + 0x149], sil
mov eax, 2
cmovne eax, esi
add eax, ecx
mov dword [r10 + 0x1d34], eax
jmp 0x140017069
movzx eax, byte [r10 + 0x149]
neg al
sbb ecx, ecx
mov dword [r10 + 0x1d34], ecx
mov r8, qword [r10 + 0x1d20]
mov qword [r10 + 0x1d18], rsi
mov dword [r10 + 0x1d2c], 0x7fffffff
mov dword [r10 + 0x1d28], 0x7fffffff
test r8, r8
je 0x140017106
mov eax, dword [r10 + 0x1d30]
mov qword [r10 + 0x1d18], r8
cmp eax, 0x7fffffff
je 0x1400170c1
mov ecx, dword [r8 + 0x1b0]
cmp ecx, 0xffffffff
je 0x1400170c1
inc ecx
add eax, ecx
cdq
idiv ecx
mov dword [r10 + 0x1d28], edx
mov eax, dword [r10 + 0x1d34]
cmp eax, 0x7fffffff
je 0x1400170e9
mov ecx, dword [r8 + 0x1b4]
cmp ecx, 0xffffffff
je 0x1400170e9
inc ecx
add eax, ecx
cdq
idiv ecx
mov dword [r10 + 0x1d2c], edx
mov qword [r10 + 0x1d20], rsi
mov dword [r10 + 0x1d34], 0x7fffffff
mov dword [r10 + 0x1d30], 0x7fffffff
mov dword [r10 + 0x1c24], 0x7fffffff
movss xmm0, dword [rdi + 0xd0]
comiss xmm0, xmm6
jb 0x140017131
movsd xmm8, qword [rdi + 0x19f8]
cvtpd2ps xmm8, xmm8
subss xmm8, xmm0
mov ebx, esi
cmp dword [rdi + 0x1a10], esi
je 0x140017195
mov r14, rsi
nop
mov rax, qword [rdi + 0x1a18]
mov rcx, qword [r14 + rax]
movzx eax, byte [rcx + 0x7e]
mov byte [rcx + 0x7f], al
mov word [rcx + 0x8a], si
mov byte [rcx + 0x7e], sil
mov byte [rcx + 0x80], sil
test al, al
jne 0x140017180
cmp byte [rcx + 0x3b0], sil
jne 0x140017180
comiss xmm8, dword [rcx + 0x27c]
jbe 0x140017180
call fcn.1400150a0
inc ebx
add r14, 8
cmp ebx, dword [rdi + 0x1a10]
jne 0x140017140
mov r10, qword [0x140078100]
mov rax, qword [rdi + 0x1bd8]
movaps xmm8, xmmword [rsp + 0x40]
mov r14, qword [rsp + 0xa0]
test rax, rax
je 0x140017211
cmp byte [rax + 0x7f], sil
jne 0x140017211
movsxd rax, dword [r10 + 0x1a20]
test eax, eax
jle 0x14001720a
lea r9, [rax - 1]
mov rax, qword [r10 + 0x1a28]
lea r10, [rax + r9*8]
nop
mov r8, qword [r10]
test r8, r8
je 0x140017200
cmp byte [r8 + 0x7f], sil
je 0x140017200
mov eax, dword [r8 + 0xc]
and eax, 0x40200
cmp eax, 0x40200
setne cl
bt dword [r8 + 0xc], 0x18
setae al
test al, cl
jne 0x140017393
sub r10, 8
sub r9, 1
jns 0x1400171d0
xor ecx, ecx
call fcn.14001db70
mov ecx, dword [rdi + 0x1a44]
test ecx, ecx
jns 0x140017237
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
lea rcx, [rdi + 0x1a40]
test eax, eax
cmovg edx, eax
call fcn.140024a70
mov dword [rdi + 0x1a40], esi
mov ecx, dword [rdi + 0x1bcc]
test ecx, ecx
jns 0x140017263
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
lea rcx, [rdi + 0x1bc8]
test eax, eax
cmovg edx, eax
call fcn.140024ee0
mov dword [rdi + 0x1bc8], esi
xor edx, edx
mov rcx, qword [rdi + 0x1bd8]
call fcn.14001f790
mov r8, qword [0x140078100]
mov dword [r8 + 0x2fd0], esi
cmp byte [r8 + 0x2fcc], sil
je 0x140017346
mov ebx, dword [r8 + 0x1aa4]
mov dword [r8 + 0x1ef0], 7
mov ecx, dword [r8 + 0x74]
test ecx, ecx
js 0x1400172bc
call fcn.1400187e0
test al, al
je 0x1400172bc
mov byte [r8 + 0x2fcc], sil
movss xmm0, dword [r8 + 0x43c]
ucomiss xmm0, xmm6
jp 0x1400172de
jne 0x1400172de
test ebx, ebx
je 0x1400172de
mov dword [r8 + 0x2fd0], ebx
mov byte [r8 + 0x2fcc], sil
or dword [r8 + 0x1b08], 0x40
xor edx, edx
mov dword [r8 + 0x1b60], 0x3f19999a
call fcn.14001f3c0
mov edx, ebx
lea rcx, str.HoveredId:_0x_08X
call fcn.140035560
lea rcx, str.Press_ESC_to_abort_picking.
call fcn.140035560
mov rcx, qword [0x140078100]
lea rdx, str.Click_to_break_in_debugger_
mov eax, 0x10
test ebx, ebx
cmove rsi, rax
add rcx, 0x1618
add rcx, rsi
call fcn.1400355e0
call fcn.14001da80
mov r8, qword [0x140078100]
mov byte [rdi + 0x1a0d], 1
lea rcx, str.DebugDefault
or dword [r8 + 0x1b08], 2
xor edx, edx
mov dword [r8 + 0x1b28], 0x43c80000
mov dword [r8 + 0x1b2c], 0x43c80000
mov dword [r8 + 0x1b10], 4
xor r8d, r8d
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rdi
pop rsi
pop rbx
jmp fcn.14001b770
mov rax, qword [r8 + 0x380]
test rax, rax
cmovne r8, rax
mov rcx, r8
jmp 0x14001720c