Function at 0x4a4890
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b62ca
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x78efc4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x48], ebx
mov eax, dword [ebp + 8]
lea esi, [ebx + 4]
mov dword [ebp - 0x58], ebx
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
lea eax, [ebx + 0x30]
mov dword [ebx], vtable.CAT::StateReporter.0
mov dword [esi], 0
push eax
mov dword [ebx + 0x2c], 0
call edi
xor eax, eax
xchg dword [esi], eax
add ebx, 0x48
mov dword [ebp - 4], 0
push 0x50
mov dword [ebp - 0x3c], ebx
call fcn.00677616
mov ebx, eax
mov dword [ebp - 0x48], ebx
push 0x50
push 0
push ebx
call fcn.00679eb0
add esp, 0x10
mov dword [ebx], vtable.CAT::EventProcessHooker.0
lea eax, [ebx + 0x10]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push eax
call edi
mov byte [ebp - 4], 2
lea esi, [ebx + 0x28]
mov dword [ebp - 0x50], esi
push 0x40
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00677616
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea eax, [ebx + 0x30]
push eax
call edi
mov byte [ebp - 4], 4
lea esi, [ebx + 0x48]
mov dword [ebp - 0x50], esi
push 0x40
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00677616
mov edi, dword [ebp - 0x3c]
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi], ebx
push 0x58
mov byte [ebp - 4], 5
mov esi, ebx
call fcn.00677616
add esp, 8
mov dword [ebp - 0x50], eax
push esi
mov byte [ebp - 4], 6
mov ebx, dword [ebp - 0x40]
push ebx
push dword [ebp - 0x44]
mov ecx, eax
call fcn.004d7000
mov esi, eax
mov dword [ebp - 0x40], esi
lea eax, [ebx + 0x4c]
mov byte [ebp - 4], 7
push 0x84
mov dword [ebp - 0x50], eax
call fcn.00677616
add esp, 4
mov dword [ebp - 0x48], eax
push ebx
sub esp, 8
mov byte [ebp - 4], 8
mov dword [ebp - 0x3c], esi
mov eax, esp
mov dword [ebp - 0x44], eax
mov dword [eax], 0
mov dword [eax + 4], 0
test esi, esi
je 0x4a4a4a
push 0x10
call fcn.00677616
mov ecx, dword [ebp - 0x44]
xorps xmm0, xmm0
mov dword [ebp - 0x50], eax
add esp, 4
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_resource_class_CAT::EventProcessorComposite___struct_std::default_delete_class_CAT::EventProcessorComposite__.0
mov dword [eax + 0xc], esi
mov dword [ecx], esi
xor esi, esi
mov dword [ecx + 4], eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov ecx, dword [ebp - 0x48]
call fcn.004d4ae0
mov dword [ebx + 0x4c], eax
cmp dword [ebp - 0x3c], 0
je 0x4a4a6d
mov ecx, esi
call fcn.004d7310
push 0x58
push esi
call fcn.006779b1
add esp, 8
mov dword [ebx + 0x50], 0
lea esi, [ebx + 0x54]
mov dword [esi], 0
mov byte [esi + 4], 0
mov byte [ebp - 4], 0xc
push dword [ebp - 0x4c]
mov ecx, dword [edi]
call fcn.00537d30
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x74b1a8
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [edi]
push eax
call fcn.00537c50
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4a4ac3
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
push eax
call edx
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], ebx
push eax
lea ecx, [ebp - 0x54]
call fcn.004a5910
mov edx, eax
add esp, 4
mov dword [ebp - 0x3c], edx
or edi, 0xffffffff
mov byte [ebp - 4], 0xe
cmp esi, edx
je 0x4a4b1b
mov ecx, dword [esi]
test ecx, ecx
je 0x4a4b0b
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x4a4b0b
mov edx, dword [ecx + 0x78]
test edx, edx
je 0x4a4b02
mov eax, dword [edx]
push ecx
mov ecx, edx
jmp 0x4a4b06
mov eax, dword [ecx]
push 1
call dword [eax]
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
mov dword [esi], eax
mov al, byte [edx + 4]
mov dword [edx], 0
mov byte [esi + 4], al
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x4a4b44
lock xadd dword [ecx + 4], edi
dec edi
jne 0x4a4b44
mov eax, dword [ecx + 0x78]
test eax, eax
je 0x4a4b3e
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx]
jmp 0x4a4b44
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006773ff
mov esp, ebp
pop ebp
ret 8