Function at 0x479490
Capabilities:
Check os version
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e920
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1e0
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
push eax
xor esi, esi
push 0x5be360
push 1
push esi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], esi
push 0x597390
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
mov dword [ebp - 0x14], eax
jl 0x479514
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
je 0x479514
mov edx, dword [ecx]
lea eax, [ebp - 0x20]
push eax
push 0x596af8
push ecx
call dword [edx]
jmp 0x479514
cmp eax, esi
mov dword [ebp - 4], esi
jl 0x479524
cmp dword [ebp - 0x20], esi
jne 0x4797fa
mov ecx, 0x27
xor eax, eax
lea edi, [ebp - 0xe8]
lea edx, [ebp - 0xe8]
rep stosd dword es:[edi], eax
push edx
mov dword [ebp - 0xe8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp eax, esi
je 0x4795d9
cmp dword [ebp - 0xd8], 2
jne 0x4795d9
mov eax, dword [ebp - 0xe4]
cmp eax, 4
jbe 0x4795d9
cmp eax, 6
jne 0x4795d9
cmp dword [ebp - 0xe0], esi
jne 0x4795d9
push 0x104
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x5e355c
call sub.MFC42.DLL_CString::CString_3
lea eax, [ebp - 0x18]
push eax
call fcn.00443770
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0040d730
lea ecx, [ebp - 0x1ec]
push eax
push ecx
call fcn.0043bab0
add esp, 0xc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
push 1
push ecx
lea edx, [ebp - 0x1ec]
mov ecx, esp
mov dword [ebp - 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_3
call fcn.00443380
add esp, 8
jmp 0x4795eb
lea eax, [ebp - 0x1ec]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [ebp - 0x1ec]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x1ed], 0x5c
jne 0x47961c
lea edi, [ebp - 0x1ec]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp + ecx - 0x1ed], al
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_5
lea ecx, [ebp - 0x1ec]
mov byte [ebp - 4], 4
push ecx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_3
push str.ImageOle.dll
lea edx, [ebp - 0x1c]
mov bl, 5
push eax
push edx
mov byte [ebp - 4], bl
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.00572d3c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, dword [ebp - 0x14]
mov bl, 7
push esi
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CFileFind::FindFile
cmp eax, esi
jne 0x479772
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push str.GIFDLL
push 0x11d
mov ecx, dword [eax + 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x47971c
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push esi
mov edx, dword [eax + 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push esi
mov eax, dword [eax + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x47971c
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::CFile
mov ecx, dword [ebp - 0x14]
push 0
push 0x9002
push ecx
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x479711
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x479747
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.00573156
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.00572f64
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x30]
push 0
push 0
lea ecx, [ebp - 0x30]
call dword [edx + 0x30]
mov eax, dword [ebp - 0x30]
push edi
push esi
lea ecx, [ebp - 0x30]
call dword [eax + 0x40]
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::Close
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.00573156
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CFileFind::Close
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4797a3
push str.DllRegisterServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47979c
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x1c]
mov byte [ebp - 4], 9
push edx
push 0x5be360
push 1
push 0
push 0x597390
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4797df
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4797df
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push 0x596af8
push eax
call dword [ecx]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 4
call fcn.00572f64
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret