Function at 0x52b240
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x57032d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64c
push ebx
push ebp
push esi
mov dword [esp + 0x24], ecx
push edi
xor ebx, ebx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x135]
mov byte [esp + 0x134], bl
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], bl
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
push eax
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov ebp, dword [sym.imp.MSVCRT.dll__snprintf]
lea ecx, [esp + 0x2c]
push str.storm_temp
push ecx
push str._s_s_
lea edx, [esp + 0x140]
push 0x104
push edx
call ebp
add esp, 0x14
lea eax, [esp + 0x134]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x52b340
mov cl, byte [esp + 0x134]
lea eax, [esp + 0x134]
cmp cl, bl
je 0x52b340
push 0x5b4864
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
mov esi, eax
cmp esi, ebx
je 0x52b340
mov edx, esi
lea ecx, [esp + 0x134]
sub edx, ecx
cmp edx, ebx
jle 0x52b336
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2c]
inc edx
rep stosd dword es:[edi], eax
push edx
lea edx, [esp + 0x138]
stosb byte es:[edi], al
lea eax, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + 0x2c]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov cl, byte [esi + 1]
inc esi
cmp cl, bl
mov eax, esi
jne 0x52b2e6
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x23d]
lea edx, [esp + 0x2c]
mov byte [esp + 0x23c], bl
push edx
rep stosd dword es:[edi], eax
push ebx
mov ecx, 0x41
lea edi, [esp + 0x35]
push ebx
mov byte [esp + 0x38], bl
push 0x23
rep stosd dword es:[edi], eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [esp + 0x2c]
push str.storm_skinMatdata
push eax
push str._s_s_
lea ecx, [esp + 0x248]
push 0x104
push ecx
call ebp
add esp, 0x14
lea edx, [esp + 0x23c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x52b415
mov cl, byte [esp + 0x23c]
lea eax, [esp + 0x23c]
cmp cl, bl
je 0x52b415
push 0x5b4864
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
mov esi, eax
cmp esi, ebx
je 0x52b415
mov edx, esi
lea eax, [esp + 0x23c]
sub edx, eax
cmp edx, ebx
jle 0x52b40b
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2c]
inc edx
rep stosd dword es:[edi], eax
push edx
lea ecx, [esp + 0x240]
lea edx, [esp + 0x30]
push ecx
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esp + 0x2c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov cl, byte [esi + 1]
inc esi
cmp cl, bl
mov eax, esi
jne 0x52b3bb
push str.http:__moviebox.baofeng.net_movieskin_MovieSkin_1.zip
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x555]
mov byte [esp + 0x554], bl
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x44d]
mov byte [esp + 0x44c], bl
mov byte [esp + 0x344], bl
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x345]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], bl
mov dword [esp + 0x664], ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.0052b6b0
add esp, 4
lea edx, [esp + 0x2c]
lea eax, [esp + 0x344]
push str.download_1.xml
push edx
push 0x5b5428
push 0x104
push eax
call ebp
add esp, 0x14
lea ecx, [esp + 0x344]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x52b675
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x664], 1
call sub.MFC42.DLL_CString::CString_3
mov edi, vtable.CMovieSkinMgrXml.0
push ebx
mov dword [esp + 0x20], edi
call dword [sym.imp.ole32.dll_CoInitialize]
push ecx
lea edx, [esp + 0x348]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
mov byte [esp + 0x66c], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x20]
call fcn.00529100
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push str._config_url__zipURL
call fcn.00528c90
mov ecx, dword [esp + 0x10]
push 0x5cabc0
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x52b627
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
call fcn.0054f83e
push 0x2f
lea ecx, [esp + 0x1c]
mov byte [esp + 0x668], 3
call sub.MFC42.DLL_CString::ReverseFind
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Right
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x134]
push eax
push ecx
push str._s_s.tp
lea edx, [esp + 0x458]
push 0x104
push edx
mov byte [esp + 0x678], 4
call ebp
mov eax, dword [esp + 0x28]
add esp, 0x14
lea ecx, [esp + 0x23c]
lea edx, [esp + 0x554]
push eax
push ecx
push 0x5b9eb8
push 0x104
push edx
call ebp
mov eax, dword [esp + 0x3c]
add esp, 0x14
mov esi, dword [eax + 4]
cmp esi, ebx
je 0x52b605
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esi + 0x14]
call sub.MFC42.DLL_CString::operator_2
lea edx, [esp + 0x44c]
lea ecx, [esi + 0x18]
push edx
call sub.MFC42.DLL_CString::operator_2
lea eax, [esp + 0x554]
lea ecx, [esi + 0x1c]
push eax
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 4]
push eax
mov edx, dword [eax]
call dword [edx + 4]
lea ecx, [esp + 0x14]
mov byte [esp + 0x664], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x664], 2
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x20]
mov byte [esp + 0x664], 6
cmp eax, ebx
je 0x52b64f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebx
call fcn.00470970
lea ecx, [esp + 0x24]
mov byte [esp + 0x664], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x20]
mov byte [esp + 0x664], bl
cmp eax, ebx
je 0x52b675
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x10]
mov dword [esp + 0x664], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x65c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x658
ret