Function at 0x10166620
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10199ab9
mov eax, dword fs:[0]
push eax
sub esp, 0x554
mov eax, dword [0x101e5820]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x534], ecx
mov dword [ebp - 0x530], 0
jmp 0x1016666c
mov eax, dword [ebp - 0x530]
add eax, 1
mov dword [ebp - 0x530], eax
cmp dword [ebp - 0x530], 0xf
jge 0x101669de
mov ecx, dword [ebp - 0x530]
mov edx, dword [ebp - 0x534]
cmp dword [edx + ecx*4 + 0x318], 0
jne 0x10166691
jmp 0x1016665d
lea ecx, [ebp - 0x52c]
call fcn.10087e50
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x530]
add eax, 1
mov dword [ebp - 0x55c], eax
lea ecx, [ebp - 0x55c]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x560], esp
push str.Plugin__CRC_error_
call fcn.10001fe0
lea edx, [ebp - 0x12c]
push edx
call fcn.10001f20
add esp, 0xc
mov byte [ebp - 4], 1
push 0x400
lea eax, [ebp - 0x54c]
push eax
mov ecx, dword [ebp - 0x530]
shl ecx, 5
mov edx, dword [ebp - 0x534]
lea eax, [edx + ecx + 0x138]
push eax
lea ecx, [ebp - 0x52c]
call fcn.10087bf0
movzx ecx, al
test ecx, ecx
jne 0x10166737
push 0x10
push 0x101c3334
lea ecx, [ebp - 0x12c]
call fcn.10009b30
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [ebp - 0x530]
mov eax, dword [ebp - 0x534]
mov ecx, dword [eax + edx*4 + 0x318]
cmp ecx, dword [ebp - 0x54c]
je 0x10166775
push 0x10
push 0x101c333c
lea ecx, [ebp - 0x12c]
call fcn.10009b30
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [ebp - 0x530]
shl edx, 5
mov eax, dword [ebp - 0x534]
lea ecx, [eax + edx + 0x138]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x558], eax
cmp dword [ebp - 0x558], 0
je 0x101667c4
push 0x10
push 0x101c3344
lea ecx, [ebp - 0x12c]
call fcn.10009b30
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [ebp - 0x530]
shl edx, 5
mov eax, dword [ebp - 0x534]
lea ecx, [eax + edx + 0x138]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x548], eax
cmp dword [ebp - 0x548], 0
jne 0x10166813
push 0x10
push 0x101c334c
lea ecx, [ebp - 0x12c]
call fcn.10009b30
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x104
lea edx, [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x548]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x400
lea ecx, [ebp - 0x54c]
push ecx
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x52c]
call fcn.10087bf0
movzx eax, al
test eax, eax
jne 0x10166874
push 0x10
push 0x101c3354
lea ecx, [ebp - 0x12c]
call fcn.10009b30
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0x530]
mov edx, dword [ebp - 0x534]
mov eax, dword [edx + ecx*4 + 0x318]
cmp eax, dword [ebp - 0x54c]
je 0x101668b2
push 0x10
push str.Error
lea ecx, [ebp - 0x12c]
call fcn.10009b30
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x101c3364
mov ecx, dword [ebp - 0x548]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x544], eax
mov dword [ebp - 0x540], str.CEffect.dll
mov edx, dword [ebp - 0x530]
shl edx, 5
mov eax, dword [ebp - 0x534]
lea ecx, [eax + edx + 0x138]
mov dword [ebp - 0x53c], ecx
mov edx, dword [ebp - 0x53c]
mov al, byte [edx]
mov byte [ebp - 0x535], al
mov ecx, dword [ebp - 0x540]
cmp al, byte [ecx]
jne 0x1016694e
cmp byte [ebp - 0x535], 0
je 0x10166942
mov edx, dword [ebp - 0x53c]
mov al, byte [edx + 1]
mov byte [ebp - 0x536], al
mov ecx, dword [ebp - 0x540]
cmp al, byte [ecx + 1]
jne 0x1016694e
add dword [ebp - 0x53c], 2
add dword [ebp - 0x540], 2
cmp byte [ebp - 0x536], 0
jne 0x101668f0
mov dword [ebp - 0x550], 0
jmp 0x10166959
sbb edx, edx
or edx, 1
mov dword [ebp - 0x550], edx
mov eax, dword [ebp - 0x550]
mov dword [ebp - 0x554], eax
cmp dword [ebp - 0x554], 0
jne 0x101669a9
mov ecx, dword [ebp - 0x530]
mov edx, dword [ebp - 0x534]
cmp dword [edx + ecx*4 + 0x318], 0x40cad9af
jne 0x101669a9
push str.CEffect_1.7.5_Loaded
push 0x101e9f76
call fcn.101549e0
add esp, 8
mov eax, dword [ebp - 0x544]
add eax, 0x77e0
mov dword [0x101ed5c4], eax
cmp dword [ebp - 0x544], 0
je 0x101669b8
call dword [ebp - 0x544]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x12c]
call fcn.1000a4d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x52c]
call fcn.10087e40
jmp 0x1016665d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006d7c0
mov esp, ebp
pop ebp
ret