Function at 0x140002090
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbp
push rbx
push rsi
push rdi
lea rbp, [rax - 0x5f]
sub rsp, 0xb8
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
mov rdi, rcx
xor esi, esi
cmp byte [rcx + 0x20], sil
jne 0x14000231f
mov byte [rcx + 0x20], 1
mov rax, qword [0x140098de0]
mov qword [rax + 0x20], rsi
xor ecx, ecx
call fcn.140031760
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
lea ecx, [rsi + 0x20]
call fcn.140060858
mov rbx, rax
mov dword [rax], 1
mov dword [rax + 4], 2
xor eax, eax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rsi
mov dword [rbx + 0x18], esi
mov qword [rbp - 0x19], rbx
lock inc dword [rbx]
mov qword [rbp + 0x77], rbx
lea ecx, [rsi + 0x10]
call fcn.140060858
mov qword [rbp + 0x77], rsi
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rbp + 0x7f], rax
lea rcx, [rbp - 0x21]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x140003c50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x29], rax
test rax, rax
je 0x140002310
mov rcx, qword [rdi]
call fcn.140051410
test eax, eax
jne 0x14000225c
movss xmm6, dword [0x140086db0]
movss xmm7, dword [0x140086d74]
movss xmm8, dword [0x140086d70]
movss xmm9, dword [0x140086d60]
call fcn.1400510c0
mov edx, 0x20002
mov rcx, qword [rdi]
call fcn.140050e40
test eax, eax
jne 0x14000224c
mov rax, qword [0x140098de0]
test rax, rax
je 0x1400021b6
mov rcx, qword [rax + 0x98]
jmp 0x1400021b9
mov rcx, rsi
cmp dword [rcx + 0x28], 0
jne 0x1400021c4
call fcn.14003c410
call fcn.14003b540
call fcn.1400188c0
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
call qword [rax + 0x18]
call fcn.14001b330
lea r8, [rbp + 0x67]
lea rdx, [rbp + 0x6f]
mov rcx, qword [rdi]
call fcn.140050e10
mov r9d, dword [rbp + 0x67]
mov r8d, dword [rbp + 0x6f]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.OPENGL32.dll_glViewport]
movaps xmm3, xmm6
movaps xmm2, xmm7
movaps xmm1, xmm8
movaps xmm0, xmm9
call qword [sym.imp.OPENGL32.dll_glClearColor]
mov ecx, 0x4000
call qword [sym.imp.OPENGL32.dll_glClear]
mov rax, qword [0x140098de0]
mov rax, qword [rax + 0x40b0]
mov rcx, qword [rax]
add rcx, 0x48
mov rax, rsi
cmp byte [rcx], al
cmovne rax, rcx
mov rcx, rax
call fcn.14003bcd0
mov rcx, qword [rdi]
call fcn.140050740
mov rcx, qword [rdi]
call fcn.140051410
test eax, eax
je 0x140002187
mov eax, dword [rbp - 0x21]
test eax, eax
je 0x1400022d1
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x140002274
call fcn.1400013c0
mov eax, dword [rbp - 0x21]
test eax, eax
jne 0x140002282
lea ecx, [rax + 1]
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp - 0x21], eax
jne 0x140002299
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movups xmm0, xmmword [rbp - 0x29]
movaps xmmword [rbp - 0x49], xmm0
xor edx, edx
lea rcx, [rbp - 0x49]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
je 0x1400022bd
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm0
psrldq xmm0, 8
movd eax, xmm0
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x140002305
mov eax, 0xfffffffe
lock xadd dword [rcx + 4], eax
and eax, 0xfffffffe
cmp eax, 2
jne 0x140002302
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140002302
lea edx, [rax + 0x1f]
call fcn.140060aec
mov eax, dword [rbp - 0x21]
test eax, eax
je 0x14000231f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rbp - 0x21], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea r11, [rsp + 0xb8]
movaps xmm6, xmmword [r11 - 0x18]
movaps xmm7, xmmword [r11 - 0x28]
movaps xmm8, xmmword [r11 - 0x38]
movaps xmm9, xmmword [r11 - 0x48]
mov rsp, r11
pop rdi
pop rsi
pop rbx
pop rbp
ret