Function at 0x405170
Capabilities:
Delete file
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea edx, [ebx + 0x1c8]
push edi
mov edi, ecx
mov eax, edx
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4051a0
sub eax, esi
push eax
push 0
push edx
call fcn.004b2d10
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebx + 0x1c4], eax
test eax, eax
jne 0x4052a9
push 0x103
push eax
mov byte [ebp - 0x20c], al
lea eax, [ebp - 0x20b]
push eax
call fcn.004b2d10
push 0x103
lea ecx, [ebp - 0x107]
push 0
push ecx
mov byte [ebp - 0x108], 0
call fcn.004b2d10
add esp, 0x18
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40522b
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004a9130
add esp, 8
mov byte [eax], 0
xor eax, eax
lea ecx, [ecx]
mov cl, byte [ebp + eax - 0x20c]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x405230
lea edi, [ebp - 0x108]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405250
mov cx, word [0x4ce6f4]
mov eax, dword [ebp - 0x214]
mov word [edi], cx
mov esi, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405270
lea edi, [ebp - 0x108]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405280
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ebp - 0x108]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebx + 0x1c4], eax
mov eax, dword [ebx + 0x1c4]
test eax, eax
je 0x40541b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Description
push eax
call esi
mov dword [ebx + 0x2cc], eax
mov eax, dword [ebx + 0x1c4]
push str.Startup
push eax
call esi
mov ecx, dword [ebx + 0x1c4]
push str.Shutdown
push ecx
mov dword [ebx + 0x2d4], eax
call esi
mov edx, dword [ebx + 0x1c4]
push str.SetParams
push edx
mov dword [ebx + 0x2d0], eax
call esi
mov dword [ebx + 0x2d8], eax
mov eax, dword [ebx + 0x1c4]
push str.GetParams
push eax
call esi
mov ecx, dword [ebx + 0x1c4]
push str.TransformBuffer
push ecx
mov dword [ebx + 0x2dc], eax
call esi
mov edx, dword [ebx + 0x1c4]
push str.RestoreBuffer
push edx
mov dword [ebx + 0x2e0], eax
call esi
mov dword [ebx + 0x2e4], eax
mov eax, dword [ebx + 0x1c4]
push str.FreeBuffer
push eax
call esi
mov ecx, dword [ebx + 0x1c4]
push str.Reset
push ecx
mov dword [ebx + 0x2e8], eax
call esi
mov edx, dword [ebx + 0x1c4]
push str.CreatePluginInterface
push edx
mov dword [ebx + 0x2ec], eax
call esi
mov dword [ebx + 0x2f0], eax
mov eax, dword [ebx + 0x1c4]
push str.CreateIntegratedPluginInterface
push eax
call esi
mov ecx, dword [ebx + 0x1c4]
push str.Config
push ecx
mov dword [ebx + 0x2f4], eax
call esi
cmp dword [ebx + 0x2d4], 0
mov dword [ebx + 0x2f8], eax
je 0x4053fc
cmp dword [ebx + 0x2d0], 0
je 0x4053fc
cmp dword [ebx + 0x2d8], 0
je 0x4053fc
cmp dword [ebx + 0x2dc], 0
je 0x4053fc
cmp dword [ebx + 0x2e0], 0
je 0x4053fc
cmp dword [ebx + 0x2e4], 0
je 0x4053fc
cmp dword [ebx + 0x2e8], 0
je 0x4053fc
pop edi
mov byte [ebx + 0x20], 1
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x1c4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x210]
cmp byte [eax], 0
je 0x40541b
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret