Function at 0x527fa0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 9], 1
lea edx, [ebp - 0x11]
mov eax, dword [ebp - 4]
mov ecx, ebx
call fcn.00523a90
test al, al
jne 0x527fcf
mov byte [ebp - 9], 0
jmp 0x52823f
mov eax, 0x528254
call fcn.00521c90
mov eax, dword [ebp - 0xd]
push eax
call sub.kernel32.dll_GlobalFree
mov word [ebp - 0x11], bx
mov eax, dword [ebp - 8]
test byte [eax + 0x10], 1
je 0x5280c4
mov word [ebp - 0xf], 4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
shl eax, 2
add eax, 0x10
push eax
push 0x42
call sub.kernel32.dll_GlobalAlloc
mov ebx, eax
mov dword [ebp - 0xd], ebx
xor eax, eax
push ebp
push 0x5280bd
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
call sub.kernel32.dll_GlobalLock
mov ebx, eax
mov word [ebx], 7
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [ebx + 2], eax
mov eax, dword [ebp - 8]
push dword [eax + 0x34]
push dword [eax + 0x30]
mov eax, dword [ebp - 8]
call fcn.0063f408
mov dword [ebx + 6], eax
lea esi, [ebx + 0xe]
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 4]
dec ebx
test ebx, ebx
jl 0x52807a
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.0063f3d0
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, esi
call fcn.00527454
add esi, 4
inc edi
dec ebx
jne 0x52805b
mov eax, dword [ebp - 0xd]
push eax
call sub.kernel32.dll_GlobalUnlock
push 6
lea eax, [ebp - 0x11]
push eax
mov eax, dword [ebp - 4]
mov cx, 1
mov edx, 1
call fcn.00522484
mov eax, dword [ebp - 4]
cmp word [eax + 0x10], 0
sete byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5280c4
mov eax, dword [ebp - 0xd]
push eax
call sub.kernel32.dll_GlobalFree
ret
mov eax, dword [ebp - 8]
test byte [eax + 0x10], 4
je 0x528159
mov word [ebp - 0xf], 5
push 6
push 0x42
call sub.kernel32.dll_GlobalAlloc
mov ebx, eax
mov dword [ebp - 0xd], ebx
xor edx, edx
push ebp
push 0x528152
push dword fs:[edx]
mov dword fs:[edx], esp
push ebx
call sub.kernel32.dll_GlobalLock
mov word [eax], 7
mov edx, dword [ebp - 8]
push dword [edx + 0x34]
push dword [edx + 0x30]
add eax, 2
call fcn.00527454
mov eax, dword [ebp - 0xd]
push eax
call sub.kernel32.dll_GlobalUnlock
push 6
lea eax, [ebp - 0x11]
push eax
mov eax, dword [ebp - 4]
mov cx, 1
mov edx, 1
call fcn.00522484
mov eax, dword [ebp - 4]
cmp word [eax + 0x10], 0
sete byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x528159
mov eax, dword [ebp - 0xd]
push eax
call sub.kernel32.dll_GlobalFree
ret
mov eax, dword [ebp - 8]
test byte [eax + 0x10], 2
je 0x528223
mov word [ebp - 0xf], 6
push 0x16
push 0x42
call sub.kernel32.dll_GlobalAlloc
mov ebx, eax
mov dword [ebp - 0xd], ebx
xor eax, eax
push ebp
push 0x52821c
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
call sub.kernel32.dll_GlobalLock
mov ebx, eax
mov word [ebx], 7
mov eax, dword [ebp - 8]
push dword [eax + 0x34]
push dword [eax + 0x30]
lea eax, [ebx + 0x12]
call fcn.00527454
mov eax, dword [ebp - 8]
push dword [eax + 0x1c]
push dword [eax + 0x18]
lea eax, [ebx + 2]
call fcn.00527454
mov eax, dword [ebp - 8]
push dword [eax + 0x24]
push dword [eax + 0x20]
lea eax, [ebx + 6]
call fcn.00527454
mov eax, dword [ebp - 8]
push dword [eax + 0x2c]
push dword [eax + 0x28]
lea eax, [ebx + 0xa]
call fcn.00527454
mov eax, dword [ebp - 0xd]
push eax
call sub.kernel32.dll_GlobalUnlock
push 6
lea eax, [ebp - 0x11]
push eax
mov eax, dword [ebp - 4]
mov cx, 1
mov edx, 1
call fcn.00522484
mov eax, dword [ebp - 4]
cmp word [eax + 0x10], 0
sete byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x528223
mov eax, dword [ebp - 0xd]
push eax
call sub.kernel32.dll_GlobalFree
ret
cmp byte [ebp - 9], 0
je 0x528235
mov eax, 0x528278
call fcn.00521c90
jmp 0x52823f
mov eax, 0x5282a0
call fcn.00521c90
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret