Function at 0x129ca8
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xec], 0
je 0x129ee9
mov eax, dword [ebp - 4]
cmp dword [eax + 0xf0], 0
je 0x129ee9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x604]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xf0]
movzx eax, byte [edx + eax + 1]
mov edx, dword [ebp - 4]
mov dword [edx + 0x604], eax
test al, 7
sete al
and eax, 0x7f
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x600]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xec]
movzx eax, byte [edx + eax]
mov edx, dword [ebp - 4]
mov dword [edx + 0x600], eax
push 4
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe4]
mov edx, dword [eax]
call dword [edx + 0x34]
push eax
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0xe4]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, eax
sub edx, 4
xor eax, eax
pop ecx
call fcn.00020238
lea edx, [ebp - 0x38]
mov eax, ebx
mov ecx, 0xfe
mov ebx, dword [eax]
call dword [ebx + 0x70]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe4]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x48]
mov ebx, eax
xor edx, edx
push ebp
push 0x129ee2
push dword fs:[edx]
mov dword fs:[edx], esp
mov esi, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe4]
mov edx, dword [eax]
call dword [edx + 0x18]
add esi, eax
mov dword [ebp - 0x20], esi
add dword [ebp - 0x20], 2
inc ebx
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe4]
mov edx, dword [eax]
call dword [edx + 0x18]
add eax, eax
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe4]
mov edx, dword [eax]
call dword [edx + 0x18]
mov edi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe4]
mov edx, dword [eax]
call dword [edx + 0x34]
sub eax, 2
sub edi, eax
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe4]
mov edx, dword [eax]
call dword [edx + 0x34]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
sub eax, 2
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe4]
mov edx, dword [eax]
call dword [edx + 0x30]
sub eax, 2
test eax, eax
jle 0x129ec6
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x604]
add eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xf0]
movzx eax, byte [edx + eax]
imul dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x129ea8
mov dword [ebp - 8], 1
xor edx, edx
mov dl, byte [esi]
mov ecx, dword [ebp - 0x20]
movzx ecx, byte [ecx]
add edx, ecx
xor ecx, ecx
mov cl, byte [ebx]
add edx, ecx
mov ecx, dword [ebp - 0x24]
movzx ecx, byte [ecx]
add edx, ecx
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + edx + 0x1f4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x600]
add ecx, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov edi, dword [edi + 0xec]
movzx ecx, byte [edi + ecx]
add ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 4]
mov edi, dword [edi + 0xe8]
movzx ecx, byte [edi + ecx]
sub edx, ecx
mov ecx, dword [ebp - 4]
mov dl, byte [ecx + edx + 0xf4]
mov byte [ebx], dl
inc esi
inc dword [ebp - 0x20]
inc ebx
inc dword [ebp - 0x24]
inc dword [ebp - 8]
dec eax
jne 0x129e3e
add esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x20], eax
add ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x24], eax
inc dword [ebp - 0xc]
dec dword [ebp - 0x28]
jne 0x129e11
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x129ee9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe4]
mov edx, dword [eax]
call dword [edx + 0x4c]
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret