Function at 0x14005db30
Capabilities:
Create thread

Disassembly:
mov rax, rsp
sub rsp, 0xf8
cmp byte [0x14009215c], 0
je 0x14005e427
mov rcx, qword [0x1400ee950]
mov qword [rax - 8], rbp
mov qword [rax - 0x38], r15
xor r15d, r15d
cmp byte [0x1400ee938], r15b
mov rax, qword [rcx + 0x3ed8]
mov byte [rax + 0x98], 1
mov rax, qword [rcx + 0x3ed8]
mov rbp, qword [rax + 0x288]
jne 0x14005dba3
mov qword [rsp + 0x28], r15
lea r8, [0x140016970]
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov byte [0x1400ee938], 1
cmp qword [0x1400ee950], r15
jne 0x14005dbc6
mov r8d, 0xec0
lea rdx, str.D:enclipsemenuimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov ecx, dword [0x1400ee9dc]
mov qword [rsp + 0x110], rbx
mov qword [rsp + 0xe8], rsi
mov qword [rsp + 0xe0], rdi
mov qword [rsp + 0xd8], r12
mov qword [rsp + 0xd0], r13
mov qword [rsp + 0xc8], r14
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm7
movaps xmmword [rsp + 0x90], xmm8
movaps xmmword [rsp + 0x80], xmm9
movaps xmmword [rsp + 0x70], xmm10
test ecx, ecx
je 0x14005e12f
cmp ecx, 1
jne 0x14005e3bf
cmp byte [0x1400ef960], r15b
lea r14, [0x1400efca0]
movaps xmmword [rsp + 0x60], xmm11
lea r12, [0x140000000]
jne 0x14005ddc5
movss xmm9, dword [0x140084fc4]
mov rbx, r15
cmp byte [0x1400ee938], r15b
mov rax, qword [0x1400ee950]
mov rcx, qword [rax + 0x3ed8]
movss xmm7, dword [rcx + 0x24]
jne 0x14005dca3
mov qword [rsp + 0x28], r15
lea r8, [0x140016970]
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov byte [0x1400ee938], 1
mov rax, qword [0x1400ee950]
mov rcx, qword [rax + 0x3ed8]
movss xmm6, dword [rcx + 0x1c]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cmp byte [0x1400ee938], r15b
movd xmm8, eax
cvtdq2ps xmm8, xmm8
mulss xmm8, xmm7
divss xmm8, xmm9
addss xmm8, xmm6
jne 0x14005dd02
mov qword [rsp + 0x28], r15
lea r8, [0x140016970]
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov byte [0x1400ee938], 1
mov rax, qword [0x1400ee950]
mov rcx, qword [rax + 0x3ed8]
movss xmm7, dword [rcx + 0x18]
movss xmm6, dword [rcx + 0x20]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movss dword [rbx + r14 + 4], xmm8
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm6
divss xmm0, xmm9
addss xmm0, xmm7
movss dword [rbx + r14], xmm0
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x2e8ba2e9
imul r8d
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0xb
sub r8d, ecx
sub r8d, 5
movd xmm6, r8d
cvtdq2ps xmm6, xmm6
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
movss dword [rbx + r12 + 0xf0604], xmm6
mov eax, 0x2e8ba2e9
imul r8d
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0xb
sub r8d, ecx
sub r8d, 5
movd xmm0, r8d
cvtdq2ps xmm0, xmm0
movss dword [rbx + r12 + 0xf0600], xmm0
add rbx, 8
cmp rbx, 0x960
jl 0x14005dc62
mov byte [0x1400ef960], 1
cmp qword [0x1400ee950], r15
jne 0x14005dde8
mov r8d, 0xec0
lea rdx, str.D:enclipsemenuimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [0x1400ee950]
lea rsi, [0x1400efca4]
movss xmm8, dword [0x140084ea0]
mov r13d, 0x12c
movss xmm6, dword [0x140084dc0]
xorps xmm7, xmm7
movss xmm11, dword [0x140084e9c]
movsd xmm0, qword [rax + 0xd94]
movsd qword [rsp + 0x100], xmm0
movss xmm9, dword [rsp + 0x104]
movss xmm10, dword [rsp + 0x100]
nop
lea ecx, [r15 + 1]
cmp ecx, r13d
jge 0x14005df1e
movsxd rax, ecx
lea rbx, [rsi + 4]
lea r12, [0x1400efca0]
lea rdi, [r14 + rax*8]
mov r14d, r13d
sub r14d, ecx
nop word [rax + rax]
movss xmm1, dword [rbx + 4]
movss xmm0, dword [rbx]
subss xmm1, dword [rsi]
subss xmm0, dword [rsi - 4]
call sub.api_ms_win_crt_math_l1_1_0.dll__hypotf
divss xmm0, xmm8
movaps xmm1, xmm6
subss xmm1, xmm0
comiss xmm1, xmm7
jbe 0x14005df05
mov rax, qword [0x1400ee950]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x30], 0x3f800000
mov dword [rsp + 0x34], 0x3f800000
mov dword [rsp + 0x38], 0x3f800000
movups xmm0, xmmword [rsp + 0x30]
shufps xmm0, xmm0, 0x93
movss xmm0, xmm1
mulss xmm1, dword [rax + 0x37f8]
shufps xmm0, xmm0, 0x39
movups xmmword [rsp + 0x50], xmm0
movss dword [rsp + 0x5c], xmm1
movups xmmword [rsp + 0x30], xmm0
call fcn.1400085a0
mov r9d, eax
movss dword [rsp + 0x20], xmm6
mov eax, r15d
mov r8, rdi
mov rcx, rbp
lea rdx, [r12 + rax*8]
call fcn.14002c580
add rdi, 8
add rbx, 8
sub r14, 1
jne 0x14005de70
lea r14, [0x1400efca0]
movaps xmm1, xmm9
movaps xmm0, xmm10
subss xmm1, dword [rsi]
subss xmm0, dword [rsi - 4]
call sub.api_ms_win_crt_math_l1_1_0.dll__hypotf
divss xmm0, xmm11
movaps xmm1, xmm6
subss xmm1, xmm0
comiss xmm1, xmm7
jbe 0x14005dfb7
mov rax, qword [0x1400ee950]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x40], 0x3f800000
mov dword [rsp + 0x44], 0x3f800000
mov dword [rsp + 0x48], 0x3f800000
movups xmm0, xmmword [rsp + 0x40]
shufps xmm0, xmm0, 0x93
movss xmm0, xmm1
mulss xmm1, dword [rax + 0x37f8]
shufps xmm0, xmm0, 0x39
movups xmmword [rsp + 0x50], xmm0
movss dword [rsp + 0x5c], xmm1
movups xmmword [rsp + 0x40], xmm0
call fcn.1400085a0
mov r9d, eax
movss dword [rsp + 0x20], xmm6
mov eax, r15d
lea rdx, [rsp + 0x100]
mov rcx, rbp
lea r8, [r14 + rax*8]
call fcn.14002c580
inc r15d
add rsi, 8
cmp r15d, r13d
jl 0x14005de40
cmp qword [0x1400ee950], 0
lea r12, [0x140000000]
movaps xmm11, xmmword [rsp + 0x60]
jne 0x14005dff8
mov r8d, 0xec0
lea rdx, str.D:enclipsemenuimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [0x1400ee950]
xor esi, esi
movss xmm7, dword [0x140084dd8]
mov rdi, r14
mov ebx, esi
movss xmm6, dword [rax + 0x18]
cmp byte [0x1400ee938], sil
movaps xmm0, xmm6
mulss xmm0, dword [rbx + r12 + 0xf0600]
addss xmm0, dword [rbx + r14]
movss dword [rbx + r14], xmm0
movaps xmm0, xmm6
mulss xmm0, dword [rbx + r12 + 0xf0604]
addss xmm0, dword [rbx + r14 + 4]
movss dword [rbx + r14 + 4], xmm0
jne 0x14005e07b
mov qword [rsp + 0x28], rsi
lea r8, [0x140016970]
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
movss xmm0, dword [rbx + r14 + 4]
mov byte [0x1400ee938], 1
mov rax, qword [0x1400ee950]
movss xmm4, dword [rbx + r14]
mov rcx, qword [rax + 0x3ed8]
movss xmm3, dword [rcx + 0x18]
comiss xmm3, xmm4
movss xmm1, dword [rcx + 0x20]
movss xmm2, dword [rcx + 0x1c]
addss xmm1, xmm3
movss xmm5, dword [rcx + 0x24]
jbe 0x14005e0b4
movss dword [rbx + r14], xmm1
jmp 0x14005e0bf
comiss xmm4, xmm1
jbe 0x14005e0bf
movss dword [rbx + r14], xmm3
comiss xmm2, xmm0
movaps xmm1, xmm2
addss xmm1, xmm5
jbe 0x14005e0d4
movss dword [rbx + r14 + 4], xmm1
jmp 0x14005e0e0
comiss xmm0, xmm1
jbe 0x14005e0e0
movss dword [rbx + r14 + 4], xmm2
xor r9d, r9d
mov dword [rsp + 0x20], 0x30
movaps xmm2, xmm7
mov rdx, rdi
mov rcx, rbp
call fcn.14002b7d0
dec dword [rbp + 0x78]
mov r9d, 0xffffffff
mov r8d, dword [rbp + 0x78]
mov rcx, rbp
mov rdx, qword [rbp + 0x80]
call fcn.14002b260
add rdi, 8
mov dword [rbp + 0x78], esi
add rbx, 8
sub r13, 1
jne 0x14005e013
jmp 0x14005e3bf
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 1
movd xmm10, eax
cvtdq2ps xmm10, xmm10
call qword [sym.imp.USER32.dll_GetSystemMetrics]
movdqa xmm0, xmmword [0x1400852a0]
lea rcx, [rsp + 0x50]
movups xmmword [rsp + 0x50], xmm0
movd xmm7, eax
cvtdq2ps xmm7, xmm7
call fcn.1400085a0
lea rbp, [0x1400ef978]
mov dword [rsp + 0x108], eax
lea r12, [0x140000000]
and eax, 0xff000000
mov rbx, r15
mov rsi, r15
movss xmm9, dword [0x140084ea4]
lea r15, [0x1400f1670]
movss xmm8, dword [0x140084d84]
mov r13d, 0x31
mov dword [rsp + 0x100], eax
xorps xmm6, xmm6
movss xmm0, dword [rbx + r12 + 0xef978]
lea rdi, [r12 + 0xef97c]
add rdi, rbx
ucomiss xmm0, xmm6
jp 0x14005e1ce
je 0x14005e1e1
movss xmm0, dword [rdi]
ucomiss xmm0, xmm6
jp 0x14005e290
jne 0x14005e290
cvttss2si r14d, xmm10
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
mov dword [rdi], 0x41700000
idiv r14d
inc edx
movd xmm0, edx
cvtdq2ps xmm0, xmm0
movss dword [rbx + r12 + 0xef978], xmm0
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x51eb851f
imul r8d
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0x19
sub r8d, ecx
inc r8d
movd xmm0, r8d
cvtdq2ps xmm0, xmm0
movss dword [rsi + r12 + 0xf1674], xmm0
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
and eax, 0x80000003
jge 0x14005e253
dec eax
or eax, 0xfffffffc
inc eax
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsi + r12 + 0xf14a4], xmm0
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
movaps xmm1, xmm7
idiv r14d
addss xmm1, xmm7
movd xmm0, edx
cvtdq2ps xmm0, xmm0
movss dword [rbx + r12 + 0xf0f7c], xmm1
movss dword [rbx + r12 + 0xf0f78], xmm0
cmp qword [0x1400ee950], 0
mov r14, r15
mov r15, rsi
jne 0x14005e2ba
mov r8d, 0xec0
lea rdx, str.D:enclipsemenuimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movss xmm0, dword [rbx + r12 + 0xef978]
movss xmm3, dword [r15 + r14 + 4]
xor r15d, r15d
mov rax, qword [0x1400ee950]
movss xmm2, dword [rbx + r12 + 0xf0f78]
subss xmm2, xmm0
divss xmm3, xmm9
mulss xmm3, dword [rax + 0x18]
mulss xmm2, xmm3
addss xmm2, xmm0
movss xmm0, dword [rbx + r12 + 0xf0f7c]
subss xmm0, dword [rdi]
mulss xmm0, xmm3
addss xmm0, dword [rdi]
movss dword [rbx + r12 + 0xef978], xmm2
comiss xmm0, xmm7
movss dword [rdi], xmm0
jbe 0x14005e329
mov dword [rbx + r12 + 0xef978], r15d
mov dword [rdi], r15d
cmp dword [rsp + 0x100], 0
mov rcx, qword [0x1400ee950]
movss xmm2, dword [rsi + r12 + 0xf14a4]
mov rax, qword [rcx + 0x3ed8]
mov byte [rax + 0x98], 1
mov rax, qword [rcx + 0x3ed8]
mov rdi, qword [rax + 0x288]
je 0x14005e3a2
comiss xmm8, xmm2
ja 0x14005e3a2
xor r9d, r9d
mov dword [rsp + 0x20], 0x30
mov rdx, rbp
mov rcx, rdi
call fcn.14002b7d0
mov r8d, dword [rdi + 0x78]
mov rcx, rdi
mov r9d, dword [rsp + 0x108]
dec r8d
mov rdx, qword [rdi + 0x80]
mov dword [rdi + 0x78], r8d
call fcn.14002b260
mov dword [rdi + 0x78], r15d
add rbp, 8
lea r15, [0x1400f1670]
add rbx, 8
add rsi, 4
sub r13, 1
jne 0x14005e1b2
movaps xmm9, xmmword [rsp + 0x80]
movaps xmm8, xmmword [rsp + 0x90]
movaps xmm7, xmmword [rsp + 0xa0]
movaps xmm6, xmmword [rsp + 0xb0]
mov rbx, qword [rsp + 0x110]
mov r14, qword [rsp + 0xc8]
mov r13, qword [rsp + 0xd0]
mov r12, qword [rsp + 0xd8]
mov rdi, qword [rsp + 0xe0]
mov rsi, qword [rsp + 0xe8]
movaps xmm10, xmmword [rsp + 0x70]
mov rbp, qword [rsp + 0xf0]
mov r15, qword [rsp + 0xc0]
add rsp, 0xf8
ret