Function at 0x42a0e0
Capabilities:
Check for time delay via gettickcount
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x50b879
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x5405a0]
xor eax, esp
mov dword [esp + 0x1cc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5405a0]
xor eax, esp
push eax
lea eax, [esp + 0x1e4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x200]
mov ebp, dword [esp + 0x1f4]
mov edi, dword [esp + 0x1fc]
mov dword [esp + 0x24], eax
mov eax, dword [0x548be0]
xor ebx, ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edx
cmp eax, ebx
jne 0x42a17d
push 0x18
call fcn.004cf589
add esp, 4
cmp eax, ebx
je 0x42a170
or ecx, 0xffffffff
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov byte [eax + 0x10], 1
mov dword [eax + 0x14], ecx
mov dword [eax], ebx
mov dword [eax + 4], ebx
jmp 0x42a172
xor eax, eax
mov dword [0x548be0], eax
cmp eax, ebx
jne 0x42a17d
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push 1
push 1
add eax, 4
push eax
call esi
cmp eax, 1
je 0x42a1bc
call fcn.0041bd70
push ebx
push 1
add eax, 4
push eax
call esi
mov esi, 3
mov al, byte [ebp + 0xa4]
test al, al
jne 0x42a1b7
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esi, 1
jne 0x42a1a5
mov cl, byte [ebp + 0xa4]
test cl, cl
jne 0x42a1cd
xor al, al
jmp 0x42a5d0
push 0x542590
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ebx
xor edx, edx
mov esi, 7
push 0x5213e4
lea ecx, [esp + 0x44]
mov dword [esp + 0x200], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], dx
call fcn.0042ae00
mov dword [esp + 0x1ec], ebx
xor eax, eax
mov dword [esp + 0x70], esi
mov esi, dword [esp + 0x24]
mov word [esp + 0x5c], ax
mov eax, esi
mov dword [esp + 0x6c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42a225
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x60]
call fcn.0042ae00
mov byte [esp + 0x1ec], 1
mov esi, 0xf
mov eax, 0x5240cc
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x42a266
sub eax, ecx
push eax
push 0x5240cc
lea ecx, [esp + 0x7c]
call fcn.00408ed0
mov byte [esp + 0x1ec], 2
mov eax, edi
mov dword [esp + 0xa8], esi
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x42a2a0
sub eax, ecx
push eax
push edi
lea ecx, [esp + 0x98]
call fcn.00408ed0
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], ebx
mov dword [esp + 0x1ec], 3
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [ebp + 0x64]
push esi
call edi
lea ecx, [esp + 0x38]
push ecx
lea eax, [ebp + 0x2c]
call fcn.0042ab60
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp + 0x98], bl
je 0x42a319
mov edx, dword [ebp + 0x94]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea esi, [ebp + 0x7c]
push esi
call edi
lea eax, [esp + 0x38]
add ebp, 0x48
push eax
mov eax, ebp
call fcn.0042ab60
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esp + 0x15], bl
mov byte [esp + 0x17], bl
mov byte [esp + 0x16], bl
mov eax, dword [esp + 0x18]
add eax, 0x7c
push eax
call edi
mov eax, dword [ebp + 4]
mov esi, dword [ebp]
imul eax, eax, 0x84
add eax, esi
xor edi, edi
cmp esi, eax
je 0x42a44f
mov eax, dword [ebp + 4]
imul eax, eax, 0x84
add eax, esi
mov edi, edi
mov ecx, dword [esp + 0x1f8]
cmp dword [esi], ecx
je 0x42a38b
add esi, 0x84
inc edi
cmp esi, eax
jne 0x42a370
jmp 0x42a44f
mov eax, dword [esi + 0x74]
mov byte [esp + 0x16], 1
cmp eax, 3
je 0x42a3e8
cmp eax, 0x10
je 0x42a3e8
cmp eax, 1
jne 0x42a3b8
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x42a3b8
mov edx, dword [esp + 0x30]
mov ecx, dword [esi + 0x78]
push edx
push ecx
call eax
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x7c]
cmp eax, 0x493e0
jb 0x42a44f
mov edx, dword [esp + 0x1f8]
mov eax, dword [0x547030]
push edx
push ebx
push 0x600
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x42a44f
cmp eax, 3
sete byte [esp + 0x15]
cmp edi, ebx
mov byte [esp + 0x17], 1
jl 0x42a43f
cmp edi, dword [ebp + 4]
jge 0x42a43f
mov eax, dword [ebp]
mov ecx, edi
imul ecx, ecx, 0x84
lea esi, [ecx + eax]
push esi
call fcn.00429ec0
mov eax, dword [ebp + 4]
lea edx, [eax - 1]
cmp edi, edx
je 0x42a43c
sub eax, edi
imul eax, eax, 0x84
lea ecx, [eax - 0x84]
push ecx
lea edx, [esi + 0x84]
push edx
push eax
push esi
call fcn.004d07cd
add esp, 0x10
dec dword [ebp + 4]
mov eax, dword [esp + 0x18]
add eax, 0xac
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x18]
add eax, 0x7c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esp + 0x17], bl
jne 0x42a47f
cmp byte [esp + 0x16], bl
je 0x42a47f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x42a341
cmp byte [esp + 0x15], bl
je 0x42a5b7
mov esi, dword [esp + 0x24]
push 1
push 0x10000000
push 1
push esi
call fcn.00444b80
add esp, 0x10
lea ecx, [esp + 0xbc]
call fcn.0043a090
mov eax, esi
lea edx, [esp + 0xbc]
call fcn.0043a2e0
push str..exe
lea eax, [esp + 0xc0]
call fcn.00438920
push eax
call fcn.004cd81d
add esp, 8
test eax, eax
je 0x42a588
cmp byte [0x547c3c], bl
jne 0x42a4f4
mov byte [0x547c3c], 1
call fcn.0043be90
mov byte [0x547c3d], al
cmp byte [0x547c3d], bl
je 0x42a588
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42a505
sub eax, edx
push str..exe
sar eax, 1
push esi
call fcn.0043bdf0
add esp, 8
test eax, eax
jne 0x42a588
push ebx
lea ecx, [esp + 0x20]
push ecx
push 1
push str.S:_ML__NW___LW_
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x42a588
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorSacl]
test eax, eax
je 0x42a57d
mov eax, dword [esp + 0x20]
push eax
push ebx
push ebx
push ebx
push 0x10
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esp + 0xbc], vtable.t_str.0
cmp byte [esp + 0x1d8], bl
jne 0x42a5b7
mov eax, dword [esp + 0xc4]
lea edx, [esp + 0xc8]
cmp eax, edx
je 0x42a5b7
push eax
call fcn.004ccef0
add esp, 4
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x1f0], 0xffffffff
call fcn.00429ec0
mov al, byte [esp + 0x15]
mov ecx, dword [esp + 0x1e4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1cc]
xor ecx, esp
call fcn.004ccee1
add esp, 0x1dc
ret 0x10