Function at 0x14001c4b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0xd50]
sub rsp, 0xe50
mov rax, qword [0x1400b2010]
xor rax, rsp
mov qword [rbp + 0xd40], rax
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x30], edi
lea rcx, [0x14001c3c0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call fcn.14000b4d0
mov qword [rsp + 0x70], rdi
lea ecx, [rdi + 0x10]
call fcn.14008f5b0
mov r9, rax
lea rax, [0x1400b2e70]
mov qword [r9], rax
lea rax, [0x14000c670]
mov qword [r9 + 8], rax
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], r9
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x70], r9
mov eax, 1
and eax, 0xfffffffe
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
lea r8, [0x14001c770]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14001c73c
mov qword [rsp + 0x70], rdi
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.1400337f0
nop
lea rcx, [rbp - 0x80]
call fcn.14008d3a0
nop
lea rax, vtable.Viewer.0
mov qword [rbp - 0x80], rax
lea rcx, [rbp + 0xbf8]
call fcn.14002e980
test rax, rax
jne 0x14001c5cf
mov rax, qword [rbp + 0xbf0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xbf0]
add rcx, rax
xor r8d, r8d
lea edx, [rdi + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rax, [rbp + 0xd18]
mov qword [rsp + 0x40], rax
mov rcx, qword [rbp + 0xd18]
mov rbx, qword [rcx + 8]
cmp byte [rbx + 0x19], 0
jne 0x14001c624
nop dword [rax]
mov r8, qword [rbx + 0x10]
lea rdx, [rbp + 0xd18]
lea rcx, [rbp + 0xd18]
call fcn.14003ea60
mov rcx, rbx
mov rbx, qword [rbx]
mov edx, 0x30
call fcn.14008f90c
cmp byte [rbx + 0x19], 0
je 0x14001c5f0
mov rcx, qword [rbp + 0xd18]
mov edx, 0x30
call fcn.14008f90c
nop
lea rax, [rbp + 0xd08]
mov qword [rsp + 0x40], rax
mov rcx, qword [rbp + 0xd08]
mov rbx, qword [rcx + 8]
cmp byte [rbx + 0x19], 0
jne 0x14001c684
nop dword [rax]
mov r8, qword [rbx + 0x10]
lea rdx, [rbp + 0xd08]
lea rcx, [rbp + 0xd08]
call fcn.14003ea60
mov rcx, rbx
mov rbx, qword [rbx]
mov edx, 0x30
call fcn.14008f90c
cmp byte [rbx + 0x19], 0
je 0x14001c650
mov rcx, qword [rbp + 0xd08]
mov edx, 0x30
call fcn.14008f90c
nop
lea rcx, [rbp + 0xbf0]
call fcn.14001cd90
nop
lea rcx, [rbp - 0x80]
call fcn.14008c810
mov byte [0x1400b2e74], 1
cmp dword [rsp + 0x68], 0
jne 0x14001c6bf
mov ecx, 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 [rsp + 0x68], eax
jne 0x14001c6d7
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x40], xmm0
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
je 0x14001c6ff
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
cmp dword [rsp + 0x68], 0
je 0x14001c716
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
xor eax, eax
mov rcx, qword [rbp + 0xd40]
xor rcx, rsp
call fcn.14008f590
lea r11, [rsp + 0xe50]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
mov dword [rsp + 0x68], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3