Function at 0x140013e80
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x14016ca00]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
cmp byte [rcx + 0xb4], 0
jne 0x14001417d
add rcx, 0x18
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor edi, edi
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rdi
mov word [rbp - 0x48], di
lea r8d, [rdi + 0x13]
lea rdx, str.RCIM_LOG_FILE_MUTEX
lea rcx, [rbp - 0x48]
call fcn.140006900
nop
lea rcx, [rbx + 0xb8]
lea rdx, [rbp - 0x48]
call fcn.140064d70
nop
cmp qword [rbp - 0x30], 8
jb 0x140013f16
mov rcx, qword [rbp - 0x48]
call fcn.1400bd20c
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rdi
mov word [rbp - 0x48], di
mov dword [rbx + 0xa8], 2
mov rcx, rbx
call fcn.1400138f0
cmp qword [rbx + 0xa0], 0
jne 0x140013f65
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x140014a40]
xor edx, edx
xor ecx, ecx
call fcn.1400be488
mov qword [rbx + 0xa0], rax
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], rdi
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], rdi
mov word [rbp - 0x28], di
xor r8d, r8d
lea rdx, [0x1400f50d8]
lea rcx, [rbp - 0x28]
call fcn.140006900
nop
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x140013fa0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x40], rdi
cmp qword [rbp - 0x18], 0
jne 0x140013fb0
mov r9, rdi
jmp 0x140013fbe
lea r9, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae r9, qword [rbp - 0x28]
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
mov byte [rbx + 0x48], al
lea rcx, [rbx + 0x50]
lea rax, [rbp - 0x28]
cmp rcx, rax
je 0x140014000
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x28]
call fcn.140006b90
nop
cmp qword [rbp - 0x10], 8
jb 0x140014010
mov rcx, qword [rbp - 0x28]
call fcn.1400bd20c
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], rdi
mov word [rbp - 0x28], di
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rdi
mov word [rbp - 0x48], di
xor r8d, r8d
lea rdx, [0x1400f50d8]
lea rcx, [rbp - 0x48]
call fcn.140006900
nop
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x14001405b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x70], rdi
cmp qword [rbp - 0x38], 0
jne 0x14001406b
mov r9, rdi
jmp 0x140014079
lea r9, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae r9, qword [rbp - 0x48]
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
mov byte [rbx + 0x78], al
lea rcx, [rbx + 0x80]
lea rax, [rbp - 0x48]
cmp rcx, rax
je 0x1400140be
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x48]
call fcn.140006b90
nop
cmp qword [rbp - 0x30], 8
jb 0x1400140ce
mov rcx, qword [rbp - 0x48]
call fcn.1400bd20c
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rdi
mov word [rbp - 0x48], di
mov byte [rbx + 0xb4], 1
mov ecx, 0x800
call fcn.1400bbc88
mov rdi, rax
mov ecx, 0x800
call fcn.1400bbc88
mov rbx, rax
test rdi, rdi
je 0x140014170
test rax, rax
je 0x140014168
xor edx, edx
mov r8d, 0x800
mov rcx, rdi
call fcn.1400c2130
lea rax, [0x140124018]
mov qword [rsp + 0x20], rax
lea r9, str.RC::RCPerformanceLog::Initialize
lea r8, str._s__:__s
mov edx, 0x400
mov rcx, rdi
call fcn.140007140
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call fcn.1400c2130
mov r8, rdi
mov edx, 0x400
mov rcx, rbx
call fcn.140007140
mov rcx, rbx
call fcn.140014e90
mov rcx, rdi
call fcn.1400bd2dc
test rbx, rbx
je 0x14001417d
mov rcx, rbx
call fcn.1400bd2dc
mov al, 1
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400bcae0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret