Function at 0x100013e00
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xb8
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov r14, rdx
mov rdi, rcx
xor ebx, ebx
mov r13d, ebx
mov dword [rsp + 0xf8], ebx
mov dword [rsp + 0x100], ebx
cmp rdx, rbx
jne 0x100013e4a
lea ecx, [rbx + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1000140a8
xor r8d, r8d
or edx, 0xffffffff
mov rcx, qword [rcx + 0xc8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp eax, 0xffffffff
jne 0x100013e67
call fcn.100017b2c
cmp eax, ebx
je 0x100013e77
cmp eax, 0x80
je 0x100013e77
jmp 0x1000140a8
mov esi, 1
mov dword [rsp + 0x100], esi
cmp qword [rdi + 0xd0], rbx
jne 0x100013efb
lea ecx, [rsi + 0xf]
call fcn.1000671f0
mov r12, rax
mov qword [rsp + 0x108], rax
cmp rax, rbx
je 0x100013ed9
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
mov r9, rdi
lea r8, [0x100012214]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
mov rcx, r12
call fcn.100017960
lea rax, [0x100003820]
mov qword [r12], rax
jmp 0x100013edc
mov r12, rbx
mov rcx, qword [rdi + 0xd0]
cmp r12, rcx
je 0x100013ef4
cmp rcx, rbx
je 0x100013ef4
mov rax, qword [rcx]
mov edx, esi
call qword [rax]
mov qword [rdi + 0xd0], r12
mov qword [rdi + 0x90], r14
lea rcx, [rdi + 0xa0]
call fcn.100017b90
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov rax, qword [rdi + 0xb8]
mov qword [rsp + 0x108], rax
lea r9, [rsp + 0x108]
mov r8, rsi
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.100014200
mov rax, qword [rdi + 0xd0]
mov r8, qword [rax + 8]
mov qword [rsp + 0x108], r8
mov r12, qword [rsp + 0x38]
cmp r12, rbx
je 0x100013fa0
mov rdx, qword [rsp + 0x40]
mov rcx, rdx
sub rcx, r12
sar rcx, 3
mov rax, qword [rsp + 0x48]
sub rax, r12
sar rax, 3
cmp rcx, rax
jae 0x100013fa5
lea rcx, [rdx + 8]
mov rax, rsi
cmp rax, rbx
jbe 0x100013f99
mov qword [rdx], r8
sub rax, rsi
add rdx, 8
jmp 0x100013f88
mov qword [rsp + 0x40], rcx
jmp 0x100013fbf
mov rdx, qword [rsp + 0x40]
lea r9, [rsp + 0x108]
mov r8, rsi
lea rcx, [rsp + 0x30]
call fcn.100014200
mov r12, qword [rsp + 0x38]
or edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.100017a30
cmp eax, ebx
jne 0x100013fee
mov ecx, dword [rdi + 0x98]
cmp ecx, ebx
je 0x100013fe2
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100014018
mov r13d, esi
mov dword [rsp + 0xf8], esi
jmp 0x100014018
cmp eax, esi
jne 0x100014018
mov rcx, qword [rdi + 0xd0]
cmp rcx, rbx
je 0x100014005
mov rax, qword [rcx]
mov edx, esi
call qword [rax]
mov qword [rdi + 0xd0], rbx
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
cmp r12, rbx
je 0x100014026
mov rcx, r12
call sub.msvcrt.dll_free
nop
jmp 0x100014041
cmp esi, ebx
je 0x1000140a8
mov qword [rdi + 0x90], rbx
mov rcx, qword [rdi + 0xc8]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp eax, ebx
jne 0x1000140a8
mov qword [rsp + 0x50], 0xf
mov qword [rsp + 0x48], rbx
mov byte [rsp + 0x38], bl
mov r8d, 0xc
lea rdx, [0x100003810]
lea rcx, [rsp + 0x30]
call fcn.100015edc
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x68]
call fcn.1000178e8
lea rdx, [0x100079938]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll__CxxThrowException
nop
mov eax, r13d
add rsp, 0xb8
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret