Function at 0x1400af9f0
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 [0x140191010]
xor rax, rsp
mov qword [rbp + 0x110], rax
xor esi, esi
mov dword [rsp + 0x40], esi
lea rcx, [0x140199388]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x140199380], rsi
jne 0x1400afa48
lea rcx, [0x140199360]
call fcn.140040ae0
lea rcx, [0x140199388]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x140199380]
test rcx, rcx
je 0x1400afd10
mov rax, qword [rcx]
lea r8, [0x140131518]
mov edx, 0x136
mov rax, qword [rax + 0x30]
call qword [case.0x14006aed5.0]
test rax, rax
je 0x1400afd10
cmp word [rax], 0x3c
je 0x1400afd10
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], si
jne 0x1400afaa0
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.140002ed0
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, [0x140131668]
lea rcx, [rbp + 0xd0]
call fcn.140002ed0
nop
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0xf0]
call fcn.1400046e0
nop
mov rdx, qword [rbp + 0xe8]
cmp rdx, 8
jb 0x1400afb73
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400afb6e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400afb6e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140071e50
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, [0x140131658]
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, [0x140131688]
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 0x1400afbf8
lea rcx, [rsp + 0x60]
mov qword [rax], rcx
jmp 0x1400afbfb
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, [0x140009550]
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 0x1400afd00
cmp dword [rsp + 0x58], 0
jne 0x1400afc45
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 0x1400afc5d
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 0x1400afc89
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 0x1400afca2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [rsp + 0x58], 0
je 0x1400afcb0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov rdx, qword [rbp + 0x108]
cmp rdx, 8
jb 0x1400afcf9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400afcf4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400afcf4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140071e50
xor eax, eax
jmp 0x1400afe9c
mov dword [rsp + 0x58], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea rax, [0x140160500]
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 [0x1401993f8]
mov eax, dword [0x1401993fc]
add ecx, eax
je 0x1400afe16
mov dword [rsp + 0x38], esi
call fcn.1400057e0
mov qword [rsp + 0x30], rax
lock inc dword [rsp + 0x38]
mov dword [rsp + 0x40], 0xa
mov rax, qword [rsp + 0x30]
test rax, rax
jne 0x1400afdf3
call fcn.1400057e0
mov qword [rsp + 0x30], rax
lock inc dword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400afe12
mov rax, qword [rax + 0x58]
test rax, rax
je 0x1400afe12
call qword [case.0x14006aed5.0]
movzx edi, al
jmp 0x1400afe19
xor edi, edi
jmp 0x1400afe19
xor dil, dil
mov eax, dword [rsp + 0x40]
test al, 8
je 0x1400afe58
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 0x1400afe53
call fcn.140005b50
mov eax, ebx
lock xadd dword [rsp + 0x38], eax
cmp eax, 1
jns 0x1400afe41
lock inc dword [rsp + 0x38]
mov byte [rbp + 0x50], dil
mov dword [rbp + 0x54], 4
lea rax, [0x1401315a8]
mov qword [rbp + 0x58], rax
test dil, dil
je 0x1400afe84
lea rdx, [0x140131610]
lea rcx, [rbp - 0x30]
call fcn.140006200
nop
lea rcx, [rbp + 0x68]
call fcn.140004c30
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.140071e30
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