Function at 0x4f6778
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.004f2268
test al, al
jne 0x4f67a7
mov byte [ebp - 9], 0
jmp 0x4f6a17
mov eax, 0x4f6a2c
call fcn.004f0468
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 0x4f689c
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 0x4f6895
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.0062c8d4
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 0x4f6852
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.0062c89c
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, esi
call fcn.004f5c2c
add esi, 4
inc edi
dec ebx
jne 0x4f6833
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.004f0c5c
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 0x4f689c
mov eax, dword [ebp - 0xd]
push eax
call sub.kernel32.dll_GlobalFree
ret
mov eax, dword [ebp - 8]
test byte [eax + 0x10], 4
je 0x4f6931
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 0x4f692a
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.004f5c2c
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.004f0c5c
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 0x4f6931
mov eax, dword [ebp - 0xd]
push eax
call sub.kernel32.dll_GlobalFree
ret
mov eax, dword [ebp - 8]
test byte [eax + 0x10], 2
je 0x4f69fb
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 0x4f69f4
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.004f5c2c
mov eax, dword [ebp - 8]
push dword [eax + 0x1c]
push dword [eax + 0x18]
lea eax, [ebx + 2]
call fcn.004f5c2c
mov eax, dword [ebp - 8]
push dword [eax + 0x24]
push dword [eax + 0x20]
lea eax, [ebx + 6]
call fcn.004f5c2c
mov eax, dword [ebp - 8]
push dword [eax + 0x2c]
push dword [eax + 0x28]
lea eax, [ebx + 0xa]
call fcn.004f5c2c
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.004f0c5c
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 0x4f69fb
mov eax, dword [ebp - 0xd]
push eax
call sub.kernel32.dll_GlobalFree
ret
cmp byte [ebp - 9], 0
je 0x4f6a0d
mov eax, 0x4f6a50
call fcn.004f0468
jmp 0x4f6a17
mov eax, 0x4f6a78
call fcn.004f0468
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret