Function at 0x40e8e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459db0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x60]
test eax, eax
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
jne 0x40ec1e
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x18]
mov edi, 0x10
cmp eax, edi
jb 0x40e925
mov eax, dword [ebx + 4]
jmp 0x40e928
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x60], eax
jne 0x40e9f2
push ebx
lea eax, [ebp - 0x50]
push 0x45fffc
push eax
call fcn.0040e740
push 0x45fff8
push eax
lea ecx, [ebp - 0x34]
push ecx
mov dword [ebp - 4], 0
call fcn.00404f80
add esp, 0x18
cmp dword [ebp - 0x38], edi
mov bl, 2
mov byte [ebp - 4], bl
jb 0x40e978
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00440afe
add esp, 4
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
call fcn.00404da0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.004014e0
cmp dword [ebp - 0x54], edi
mov byte [ebp - 4], bl
jb 0x40e9bb
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00440afe
add esp, 4
cmp dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x30]
jae 0x40e9c6
lea eax, [ebp - 0x30]
push eax
push 0
call fcn.004077e0
add esp, 4
mov ecx, eax
call fcn.00407ad0
cmp dword [ebp - 0x1c], edi
jb 0x40ec4d
mov edx, dword [ebp - 0x30]
push edx
call fcn.00440afe
add esp, 4
jmp 0x40ec4d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IsSMPlatformPlugin
push eax
call edi
test eax, eax
je 0x40ec3c
call eax
test eax, eax
je 0x40ec3c
mov eax, dword [esi + 0x60]
push str.AttachTaskMonitor
push eax
call edi
mov ecx, dword [esi + 0x60]
push str.DetachTaskMonitor
push ecx
mov dword [esi + 0x40], eax
call edi
mov edx, dword [esi + 0x60]
push str.GetLastErrorMessage
push edx
mov dword [esi + 0x44], eax
call edi
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x60]
push str.GetPluginInfo
push eax
call edi
mov ecx, dword [esi + 0x60]
push str.NotifyOpenPlugin
push ecx
mov ebx, eax
call edi
mov edx, dword [esi + 0x60]
push str.NotifyClosePlugin
push edx
mov dword [esi + 0x4c], eax
call edi
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x60]
push str.CanExitNow
push eax
call edi
mov ecx, dword [esi + 0x60]
push str.SetLogCallback
push ecx
mov dword [esi + 0x54], eax
call edi
mov edx, dword [esi + 0x60]
push str.ExecuteCommand
push edx
mov dword [ebp - 0x14], eax
call edi
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x60]
push str.OnCommand
push eax
call edi
mov ecx, dword [esi + 0x40]
test ecx, ecx
mov dword [esi + 0x5c], eax
je 0x40ec33
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x40ec33
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x40ec33
test ebx, ebx
je 0x40ec33
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x40ec33
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x40ec33
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x40ec33
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x40ec33
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x40ec33
test eax, eax
je 0x40ec33
lea ecx, [esi + 0x64]
push ecx
mov dword [ebp - 4], 4
call ebx
push 0x4078c0
call edi
jmp 0x40eb65
mov eax, dword [esi + 0x190]
test eax, eax
mov dword [ebp - 4], 0xffffffff
jle 0x40eba2
lea ecx, [eax*4]
push ecx
call fcn.00440b03
mov edx, dword [esi + 0x190]
push edx
push 0xa
push eax
mov dword [esi + 0xd98], eax
lea eax, [esi + 0x194]
push eax
call fcn.0040e430
add esp, 0x14
mov eax, dword [esi + 0x190]
test eax, eax
jle 0x40ebd8
lea ecx, [eax*4]
push ecx
call fcn.00440b03
mov edx, dword [esi + 0x190]
push edx
push 0xa
push eax
mov dword [esi + 0xd9c], eax
lea eax, [esi + 0x594]
push eax
call fcn.0040e430
add esp, 0x14
mov eax, dword [esi + 0x994]
test eax, eax
jle 0x40ec0e
lea ecx, [eax*4]
push ecx
call fcn.00440b03
mov edx, dword [esi + 0x994]
push edx
push 0xa
push eax
mov dword [esi + 0xda0], eax
lea eax, [esi + 0x998]
push eax
call fcn.0040e430
add esp, 0x14
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push 0
push ecx
lea ecx, [esi + 4]
call fcn.00401710
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
call fcn.0040e490
jmp 0x40ec4d
mov edx, dword [esi + 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x60], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4