Function at 0x7c81fd6c
Capabilities:
Get number of processors
Get process heap force flags

Disassembly:
inc dword [ebp + 8]
mov word [ebx + eax*2], 0x5c
inc eax
cmp eax, dword [ebp + 0x10]
jne 0x7c81ff91
jmp 0x7c81ffa6
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
movzx ecx, di
push 0x5c
shr ecx, 1
pop esi
cmp word [eax + ecx*2 - 2], si
jne 0x7c845a86
cmp di, 0x60
je 0x7c81fdb7
cmp di, 0x62
jne 0x7c82008b
cmp word [eax + 0x60], si
jne 0x7c82008b
cmp word [eax], si
jne 0x7c82008b
mov dx, word [eax + 2]
cmp dx, 0x3f
je 0x7c81fdd3
cmp dx, si
jne 0x7c82008b
cmp word [eax + 4], 0x3f
jne 0x7c82008b
cmp word [eax + 6], si
jne 0x7c82008b
cmp word [eax + 8], 0x56
jne 0x7c82008b
cmp word [eax + 0xa], 0x6f
jne 0x7c82008b
cmp word [eax + 0xc], 0x6c
jne 0x7c82008b
cmp word [eax + 0xe], 0x75
jne 0x7c82008b
cmp word [eax + 0x10], 0x6d
jne 0x7c82008b
cmp word [eax + 0x12], 0x65
jne 0x7c82008b
cmp word [eax + 0x14], 0x7b
jne 0x7c82008b
push 0x2d
pop ecx
cmp word [eax + 0x26], cx
jne 0x7c82008b
cmp word [eax + 0x30], cx
jne 0x7c82008b
cmp word [eax + 0x3a], cx
jne 0x7c82008b
cmp word [eax + 0x44], cx
jne 0x7c82008b
cmp word [eax + 0x5e], 0x7d
jne 0x7c82008b
cmp di, 0x62
jne 0x7c82008b
cmp dx, si
jne 0x7c82008b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0x208
push dword [0x7c8856d4]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
je 0x7c845b02
mov esi, dword [ebp + 8]
xor eax, eax
mov ecx, 0x82
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffe
movzx ecx, ax
mov word [ebx], ax
mov eax, ecx
shr ecx, 2
push 0xffffffffffffffff
lea edi, [ebx + 2]
rep movsd dword es:[edi], dword [esi]
push 0x80
push 3
push 0
push 3
mov ecx, eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push 0x7c81ecac
mov word [ebx + 4], 0x3f
call sym.KERNEL32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 8], esi
je 0x7c845a92
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 8
push dword [0x7c8856d4]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
mov dword [ebp + 8], edi
je 0x7c845aa9
push 0
lea eax, [ebp - 4]
push eax
push 8
push edi
push 0x208
push ebx
push 0x6d0034
push esi
call sym.KERNEL32.dll_DeviceIoControl
mov esi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
test eax, eax
je 0x7c81ffed
push dword [ebp - 8]
call sym.KERNEL32.dll_CloseHandle
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
xor ebx, ebx
push ebx
push dword [eax + 0x18]
call esi
xor eax, eax
xor edx, edx
cmp dword [ebp + 0x10], ebx
mov dword [ebp + 8], ebx
mov ebx, dword [ebp + 0xc]
jbe 0x7c81ffa6
lea ecx, [edi + 4]
mov dword [ebp - 8], ecx
mov ecx, dword [edi]
shr ecx, 1
dec ecx
cmp edx, ecx
jae 0x7c81ffa6
mov ecx, dword [ebp - 8]
cmp word [ecx], 0
je 0x7c81fd4f
mov ecx, dword [ebp - 8]
mov cx, word [ecx]
add dword [ebp - 8], 2
mov word [ebx + eax*2], cx
inc eax
inc edx
cmp eax, dword [ebp + 0x10]
jb 0x7c81ff7b
mov ecx, dword [edi]
shr ecx, 1
dec ecx
cmp edx, ecx
jb 0x7c820083
cmp eax, dword [ebp + 0x10]
jae 0x7c82005c
mov ecx, dword [ebp + 0x14]
and word [ebx + eax*2], 0
test ecx, ecx
mov dword [ebp + 0x10], 1
je 0x7c81ffd2
inc eax
mov dword [ecx], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call esi
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x10
call fcn.7c8307de
cmp eax, 0xea
jne 0x7c845ac5
mov edi, dword [edi]
add edi, 8
mov eax, dword fs:[0x18]
push dword [ebp + 8]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [0x7c8856d4]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
test eax, eax
mov dword [ebp + 8], eax
je 0x7c845ae9
push 0
lea ecx, [ebp - 4]
push ecx
push edi
push eax
push 0x208
push ebx
push 0x6d0034
push dword [ebp - 8]
call sym.KERNEL32.dll_DeviceIoControl
mov edi, dword [ebp + 8]
jmp 0x7c81ff44
and dword [ebp + 0x10], 0
push 0xea
call fcn.7c80935e
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x7c81ffd2
mov ecx, dword [edi]
shr ecx, 1
add ecx, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x7c81ffd2
lea ebx, [edi + edx*2 + 4]
sub ecx, edx
jmp 0x7c820092
push 0x57
jmp 0x7c845b04
cmp word [ebx], 0
je 0x7c8200a5
inc ebx
inc ebx
dec ecx
jne 0x7c820092
mov ebx, dword [ebp + 0xc]
jmp 0x7c81ffb3
inc dword [ebp + 8]
jmp 0x7c820098
push eax
push es
and byte [edi + 0x4c], cl
outsb dx, byte [esi]
pop ss
xor ebx, dword [edi + 0x4e]
add dword [esi], ecx
sbb eax, 0x9e535d54
in al, dx
mov cl, 0x7b
pushal
in eax, dx
scasb al, byte es:[edi]
pop edx
add dword ds:[edi + 0x43624dc5], eax
cdq
or eax, 0x2aeaa15c
pop ebx
mov esp, 0x731566dc
sbb dl, byte [edi + ecx + 0x64]
nop
retf 0x6f2f
ljmp 0x1566:0xdcbc5b2a
leave
push ds
retf
sbb ecx, dword [esi - 0x29c950b5]
dec ebx
scasd eax, dword es:[edi]
salc
add eax, 0xe729bdc
wait
pop ds
xlatb