Function at 0x140020410
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14009b040]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor edi, edi
mov dword [rbp - 0x40], edi
cmp byte [0x14009b2d4], dil
je 0x14002067d
xorps xmm2, xmm2
movss xmm0, dword [0x14009b100]
movss xmm1, dword [0x14009b104]
mov rcx, qword [0x14009fa00]
mov eax, dword [rcx + 0x1dc0]
or eax, 1
mov dword [rcx + 0x1dc0], eax
unpcklps xmm0, xmm1
movsd qword [rcx + 0x1dd4], xmm0
xorps xmm1, xmm1
unpcklps xmm1, xmm2
movsd qword [rcx + 0x1ddc], xmm1
mov ebx, 2
mov dword [rcx + 0x1dc4], ebx
mov byte [rcx + 0x1dfc], 1
movss xmm0, dword [0x14009b108]
movss xmm1, dword [0x14009b10c]
movss dword [rcx + 0x1de4], xmm0
movss dword [rcx + 0x1de8], xmm1
mov dword [rcx + 0x1dc8], 1
or eax, 0x42
mov dword [rcx + 0x1dc0], eax
mov dword [rcx + 0x1e20], 0x3f800000
mov r8d, 0x12a
lea rdx, [0x14009b2d4]
lea rcx, str.ENDOOR
call fcn.14002d430
mov qword [rbp - 0x20], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 0x60
lea r8, [0x14009b2d5]
xor edx, edx
lea rcx, [0x14007c264]
call fcn.140065c90
mov ecx, dword [0x14009b2d0]
test ecx, ecx
je 0x14002064f
sub ecx, 1
je 0x140020641
sub ecx, 1
je 0x140020586
sub ecx, 1
je 0x14002056d
cmp ecx, 1
je 0x14002055c
lea rcx, str.Something_went_wrong
call fcn.140060a50
jmp 0x140020678
lea rcx, str.Entered
call fcn.140060a50
jmp 0x140020678
mov qword [rbp - 0x20], rdi
lea rdx, [rbp - 0x20]
lea rcx, str.Entering...
call fcn.140061370
jmp 0x140020678
mov qword [rbp - 0x20], rdi
lea rdx, [rbp - 0x20]
lea rcx, str.Start
call fcn.140061370
test al, al
je 0x140020678
mov qword [rbp - 0x20], rdi
mov ecx, 8
call fcn.140072580
lea rcx, [0x14000d760]
mov qword [rax], rcx
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x40], ebx
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x140018640]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x30], rax
test rax, rax
je 0x140020632
mov qword [rbp - 0x20], rdi
and ebx, 0xfffffffd
mov dword [rbp - 0x40], ebx
cmp dword [rbp - 0x28], 0
je 0x140020626
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140020626
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
cmp dword [rbp - 0x28], eax
je 0x140020678
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x28], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea rcx, str.Loading...
call fcn.140060a50
jmp 0x140020678
mov qword [rbp - 0x20], rdi
lea rdx, [rbp - 0x20]
lea rcx, str.Enter
call fcn.140061370
test al, al
je 0x140020678
mov dword [0x14009b2d0], 1
xor ecx, ecx
call fcn.14000de70
call fcn.140030680
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140072440
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret