Function at 0x77cb3d5a
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0x24
push 0x77cb3e70
call fcn.77cc73d0
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 0x77cd7926
cmp eax, 0x80000050
je 0x77cd79e2
cmp eax, 0x80000060
je 0x77cd79e2
cmp dword [ebp + 0x10], edi
jne 0x77cd792e
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.77cc741a
mov ebx, eax
cmp ebx, edi
je 0x77cd7932
mov ecx, dword [ebp + 0x1c]
mov eax, ecx
shr eax, 1
test cl, 1
jne 0x77cb3de7
cmp dword [ebp + 0x14], 1
jne 0x77cb404c
cmp dword [ebp + 0x18], edi
je 0x77cb3de7
cmp eax, edi
jbe 0x77cb3de7
lea esi, [eax + eax]
mov eax, dword [ebp + 0x18]
add eax, esi
cmp word [eax - 2], di
jne 0x77ccafa7
cmp dword [ebp + 0xc], edi
je 0x77cb3e11
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x77cb3df2
sub eax, edx
sar eax, 1
add eax, eax
mov word [ebp - 0x34], ax
movzx ecx, ax
cmp eax, ecx
jne 0x77cd7947
push dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeStringEx]
cmp eax, edi
jl 0x77cd7953
add word [ebp - 0x34], 2
test bl, 1
jne 0x77cd795f
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
lea eax, [ebp - 0x34]
push eax
push ebx
call fcn.77cb3c89
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], edi
jne 0x77ccb006
cmp dword [ebp - 0x24], edi
jne 0x77cd79b4
cmp dword [ebp - 0x28], edi
jne 0x77cd79c2
mov eax, dword [ebp - 0x1c]
call fcn.77cc73b0
ret 0x18
cmp dword [ebp + 0x14], 2
je 0x77cb3dcc
cmp dword [ebp + 0x14], 7
jne 0x77cb3de7
jmp 0x77cb3dcc
lea edx, [eax - 2]
xor edx, eax
test edx, 0xfffff000
jne 0x77cb3de7
cmp word [eax], di
jne 0x77cb3de7
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
test eax, eax
je 0x77cd793e
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 0x77cb3de7
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 0x77cb3e53
push 6
pop eax
jmp 0x77cb3e68
push 0x57
jmp 0x77cd7928
mov dword [ebp - 0x1c], 6
jmp 0x77cb3e4a
mov dword [ebp - 0x1c], 8
jmp 0x77cd79ad
mov dword [ebp - 0x1c], 0x57
jmp 0x77cb3e4a
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x77cb3e47
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.77d05c88
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], esi
jmp 0x77cb3e4a
xor edi, edi
jmp 0x77cb3e4a
lea eax, [ebp - 0x24]
push eax
call fcn.77cc7890
jmp 0x77cb3e5c
mov esi, 0x77d1a580
push esi
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
push dword [ebp - 0x28]
call fcn.77cc7d61
push esi
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
jmp 0x77cb3e65
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.77d117e9
jmp 0x77cb3e68