Function at 0x523448
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.0051ef38
test al, al
jne 0x523477
mov byte [ebp - 9], 0
jmp 0x5236e7
mov eax, 0x5236fc
call fcn.0051d138
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 0x52356c
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 0x523565
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.0062d4d0
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 0x523522
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.0062d498
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, esi
call fcn.005228fc
add esi, 4
inc edi
dec ebx
jne 0x523503
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.0051d92c
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 0x52356c
mov eax, dword [ebp - 0xd]
push eax
call sub.kernel32.dll_GlobalFree
ret
mov eax, dword [ebp - 8]
test byte [eax + 0x10], 4
je 0x523601
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 0x5235fa
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.005228fc
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.0051d92c
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 0x523601
mov eax, dword [ebp - 0xd]
push eax
call sub.kernel32.dll_GlobalFree
ret
mov eax, dword [ebp - 8]
test byte [eax + 0x10], 2
je 0x5236cb
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 0x5236c4
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.005228fc
mov eax, dword [ebp - 8]
push dword [eax + 0x1c]
push dword [eax + 0x18]
lea eax, [ebx + 2]
call fcn.005228fc
mov eax, dword [ebp - 8]
push dword [eax + 0x24]
push dword [eax + 0x20]
lea eax, [ebx + 6]
call fcn.005228fc
mov eax, dword [ebp - 8]
push dword [eax + 0x2c]
push dword [eax + 0x28]
lea eax, [ebx + 0xa]
call fcn.005228fc
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.0051d92c
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 0x5236cb
mov eax, dword [ebp - 0xd]
push eax
call sub.kernel32.dll_GlobalFree
ret
cmp byte [ebp - 9], 0
je 0x5236dd
mov eax, 0x523720
call fcn.0051d138
jmp 0x5236e7
mov eax, 0x523748
call fcn.0051d138
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret