Function at 0x4781a0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6b27
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x51e080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
lea ebx, [esi + 0x30]
mov dword [esi], vtable.pd_server.0
mov dword [esi + 0xc], eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xffffffff
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x60], 0
push ebx
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xc
mov dword [esi + 0x4c], 3
call fcn.004d9a7e
xor ebx, ebx
mov dword [esi + 0x48], eax
add esp, 4
cmp dword [esi + 0x4c], ebx
jbe 0x4782b6
xor edi, edi
nop dword [eax + eax]
push 0x90
call fcn.004d3886
add esp, 4
mov dword [ebp + 8], eax
push esi
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004773c0
mov dword [ebp - 4], 0xffffffff
lea edi, [edi + 4]
mov ecx, dword [esi + 0x48]
inc ebx
mov dword [edi + ecx - 4], eax
cmp ebx, dword [esi + 0x4c]
jb 0x478280
lea eax, [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ebx, [esi + 0x70]
push ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x2c
call fcn.004d3886
mov edi, eax
mov dword [ebp + 8], edi
push 0x80
mov dword [edi], vtable.mutagen.0
mov dword [edi + 4], 0xffffffff
mov dword [edi + 8], 0
call fcn.004d9a7e
push 0x80
mov dword [edi + 0xc], eax
call fcn.004d9a7e
add esp, 0xc
mov dword [edi + 0x10], eax
mov ecx, 1
add ecx, ecx
cmp ecx, 0x100
jb 0x478313
add ecx, ecx
mov dword [edi + 0x14], 0x100
mov dword [edi + 0x1c], 0
lea eax, [ecx - 1]
mov dword [edi + 0x18], eax
lea eax, [ecx*4]
push eax
call fcn.004d9a7e
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0x14]
lea eax, [eax + eax*4]
shl eax, 2
push eax
call fcn.004d9a7e
add esp, 8
mov dword [edi + 0x20], eax
mov ecx, edi
call fcn.00415840
push ebx
mov dword [esi + 0x88], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x38
call fcn.004d3886
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
mov ecx, dword [esi + 0xc]
lea eax, [ebx + 4]
push eax
mov edi, dword [ecx + 0x494]
mov dword [ebx], vtable.blackhole.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebx + 0x1c], edi
mov ecx, 1
add ecx, ecx
cmp ecx, 0x400
jb 0x4783a6
add ecx, ecx
mov dword [ebx + 0x20], 0x400
mov dword [ebx + 0x28], 0
lea eax, [ecx - 1]
mov dword [ebx + 0x24], eax
lea eax, [ecx*4]
push eax
call fcn.004d9a7e
mov dword [ebx + 0x30], eax
mov eax, dword [ebx + 0x20]
lea eax, [eax + eax*8]
shl eax, 2
push eax
call fcn.004d9a7e
add esp, 8
mov dword [ebx + 0x2c], eax
mov ecx, ebx
call fcn.00404ca0
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esi + 0x6c], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4