Function at 0x10012f50
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003159d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1003b040]
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 esi, dword [0x10064a20]
mov ecx, dword [0x10064a28]
mov ebx, dword [ebp + 0x1c]
add ecx, 0x10
mov edi, dword [ebp + 0x20]
lea eax, [esi + 0x1e]
mov dword [ebp - 0x20], ebx
mov dword [0x10064a28], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x203a7325
mov word [ebp - 0x14], 0x6925
mov byte [ebp - 0x12], 0
mov dword [ebp - 4], 1
add ecx, 7
push dword [ebx]
mov eax, dword [0x100649d0]
add esi, 0xffffffd1
cdq
push edi
sub eax, edx
lea edx, [ebp - 0x18]
push edx
sar eax, 1
add eax, dword [0x100649b8]
push 0xc8ffffff
push ecx
add eax, esi
push eax
push 1
push 0
push 0x10063e70
call fcn.1000eb70
mov esi, dword [ebp + 0x18]
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edi, ebx
mov dword [ebp - 0x18], eax
add esp, 0x24
mov word [ebp - 0x14], ax
mov byte [ebp - 0x12], al
mov eax, dword [ebp + 0x10]
mov ebx, dword [edi]
add eax, 0xa
mov dword [ebp + 0x10], eax
cmp ebx, esi
jle 0x10013019
mov dword [edi], esi
mov ebx, esi
test ebx, ebx
jns 0x10013025
mov dword [edi], 0
xor ebx, ebx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffffd
cmp byte [0x10064b4c], 0
je 0x10013081
mov edx, dword [0x10065128]
cmp edx, ecx
jle 0x10013081
add eax, 6
add eax, ecx
cmp eax, edx
jle 0x10013081
mov eax, dword [0x10065010]
mov ecx, dword [0x10064a28]
cmp eax, ecx
jle 0x10013081
add ecx, 0x10
cmp ecx, eax
jle 0x10013081
sub edx, dword [ebp - 0x1c]
imul edx, esi
mov eax, edx
cdq
idiv dword [ebp + 0x10]
mov ebx, eax
mov dword [edi], ebx
cmp ebx, esi
jle 0x10013075
mov dword [edi], esi
mov ebx, esi
test ebx, ebx
jns 0x10013081
mov dword [edi], 0
xor ebx, ebx
mov ecx, dword [0x10064c5c]
mov esi, dword [0x10064a28]
push 0xff3c3c3c
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x10064c5c]
lea eax, [esi + 1]
mov edi, dword [ebp - 0x1c]
add edi, dword [ebp + 0x10]
push eax
mov edx, dword [ecx]
push edi
push esi
push dword [ebp - 0x1c]
mov eax, dword [edx + 0x30]
call eax
mov ecx, dword [0x10064c5c]
mov esi, dword [0x10064a28]
push 0xff3a3a3a
inc esi
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x10064c5c]
lea eax, [esi + 1]
push eax
push edi
push esi
mov edx, dword [ecx]
push dword [ebp - 0x1c]
mov eax, dword [edx + 0x30]
call eax
mov ecx, dword [0x10064c5c]
mov esi, dword [0x10064a28]
push 0xff383838
add esi, 2
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x10064c5c]
lea eax, [esi + 1]
push eax
push edi
push esi
mov edx, dword [ecx]
push dword [ebp - 0x1c]
mov eax, dword [edx + 0x30]
call eax
mov ecx, dword [0x10064c5c]
mov esi, dword [0x10064a28]
push 0xff343434
add esi, 3
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x10064c5c]
lea eax, [esi + 1]
push eax
push edi
push esi
mov edx, dword [ecx]
push dword [ebp - 0x1c]
mov eax, dword [edx + 0x30]
call eax
mov ecx, dword [0x10064c5c]
mov esi, dword [0x10064a28]
push 0xff303030
add esi, 4
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x10064c5c]
lea eax, [esi + 1]
push eax
push edi
push esi
mov edx, dword [ecx]
push dword [ebp - 0x1c]
mov eax, dword [edx + 0x30]
call eax
mov ecx, dword [0x10064c5c]
mov esi, dword [0x10064a28]
push 0xff2e2e2e
add esi, 5
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x10064c5c]
lea eax, [esi + 1]
push eax
push edi
push esi
mov edx, dword [ecx]
push dword [ebp - 0x1c]
mov eax, dword [edx + 0x30]
call eax
mov ecx, dword [0x10064c5c]
mov esi, dword [0x10064a28]
push 0xff2c2c2c
add esi, 6
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x10064c5c]
lea eax, [esi + 9]
push eax
push edi
push esi
mov edx, dword [ecx]
push dword [ebp - 0x1c]
mov eax, dword [edx + 0x30]
call eax
imul ebx, dword [ebp + 0x10]
push 0x80
push dword [0x10075ef8]
push dword [0x10075ef4]
mov eax, ebx
mov ebx, dword [ebp - 0x1c]
cdq
idiv dword [ebp + 0x18]
push 0xf
push eax
push dword [0x10064a28]
push ebx
call fcn.1000efd0
mov ecx, dword [0x10064c5c]
mov esi, dword [0x10064a28]
push 0xff333333
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x10064c5c]
lea eax, [esi + 0xf]
push eax
push edi
push esi
mov edx, dword [ecx]
push ebx
mov eax, dword [edx + 0x38]
call eax
mov ecx, dword [0x10064c5c]
mov esi, dword [0x10064a28]
push 0xff5b5b5b
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x10064c5c]
lea eax, [esi + 1]
push eax
lea eax, [edi - 1]
push eax
mov edx, dword [ecx]
push esi
push ebx
mov eax, dword [edx + 0x30]
call eax
mov ecx, dword [0x10064c5c]
mov esi, dword [0x10064a28]
push 0xff5b5b5b
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x10064c5c]
lea eax, [esi + 0xe]
push eax
lea eax, [ebx + 1]
push eax
mov edx, dword [ecx]
push esi
push ebx
mov eax, dword [edx + 0x30]
call eax
inc dword [0x10064a2c]
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.1002e1ee
mov esp, ebp
pop ebp
ret 0x1c