Function at 0x52c5ee
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
shr eax, 0x18
xor edx, edx
and eax, 0xf
push esi
push edi
mov dword [ebp - 8], edx
mov ebx, edx
dec eax
je 0x52c887
dec eax
je 0x52c7f9
dec eax
je 0x52c7c8
dec eax
je 0x52c6d2
dec eax
je 0x52c6a4
dec eax
je 0x52c673
mov ebx, dword [ebp + 0xc]
dec eax
je 0x52c664
mov eax, dword fs:[0x30]
push ebx
push edx
push dword [eax + 0x18]
mov edi, ebx
call dword [0x42a510]
mov esi, eax
test esi, esi
jne 0x52c651
mov ebx, 0xc0000017
jmp 0x52c8e4
mov ecx, dword [ebp + 8]
push ebx
push ecx
push esi
call fcn.0053855e
add esp, 0xc
jmp 0x52c94e
test bl, 7
je 0x52c62e
mov ebx, 0xc0000024
jmp 0x52c8e4
mov eax, dword [ebp + 0xc]
xor edi, edi
dec eax
inc edi
cmp eax, edi
ja 0x52c669
mov eax, dword fs:[0x30]
push edi
push edx
push dword [eax + 0x18]
call dword [0x42a510]
mov esi, eax
test esi, esi
je 0x52c647
mov ecx, dword [ebp + 8]
cmp byte [ecx], bl
setne al
mov byte [esi], al
jmp 0x52c94e
push 8
pop eax
cmp dword [ebp + 0xc], eax
jne 0x52c669
push eax
mov eax, dword fs:[0x30]
push edx
push dword [eax + 0x18]
call dword [0x42a510]
test eax, eax
je 0x52c647
mov esi, dword [ebp + 8]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 8
pop edi
mov esi, eax
jmp 0x52c94e
mov eax, dword [ebp + 0xc]
test al, 0xf
jne 0x52c669
shr eax, 4
mov dword [ebp + 0xc], eax
mov edi, edx
mov dword [ebp - 0xc], edx
test eax, eax
je 0x52c73a
mov ebx, dword [ebp + 8]
mov dword [ebp + 0x10], ebx
mov esi, eax
jmp 0x52c6f5
mov ebx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x18]
push eax
call dword [fcn.0042a5fc]
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [0x42a4fc]
mov ebx, eax
test ebx, ebx
js 0x52c8e4
movzx ecx, word [ebp - 0x18]
lea eax, [ebp - 0x18]
add ecx, 2
push eax
add edi, ecx
call dword [0x42a508]
mov eax, dword [ebp - 0xc]
add dword [ebp + 0x10], 0x10
inc eax
push 0
mov dword [ebp - 0xc], eax
pop edx
cmp eax, esi
jb 0x52c6f2
mov eax, dword fs:[0x30]
add edi, 2
push edi
push edx
push dword [eax + 0x18]
call dword [0x42a510]
mov esi, eax
mov dword [ebp + 0x10], esi
test esi, esi
je 0x52c647
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0xc], ecx
jbe 0x52c7be
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [0x42a4fc]
mov ebx, eax
test ebx, ebx
js 0x52c95e
movzx esi, word [ebp - 0x18]
add esi, 2
push esi
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call fcn.0053855e
add dword [ebp - 0xc], esi
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
call dword [0x42a508]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
inc ecx
add eax, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp + 8], eax
cmp ecx, dword [ebp + 0xc]
jb 0x52c76b
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov word [eax], cx
jmp 0x52c94a
cmp dword [ebp + 0xc], 0x10
jne 0x52c669
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [0x42a4fc]
mov ebx, eax
test ebx, ebx
js 0x52c8e4
movzx edi, word [ebp - 0x18]
mov esi, dword [ebp - 0x14]
add edi, 2
jmp 0x52c94a
mov eax, dword [ebp + 0xc]
test al, 1
jne 0x52c669
mov ecx, eax
xor esi, esi
shr ecx, 1
mov byte [ebp + 0x13], dl
mov edx, dword [ebp + 8]
je 0x52c81d
cmp word [edx], si
je 0x52c830
add edx, 2
dec ecx
jne 0x52c812
mov cl, bl
mov edi, eax
test cl, cl
jne 0x52c847
lea edi, [eax + 2]
cmp edi, eax
jb 0x52c837
mov ebx, esi
jmp 0x52c83f
mov cl, 1
mov byte [ebp + 0x13], cl
jmp 0x52c81f
or edi, 0xffffffff
mov ebx, 0xc0000095
test ebx, ebx
js 0x52c8e4
mov eax, dword fs:[0x30]
push edi
push esi
push dword [eax + 0x18]
call dword [0x42a510]
mov esi, eax
test esi, esi
je 0x52c647
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.0053855e
add esp, 0xc
cmp byte [ebp + 0x13], 0
jne 0x52c94a
xor eax, eax
mov word [edi + esi - 2], ax
jmp 0x52c94a
mov esi, dword [ebp + 8]
cmp dword [esi], 6
lea eax, [ebp - 8]
push eax
jne 0x52c89e
push dword [ebp + 0xc]
push esi
call fcn.0052d536
jmp 0x52c8aa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0052cfe2
mov ebx, eax
test ebx, ebx
js 0x52c8c9
mov eax, dword [ebp - 8]
mov dword [ebp + 0xc], eax
mov eax, dword [eax + 8]
add eax, 0x10
mov dword [ebp + 8], eax
cmp eax, 0x10
jae 0x52c8ed
mov ebx, 0xc000000d
xor esi, esi
cmp dword [ebp - 8], 0
je 0x52c8e4
push dword [ebp - 8]
mov eax, dword fs:[0x30]
push esi
push dword [eax + 0x18]
call dword [fcn.0042a514]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14
push eax
mov eax, dword fs:[0x30]
xor ecx, ecx
push ecx
push dword [eax + 0x18]
call dword [0x42a510]
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x52c90e
mov ebx, 0xc0000017
jmp 0x52c8c9
add esi, 4
mov edi, eax
mov eax, dword [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [eax + 8]
mov esi, dword [ebp + 0x10]
push dword [ebp - 8]
lea eax, [esi + 0x10]
push eax
call fcn.0053855e
mov eax, dword fs:[0x30]
add esp, 0xc
push dword [ebp - 8]
xor edi, edi
push edi
push dword [eax + 0x18]
call dword [fcn.0042a514]
mov dword [ebp - 8], edi
mov edi, dword [ebp + 8]
test ebx, ebx
js 0x52c961
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
xor eax, eax
mov ebx, eax
jmp 0x52c8e4
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x52c8e4
mov eax, dword fs:[0x30]
push esi
xor esi, esi
push esi
push dword [eax + 0x18]
call dword [fcn.0042a514]
jmp 0x52c8cb