Function at 0x77cc802d
Capabilities:
Check for peb beingdebugged flag

Disassembly:
lea edx, [eax - 2]
xor edx, eax
test edx, 0xfffff000
jne 0x77cc80ba
cmp word [eax], di
jne 0x77cc80ba
mov eax, dword fs:[0x18]
lea edi, [ecx + 2]
push edi
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x20], eax
push esi
push dword [ebp + 0x18]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x20]
and word [esi + eax], 0
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], eax
xor edi, edi
jmp 0x77cc80ba
push dword [ebp - 0x20]
push edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x77cc8126
push 0x24
push 0x77cc8148
call fcn.77cd5e30
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
mov eax, dword [ebp + 8]
cmp eax, 0x80000004
je 0x77ce62cc
cmp eax, 0x80000050
je 0x77ce637f
cmp eax, 0x80000060
je 0x77ce637f
cmp dword [ebp + 0x10], edi
jne 0x77ce62d4
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.77cd5e99
mov ebx, eax
cmp ebx, edi
je 0x77ce62d8
mov ecx, dword [ebp + 0x1c]
mov eax, ecx
shr eax, 1
test cl, 1
jne 0x77cc80ba
cmp dword [ebp + 0x14], 1
jne 0x77cc8d8c
cmp dword [ebp + 0x18], edi
je 0x77cc80ba
cmp eax, edi
jbe 0x77cc80ba
lea esi, [eax + eax]
mov eax, dword [ebp + 0x18]
add eax, esi
cmp word [eax - 2], di
jne 0x77ca8145
cmp dword [ebp + 0xc], edi
je 0x77cc80e4
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x77cc80c5
sub eax, edx
sar eax, 1
add eax, eax
mov word [ebp - 0x34], ax
movzx ecx, ax
cmp eax, ecx
jne 0x77ce62e4
push dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeStringEx]
cmp eax, edi
jl 0x77ce62f0
add word [ebp - 0x34], 2
test bl, 1
jne 0x77ce62fc
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
lea eax, [ebp - 0x34]
push eax
push ebx
call fcn.77cc7f5c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], edi
jne 0x77ca819c
cmp dword [ebp - 0x24], edi
jne 0x77ce6351
cmp dword [ebp - 0x28], edi
jne 0x77ce635f
mov eax, dword [ebp - 0x1c]
call fcn.77cd5e80
ret 0x18
cmp dword [ebp + 0x14], 2
je 0x77cc809f
cmp dword [ebp + 0x14], 7
jne 0x77cc80ba
jmp 0x77cc809f
push 6
pop eax
jmp 0x77cc813b
push 0x57
jmp 0x77ce62ce
mov dword [ebp - 0x1c], 6
jmp 0x77cc811d
mov dword [ebp - 0x1c], 0x57
jmp 0x77cc811d
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x77cc811a
mov dword [ebp - 4], edi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
lea eax, [ebp - 0x34]
push eax
push 0xfffffffffffffffe
pop esi
and ebx, esi
push ebx
call fcn.77d12918
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], esi
jmp 0x77cc811d
lea eax, [ebp - 0x24]
push eax
call fcn.77cd6449
jmp 0x77cc812f
mov esi, 0x77d26580
push esi
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
push dword [ebp - 0x28]
call fcn.77cbf2f9
push esi
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
jmp 0x77cc8138
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.77d1d131
jmp 0x77cc813b