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

Disassembly:
push rbx
push rsi
sub rsp, 0x68
mov rsi, qword [0x1401bff00]
mov eax, dword [rsi + 0x4870]
sub eax, 1
js 0x1400217dd
movsxd rdx, eax
mov rax, qword [rsi + 0x4878]
imul r8, rdx, 0x38
add rax, 8
add r8, rax
nop
mov rbx, qword [r8]
test rbx, rbx
je 0x1400217d3
test dword [rbx + 0x14], 0x8000000
je 0x1400217d3
cmp byte [rbx + 0xb6], 0
je 0x1400217d3
cmp byte [rbx + 0xbd], 0
je 0x1400217df
sub r8, 0x38
sub rdx, 1
jns 0x1400217b0
xor ebx, ebx
movss xmm1, dword [rsi + 0x4a44]
xorps xmm0, xmm0
comiss xmm0, xmm1
jb 0x1400217fc
comiss xmm0, dword [rsi + 0x4a2c]
jae 0x140021b26
mov r8, qword [rsi + 0x4a18]
test r8, r8
je 0x140021816
cmp byte [r8 + 0xb6], 0
je 0x140021816
mov al, 1
jmp 0x140021818
xor al, al
mov qword [rsp + 0x90], rdi
test rbx, rbx
jne 0x140021a15
test al, al
je 0x140021b1e
movups xmm0, xmmword [rsi + 0x3c00]
lea rcx, [rsp + 0x40]
mulss xmm1, dword [rsi + 0x37f4]
movups xmmword [rsp + 0x40], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, xmm1
movss dword [rsp + 0x4c], xmm0
call fcn.14001b8f0
mov edx, eax
mov rcx, r8
call fcn.140021480
mov rdi, qword [0x1401bff00]
mov rbx, qword [rsi + 0x4a18]
cmp dword [rdi + 0x4898], 0
jg 0x140021898
mov r8d, 0x709
lea rdx, str.F:Machozenakokotleokryptedimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movss xmm1, dword [rsi + 0x3c28]
movss xmm3, dword [rbx + 0x20]
movss xmm2, dword [rbx + 0x24]
movaps xmm5, xmm3
addss xmm3, dword [rbx + 0x28]
mov rax, qword [rdi + 0x48a0]
subss xmm5, xmm1
movaps xmm4, xmm2
addss xmm2, dword [rbx + 0x2c]
subss xmm4, xmm1
mov rdi, qword [rax]
addss xmm3, xmm1
movss dword [rsp + 0x40], xmm5
addss xmm2, xmm1
movss dword [rsp + 0x44], xmm4
movaps xmm0, xmm3
movss dword [rsp + 0x48], xmm3
subss xmm0, xmm5
movss dword [rsp + 0x4c], xmm2
comiss xmm0, dword [rdi + 0xc]
jb 0x14002193d
movaps xmm0, xmm2
subss xmm0, xmm4
comiss xmm0, dword [rdi + 0x10]
jb 0x14002193d
xorps xmm1, xmmword [0x1400e3e50]
subss xmm1, dword [0x1400e36f8]
subss xmm5, xmm1
subss xmm4, xmm1
addss xmm3, xmm1
addss xmm2, xmm1
movss dword [rsp + 0x40], xmm5
movss dword [rsp + 0x44], xmm4
movss dword [rsp + 0x48], xmm3
movss dword [rsp + 0x4c], xmm2
mov rcx, qword [rbx + 0x298]
cmp dword [rcx], 0
jne 0x14002194e
call fcn.14003fe40
movss xmm0, dword [rdi + 0xc]
lea rdx, [rdi + 4]
movss xmm1, dword [rdi + 0x10]
lea r8, [rsp + 0x80]
addss xmm0, dword [rdx]
addss xmm1, dword [rdx + 4]
mov rcx, qword [rbx + 0x298]
xor r9d, r9d
movss dword [rsp + 0x80], xmm0
movss dword [rsp + 0x84], xmm1
call fcn.140040180
mov rax, qword [0x1401bff00]
lea rcx, [rsp + 0x50]
movss xmm0, dword [rsi + 0x4a2c]
movups xmm1, xmmword [rax + 0x3bf0]
mulss xmm0, dword [rax + 0x37f4]
movups xmmword [rsp + 0x50], xmm1
shufps xmm1, xmm1, 0xff
mulss xmm1, xmm0
movss dword [rsp + 0x5c], xmm1
call fcn.14001b8f0
movss xmm0, dword [0x1400e37c8]
lea r8, [rsp + 0x48]
mov rcx, qword [rbx + 0x298]
lea rdx, [rsp + 0x40]
movss dword [rsp + 0x30], xmm0
mov r9d, eax
movss xmm0, dword [rbx + 0x58]
movss dword [rsp + 0x20], xmm0
call fcn.140042b00
mov rcx, qword [rbx + 0x298]
mov rdi, qword [rsp + 0x90]
add rsp, 0x68
pop rsi
pop rbx
jmp fcn.140040290
mov qword [rsp + 0x88], rbp
mov rcx, rbx
mov qword [rsp + 0x60], r14
mov r14, rbx
call fcn.1400287f0
movsxd rbp, eax
mov rdi, rbp
test eax, eax
js 0x140021acc
nop dword [rax + rax]
test rdi, rdi
js 0x140021a4d
cmp ebp, dword [rsi + 0x3e68]
jl 0x140021a67
mov r8d, 0x709
lea rdx, str.F:Machozenakokotleokryptedimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rsi + 0x3e70]
mov rcx, qword [rax + rdi*8]
mov edx, dword [rcx + 0x14]
bt edx, 0x18
jb 0x140021ac0
mov rax, rcx
cmp qword [rcx + 0x378], rbx
je 0x140021a9a
cmp rax, rbx
je 0x140021a9a
mov rax, qword [rax + 0x370]
test rax, rax
jne 0x140021a87
jmp 0x140021acc
cmp byte [rcx + 0xb6], 0
je 0x140021ac0
cmp byte [rcx + 0xbd], 0
jne 0x140021ac0
mov eax, dword [rbx + 0x14]
and edx, 0x2000000
and eax, 0x2000000
cmp edx, eax
cmovbe r14, rcx
dec ebp
sub rdi, 1
jns 0x140021a40
mov rax, qword [0x1401bff00]
lea rcx, [rsp + 0x50]
movups xmm1, xmmword [rax + 0x3c10]
movss xmm0, dword [rax + 0x37f4]
mulss xmm0, dword [rsi + 0x4a44]
movups xmmword [rsp + 0x50], xmm1
shufps xmm1, xmm1, 0xff
mulss xmm1, xmm0
movss dword [rsp + 0x5c], xmm1
call fcn.14001b8f0
mov edx, eax
mov rcx, r14
call fcn.140021480
mov r14, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
add rsp, 0x68
pop rsi
pop rbx
ret