Function at 0x40bec0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433c06
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x44c3e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], ecx
mov ecx, 7
mov dword [edi + 0x18], ecx
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [edi + 0x14], eax
xor edx, edx
mov word [edi + 4], dx
mov dword [edi + 0x34], ecx
xor ecx, ecx
mov dword [edi + 0x30], eax
mov dword [ebp - 0x48], edi
mov word [edi + 0x20], cx
lea edx, [ebp - 0x38]
push edx
mov dword [ebp - 4], eax
mov dword [edi], 0x4389e0
call fcn.0041f350
push 0x438a38
push eax
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 1
call fcn.00401530
add esp, 0x10
mov ecx, eax
mov byte [ebp - 4], 2
call dword [0x437b10]
push eax
call fcn.0041f0e0
add esp, 4
lea ecx, [ebp - 0x3c]
call dword [0x437b2c]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call dword [0x437b2c]
lea ecx, [ebp - 0x34]
push ecx
call fcn.0041f350
push 0x438a38
push eax
lea edx, [ebp - 0x3c]
push edx
mov byte [ebp - 4], 3
call fcn.00401530
push 0x438a20
push eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 4
call fcn.00401530
add esp, 0x1c
push 0
mov ecx, eax
call dword [0x437b10]
push eax
call dword [0x43738c]
xor ecx, ecx
add esp, 8
cmp eax, 0xffffffff
setne cl
mov dword [edi + 0x40], ecx
lea ecx, [ebp - 0x38]
call dword [0x437b2c]
lea ecx, [ebp - 0x3c]
call dword [0x437b2c]
lea ecx, [ebp - 0x34]
call dword [0x437b2c]
lea ecx, [ebp - 0x40]
call dword [0x437b38]
mov byte [ebp - 4], 5
lea edx, [ebp - 0x34]
push edx
call fcn.0041f350
mov ecx, dword [ebp - 0x30]
mov edx, dword [eax]
push ecx
push 0x438a38
push edx
lea eax, [ebp - 0x40]
push 0x438a10
push eax
mov byte [ebp - 4], 6
call dword [0x437ad0]
add esp, 0x18
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call dword [0x437b2c]
lea ecx, [ebp - 0x40]
call dword [0x43792c]
mov ecx, eax
lea edx, [ecx + 2]
mov dword [ebp - 0x30], edx
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40c030
sub ecx, dword [ebp - 0x30]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 4]
call fcn.00406160
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x40c055
xor ecx, ecx
jmp 0x40c099
push eax
call dword [0x437090]
inc eax
mov dword [ebp - 0x30], eax
cmp eax, 0x3fffffff
jg 0x40c095
add eax, eax
call fcn.00412e00
mov ebx, esp
test ebx, ebx
je 0x40c095
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x44]
push ecx
push ebx
push 0xffffffffffffffff
xor eax, eax
push edx
push eax
push 3
mov word [ebx], ax
call dword [0x437198]
neg eax
sbb eax, eax
and eax, ebx
jmp 0x40c097
xor eax, eax
mov ecx, eax
mov eax, ecx
lea ebx, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40c0a0
sub eax, ebx
sar eax, 1
push eax
push ecx
lea ecx, [edi + 0x20]
call fcn.00406160
mov ebx, dword [edi + 0x30]
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x30]
push eax
lea ecx, [edi + 0x20]
mov dword [ebp - 0x30], 0x5c
call fcn.00409f60
push 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [edi + 0x20]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0x5c
call fcn.00409f60
sub ebx, dword [ebp - 0x34]
inc eax
push ebx
push eax
lea edx, [ebp - 0x2c]
push edx
lea ecx, [edi + 0x20]
call fcn.0040ba60
push eax
lea ecx, [edi + 0x20]
mov byte [ebp - 4], 7
call fcn.0040baa0
cmp dword [ebp - 0x18], 8
jb 0x40c11e
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00412456
add esp, 4
mov ecx, dword [ebp + 0x10]
mov dword [edi + 0x3c], ecx
lea ecx, [ebp - 0x40]
call dword [0x437b2c]
mov eax, edi
lea esp, [ebp - 0x58]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412c84
mov esp, ebp
pop ebp
ret 0xc