Function at 0x4ccf40
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x52cb18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebp, [esi + 0x120]
push ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x108]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x24], ebx
jne 0x4cd006
lea edi, [esi + 4]
push edi
call fcn.00473720
add esp, 4
push eax
push str.PIM:_Loading__s_n
call fcn.00476760
mov al, byte [0x5668c0]
add esp, 8
cmp al, bl
push 8
push ebx
push edi
je 0x4ccfbc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [esi + 0x108], eax
mov dword [esp + 0x24], ebx
jmp 0x4ccfc8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [esi + 0x108], eax
cmp dword [esi + 0x108], ebx
jne 0x4cd006
push edi
call fcn.00473720
add esp, 4
push eax
push str.PIM:_LoadLibrary_failed_on__s_n
call fcn.00472ef0
add esp, 8
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
test eax, eax
jne 0x4cd16c
mov ecx, dword [esi + 0x108]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CXP_Init
push ecx
call edi
mov edx, dword [esi + 0x108]
push str.CXP_Free
push edx
mov dword [esi + 0x144], eax
call edi
mov dword [esi + 0x148], eax
mov eax, dword [esi + 0x108]
push str.CXP_GetPlugInInfo
push eax
call edi
mov ecx, dword [esi + 0x108]
push str.CXP_ShowPlugInDialog
push ecx
mov dword [esi + 0x14c], eax
call edi
mov edx, dword [esi + 0x108]
push str.CXP_InvokeCommand
push edx
mov dword [esi + 0x150], eax
call edi
mov dword [esi + 0x154], eax
mov eax, dword [esi + 0x108]
push str.CXP_Help
push eax
call edi
mov ecx, dword [esi + 0x108]
push str.CXP_ErrorHandler
push ecx
mov dword [esi + 0x158], eax
call edi
mov edx, dword [esi]
mov ecx, esi
mov dword [esi + 0x15c], eax
call dword [edx + 0xc]
test eax, eax
jne 0x4cd0eb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov ecx, dword [esi + 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebp
mov dword [esi + 0x108], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push 1
push 0x56686c
mov ecx, esi
call fcn.004cd800
test eax, eax
je 0x4cd136
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x10]
mov eax, dword [esi + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebp
mov dword [esi + 0x108], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
cmp dword [esi + 0x150], ebx
je 0x4cd145
or byte [esi + 0x10e], 4
cmp dword [esi + 0x158], ebx
je 0x4cd154
or byte [esi + 0x10e], 8
mov eax, dword [esi + 0x140]
or byte [esi + 0x10e], 1
cmp eax, ebx
je 0x4cd174
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
cmp dword [esi + 0x140], ebx
jne 0x4cd1cb
lea eax, [esp + 0x10]
push 1
push eax
mov ecx, esi
call fcn.004cda10
test eax, eax
je 0x4cd1bf
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x10]
mov eax, dword [esi + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebp
mov dword [esi + 0x108], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004cd6d0
push ebp
mov dword [esi + 0x138], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret