Function at 0x1400cdff0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x1401b8010]
xor rax, rsp
mov qword [rbp + 0x110], rax
xor esi, esi
mov dword [rsp + 0x40], esi
lea rcx, [0x1401c15e8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x1401c15e0], rsi
jne 0x1400ce048
lea rcx, [0x1401c15c0]
call fcn.140047ce0
lea rcx, [0x1401c15e8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x1401c15e0]
test rcx, rcx
je 0x1400ce310
mov rax, qword [rcx]
lea r8, [0x140163b88]
mov edx, 0x136
mov rax, qword [rax + 0x30]
call qword [case.0x140077645.0]
test rax, rax
je 0x1400ce310
cmp word [rax], 0x3c
je 0x1400ce310
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], si
jne 0x1400ce0a0
mov qword [rbp + 0xf0], rsi
mov qword [rbp + 0x100], rsi
mov qword [rbp + 0x108], 7
mov word [rbp + 0xf0], si
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0xf0]
call fcn.140002f20
nop
mov qword [rbp + 0xd0], rsi
mov qword [rbp + 0xe0], rsi
mov qword [rbp + 0xe8], 7
mov word [rbp + 0xd0], si
mov r8d, 0xe
lea rdx, [0x140163b10]
lea rcx, [rbp + 0xd0]
call fcn.140002f20
nop
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0xf0]
call fcn.1400047a0
nop
mov rdx, qword [rbp + 0xe8]
cmp rdx, 8
jb 0x1400ce173
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ce16e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ce16e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007e2a0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x6c], xmm0
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
mov qword [rbp - 0x3c], rax
mov dword [rbp - 0x34], eax
mov dword [rsp + 0x60], 0x70
mov dword [rsp + 0x64], 0x40
mov qword [rsp + 0x68], rsi
lea rax, [0x140163b00]
mov qword [rsp + 0x70], rax
lea rax, [rbp + 0xf0]
cmp qword [rbp + 0x108], 8
cmovae rax, qword [rbp + 0xf0]
mov qword [rsp + 0x78], rax
lea rax, [0x140163b68]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rsi
mov dword [rbp - 0x70], 1
mov ecx, 8
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl]
test rax, rax
je 0x1400ce1f8
lea rcx, [rsp + 0x60]
mov qword [rax], rcx
jmp 0x1400ce1fb
mov rax, rsi
mov qword [rbp + 0xd0], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x1400079d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400ce300
cmp dword [rsp + 0x58], 0
jne 0x1400ce245
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 + 0x58], eax
jne 0x1400ce25d
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rbp + 0xd0], xmm0
xor edx, edx
lea rcx, [rbp + 0xd0]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
je 0x1400ce289
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x1400ce2a2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [rsp + 0x58], 0
je 0x1400ce2b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov rdx, qword [rbp + 0x108]
cmp rdx, 8
jb 0x1400ce2f9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ce2f4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ce2f4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007e2a0
xor eax, eax
jmp 0x1400ce49c
mov dword [rsp + 0x58], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea rax, [0x140181628]
mov qword [rbp - 0x30], rax
lea rcx, [rbp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
nop
mov dword [rsp + 0x40], 2
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx - 0x30], rax
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x34], edx
lea rcx, [rbp - 0x28]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp - 0x28], rax
mov qword [rbp + 0x40], rsi
mov dword [rbp + 0x48], 4
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.logger_stream.0
mov qword [rbp + rcx - 0x30], rax
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x34], edx
mov ecx, dword [0x1401c1658]
mov eax, dword [0x1401c165c]
add ecx, eax
je 0x1400ce416
mov dword [rsp + 0x38], esi
call fcn.140005ad0
mov qword [rsp + 0x30], rax
lock inc dword [rsp + 0x38]
mov dword [rsp + 0x40], 0xa
mov rax, qword [rsp + 0x30]
test rax, rax
jne 0x1400ce3f3
call fcn.140005ad0
mov qword [rsp + 0x30], rax
lock inc dword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400ce412
mov rax, qword [rax + 0x58]
test rax, rax
je 0x1400ce412
call qword [case.0x140077645.0]
movzx edi, al
jmp 0x1400ce419
xor edi, edi
jmp 0x1400ce419
xor dil, dil
mov eax, dword [rsp + 0x40]
test al, 8
je 0x1400ce458
and eax, 0xfffffff7
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x30], rsi
mov rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [rsp + 0x38], eax
cmp eax, 1
js 0x1400ce453
call fcn.140005e40
mov eax, ebx
lock xadd dword [rsp + 0x38], eax
cmp eax, 1
jns 0x1400ce441
lock inc dword [rsp + 0x38]
mov byte [rbp + 0x50], dil
mov dword [rbp + 0x54], 4
lea rax, [0x140163bd8]
mov qword [rbp + 0x58], rax
test dil, dil
je 0x1400ce484
lea rdx, [0x140163c30]
lea rcx, [rbp - 0x30]
call fcn.140006540
nop
lea rcx, [rbp + 0x68]
call fcn.140004f20
lea rcx, [rbp + 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
mov eax, 0x1f
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.14007e250
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret