Function at 0x4a8e83
Capabilities:
Check if file exists
Create directory
Get file attributes
Read .ini file

Disassembly:
mov eax, 0x4ec005
call fcn.00471450
sub esp, 0x170
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
call sub.MFC42.DLL_CString::CString_4
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.BasicCtrlDll.dll_class_CString___cdecl_GetExeFolder_void_]
pop ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_4
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_4
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString_4
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CFileFind::CFileFind
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 7
push eax
push dword [esi + 0x144]
call dword [sym.imp.BasicCtrlDll.dll_int___cdecl_GetCurrentUin_struct_IQQCore___unsigned_long_int__]
pop ecx
pop ecx
push 0x8434
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::LoadStringA
push 0x8435
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::LoadStringA
push 0x8436
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::LoadStringA
push 0x84ad
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::LoadStringA
push dword [ebp - 0x28]
mov edi, str._s_d_s
lea eax, [esi + 0x708]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push edi
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea eax, [esi + 0x704]
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push edi
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea eax, [esi + 0x70c]
push dword [ebp - 0x2c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push edi
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esi + 0x710]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea eax, [esi + 0x70c]
push 0x551404
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x704]
lea edi, [esi + 0x704]
push ebx
push eax
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x4a9063
push dword [esi + 0x70c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4a9063
push 0xc
lea eax, [ebp - 0x5c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 0x70c]
add esp, 0xc
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0xc
push ecx
push eax
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4a9063
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CFileFind::Close
jmp 0x4a93c5
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CFileFind::Close
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
push edi
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.004a6b1c
push dword [esi + 0x138]
mov ecx, esi
mov dword [ebp - 0x18], eax
call fcn.0049b4f8
mov eax, dword [esi + 0x144]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x44], ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xc
call fcn.00418ac1
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x44]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea eax, [ebp - 0x1c]
push eax
push 0x504514
push dword [ebp - 0x44]
call dword [sym.imp.BasicCtrlDll.dll_long_int___cdecl_GetQQDataStr_struct_IQQData___char_const___class_CString__]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
call edi
push eax
push dword [ebp - 0x1c]
push str.shocking:begin_LoadNewSkin_s_t_d
call fcn.00401f98
mov eax, dword [esi + 0x148]
add esp, 0xc
cmp eax, ebx
je 0x4a90ff
push dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x6c]
call edi
push eax
push str.shocking:end_LoadNewSkin_t_d
call fcn.00401f98
pop ecx
mov dword [ebp - 0x38], ebx
pop ecx
mov eax, dword [esi + 0x148]
lea edx, [ebp - 0x38]
push edx
push 0x4f5028
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 0xd
call dword [ecx]
xor edi, edi
cmp dword [esi + 0x728], ebx
jle 0x4a91a3
mov eax, dword [esi + 0x724]
lea ecx, [eax + edi*4]
mov eax, dword [eax + edi*4]
cmp dword [eax + 0x44], ebx
je 0x4a918e
cmp dword [esi + 0x84], ebx
je 0x4a918e
mov ecx, dword [ecx]
mov eax, dword [esi + 0x148]
push ebx
push dword [ecx]
mov edx, dword [eax]
push eax
call dword [edx + 0xc0]
or dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [esi + 0x724]
mov eax, dword [esi]
mov ecx, dword [ecx + edi*4]
push dword [ecx]
push esi
call dword [eax + 0x110]
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x4a918e
push dword [ebp - 0x10]
mov ecx, dword [eax]
push 2
push eax
call dword [ecx + 0x30]
mov eax, dword [esi + 0x724]
mov eax, dword [eax + edi*4]
inc edi
mov dword [eax + 0x44], ebx
cmp edi, dword [esi + 0x728]
jl 0x4a9133
lea ecx, [esi + 0x1d4]
call fcn.004c456d
cmp eax, ebx
jne 0x4a91d3
cmp dword [ebp - 0x18], ebx
je 0x4a91d3
push ebx
push 0x3e8
push 5
mov dword [esi + 0x80], ebx
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x4a9392
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_4
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_AfxGetAppModuleState
mov eax, dword [eax + 4]
movzx edi, byte [eax + 0xce]
call sub.MFC42.DLL_AfxGetAppModuleState
imul edi, edi, 0x64
mov eax, dword [eax + 4]
push 0x40
pop ecx
movzx eax, byte [eax + 0xcf]
add edi, eax
xor eax, eax
mov dword [ebp - 0x3c], edi
lea edi, [ebp - 0x17b]
mov byte [ebp - 0x17c], bl
push dword [esi + 0x704]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x17c]
push 0x104
push eax
push 0x4f423c
push str.SysPanelVer
push str.PanelInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_4
lea eax, [ebp - 0x17c]
lea ecx, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CString::CString_4
push 0x8438
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::LoadStringA
push dword [ebp - 0x18]
movzx eax, word [ebp - 0x3c]
push dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push dword [ebp - 0x48]
push eax
call sub.MFC42.DLL_CString::Format
push 0xc
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 0x18
mov dword [ebp - 0x3c], edi
cmp edi, ebx
mov byte [ebp - 4], 0x11
je 0x4a92bd
mov ecx, edi
call sub.MFC42.DLL_CString::CString_4
lea ecx, [edi + 4]
mov byte [ebp - 4], 0x12
call sub.MFC42.DLL_CString::CString_4
mov byte [ebp - 4], 0x11
jmp 0x4a92bf
xor edi, edi
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::operator_1
lea eax, [esi + 0x708]
lea ecx, [edi + 4]
push eax
call sub.MFC42.DLL_CString::operator_1
lea eax, [esi + 0x1d4]
mov dword [edi + 8], eax
mov dword [ebp - 0x34], ebx
push edi
lea eax, [ebp - 0x34]
push 1
push eax
push ebx
push ebx
push 0x4a94a9
mov byte [ebp - 4], 0x14
call fcn.0040f5a9
add esp, 0x18
cmp dword [ebp - 0x34], ebx
je 0x4a9325
push 0xffffffffffffffff
push dword [ebp - 0x34]
push 0x4fce68
push 0x4e20
push 0xa
call fcn.0040f496
add esp, 0x14
test eax, eax
je 0x4a932c
mov ecx, edi
call fcn.004a9435
cmp dword [esi + 0x714], ebx
jne 0x4a935d
mov edi, 0x4a733e
lea ecx, [esi + 0x1d4]
push edi
push esi
call fcn.004ac9a3
push edi
push esi
lea ecx, [esi + 0x1d4]
call fcn.004acbb6
mov dword [esi + 0x714], 1
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 0x10
cmp eax, ebx
je 0x4a936e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 0xc
cmp eax, ebx
je 0x4a93a3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 0xb
cmp eax, ebx
je 0x4a93b4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x50]
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x4a93c5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 6
call fcn.00470ef6
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x28]
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 - 0x1c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
leave
ret