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

Disassembly:
mov eax, 0x51119d
call fcn.00484660
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_5
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_5
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_5
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_5
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_5
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString_5
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 6
call fcn.004840b8
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 7
push eax
push dword [esi + 0x238]
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 + 0x818]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push edi
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea eax, [esi + 0x814]
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 + 0x81c]
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 + 0x820]
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 + 0x81c]
push 0x5760b8
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 + 0x814]
lea edi, [esi + 0x814]
push ebx
push eax
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x4b9f07
push dword [esi + 0x81c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4b9f07
push 0xc
lea eax, [ebp - 0x5c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 0x81c]
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 0x4b9f07
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CFileFind::Close
jmp 0x4ba269
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_4
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.004b7567
push dword [esi + 0x230]
mov ecx, esi
mov dword [ebp - 0x18], eax
call fcn.004afaff
mov eax, dword [esi + 0x238]
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.00419be6
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 0x52d064
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.00401e3e
mov eax, dword [esi + 0x23c]
add esp, 0xc
cmp eax, ebx
je 0x4b9fa3
push dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x70]
call edi
push eax
push str.shocking:end_LoadNewSkin_t_d
call fcn.00401e3e
pop ecx
mov dword [ebp - 0x38], ebx
pop ecx
mov eax, dword [esi + 0x23c]
lea edx, [ebp - 0x38]
push edx
push 0x51b308
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 0xd
call dword [ecx]
xor edi, edi
cmp dword [esi + 0x838], ebx
jle 0x4ba047
mov eax, dword [esi + 0x834]
lea ecx, [eax + edi*4]
mov eax, dword [eax + edi*4]
cmp dword [eax + 0x44], ebx
je 0x4ba032
cmp dword [esi + 0x84], ebx
je 0x4ba032
mov ecx, dword [ecx]
mov eax, dword [esi + 0x23c]
push ebx
push dword [ecx]
mov edx, dword [eax]
push eax
call dword [edx + 0xc4]
or dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [esi + 0x834]
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 0x4ba032
push dword [ebp - 0x10]
mov ecx, dword [eax]
push 2
push eax
call dword [ecx + 0x30]
mov eax, dword [esi + 0x834]
mov eax, dword [eax + edi*4]
inc edi
mov dword [eax + 0x44], ebx
cmp edi, dword [esi + 0x838]
jl 0x4b9fd7
lea ecx, [esi + 0x2dc]
call fcn.004d837a
cmp eax, ebx
jne 0x4ba077
cmp dword [ebp - 0x18], ebx
je 0x4ba077
push ebx
push 0x3e8
push 5
mov dword [esi + 0x80], ebx
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x4ba236
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_5
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 + 0x814]
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 0x51a314
push str.SysPanelVer
push str.PanelInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_5
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_5
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 0x4ba161
mov ecx, edi
call sub.MFC42.DLL_CString::CString_5
lea ecx, [edi + 4]
mov byte [ebp - 4], 0x12
call sub.MFC42.DLL_CString::CString_5
mov byte [ebp - 4], 0x11
jmp 0x4ba163
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 + 0x818]
lea ecx, [edi + 4]
push eax
call sub.MFC42.DLL_CString::operator_1
lea eax, [esi + 0x2dc]
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 0x4ba34d
mov byte [ebp - 4], 0x14
call fcn.0040fc1a
add esp, 0x18
cmp dword [ebp - 0x34], ebx
je 0x4ba1c9
push 0xffffffffffffffff
push dword [ebp - 0x34]
push 0x524360
push 0x4e20
push 0xa
call fcn.0040fb07
add esp, 0x14
test eax, eax
je 0x4ba1d0
mov ecx, edi
call fcn.004ba2d9
cmp dword [esi + 0x824], ebx
jne 0x4ba201
mov edi, 0x4b81db
lea ecx, [esi + 0x2dc]
push edi
push esi
call fcn.004bd4e3
push edi
push esi
lea ecx, [esi + 0x2dc]
call fcn.004bd6f6
mov dword [esi + 0x824], 1
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 0x10
cmp eax, ebx
je 0x4ba212
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 0x4ba247
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 0xb
cmp eax, ebx
je 0x4ba258
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x50]
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x4ba269
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