Function at 0x4bae74
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4ee234
call fcn.00471450
sub esp, 0x28
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_4
xor ebx, ebx
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_4
mov esi, dword [sym.imp.BasicCtrlDll.dll_class_CString___cdecl_GetExeFolder_void_]
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 1
call esi
pop ecx
push dword [eax]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push str._snewface_face.ini
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x28]
push eax
call esi
pop ecx
push dword [eax]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push str._snewface_
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x18]
push ebx
push str.MAXFACE
push str.MAIN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x34], esi
jg 0x4baf1d
xor esi, esi
jmp 0x4bb08b
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x28], ebx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push 0x2000
push ebx
push ebx
push ebx
push 0x61a
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x4bb088
push ebx
push esi
push 0x21
push 0x10
push 0x10
lea ecx, [edi + 0x30]
call sub.MFC42.DLL_CImageList::Create
test eax, eax
je 0x4bb088
push 0xffffffffffffffff
mov dword [ebp - 0x28], 1
push dword [edi + 0x34]
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
xor eax, eax
cmp esi, ebx
jle 0x4bb07f
mov esi, 0x808000
inc eax
push eax
mov dword [ebp - 0x30], eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push str._s_ld_1.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 - 0x18]
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x4bb073
lea ecx, [ebp - 0x10]
push ecx
push esi
push 1
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.QQBaseClassInDll.dll_public:_int___thiscall_CImagePro::HbitGray_struct_HBITMAP_____int__unsigned_long_int__struct_HBITMAP_____]
lea eax, [ebp - 0x14]
push 1
push eax
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
call dword [sym.imp.QQBaseClassInDll.dll_public:_int___thiscall_CImagePro::HbitAlpha32_struct_HBITMAP_____struct_HBITMAP_____struct_HBITMAP______int_]
cmp dword [ebp - 0x10], ebx
je 0x4bb04e
cmp dword [ebp - 0x14], ebx
je 0x4bb04e
push dword [ebp - 0x1c]
call sub.MFC42.DLL_CGdiObject::FromHandle
cmp eax, ebx
jne 0x4bb004
xor eax, eax
jmp 0x4bb007
mov eax, dword [eax + 4]
push esi
push eax
push dword [edi + 0x34]
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push dword [ebp - 0x10]
call sub.MFC42.DLL_CGdiObject::FromHandle
cmp eax, ebx
jne 0x4bb022
xor eax, eax
jmp 0x4bb025
mov eax, dword [eax + 4]
push esi
push eax
push dword [edi + 0x34]
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push dword [ebp - 0x14]
call sub.MFC42.DLL_CGdiObject::FromHandle
cmp eax, ebx
jne 0x4bb040
xor eax, eax
jmp 0x4bb043
mov eax, dword [eax + 4]
push esi
push eax
push dword [edi + 0x34]
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push dword [ebp - 0x1c]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0x10], ebx
je 0x4bb065
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0x14], ebx
je 0x4bb073
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x34]
jl 0x4baf86
push dword [ebp - 0x24]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret