Function at 0x10046290
Capabilities:
Link many functions at runtime

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x10046536
mov eax, dword [esi + 0x60]
test eax, eax
je 0x10046536
push edi
push ebp
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.10046570
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x10046521
mov eax, dword [0x100a43a4]
test eax, eax
jne 0x10046418
mov eax, dword [0x100a43b0]
mov dword [0x100a43a4], 1
test eax, eax
jne 0x10046418
mov eax, dword [0x100a4318]
mov ebx, str.ir50_qc.dll
test eax, eax
je 0x100462fc
mov ebx, str.ir50_qcx.dll
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebx
call ebp
mov edi, eax
test edi, edi
jne 0x10046326
mov eax, dword [0x100a4318]
test eax, eax
je 0x10046319
mov ebx, str.ir50_qc.dll
push ebx
call ebp
mov edi, eax
test edi, edi
je 0x10046418
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CompressQuery
push edi
mov dword [0x100a43a8], edi
call ebx
push str.Compress
push edi
mov dword [0x100a43b8], eax
call ebx
push str.CompressBegin
push edi
mov dword [0x100a43b4], eax
call ebx
push str.CompressEnd
push edi
mov dword [0x100a43bc], eax
call ebx
push str.SetScalability
push edi
mov dword [0x100a43c0], eax
call ebx
push str.CompressFramesInfo
push edi
mov dword [0x100a43cc], eax
call ebx
push str.SetCPUID
push edi
mov dword [0x100a43d0], eax
call ebx
push str.AllocInstanceData
push edi
mov dword [0x100a43d4], eax
call ebx
push str.FreeInstanceData
push edi
mov dword [0x100a43d8], eax
call ebx
mov ecx, dword [0x100a43b4]
mov dword [0x100a43dc], eax
test ecx, ecx
je 0x10046407
mov ecx, dword [0x100a43bc]
test ecx, ecx
je 0x10046407
mov ecx, dword [0x100a43c0]
test ecx, ecx
je 0x10046407
mov ecx, dword [0x100a43cc]
test ecx, ecx
je 0x10046407
mov ecx, dword [0x100a43d0]
test ecx, ecx
je 0x10046407
mov ecx, dword [0x100a43d4]
test ecx, ecx
je 0x10046407
mov ecx, dword [0x100a43d8]
test ecx, ecx
je 0x10046407
test eax, eax
je 0x10046407
mov dword [0x100a43b0], 0x100a43b0
mov dword [0x100a43c8], 0x100a43c8
jmp 0x10046418
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x100a43a8], 0
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x10046521
mov ecx, dword [esi + 0x60]
mov dword [esi + 0x14], 1
mov edx, dword [ecx + 0xf0]
mov eax, dword [edx + 0x104]
test eax, eax
je 0x10046446
push eax
call fcn.10040cb0
add esp, 4
mov eax, dword [esi + 0x60]
mov ecx, dword [eax + 0xf0]
mov dword [ecx + 0x104], 0
mov eax, dword [0x100a43b0]
test eax, eax
je 0x10046521
push 1
push 0x14
call fcn.10040c80
mov edx, dword [esi + 0x60]
add esp, 8
mov ecx, dword [edx + 0xf0]
mov dword [ecx + 0x104], eax
mov eax, dword [esi + 0x60]
mov edx, dword [eax + 0xf0]
mov ecx, dword [edx + 0x104]
test ecx, ecx
je 0x10046521
mov eax, dword [eax + 0x5c]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x60]
mov ecx, dword [eax + 0xf0]
mov eax, dword [eax + 0x58]
mov edx, dword [ecx + 0x104]
mov dword [edx + 0xc], eax
mov ecx, dword [esi + 0x60]
mov edx, dword [ecx + 0xf0]
mov eax, dword [edx + 0x104]
mov dword [eax], 0x100a43c8
mov ecx, dword [esi + 0x60]
mov edx, dword [ecx + 0xf0]
mov eax, dword [edx + 0x104]
mov dword [eax + 4], 0x100a43b0
call dword [0x100a43d8]
mov ecx, dword [esi + 0x60]
push 0
mov edx, dword [ecx + 0xf0]
mov ecx, dword [edx + 0x104]
lea edx, [esi + 0x20]
push edx
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x60]
mov ecx, dword [eax + 0xf0]
mov edx, dword [ecx + 0x104]
mov eax, dword [edx + 0x10]
push eax
call dword [0x100a43d4]
push esi
call fcn.100465d0
add esp, 4
mov dword [esi + 0x18], eax
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.10046540
add esp, 8
pop ebx
pop ebp
pop edi
pop esi
pop ecx
ret