Function at 0x5aa910
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x64a8f8
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
xor edx, edx
cmp eax, edx
je 0x5aa96b
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx]
mov ecx, dword [esi + 0x30]
mov ecx, dword [ecx]
lea ecx, [eax + ecx*2]
cmp eax, ecx
jae 0x5aa96b
mov eax, dword [esi + 0x30]
dec dword [eax]
mov esi, dword [esi + 0x20]
mov eax, dword [esi]
lea edx, [eax + 2]
mov dword [esi], edx
mov ax, word [eax]
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x54], edx
jne 0x5aa984
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x10]
push edi
lea edi, [esi + 0x48]
cmp dword [ecx], edi
jne 0x5aa9a5
mov eax, dword [esi + 0x40]
mov edi, dword [esi + 0x3c]
mov dword [ecx], edi
mov ecx, dword [esi + 0x20]
mov dword [ecx], eax
mov ecx, dword [esi + 0x30]
sub eax, eax
sar eax, 1
mov dword [ecx], eax
cmp dword [esi + 0x44], edx
jne 0x5aa9d9
mov esi, dword [esi + 0x54]
push esi
call fcn.0061aa01
movzx eax, ax
mov edx, 0xffff
add esp, 4
cmp ax, dx
jne 0x5aaac4
pop edi
mov eax, edx
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push ebx
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], edx
mov byte [ebp - 0x34], dl
mov dword [ebp - 4], edx
mov eax, dword [esi + 0x54]
push eax
call fcn.006158d2
add esp, 4
cmp eax, 0xffffffff
je 0x5aaaaf
nop
push eax
push 1
lea ecx, [ebp - 0x34]
call fcn.00471de0
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
mov edx, eax
cmp ecx, 0x10
jae 0x5aaa1d
lea edx, [ebp - 0x34]
mov eax, edx
add edx, dword [ebp - 0x24]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x18]
push ebx
lea ebx, [ebp - 0xe]
push ebx
lea ebx, [ebp - 0x10]
push ebx
lea ebx, [ebp - 0x14]
push ebx
push edx
mov edx, dword [edi + 0x10]
push eax
lea eax, [esi + 0x4c]
push eax
call edx
test eax, eax
js 0x5aaaaf
cmp eax, 1
jle 0x5aaa76
cmp eax, 3
jne 0x5aaaaf
cmp dword [ebp - 0x24], 2
jb 0x5aaa9a
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x5aaa60
lea eax, [ebp - 0x34]
push 2
push eax
lea eax, [ebp - 0x10]
push 2
push eax
call fcn.0060fbd3
add esp, 0x10
jmp 0x5aab0a
lea eax, [ebp - 0x10]
cmp dword [ebp - 0x18], eax
jne 0x5aaad4
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x5aaa8a
lea eax, [ebp - 0x34]
mov ecx, dword [ebp - 0x14]
sub ecx, eax
push ecx
push 0
lea ecx, [ebp - 0x34]
call fcn.004188c0
mov edx, dword [esi + 0x54]
push edx
call fcn.006158d2
add esp, 4
cmp eax, 0xffffffff
jne 0x5aaa00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0041a2e0
mov eax, 0xffff
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x20], 0x10
mov edi, dword [ebp - 0x34]
jae 0x5aaae0
lea edi, [ebp - 0x34]
sub edi, dword [ebp - 0x14]
add edi, dword [ebp - 0x24]
test edi, edi
jle 0x5aab0a
lea ebx, [ebx]
mov edx, dword [ebp - 0x14]
mov ecx, dword [esi + 0x54]
movsx eax, byte [edi + edx - 1]
dec edi
push ecx
push eax
call fcn.00615ba5
add esp, 8
test edi, edi
jg 0x5aaaf0
movzx esi, word [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0041a2e0
mov ecx, dword [ebp - 0xc]
pop ebx
pop edi
mov ax, si
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret