Function at 0x4ef148
Capabilities:
Access peb ldr_data
Acquire debug privileges
Check for peb beingdebugged flag
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc40
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x3c0], ecx
mov dword [ebp - 0x3bc], ecx
mov dword [ebp - 0x3b8], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x4eec3c]
call fcn.004059d0
xor eax, eax
push ebp
push 0x4ef548
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x18
call fcn.004036d0
lea eax, [ebp - 0x218]
xor ecx, ecx
mov edx, 0x1d8
call fcn.004036d0
lea eax, [ebp - 0x260]
xor ecx, ecx
mov edx, 0x48
call fcn.004036d0
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 0xa0
call fcn.004036d0
mov dl, 1
mov eax, 0x4ef560
call fcn.004eed3c
mov eax, dword [ebp - 4]
push eax
push 0
push 0x410
call sub.KERNEL32.DLL_OpenProcess
mov esi, eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
push 0x18
lea eax, [ebp - 0x40]
push eax
push 0
push esi
call sub.ntdll.dll_NtQueryInformationProcess
lea eax, [ebp - 0xc]
push eax
push 0x1d8
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0x3c]
push eax
push esi
call sub.ntdll.dll_NtReadVirtualMemory
lea eax, [ebp - 0xc]
push eax
push 0x48
lea eax, [ebp - 0x260]
push eax
mov eax, dword [ebp - 0x208]
push eax
push esi
call sub.ntdll.dll_NtReadVirtualMemory
mov eax, dword [ebp - 8]
add eax, 0x90
mov edx, dword [0x4eec18]
call fcn.00405aa0
mov ecx, eax
mov edx, dword [ebp - 0x20c]
mov eax, esi
call fcn.004eef18
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x24], eax
mov di, word [ebp - 0x220]
movzx eax, di
add eax, 2
call fcn.00402a68
mov ebx, eax
movzx edx, di
add edx, 2
mov eax, ebx
xor ecx, ecx
call fcn.004036d0
lea eax, [ebp - 0xc]
push eax
movzx eax, di
push eax
push ebx
mov eax, dword [ebp - 0x24]
push eax
push esi
call sub.ntdll.dll_NtReadVirtualMemory
lea eax, [ebp - 0x3b8]
mov edx, ebx
call fcn.0040581c
mov eax, dword [ebp - 0x3b8]
lea ecx, [ebp - 0x20]
xor edx, edx
call fcn.004eecc0
mov eax, ebx
call fcn.00402a88
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x24], eax
mov di, word [ebp - 0x228]
movzx eax, di
add eax, 2
call fcn.00402a68
mov ebx, eax
movzx edx, di
add edx, 2
mov eax, ebx
xor ecx, ecx
call fcn.004036d0
lea eax, [ebp - 0xc]
push eax
movzx eax, di
push eax
push ebx
mov eax, dword [ebp - 0x24]
push eax
push esi
call sub.ntdll.dll_NtReadVirtualMemory
lea eax, [ebp - 0x3bc]
mov edx, ebx
call fcn.0040581c
mov eax, dword [ebp - 0x3bc]
lea ecx, [ebp - 0x1c]
xor edx, edx
call fcn.004eecc0
mov eax, ebx
call fcn.00402a88
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x24], eax
mov di, word [ebp - 0x23c]
movzx eax, di
add eax, 2
call fcn.00402a68
mov ebx, eax
movzx edx, di
add edx, 2
mov eax, ebx
xor ecx, ecx
call fcn.004036d0
lea eax, [ebp - 0xc]
push eax
movzx eax, di
push eax
push ebx
mov eax, dword [ebp - 0x24]
push eax
push esi
call sub.ntdll.dll_NtReadVirtualMemory
lea eax, [ebp - 0x3c0]
mov edx, ebx
call fcn.0040581c
mov eax, dword [ebp - 0x3c0]
lea ecx, [ebp - 0x18]
xor edx, edx
call fcn.004eecc0
mov eax, ebx
call fcn.00402a88
lea eax, [ebp - 0x3b4]
xor ecx, ecx
mov edx, 0x2c
call fcn.004036d0
push 0x2c
lea eax, [ebp - 0x3b4]
push eax
push esi
call sub.psapi.dll_GetProcessMemoryInfo
lea eax, [ebp - 0x388]
xor ecx, ecx
mov edx, 0x128
call fcn.004036d0
lea edx, [ebp - 0x388]
mov eax, dword [ebp - 4]
call fcn.004efdb4
lea eax, [ebp - 0x28]
push eax
push esi
call sub.KERNEL32.DLL_GetProcessHandleCount
mov eax, dword [ebp - 8]
mov dword [eax], esi
mov eax, dword [ebp - 0x30]
xor edx, edx
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x44]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 0x34]
cdq
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
mov eax, dword [ebp - 0x38]
xor edx, edx
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], edx
mov eax, dword [ebp - 8]
mov dl, byte [ebp - 0x216]
mov byte [eax + 0x30], dl
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x40]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x374]
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x38c]
mov dword [eax + 0x40], edx
mov eax, dword [ebp - 0x210]
xor edx, edx
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x48], eax
mov dword [ecx + 0x4c], edx
mov eax, dword [ebp - 0x20c]
xor edx, edx
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x50], eax
mov dword [ecx + 0x54], edx
mov eax, dword [ebp - 0x3c]
xor edx, edx
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x58], eax
mov dword [ecx + 0x5c], edx
mov eax, dword [ebp - 0x250]
xor edx, edx
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x60], eax
mov dword [ecx + 0x64], edx
mov eax, dword [ebp - 0x248]
xor edx, edx
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x68], eax
mov dword [ecx + 0x6c], edx
mov eax, dword [ebp - 0x244]
xor edx, edx
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x70], eax
mov dword [ecx + 0x74], edx
mov eax, dword [ebp - 0x240]
xor edx, edx
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x78], eax
mov dword [ecx + 0x7c], edx
mov eax, dword [ebp - 8]
add eax, 0x80
lea edx, [ebp - 0x364]
mov ecx, 0x104
call fcn.00405248
mov eax, dword [ebp - 8]
add eax, 0x84
mov edx, dword [ebp - 0x18]
call fcn.0040502c
mov eax, dword [ebp - 8]
add eax, 0x88
mov edx, dword [ebp - 0x1c]
call fcn.0040502c
mov eax, dword [ebp - 8]
add eax, 0x8c
mov edx, dword [ebp - 0x20]
call fcn.0040502c
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x98], edx
push esi
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ef54f
lea eax, [ebp - 0x3c0]
mov edx, 3
call fcn.00405724
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404ffc
ret