Function at 0x10013520
Capabilities:
Get number of processors
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001cec8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10027008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
push 1
lea eax, [ebx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push dword [ebx + 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov esi, dword [ebx + 0x1c]
mov ecx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
je 0x100135af
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10013584
push 0xffffffffffffffff
push eax
call ecx
push 0x1388
mov ecx, esi
mov dword [esi + 4], 1
call fcn.10011eb0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x100135a1
push eax
call edi
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov ecx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x100135bb
push 0xffffffffffffffff
push eax
call ecx
cmp dword [ebx + 0x3c], 0
je 0x100137aa
mov eax, dword [ebx + 0x38]
mov edi, dword [eax]
cmp edi, eax
je 0x1001377b
mov eax, dword [edi + 8]
mov esi, dword [eax + 0x20]
test esi, esi
je 0x100136f5
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100136f5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp dword [0x1002701c], 0
jne 0x1001360a
xor ebx, ebx
jmp 0x1001362f
push 0
mov ecx, 0x10027018
call fcn.1000cd00
mov eax, dword [0x1002701c]
xor ebx, ebx
cmp byte [eax + 0x54], bl
je 0x1001362f
cmp dword [eax + 0x58], 4
jb 0x1001362f
cmp byte [eax + 0x5c], bl
setne bl
inc ebx
test ebx, ebx
je 0x100136f2
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x28]
push 0x1b
push 0x100214d0
call fcn.10004710
push 0x1ef
push str.RC::DmAvCore::RCImplPortServer::Uninit
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhino_safe_src_framework_src_vbaselib_src_namedpipe_rcimplportserver.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x10027018
push eax
push 4
call fcn.1000e140
cmp ebx, 1
jbe 0x1001369d
lea eax, [ebp - 0x28]
mov ecx, 0x10027018
push eax
call fcn.1000e780
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x100136de
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100136d4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100137e5
push edx
push ecx
call fcn.1001a342
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ebx, dword [ebp - 0x2c]
mov esi, dword [edi + 8]
test esi, esi
je 0x1001376c
mov eax, dword [esi]
test eax, eax
je 0x10013719
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10013727
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1001373e
push eax
call fcn.1001a9fc
add esp, 4
mov dword [esi + 0x18], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1001374c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10013761
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x20], 0
push 0x28
push esi
call fcn.1001a342
add esp, 8
mov edi, dword [edi]
mov eax, dword [ebx + 0x38]
cmp edi, eax
jne 0x100135d2
mov edi, dword [eax]
mov dword [eax], eax
mov eax, dword [ebx + 0x38]
mov dword [eax + 4], eax
mov dword [ebx + 0x3c], 0
cmp edi, dword [ebx + 0x38]
je 0x100137a4
nop
mov esi, dword [edi]
push 0xc
push edi
call fcn.1001a342
add esp, 8
mov edi, esi
cmp esi, dword [ebx + 0x38]
jne 0x10013790
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x100137b4
push eax
call edi
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x100137c9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001a301
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3