Function at 0x1005def0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10081766
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x100a04fc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x94], ebx
mov edi, edx
lea eax, [ebx + 8]
xor ecx, ecx
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebx], vtable.ProcessMonitor.0
mov dword [ebx + 4], vtable.CriticalSectionWrapper.0
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
push eax
mov dword [eax + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x24], esi
mov dword [ebx + 0x28], esi
mov byte [ebp - 4], 2
push 0xffffffffffffffff
lea ecx, [ebx + 0x38]
mov dword [ebx + 0x30], esi
mov word [ebx + 0x34], si
mov byte [ebx + 0x36], 1
push esi
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], esi
push edi
mov word [ecx], ax
call fcn.10002b00
mov dword [ebx + 0x54], esi
mov dword [ebx + 0x58], esi
lea edi, [ebx + 0x64]
mov dword [ebx + 0x5c], esi
mov dword [ebx + 0x60], esi
mov dword [ebp - 0x8c], edi
mov byte [ebp - 4], 5
push 0x24
mov dword [edi], 0x1008aa5c
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x88], eax
mov byte [ebp - 4], 6
cmp eax, esi
je 0x1005dfd3
push eax
call fcn.10063400
mov dword [ebp - 0x88], eax
jmp 0x1005dfdb
mov dword [ebp - 0x88], esi
mov eax, esi
mov byte [ebp - 4], 5
push eax
lea ecx, [edi + 0xc]
mov dword [edi + 8], eax
call fcn.10064bd0
mov eax, dword [ebp - 0x88]
push eax
push eax
lea eax, [edi + 8]
push eax
call fcn.10071490
add esp, 0xc
mov dword [edi], 0x1008aa48
mov eax, 0x10
mov byte [ebp - 4], 8
call fcn.10073d20
mov dword [ebp - 0x10], esp
mov edi, esp
push 0xdead000a
lea ecx, [ebp - 0x30]
push 0x19beef
push ecx
call fcn.10001af0
mov ecx, 0x10
add esp, 0xc
cmp dword [eax + 0x14], ecx
jb 0x1005e03a
mov eax, dword [eax]
mov edx, dword [eax]
mov dword [edi], edx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov edx, dword [eax + 8]
mov dword [edi + 8], edx
mov eax, dword [eax + 0xc]
mov dword [edi + 0xc], eax
cmp dword [ebp - 0x1c], ecx
jb 0x1005e062
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 4
call fcn.10073d20
mov eax, esp
mov dword [ebp - 0x10], esp
cmp eax, esi
je 0x1005e07b
mov dword [eax], 0xabab0019
mov dword [ebp - 4], 7
cmp eax, esi
je 0x1005e0a3
mov dword [eax], 0xcdcd0019
jmp 0x1005e0a3
test byte [0x100a4bb0], 1
mov dword [ebp - 0x88], 6
jne 0x1005e0d7
or dword [0x100a4bb0], 1
mov byte [ebp - 4], 0xa
call fcn.10022f20
push 0x10082b20
call fcn.10072493
add esp, 4
mov byte [ebp - 4], 7
lea edx, [ebp - 0x88]
push edx
mov edi, 0x100a4b60
call fcn.100235e0
test al, al
je 0x1005e263
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], esi
mov byte [ebp - 0x54], 0
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 0xb
lea edi, [ebp - 0x54]
mov dword [ebp - 0x88], ebx
call fcn.10023cb0
mov edi, eax
mov eax, dword [edi + 0x1c]
cmp eax, esi
jne 0x1005e12f
push 0x17
push str.Constructor_Instance0x
mov ecx, edi
call fcn.100041d0
jmp 0x1005e13d
push str.Constructor_Instance0x
push eax
call fcn.10012390
add esp, 8
lea eax, [ebp - 0x88]
push eax
mov esi, edi
call fcn.1005cd30
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x88], eax
mov eax, dword [eax + 0x1c]
add esp, 4
lea esi, [ebp - 0x30]
call fcn.10023e50
mov byte [ebp - 4], 0xc
mov esi, dword [ebp - 0x88]
mov edi, eax
call fcn.10003bf0
mov edi, 8
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x1c], edi
jb 0x1005e18e
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
push 0x1ff
push edx
lea eax, [ebp - 0x84]
push eax
mov ecx, esi
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], dx
call fcn.10001ab0
mov esi, eax
mov byte [ebp - 4], 0xd
test byte [0x100a4bb0], 1
jne 0x1005e1e6
or dword [0x100a4bb0], 1
mov byte [ebp - 4], 0xe
call fcn.10022f20
push 0x10082b20
call fcn.10072493
add esp, 4
mov byte [ebp - 4], 0xd
mov edx, dword [0x100a4b64]
mov eax, dword [edx + 4]
mov ecx, 0x100a4b64
mov dword [ebp - 0x8c], ecx
call eax
mov byte [ebp - 4], 0xf
mov ecx, dword [0x100a4bac]
test ecx, ecx
je 0x1005e22b
cmp dword [esi + 0x14], edi
jb 0x1005e213
mov eax, dword [esi]
jmp 0x1005e215
mov eax, esi
mov edx, dword [ecx]
push 0x19
push 0x1008a3f0
push str.ProcessMonitor.cpp
push eax
mov eax, dword [edx + 8]
push 6
call eax
mov byte [ebp - 4], 0xd
mov edx, dword [0x100a4b64]
mov eax, dword [edx + 8]
mov ecx, 0x100a4b64
call eax
cmp dword [ebp - 0x70], edi
jb 0x1005e254
mov ecx, dword [ebp - 0x84]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea edx, [ebp - 0x54]
push edx
mov byte [ebp - 4], 7
call fcn.10023b80
xor esi, esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x50], esi
lea ecx, [ebp + 8]
lea edx, [ebp - 0x50]
mov byte [ebp - 4], 0x11
call fcn.10064f60
lea eax, [ebp - 0x68]
push eax
lea esi, [ebx + 0x64]
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 0x12
call fcn.10062ec0
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x1005e2b3
mov ecx, eax
add eax, 8
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x1005e2b3
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 7
call fcn.1005e360
push ebx
call fcn.1005eda0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
test eax, eax
je 0x1005e2ef
test al, 1
jne 0x1005e2ef
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x1005e2ef
lea ecx, [ebp + 0x10]
push 2
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov eax, ebx
lea esp, [ebp - 0xa4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1007236c
mov esp, ebp
pop ebp
ret 0x20