Function at 0x1400595e0
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x58
xor ebx, ebx
cmp byte [0x1400d2b10], bl
jne 0x140059626
mov qword [rsp + 0x28], rbx
lea r8, [0x140059410]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor edx, edx
mov byte [0x1400d2b10], 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140059626
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400d2b11], bl
mov rdx, qword [0x1400d2a88]
mov rax, qword [rdx + 0x4008]
mov byte [rax + 0xc0], 1
mov rax, qword [rdx + 0x4008]
movss xmm2, dword [rax + 0x110]
movss xmm0, dword [rax + 0x114]
movaps xmm3, xmm2
addss xmm3, dword [0x1400d2098]
subss xmm2, dword [rdx + 0x38f0]
movaps xmm1, xmm0
addss xmm1, dword [0x1400d209c]
subss xmm0, dword [rdx + 0x38f4]
movss dword [rbp - 0x20], xmm3
movss dword [rbp - 0x28], xmm2
movss dword [rbp - 0x1c], xmm1
movss dword [rbp - 0x24], xmm0
jne 0x1400596ad
movups xmm0, xmmword [rbp - 0x28]
lea rcx, [rbp - 0x18]
movdqa xmmword [rbp - 0x18], xmm0
call fcn.140059920
add rsp, 0x58
pop rbx
pop rbp
ret
mov rcx, qword [0x1400d2c20]
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x50], r14
test rcx, rcx
je 0x1400596da
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdx, qword [0x1400d2a88]
mov qword [0x1400d2c20], rbx
cmp byte [0x1400d2af8], bl
je 0x140059716
test rdx, rdx
jne 0x140059708
mov r8d, 0x10bc
lea rdx, str.F:Reposimgui_masterimgui.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 rdx, qword [0x1400d2a88]
movss xmm0, dword [rdx + 0x18]
xorps xmm0, xmmword [0x1400c82d0]
jmp 0x140059741
test rdx, rdx
jne 0x14005973c
mov r8d, 0x10bc
lea rdx, str.F:Reposimgui_masterimgui.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 rdx, qword [0x1400d2a88]
movss xmm0, dword [rdx + 0x18]
mov r8, qword [0x1400d2148]
xorps xmm1, xmm1
sub r8, qword [0x1400d2140]
mulss xmm0, dword [0x1400c7fdc]
sar r8, 3
addss xmm0, dword [0x1400d2afc]
lea rcx, [r8 - 2]
movss dword [0x1400d2afc], xmm0
test rcx, rcx
js 0x14005977e
cvtsi2ss xmm1, rcx
jmp 0x140059793
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
comiss xmm0, xmm1
xorps xmm2, xmm2
jb 0x1400597a4
mov byte [0x1400d2af8], 1
jmp 0x1400597af
comiss xmm2, xmm0
jb 0x1400597af
mov byte [0x1400d2af8], bl
lea rcx, [r8 - 1]
xorps xmm1, xmm1
test rcx, rcx
js 0x1400597c2
cvtsi2ss xmm1, rcx
jmp 0x1400597d7
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
comiss xmm2, xmm0
lea rax, [0x1400d2afc]
mov dword [rbp + 0x18], ebx
lea rcx, [rbp + 0x18]
movss dword [rbp + 0x20], xmm1
cmovbe rcx, rax
lea rax, [rbp + 0x20]
comiss xmm0, xmm1
cmovbe rax, rcx
lea rcx, [rbp - 0x18]
movss xmm0, dword [rax]
movss dword [0x1400d2afc], xmm0
mov rax, qword [rdx + 0x4008]
mov byte [rax + 0xc0], 1
movss xmm1, dword [0x1400d2bf4]
movss xmm0, dword [0x1400d2bf0]
mov rax, qword [rdx + 0x4008]
movss dword [rbp - 0x14], xmm1
movss xmm1, dword [0x1400d2bfc]
mulss xmm1, dword [rdx + 0x38e8]
mov rbx, qword [rax + 0x2a8]
movss dword [rbp - 0x18], xmm0
movss xmm0, dword [0x1400d2bf8]
movss dword [rbp - 0xc], xmm1
movss dword [rbp - 0x10], xmm0
call fcn.140004350
mov dword [rbp + 0x18], 0x3f800000
mov r14d, eax
mov dword [rbp + 0x1c], 0x3f800000
mov qword [rbp + 0x20], 0
cvttss2si ecx, dword [0x1400d2afc]
movsxd rdx, ecx
mov rcx, qword [0x1400d2140]
mov rdi, qword [rcx + rdx*8]
test eax, 0xff000000
je 0x140059903
mov qword [rsp + 0x80], rsi
mov rsi, qword [rbx + 0x70]
cmp rdi, rsi
je 0x1400598bb
mov rdx, rdi
mov rcx, rbx
call fcn.14002c520
mov edx, 6
mov rcx, rbx
lea r8d, [rdx - 2]
call fcn.14002c610
lea rax, [rbp + 0x18]
mov dword [rsp + 0x28], r14d
lea r9, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x20]
mov rcx, rbx
lea rdx, [rbp - 0x28]
call fcn.14002c740
cmp rdi, rsi
mov rsi, qword [rsp + 0x80]
je 0x140059903
mov rcx, rbx
call fcn.14002c5a0
mov rdi, qword [rsp + 0x88]
mov r14, qword [rsp + 0x50]
add rsp, 0x58
pop rbx
pop rbp
ret