Function at 0x53ca18
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 7
push 0
push 0
dec ecx
jne 0x53ca21
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 8]
call fcn.00405474
xor eax, eax
push ebp
push 0x53cc86
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004ba91c
mov eax, dword [ebx + 0x30]
mov edx, dword [eax]
call dword [edx + 0x48]
lea edx, [ebp - 0x10]
mov eax, dword [ebp + 0x10]
call fcn.004f35ec
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.00405040
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov byte [esi + edi], 0
mov byte [esi + edi + 1], 0
mov byte [esi + edi + 2], 0
mov byte [esi + edi + 3], 0
cmp dword [ebp + 0x10], 1
jne 0x53cace
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.00404fc4
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor edx, edx
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.00492dcc
jmp 0x53cc27
cmp dword [ebp + 0x10], 2
jne 0x53cb03
lea eax, [ebp - 0x18]
mov edx, esi
call fcn.00404fc4
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor edx, edx
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.00492dcc
jmp 0x53cc27
cmp dword [ebp + 0x10], 7
jne 0x53cb55
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
mov edx, 0x53cc9c
mov eax, dword [ebp - 4]
call fcn.0053c738
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
mov edx, 0x53cca4
mov eax, dword [ebp - 4]
call fcn.0053c738
mov edx, dword [ebp - 0x20]
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.00492dcc
jmp 0x53cc27
cmp dword [ebp + 0x10], 4
jne 0x53cbed
push 0x53ccb4
mov eax, dword [esi]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x2c]
mov eax, 8
call fcn.00409920
push dword [ebp - 0x2c]
push 0x53ccc0
mov eax, dword [esi]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x30]
call fcn.004098b0
push dword [ebp - 0x30]
push 0x53cccc
lea eax, [ebp - 0x28]
mov edx, 5
call fcn.00404ab8
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
call fcn.00405040
mov edx, dword [ebp - 0x24]
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea ecx, [ebp - 0x38]
mov edx, 4
mov eax, esi
call fcn.004f1ed4
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
call fcn.00405040
mov edx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov ecx, 1
xor edx, edx
mov eax, ebx
call fcn.00492dcc
jmp 0x53cc27
lea ecx, [ebp - 0x40]
mov edx, edi
mov eax, esi
call fcn.004f1ed4
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
call fcn.00405040
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor edx, edx
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov ecx, 1
xor edx, edx
mov eax, ebx
call fcn.00492dcc
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53cc8d
lea eax, [ebp - 0x40]
call fcn.00404730
lea eax, [ebp - 0x3c]
call fcn.00404e5c
lea eax, [ebp - 0x38]
call fcn.00404730
lea eax, [ebp - 0x34]
call fcn.00404e5c
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00404754
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.00404e74
lea eax, [ebp - 0x10]
call fcn.00404730
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404e74
ret