Function at 0x4ef838
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, 0xfffffaf0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x510], ecx
mov dword [ebp - 0x50c], ecx
mov dword [ebp - 0x508], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], 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 0x4efcb0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x68]
xor ecx, ecx
mov edx, 0x30
call fcn.004036d0
lea eax, [ebp - 0x330]
xor ecx, ecx
mov edx, 0x2c8
call fcn.004036d0
lea eax, [ebp - 0x3b0]
xor ecx, ecx
mov edx, 0x80
call fcn.004036d0
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 0xa0
call fcn.004036d0
mov dl, 1
mov eax, 0x4efcc8
call fcn.004eed3c
mov eax, dword [ebp - 4]
push eax
push 0
push 0x410
call sub.KERNEL32.DLL_OpenProcess
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [0x5940f8]
mov eax, dword [ebp - 0x1c]
cmp eax, 1
sbb eax, eax
neg eax
neg al
sbb eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
push 0x30
lea eax, [ebp - 0x68]
push eax
push 0
push esi
call dword [0x5940f0]
lea eax, [ebp - 0x10]
push eax
push 0
push 0x2c8
lea eax, [ebp - 0x330]
push eax
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push esi
call dword [0x5940f4]
lea eax, [ebp - 0x10]
push eax
push 0
push 0x80
lea eax, [ebp - 0x3b0]
push eax
push dword [ebp - 0x30c]
push dword [ebp - 0x310]
push esi
call dword [0x5940f4]
push dword [ebp - 0x314]
push dword [ebp - 0x318]
mov eax, dword [ebp - 8]
add eax, 0x90
mov edx, dword [0x4eec18]
call fcn.00405aa0
mov edx, eax
mov eax, esi
call fcn.004ef574
mov eax, dword [ebp - 0x338]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x334]
mov dword [ebp - 0x2c], eax
mov di, word [ebp - 0x340]
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 - 0x10]
push eax
movzx eax, di
xor edx, edx
push edx
push eax
push ebx
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push esi
call dword [0x5940f4]
lea eax, [ebp - 0x508]
mov edx, ebx
call fcn.0040581c
mov eax, dword [ebp - 0x508]
lea ecx, [ebp - 0x28]
xor edx, edx
call fcn.004eecc0
mov eax, ebx
call fcn.00402a88
mov eax, dword [ebp - 0x348]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x344]
mov dword [ebp - 0x2c], eax
mov di, word [ebp - 0x350]
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 - 0x10]
push eax
movzx eax, di
xor edx, edx
push edx
push eax
push ebx
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push esi
call dword [0x5940f4]
lea eax, [ebp - 0x50c]
mov edx, ebx
call fcn.0040581c
mov eax, dword [ebp - 0x50c]
lea ecx, [ebp - 0x24]
xor edx, edx
call fcn.004eecc0
mov eax, ebx
call fcn.00402a88
mov eax, dword [ebp - 0x370]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x36c]
mov dword [ebp - 0x2c], eax
mov di, word [ebp - 0x378]
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 - 0x10]
push eax
movzx eax, di
xor edx, edx
push edx
push eax
push ebx
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push esi
call dword [0x5940f4]
lea eax, [ebp - 0x510]
mov edx, ebx
call fcn.0040581c
mov eax, dword [ebp - 0x510]
lea ecx, [ebp - 0x20]
xor edx, edx
call fcn.004eecc0
mov eax, ebx
call fcn.00402a88
lea eax, [ebp - 0x504]
xor ecx, ecx
mov edx, 0x2c
call fcn.004036d0
push 0x2c
lea eax, [ebp - 0x504]
push eax
push esi
call sub.psapi.dll_GetProcessMemoryInfo
lea eax, [ebp - 0x4d8]
xor ecx, ecx
mov edx, 0x128
call fcn.004036d0
lea edx, [ebp - 0x4d8]
mov eax, dword [ebp - 4]
call fcn.004efdb4
lea eax, [ebp - 0x34]
push eax
push esi
call sub.KERNEL32.DLL_GetProcessHandleCount
mov eax, dword [ebp - 8]
mov dword [eax], esi
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x48]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x44]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x40]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x3c]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x70]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 0x50]
xor edx, edx
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x58]
mov dword [eax + 0x28], edx
mov edx, dword [ebp - 0x54]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 8]
mov dl, byte [ebp - 0x32e]
mov byte [eax + 0x30], dl
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x68]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x4c4]
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x34]
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x4dc]
mov dword [eax + 0x40], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x320]
mov dword [eax + 0x48], edx
mov edx, dword [ebp - 0x31c]
mov dword [eax + 0x4c], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x318]
mov dword [eax + 0x50], edx
mov edx, dword [ebp - 0x314]
mov dword [eax + 0x54], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x60]
mov dword [eax + 0x58], edx
mov edx, dword [ebp - 0x5c]
mov dword [eax + 0x5c], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x3a0]
mov dword [eax + 0x60], edx
mov edx, dword [ebp - 0x39c]
mov dword [eax + 0x64], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x390]
mov dword [eax + 0x68], edx
mov edx, dword [ebp - 0x38c]
mov dword [eax + 0x6c], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x388]
mov dword [eax + 0x70], edx
mov edx, dword [ebp - 0x384]
mov dword [eax + 0x74], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x380]
mov dword [eax + 0x78], edx
mov edx, dword [ebp - 0x37c]
mov dword [eax + 0x7c], edx
mov eax, dword [ebp - 8]
add eax, 0x80
lea edx, [ebp - 0x4b4]
mov ecx, 0x104
call fcn.00405248
mov eax, dword [ebp - 8]
add eax, 0x84
mov edx, dword [ebp - 0x20]
call fcn.0040502c
mov eax, dword [ebp - 8]
add eax, 0x88
mov edx, dword [ebp - 0x24]
call fcn.0040502c
mov eax, dword [ebp - 8]
add eax, 0x8c
mov edx, dword [ebp - 0x28]
call fcn.0040502c
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
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 0x4efcb7
lea eax, [ebp - 0x510]
mov edx, 3
call fcn.00405724
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00404ffc
ret