Function at 0x4add20
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x4e3880]
sub esp, 0x104
test eax, eax
jne 0x4adfcd
mov eax, dword [0x4e3884]
test eax, eax
jne 0x4ae005
mov eax, dword [0x4db788]
test eax, eax
je 0x4add5e
push 0x4e3868
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4db788], 0
push 0x4e3868
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4e3880]
test eax, eax
jne 0x4adfc2
mov al, byte [0x4e3738]
test al, al
je 0x4add99
push 0x4e3738
lea eax, [esp + 4]
push str._sGLGIFTGA.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4addac
lea ecx, [esp]
push str.GLGIFTGA.dll
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x4e3880], eax
jne 0x4addde
push 0x4e3868
mov dword [0x4e3884], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add esp, 0x104
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNextRawFrameData
push eax
call esi
mov dword [0x4e3888], eax
mov eax, dword [0x4e3880]
push str.GetGlobalColorIndexData
push eax
call esi
mov ecx, dword [0x4e3880]
push str.GetGlobalColorIndexTotal
push ecx
mov dword [0x4e388c], eax
call esi
mov edx, dword [0x4e3880]
push str.GetNextImage
push edx
mov dword [0x4e3890], eax
call esi
mov dword [0x4e3894], eax
mov eax, dword [0x4e3880]
push str.GetImageSize
push eax
call esi
mov ecx, dword [0x4e3880]
push str.CloseGifHandle
push ecx
mov dword [0x4e3898], eax
call esi
mov edx, dword [0x4e3880]
push str.LoadGifFromMem
push edx
mov dword [0x4e389c], eax
call esi
mov dword [0x4e38a0], eax
mov eax, dword [0x4e3880]
push str.LoadGifFile
push eax
call esi
mov ecx, dword [0x4e3880]
push str.Reset
push ecx
mov dword [0x4e38a4], eax
call esi
mov edx, dword [0x4e3880]
push str.CreateCurrentBmp
push edx
mov dword [0x4e38a8], eax
call esi
mov dword [0x4e38ac], eax
mov eax, dword [0x4e3880]
push str.LoadTGAFile
push eax
call esi
mov ecx, dword [0x4e3880]
push str.LoadTgaFromMem
push ecx
mov dword [0x4e38b0], eax
call esi
mov edx, dword [0x4e3880]
push str.CreateBitmapFromTGA
push edx
mov dword [0x4e38b4], eax
call esi
mov dword [0x4e38b8], eax
mov eax, dword [0x4e3880]
push str.CloseTGAHandle
push eax
call esi
mov ecx, dword [0x4e3880]
push str.GetTgaWidth
push ecx
mov dword [0x4e38bc], eax
call esi
mov edx, dword [0x4e3880]
push str.GetTgaHeight
push edx
mov dword [0x4e38c0], eax
call esi
mov dword [0x4e38c4], eax
mov eax, dword [0x4e3880]
push str.GetTgaPalNum
push eax
call esi
mov ecx, dword [0x4e3880]
push str.GetTgaPixelDepth
push ecx
mov dword [0x4e38c8], eax
call esi
mov edx, dword [0x4e3880]
push str.GetTgaGetImageData
push edx
mov dword [0x4e38cc], eax
call esi
mov dword [0x4e38d0], eax
mov eax, dword [0x4e3880]
push str.GetTgaGetImagePalData
push eax
call esi
mov ecx, dword [0x4e3880]
push str.GetTgaGetImageAlphaData
push ecx
mov dword [0x4e38d4], eax
call esi
mov dword [0x4e38d8], eax
mov eax, dword [0x4e3888]
test eax, eax
pop esi
je 0x4adfd9
mov eax, dword [0x4e388c]
test eax, eax
je 0x4adfd9
mov eax, dword [0x4e3890]
test eax, eax
je 0x4adfd9
mov eax, dword [0x4e3894]
test eax, eax
je 0x4adfd9
mov eax, dword [0x4e3898]
test eax, eax
je 0x4adfd9
mov eax, dword [0x4e389c]
test eax, eax
je 0x4adfd9
mov eax, dword [0x4e38a0]
test eax, eax
je 0x4adfd9
mov eax, dword [0x4e38a4]
test eax, eax
je 0x4adfd9
mov eax, dword [0x4e38a8]
test eax, eax
je 0x4adfd9
mov eax, dword [0x4e38ac]
test eax, eax
je 0x4adfd9
push 0x4e3868
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
add esp, 0x104
ret
mov edx, dword [0x4e3880]
mov dword [0x4e3884], 1
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x4e3868
mov dword [0x4e3880], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add esp, 0x104
ret