Function at 0x7c816a4a
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x7c885048]
and dword [ebp - 8], 0
cmp dword [eax + 0x13c], 0
jne 0x7c839e02
push 0x7c816c58
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 1
push 4
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 8]
push eax
call fcn.7c81633e
test eax, eax
jne 0x7c816c56
mov eax, dword [ebp - 4]
mov dx, word [eax]
push ebx
push esi
movzx esi, dx
shl esi, 1
mov cx, word [esi + eax]
add cx, dx
push edi
movzx edi, cx
shl edi, 1
mov dx, word [edi + eax]
add dx, cx
movzx ebx, dx
xor ecx, ecx
shl ebx, 1
mov cx, word [ebx + eax]
add cx, dx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
shl ecx, 1
mov dword [ebp - 0x14], ecx
mov cx, word [ecx + eax]
add cx, word [ebp - 0xc]
movzx edx, cx
shl edx, 1
mov dword [ebp - 0x18], edx
mov dx, word [edx + eax]
add dx, cx
movzx ecx, dx
shl ecx, 1
mov dword [ebp - 0x1c], ecx
mov cx, word [ecx + eax]
add cx, dx
movzx edx, cx
shl edx, 1
mov dword [ebp - 0x20], edx
mov dx, word [edx + eax]
add dx, cx
movzx ecx, dx
shl ecx, 1
movzx eax, word [ecx + eax]
add ax, dx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0xc], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0x10
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
test eax, eax
je 0x7c839e06
mov edx, dword [ebp - 4]
movzx ecx, word [ebp - 0xc]
mov dword [ebp - 0xc], ecx
lea ecx, [ecx + ecx + 4]
mov dl, byte [ecx + edx]
mov byte [eax], dl
mov edx, dword [ebp - 4]
mov cl, byte [ecx + edx + 1]
mov byte [eax + 1], cl
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
lea edx, [edx + ecx*2 + 6]
mov dword [eax + 4], edx
add ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
movzx ecx, word [ecx + edx]
mov edx, dword [ebp - 0xc]
lea ecx, [edx + ecx*2]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 4]
movzx ecx, word [edx + ecx + 2]
mov edx, dword [ebp - 0xc]
lea ecx, [edx + ecx*2]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 4]
mov edx, dword [0x7c885048]
add ecx, 2
mov dword [edx + 0x13c], ecx
mov ecx, dword [ebp - 4]
mov edx, dword [0x7c885048]
lea ecx, [esi + ecx + 2]
mov dword [edx + 0x140], ecx
mov ecx, dword [ebp - 4]
mov edx, dword [0x7c885048]
lea ecx, [edi + ecx + 2]
mov dword [edx + 0x144], ecx
mov ecx, dword [ebp - 4]
mov edx, dword [0x7c885048]
lea ecx, [ebx + ecx + 2]
mov dword [edx + 0x148], ecx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
lea ecx, [edx + ecx + 2]
mov edx, dword [0x7c885048]
mov dword [edx + 0x14c], ecx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
lea ecx, [edx + ecx + 2]
mov edx, dword [0x7c885048]
mov dword [edx + 0x150], ecx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
lea ecx, [edx + ecx + 2]
mov edx, dword [0x7c885048]
mov dword [edx + 0x154], ecx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
lea ecx, [edx + ecx + 2]
mov edx, dword [0x7c885048]
mov dword [edx + 0x158], ecx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
lea ecx, [edx + ecx + 2]
mov edx, dword [0x7c885048]
mov dword [edx + 0x15c], ecx
mov ecx, dword [0x7c885048]
mov dword [ecx + 0x160], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
and eax, 0xf4a0984a
jle 0x7c839df3
xchg edx, eax
cmp al, 0x22
mov ch, 0x68
invalid