Function at 0x4f7a85
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x57546c
call fcn.0051f140
sub esp, 0x56c
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [ebx + 0x54]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x48], ebx
call fcn.00402891
xor esi, esi
lea ecx, [ebx + 0x60]
mov dword [ebp - 4], esi
call fcn.004f991c
lea ecx, [ebx + 0x6c]
mov byte [ebp - 4], 1
call fcn.004f999a
lea ecx, [ebx + 0x78]
mov byte [ebp - 4], 2
call fcn.004f999a
or dword [ebx + 0x34], 0xffffffff
and byte [ebx + 0x4c], 0
push esi
mov byte [ebp - 4], 3
mov dword [ebx], 0x58a510
mov dword [ebx + 0x48], esi
mov dword [ebx + 0x24], esi
mov dword [ebx + 0x50], esi
call dword [sym.imp.Role3D.dll_Game3DEffectCreate]
cmp eax, esi
pop ecx
mov dword [0x5df2dc], eax
je 0x4f7b1b
mov esi, 0x5cd3a8
jmp 0x4f7b05
mov eax, dword [0x5df2dc]
mov edx, dword [eax]
push 1
push dword [esi]
mov ecx, eax
call dword [edx + 0x10]
add esi, 4
cmp esi, str.statusbright
jl 0x4f7b00
mov esi, str.ini_StatusTips.ini
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x38]
push 0x5c8eec
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
pop ecx
jne 0x4f7b62
push 0x2e3
lea eax, [ebp - 0x38]
push str.E:CQ2ClientRelease_17.1.93DRoleUserAttribMgr.cpp
push eax
push str.ERROR:_file__s_not_found_at__s___d
call fcn.005185c3
add esp, 0x10
jmp 0x4f80d6
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea eax, [ebp - 0x38]
push eax
push 5
mov esi, str.Place
push 0x5cd4ec
push esi
call edi
mov dword [ebx + 0x44], eax
lea eax, [ebp - 0x38]
push eax
push 5
push 0x5cd4e8
push esi
call edi
mov dword [ebx + 0xc], eax
lea eax, [ebp - 0x38]
push eax
push 0x4e20
push str.ExpendTime
push esi
call edi
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0xc]
imul eax, dword [ebx + 0x44]
mov dword [ebx + 0x28], eax
lea eax, [ebp - 0x38]
push eax
push 0x1e
push str.IconHeight
push esi
call edi
mov dword [ebx + 0x2c], eax
lea eax, [ebp - 0x38]
push eax
push 0x1e
push str.IconWidth
push esi
call edi
lea ecx, [ebp - 0x38]
mov dword [ebx + 0x30], eax
push ecx
mov ecx, dword [ebx + 0xc]
imul ecx, eax
add ecx, 5
push ecx
push str.ExpendBtnX
push esi
call edi
mov dword [ebx + 0x18], eax
lea eax, [ebp - 0x38]
push eax
push 0x1e
push str.PannelOffsetX
push esi
call edi
mov dword [ebx + 0x3c], eax
lea eax, [ebp - 0x38]
push eax
push 0x5f
push str.PannelOffsetY
push esi
call edi
mov dword [ebx + 0x40], eax
lea eax, [ebp - 0x38]
push eax
push 0
push str.ExpendBtnY
push esi
call edi
mov dword [ebx + 0x1c], eax
lea eax, [ebp - 0x38]
push eax
push 0x14
push str.ExpendBtnH
push esi
call edi
mov dword [ebx + 0x10], eax
lea eax, [ebp - 0x38]
push eax
push 0x14
push str.ExpendBtnW
push esi
call edi
mov dword [ebx + 0x14], eax
lea eax, [ebp - 0x38]
push eax
push 5
push str.Bare
push esi
call edi
mov dword [ebx + 4], eax
lea eax, [ebp - 0x38]
and byte [ebp - 0x279], 0
push eax
lea eax, [ebp - 0x378]
push 0xff
push eax
push 0x5d8050
push str.ExpendBtnTip
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x378]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x378]
push eax
lea eax, [ebp - 0x378]
push eax
lea ecx, [ebx + 0x54]
call fcn.00402557
mov ecx, dword [ebx + 4]
mov esi, dword [ebx + 0xc]
mov eax, ecx
mov dword [ebx + 8], ecx
cdq
idiv esi
test edx, edx
je 0x4f7cb8
mov eax, ecx
cdq
idiv esi
inc eax
imul eax, esi
mov dword [ebx + 8], eax
lea ecx, [ebp - 0x54]
call fcn.00402891
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 4
call fcn.00402891
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 5
call fcn.00402891
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.00402891
and byte [ebp - 0x79], 0
and byte [ebp - 0x379], 0
mov edi, dword [sym.imp.MSVCRT.dll_fscanf]
mov byte [ebp - 4], 7
lea eax, [ebp - 0x278]
mov esi, 0x5c8ed4
push eax
push esi
push dword [ebp - 0x14]
call edi
add esp, 0xc
cmp eax, 0xffffffff
je 0x4f808d
lea eax, [ebp - 0x278]
push eax
call sub.MSVCRT.dll_strlen
cmp eax, 0x200
pop ecx
jae 0x4f808d
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x278]
push str.__d_
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
cmp eax, 1
jne 0x4f7cf9
lea eax, [ebp - 0x78]
push eax
push str.Type_d_n
push dword [ebp - 0x14]
call edi
add esp, 0xc
cmp eax, 1
jne 0x4f7cf9
lea eax, [ebp - 0x278]
push eax
push str.Name_s_n
push dword [ebp - 0x14]
call edi
add esp, 0xc
cmp eax, 1
jne 0x4f7cf9
lea eax, [ebp - 0x278]
push eax
call sub.MSVCRT.dll_strlen
cmp eax, 0x200
pop ecx
jae 0x4f808d
lea eax, [ebp - 0x278]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x278]
push eax
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x74]
call fcn.00402557
lea eax, [ebp - 0x278]
push eax
push str.Num_s_n
push dword [ebp - 0x14]
call edi
add esp, 0xc
cmp eax, 1
jne 0x4f7cf9
lea eax, [ebp - 0x278]
push eax
call sub.MSVCRT.dll_strlen
cmp eax, 0x200
pop ecx
jae 0x4f808d
lea eax, [ebp - 0x278]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x278]
push eax
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x44]
call fcn.00402557
lea eax, [ebp - 0x5c]
push eax
push str.PriorityLevel_d_n
push dword [ebp - 0x14]
call edi
add esp, 0xc
cmp eax, 1
jne 0x4f7cf9
lea eax, [ebp - 0x278]
push eax
push str.Note_s_n
push dword [ebp - 0x14]
call edi
add esp, 0xc
cmp eax, 1
jne 0x4f7cf9
lea eax, [ebp - 0x278]
push eax
call sub.MSVCRT.dll_strlen
cmp eax, 0x200
pop ecx
jae 0x4f808d
push 0x5c8218
lea eax, [ebp - 0x278]
push 0x5c88bc
push eax
call fcn.00518ed9
lea eax, [ebp - 0x278]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea eax, [ebp + eax - 0x278]
lea ecx, [ebp - 0x68]
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.00402557
lea eax, [ebp - 0x278]
push eax
push esi
push dword [ebp - 0x14]
call edi
add esp, 0xc
cmp eax, 0xffffffff
je 0x4f808d
lea eax, [ebp - 0x278]
push eax
call sub.MSVCRT.dll_strlen
cmp eax, 0x200
pop ecx
jae 0x4f808d
mov esi, dword [sym.imp.MSVCRT.dll_sscanf]
lea eax, [ebp - 0x578]
push eax
lea eax, [ebp - 0x278]
push str.Effect_s
push eax
call esi
add esp, 0xc
cmp eax, 1
lea eax, [ebp - 0x578]
push eax
jne 0x4f7f21
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x578]
push eax
lea eax, [ebp - 0x578]
push eax
lea ecx, [ebp - 0x54]
call fcn.00402557
mov dword [ebp - 0x18], 1
jmp 0x4f7f63
lea eax, [ebp - 0x278]
push str.Icon_s
push eax
call esi
add esp, 0xc
cmp eax, 1
jne 0x4f7cf9
lea eax, [ebp - 0x578]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x578]
push eax
lea eax, [ebp - 0x578]
push eax
lea ecx, [ebp - 0x54]
call fcn.00402557
and dword [ebp - 0x18], 0
push 0x34
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x20], eax
test eax, eax
mov byte [ebp - 4], 8
je 0x4f7f81
mov ecx, eax
call fcn.004f8161
mov esi, eax
jmp 0x4f7f83
xor esi, esi
mov eax, dword [ebp - 0x18]
lea ecx, [esi + 0xc]
mov dword [esi], eax
mov eax, dword [ebp - 0x5c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x78]
mov dword [esi + 8], eax
lea eax, [ebp - 0x74]
cmp eax, ecx
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 7
je 0x4f7fb4
lea eax, [ebp - 0x21]
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x74]
call fcn.004059a3
lea ecx, [esi + 0x18]
lea eax, [ebp - 0x68]
cmp eax, ecx
je 0x4f7fcd
lea eax, [ebp - 0x19]
push eax
push dword [ebp - 0x64]
push dword [ebp - 0x68]
call fcn.004059a3
lea ecx, [esi + 0x24]
lea eax, [ebp - 0x44]
cmp eax, ecx
je 0x4f7fe6
lea eax, [ebp - 0x22]
push eax
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call fcn.004059a3
cmp dword [esi], 1
jne 0x4f8009
push 0
call dword [sym.imp.Role3D.dll_Game3DEffectCreate]
test eax, eax
pop ecx
mov dword [esi + 0x30], eax
je 0x4f807a
mov edx, dword [eax]
push 1
push dword [ebp - 0x54]
mov ecx, eax
call dword [edx + 0x10]
jmp 0x4f807a
push 0x68
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
mov byte [ebp - 4], 9
je 0x4f8025
mov ecx, eax
call fcn.004f57eb
jmp 0x4f8027
xor eax, eax
push 0
mov ecx, eax
mov byte [ebp - 4], 7
mov dword [esi + 0x30], eax
call fcn.004f59dc
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x4f807a
push dword [ebp - 0x54]
call fcn.004f58aa
test eax, eax
jne 0x4f807a
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x4f807a
mov eax, dword [ecx]
push 1
mov byte [ebp - 4], 0xa
call dword [eax]
jmp 0x4f806f
and dword [esi + 0x30], 0
mov dword [ebp - 4], 7
lea eax, [ebp - 0x58]
lea ecx, [ebx + 0x60]
push eax
call fcn.004f994a
mov dword [eax], esi
jmp 0x4f7cf9
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 0xc
sub eax, dword [ebp - 0x44]
cmp dword [ebp - 0x44], 0
je 0x4f80b2
push eax
push dword [ebp - 0x44]
call fcn.004027a2
pop ecx
pop ecx
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xd
call fcn.00402751
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0xe
call fcn.00402751
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xf
call fcn.00402751
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret