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

Disassembly:
mov eax, 0x4de3c1
call fcn.0046fad0
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.0046f570
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 7
push eax
push dword [esi + 0x140]
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 + 0x6f4]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push edi
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea eax, [esi + 0x6f0]
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 + 0x6f8]
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 + 0x6fc]
mov byte [ebp - 4], 8
call fcn.0046f498
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea eax, [esi + 0x6f8]
push 0x52cc2c
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 fcn.0046f498
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x6f0]
lea edi, [esi + 0x6f0]
push ebx
push eax
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x49fcd8
push dword [esi + 0x6f8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x49fcd8
push 0xc
lea eax, [ebp - 0x5c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 0x6f8]
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 0x49fcd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CFileFind::Close
jmp 0x4a003a
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.0049d86e
push dword [esi + 0x134]
mov ecx, esi
mov dword [ebp - 0x18], eax
call fcn.00492d49
mov eax, dword [esi + 0x140]
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.0041861a
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 0x4f3e8c
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.00401f9c
mov eax, dword [esi + 0x144]
add esp, 0xc
cmp eax, ebx
je 0x49fd74
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.00401f9c
pop ecx
mov dword [ebp - 0x38], ebx
pop ecx
mov eax, dword [esi + 0x144]
lea edx, [ebp - 0x38]
push edx
push 0x4e5f80
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 0xd
call dword [ecx]
xor edi, edi
cmp dword [esi + 0x714], ebx
jle 0x49fe18
mov eax, dword [esi + 0x710]
lea ecx, [eax + edi*4]
mov eax, dword [eax + edi*4]
cmp dword [eax + 0x44], ebx
je 0x49fe03
cmp dword [esi + 0x84], ebx
je 0x49fe03
mov ecx, dword [ecx]
mov eax, dword [esi + 0x144]
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 + 0x710]
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 0x49fe03
push dword [ebp - 0x10]
mov ecx, dword [eax]
push 2
push eax
call dword [ecx + 0x30]
mov eax, dword [esi + 0x710]
mov eax, dword [eax + edi*4]
inc edi
mov dword [eax + 0x44], ebx
cmp edi, dword [esi + 0x714]
jl 0x49fda8
lea ecx, [esi + 0x1d0]
call fcn.004b81ec
cmp eax, ebx
jne 0x49fe48
cmp dword [ebp - 0x18], ebx
je 0x49fe48
push ebx
push 0x3e8
push 5
mov dword [esi + 0x80], ebx
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x4a0007
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 + 0x6f0]
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 0x4e51ec
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 fcn.0046f48c
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 0x49ff32
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 0x49ff34
xor edi, edi
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
mov byte [ebp - 4], 0x10
call fcn.0046f498
lea eax, [esi + 0x6f4]
lea ecx, [edi + 4]
push eax
call fcn.0046f498
lea eax, [esi + 0x1d0]
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 0x4a011e
mov byte [ebp - 4], 0x14
call fcn.0040eead
add esp, 0x18
cmp dword [ebp - 0x34], ebx
je 0x49ff9a
push 0xffffffffffffffff
push dword [ebp - 0x34]
push 0x4edbb8
push 0x4e20
push 0xa
call fcn.0040ed9a
add esp, 0x14
test eax, eax
je 0x49ffa1
mov ecx, edi
call fcn.004a00aa
cmp dword [esi + 0x700], ebx
jne 0x49ffd2
mov edi, 0x49dfb3
lea ecx, [esi + 0x1d0]
push edi
push esi
call fcn.004a3267
push edi
push esi
lea ecx, [esi + 0x1d0]
call fcn.004a347a
mov dword [esi + 0x700], 1
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 0x10
cmp eax, ebx
je 0x49ffe3
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 0x4a0018
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 0xb
cmp eax, ebx
je 0x4a0029
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x50]
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x4a003a
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