Function at 0x4bb4fd
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
mov eax, 0x4fc407
call fcn.00475fe0
sub esp, 0x1c4
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_4
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_4
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_4
mov esi, dword [sym.imp.BasicCtrlDll.dll_class_CString___cdecl_GetExeFolder_void_]
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 2
call esi
pop ecx
push dword [eax]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push str._snewface_face.ini
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x18]
push eax
call esi
pop ecx
push dword [eax]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push str._snewface_
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x10]
push ebx
push str.MAXFACE
push str.MAIN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, ebx
mov dword [ebp - 0x28], eax
jg 0x4bb5b3
xor esi, esi
jmp 0x4bb761
lea esi, [edi + 0xa4]
mov dword [ebp - 0x18], ebx
mov ecx, esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.QQBaseClassInDll.dll_public:_void___thiscall_CbmpImageList::DeleteAllBitmaps_void_]
push 0x14
push 0x14
mov ecx, esi
call dword [sym.imp.QQBaseClassInDll.dll_public:_int___thiscall_CbmpImageList::Create_int__int_]
test eax, eax
je 0x4bb75e
mov dword [ebp - 0x18], 1
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
mov edi, 0x2000
push edi
push ebx
push ebx
mov esi, 0x731
push ebx
push esi
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
cmp eax, ebx
je 0x4bb5ac
mov ecx, dword [ebp - 0x24]
push eax
call dword [sym.imp.QQBaseClassInDll.dll_public:_int___thiscall_CbmpImageList::SetAwayMask_struct_HBITMAP____]
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push edi
push ebx
push ebx
push ebx
push esi
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
cmp eax, ebx
je 0x4bb5ac
mov ecx, dword [ebp - 0x24]
push eax
call dword [sym.imp.QQBaseClassInDll.dll_public:_int___thiscall_CbmpImageList::SetInvisibleMask_struct_HBITMAP____]
cmp dword [ebp - 0x28], ebx
jle 0x4bb75e
mov esi, dword [sym.imp.QQBaseClassInDll.dll_public:_int___thiscall_CbmpImageList::AddDelayBitmap_class_CString__int_]
push 1
pop edi
push edi
lea eax, [ebp - 0x10]
push dword [ebp - 0x14]
push str._s_ld_m.bmp
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4bb704
push edi
lea eax, [ebp - 0x20]
push dword [ebp - 0x14]
push str._s_ld.bmp
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push 0x2010
push ebx
push ebx
push ebx
push dword [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x4bb7aa
push 1
lea ecx, [ebp - 0x1d0]
call sub.QQBaseClassInDll.dll_public:_void___thiscall_CxImage::constructor_unsigned_long_int_
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x1d0]
mov byte [ebp - 4], 5
call sub.QQBaseClassInDll.dll_public:_void___thiscall_CxImage::CreateFromHBITMAP_struct_HBITMAP____
push ebx
push 2
push 0x14
push 0x14
lea ecx, [ebp - 0x1d0]
call sub.QQBaseClassInDll.dll_public:_bool___thiscall_CxImage::Resample_long_int__long_int__int__class_CxImage__
push 1
lea ecx, [ebp - 0x1d0]
push dword [ebp - 0x10]
call sub.QQBaseClassInDll.dll_public:_bool___thiscall_CxImage::Save_char_const___unsigned_long_int_
push dword [ebp - 0x1c]
test al, al
je 0x4bb795
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [ebp - 0x1d0]
mov byte [ebp - 4], 2
call sub.QQBaseClassInDll.dll_public_virtual:_void___thiscall_CxImage::destructor_void_
push ebx
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 2
call esi
push 1
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 2
call esi
push 2
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 2
call esi
inc edi
lea eax, [edi - 1]
cmp eax, dword [ebp - 0x28]
jl 0x4bb642
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [ebp - 0x1d0]
mov byte [ebp - 4], 2
call sub.QQBaseClassInDll.dll_public_virtual:_void___thiscall_CxImage::destructor_void_
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4bb786