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

Disassembly:
mov eax, 0x4fa311
call fcn.00475fe0
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 fcn.00475a8e
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 7
push eax
push dword [esi + 0x234]
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 + 0x80c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push edi
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea eax, [esi + 0x808]
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 + 0x810]
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 + 0x814]
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 + 0x810]
push 0x5567bc
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 + 0x808]
lea edi, [esi + 0x808]
push ebx
push eax
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x4a9ee3
push dword [esi + 0x810]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4a9ee3
push 0xc
lea eax, [ebp - 0x5c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 0x810]
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 0x4a9ee3
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CFileFind::Close
jmp 0x4aa245
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.004a7995
push dword [esi + 0x22c]
mov ecx, esi
mov dword [ebp - 0x18], eax
call fcn.004a03e5
mov eax, dword [esi + 0x234]
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.004191a7
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 0x513614
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.00401f9d
mov eax, dword [esi + 0x238]
add esp, 0xc
cmp eax, ebx
je 0x4a9f7f
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.00401f9d
pop ecx
mov dword [ebp - 0x38], ebx
pop ecx
mov eax, dword [esi + 0x238]
lea edx, [ebp - 0x38]
push edx
push 0x5030d8
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 0xd
call dword [ecx]
xor edi, edi
cmp dword [esi + 0x82c], ebx
jle 0x4aa023
mov eax, dword [esi + 0x828]
lea ecx, [eax + edi*4]
mov eax, dword [eax + edi*4]
cmp dword [eax + 0x44], ebx
je 0x4aa00e
cmp dword [esi + 0x84], ebx
je 0x4aa00e
mov ecx, dword [ecx]
mov eax, dword [esi + 0x238]
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 + 0x828]
mov eax, dword [esi]
mov ecx, dword [ecx + edi*4]
push dword [ecx]
push esi
call dword [eax + 0x114]
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x4aa00e
push dword [ebp - 0x10]
mov ecx, dword [eax]
push 2
push eax
call dword [ecx + 0x30]
mov eax, dword [esi + 0x828]
mov eax, dword [eax + edi*4]
inc edi
mov dword [eax + 0x44], ebx
cmp edi, dword [esi + 0x82c]
jl 0x4a9fb3
lea ecx, [esi + 0x2d8]
call fcn.004c996e
cmp eax, ebx
jne 0x4aa053
cmp dword [ebp - 0x18], ebx
je 0x4aa053
push ebx
push 0x3e8
push 5
mov dword [esi + 0x80], ebx
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x4aa212
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 + 0x808]
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 0x50229c
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 0x4aa13d
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 0x4aa13f
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 + 0x80c]
lea ecx, [edi + 4]
push eax
call sub.MFC42.DLL_CString::operator_1
lea eax, [esi + 0x2d8]
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 0x4aa329
mov byte [ebp - 4], 0x14
call fcn.0040f910
add esp, 0x18
cmp dword [ebp - 0x34], ebx
je 0x4aa1a5
push 0xffffffffffffffff
push dword [ebp - 0x34]
push 0x50b638
push 0x4e20
push 0xa
call fcn.0040f7fd
add esp, 0x14
test eax, eax
je 0x4aa1ac
mov ecx, edi
call fcn.004aa2b5
cmp dword [esi + 0x818], ebx
jne 0x4aa1dd
mov edi, 0x4a81b7
lea ecx, [esi + 0x2d8]
push edi
push esi
call fcn.004ad2e2
push edi
push esi
lea ecx, [esi + 0x2d8]
call fcn.004ad4f5
mov dword [esi + 0x818], 1
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 0x10
cmp eax, ebx
je 0x4aa1ee
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 0x4aa223
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 0xb
cmp eax, ebx
je 0x4aa234
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x50]
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x4aa245
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CFileFind::CFileFind
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