Function at 0x660ca390
Capabilities:
Link many functions at runtime
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [esp], str.libavs_win32.dll
call esi
sub esp, 4
test eax, eax
jne 0x660ca3f8
mov dword [esp], str.libavs_win64.dll
call esi
sub esp, 4
mov ebx, eax
test eax, eax
jne 0x660ca889
mov dword [esp], str.avs2_core.dll
call esi
sub esp, 4
mov ebx, eax
test eax, eax
jne 0x660ca896
mov dword [esp + 4], str.Couldnt_find_AVS_dll_in_memory
mov dword [esp], 0x661de6e0
call dword [0x661dc034]
xor eax, eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x24], str.libavs_win32.dll
mov ebx, eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, 0x661dfc88
xor edi, edi
nop
mov eax, dword [esi]
test eax, eax
je 0x660ca42a
mov dword [esp + 4], eax
mov dword [esp], ebx
call ebp
sub esp, 8
test eax, eax
je 0x660ca870
mov eax, dword [esi + 4]
mov dword [esp], ebx
mov dword [esp + 4], eax
call ebp
mov dword [0x66238108], eax
sub esp, 8
test eax, eax
je 0x660ca870
mov eax, dword [esi + 8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call ebp
mov dword [0x66238104], eax
sub esp, 8
test eax, eax
je 0x660ca870
mov eax, dword [esi + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], eax
call ebp
mov dword [0x66238100], eax
sub esp, 8
test eax, eax
je 0x660ca870
mov eax, dword [esi + 0x10]
mov dword [esp], ebx
mov dword [esp + 4], eax
call ebp
mov dword [0x662380fc], eax
sub esp, 8
test eax, eax
je 0x660ca870
mov eax, dword [esi + 0x14]
mov dword [esp], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 4], eax
call ebp
mov dword [0x662380f8], eax
sub esp, 8
test eax, eax
je 0x660ca870
mov eax, dword [esi + 0x18]
mov dword [esp], ebx
mov dword [esp + 4], eax
call ebp
mov dword [0x662380f4], eax
sub esp, 8
test eax, eax
je 0x660ca870
mov ecx, dword [esi + 0x1c]
mov dword [esp], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 4], ecx
call ebp
mov dword [0x662380f0], eax
sub esp, 8
test eax, eax
je 0x660ca870
mov eax, dword [esi + 0x20]
mov dword [esp], ebx
mov dword [esp + 4], eax
call ebp
mov dword [0x662380ec], eax
sub esp, 8
test eax, eax
je 0x660ca870
mov edx, dword [esi + 0x24]
mov dword [esp], ebx
mov dword [esp + 0x20], edx
mov dword [esp + 4], edx
call ebp
mov dword [0x662380e8], eax
sub esp, 8
test eax, eax
je 0x660ca870
mov eax, dword [esi + 0x28]
mov dword [esp], ebx
mov dword [esp + 4], eax
call ebp
mov dword [0x662380e4], eax
sub esp, 8
test eax, eax
je 0x660ca870
mov edx, dword [esi + 0x2c]
mov dword [esp], ebx
mov dword [esp + 0x28], edx
mov dword [esp + 4], edx
call ebp
mov dword [0x662380e0], eax
sub esp, 8
test eax, eax
je 0x660ca870
mov edx, dword [esi + 0x30]
mov dword [esp], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 4], edx
call ebp
mov dword [0x662380dc], eax
sub esp, 8
test eax, eax
je 0x660ca870
mov eax, dword [esi + 0x34]
mov dword [esp], ebx
mov dword [esp + 4], eax
call ebp
mov dword [0x662380d8], eax
sub esp, 8
test eax, eax
je 0x660ca870
mov eax, dword [esi + 0x38]
mov dword [esp], ebx
mov dword [esp + 4], eax
call ebp
mov dword [0x662380d4], eax
sub esp, 8
test eax, eax
je 0x660ca870
mov eax, dword [esi + 0x3c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call ebp
mov dword [0x662380d0], eax
sub esp, 8
test eax, eax
je 0x660ca870
mov eax, dword [esi + 0x40]
mov dword [esp], ebx
mov dword [esp + 4], eax
call ebp
mov dword [0x662380cc], eax
sub esp, 8
test eax, eax
je 0x660ca870
mov eax, dword [esi + 0x44]
mov dword [esp], ebx
mov dword [esp + 4], eax
call ebp
mov dword [0x662380c8], eax
sub esp, 8
test eax, eax
je 0x660ca870
mov eax, dword [esi + 0x48]
mov dword [esp], ebx
mov dword [esp + 4], eax
call ebp
mov dword [0x662380c4], eax
sub esp, 8
test eax, eax
je 0x660ca870
mov eax, dword [esi + 0x4c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call ebp
mov dword [0x662380c0], eax
sub esp, 8
test eax, eax
je 0x660ca870
mov eax, dword [esi + 0x50]
mov dword [esp], ebx
mov dword [esp + 4], eax
call ebp
mov dword [0x662380bc], eax
sub esp, 8
test eax, eax
je 0x660ca870
mov eax, dword [esi + 0x54]
mov dword [esp], ebx
mov dword [esp + 4], eax
call ebp
mov dword [0x662380b8], eax
sub esp, 8
test eax, eax
je 0x660ca870
mov eax, dword [esi + 0x58]
mov dword [esp], ebx
mov dword [esp + 4], eax
call ebp
mov dword [0x662380b4], eax
sub esp, 8
test eax, eax
je 0x660ca870
mov eax, dword [esi + 0x5c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call ebp
mov dword [0x662380b0], eax
sub esp, 8
test eax, eax
je 0x660ca870
mov eax, dword [esi + 0x60]
mov dword [esp], ebx
mov dword [esp + 4], eax
call ebp
mov dword [0x662380ac], eax
sub esp, 8
test eax, eax
je 0x660ca870
mov eax, dword [esi + 0x64]
mov dword [esp], ebx
mov dword [esp + 4], eax
call ebp
mov dword [0x662380a8], eax
push edx
push edx
test eax, eax
je 0x660ca870
mov eax, dword [esi + 0x68]
mov dword [esp], ebx
mov dword [esp + 4], eax
call ebp
mov dword [0x662380a4], eax
push ecx
push ecx
test eax, eax
je 0x660ca870
mov eax, dword [esi + 0x6c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call ebp
push edx
push edx
mov dword [0x662380a0], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], 0x662380f8
mov dword [esp + 8], 0x660c9390
mov dword [esp], eax
call fcn.66103490
sub esp, 0x10
test eax, eax
jne 0x660ca870
cmp dword [0x662380f8], 0
je 0x660ca870
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], 0x662380e8
mov dword [esp + 8], 0x660c8470
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.66103490
sub esp, 0x10
test eax, eax
jne 0x660ca870
cmp dword [0x662380e8], 0
je 0x660ca870
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], 0x662380e0
mov dword [esp + 8], 0x660c4e00
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.66103490
sub esp, 0x10
test eax, eax
jne 0x660ca870
cmp dword [0x662380e0], 0
je 0x660ca870
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], 0x662380f0
mov dword [esp + 8], 0x660c8c00
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.66103490
sub esp, 0x10
test eax, eax
jne 0x660ca870
cmp dword [0x662380f0], 0
je 0x660ca870
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], 0x662380dc
mov dword [esp + 8], 0x660c4e90
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.66103490
sub esp, 0x10
test eax, eax
jne 0x660ca870
cmp dword [0x662380dc], 0
je 0x660ca870
imul eax, edi, 0x78
mov edx, dword [eax + 0x661dfc80]
movzx eax, word [eax + 0x661dfc84]
mov dword [0x66238110], edx
mov word [0x6623810c], ax
mov eax, 1
jmp 0x660ca3f0
add edi, 1
add esi, 0x78
cmp edi, 6
jne 0x660ca410
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x24], str.libavs_win64.dll
jmp 0x660ca402
mov dword [esp + 0x24], str.avs2_core.dll
jmp 0x660ca402