Function at 0x4be9a0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x5fd068
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x30], esi
push 1
lea eax, [esp + 0x34]
push eax
lea edx, [esi + 2]
lea eax, [esi + 1]
mov dword [esp + 0x54], esi
call fcn.0050e580
test eax, eax
je 0x4be9fd
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x4be9f6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4bec2e
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
mov ebp, eax
mov edi, ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], edi
test ebp, ebp
mov esi, dword [eax + 4]
je 0x4bea1d
cmp ebp, eax
je 0x4bea22
call fcn.005d29f1
cmp edi, esi
je 0x4bec1a
test ebp, ebp
jne 0x4bea33
call fcn.005d29f1
cmp edi, dword [ebp + 4]
jne 0x4bea3d
call fcn.005d29f1
lea edx, [esp + 0x18]
push 0x627748
lea ecx, [edi + 0xc]
push edx
call fcn.00453450
push eax
lea eax, [esp + 0x20]
push eax
mov ebx, 0x62774c
mov byte [esp + 0x5c], 1
call fcn.0040aab0
add esp, 0x10
mov byte [esp + 0x4c], 2
mov edx, dword [eax]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4bea73
sub eax, esi
sar eax, 1
push edx
mov ecx, eax
lea esi, [esp + 0x34]
call fcn.0050e710
mov byte [esp + 0x4c], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4beab3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bead8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, dword [ebp + 4]
jne 0x4beae2
call fcn.005d29f1
mov eax, dword [edi + 0x14]
mov ebp, dword [eax]
mov eax, dword [esp + 0x2c]
add edi, 0x10
add eax, 0xc
lea esi, [eax + 4]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], edi
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
cmp ecx, dword [edx + 4]
jne 0x4beb12
call fcn.005d29f1
test edi, edi
mov ebx, dword [esi + 4]
je 0x4beb1d
cmp edi, esi
je 0x4beb22
call fcn.005d29f1
cmp ebp, ebx
je 0x4bec00
test edi, edi
jne 0x4beb33
call fcn.005d29f1
cmp ebp, dword [edi + 4]
jne 0x4beb3d
call fcn.005d29f1
lea esi, [ebp + 0xc]
lea eax, [esp + 0x20]
push esi
push eax
mov ebx, 0x6198d4
call fcn.0040aab0
add esp, 8
mov ebx, eax
mov byte [esp + 0x4c], 3
cmp ebp, dword [edi + 4]
jne 0x4beb64
call fcn.005d29f1
add esi, 4
lea ecx, [esp + 0x1c]
push esi
push ecx
call fcn.0041eb50
add esp, 8
mov byte [esp + 0x4c], 4
mov edx, dword [eax]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4beb81
sub eax, esi
sar eax, 1
push edx
mov ecx, eax
lea esi, [esp + 0x34]
call fcn.0050e710
mov byte [esp + 0x4c], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4bebc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bebe6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x38]
call fcn.00433c40
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x24]
jmp 0x4beb00
lea esi, [esp + 0x28]
call fcn.00433a30
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x2c]
jmp 0x4bea12
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4bec29
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 4