Function at 0x4e77c4
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x87], 0
je 0x4e7813
mov eax, dword [ebp - 4]
cmp dword [eax + 0x5c], 0
je 0x4e7813
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
call fcn.004de108
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x5c], edx
mov eax, dword [ebp - 4]
mov byte [eax + 0x87], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x5c], 0
jne 0x4e79be
mov eax, dword [ebp - 4]
cmp dword [eax + 0x7c], 0
jne 0x4e7845
mov dl, 1
mov eax, dword [0x422f98]
call fcn.004041d4
mov edx, dword [ebp - 4]
mov dword [edx + 0x7c], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x4e798a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
mov al, byte [0x4e79c4]
push eax
mov al, byte [0x4e79c8]
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
push eax
mov eax, dword [0x74c680]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x68]
mov dl, 1
mov eax, dword [0x457d88]
call fcn.0045a2a4
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4e7983
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0x5c
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x58]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
call fcn.004de108
mov eax, dword [ebp - 4]
add eax, 0x10
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xc0]
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
call fcn.004de108
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
push eax
mov eax, dword [ebp - 4]
add eax, 0x70
mov ecx, 1
mov edx, dword [0x4db518]
call fcn.004069d4
add esp, 4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x30], 0x1a
jge 0x4e7945
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [0x74cc74]
mov al, byte [edx + eax]
mov edx, dword [ebp - 4]
mov byte [edx + 0x74], al
jmp 0x4e7961
mov eax, dword [ebp - 4]
cmp dword [eax + 0x30], 0x1007
jne 0x4e795a
mov eax, dword [ebp - 4]
mov byte [eax + 0x74], 0x18
jmp 0x4e7961
mov eax, dword [ebp - 4]
mov byte [eax + 0x74], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 4]
mov dword [edx + 0x78], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e79be
mov eax, dword [ebp - 8]
call fcn.00404204
ret
mov eax, dword [ebp - 4]
add eax, 0x5c
push eax
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
call fcn.004de108
pop ecx
pop ecx
pop ebp
ret