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

Disassembly:
push 0xffffffffffffffff
push 0x58711d
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 0x539c90
mov cl, byte [esp + 0x134]
lea eax, [esp + 0x134]
cmp cl, bl
je 0x539c90
push 0x5ce884
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
mov esi, eax
cmp esi, ebx
je 0x539c90
mov edx, esi
lea ecx, [esp + 0x134]
sub edx, ecx
cmp edx, ebx
jle 0x539c86
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 0x539c36
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 0x539d65
mov cl, byte [esp + 0x23c]
lea eax, [esp + 0x23c]
cmp cl, bl
je 0x539d65
push 0x5ce884
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
mov esi, eax
cmp esi, ebx
je 0x539d65
mov edx, esi
lea eax, [esp + 0x23c]
sub edx, eax
cmp edx, ebx
jle 0x539d5b
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 0x539d0b
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.0053a000
add esp, 4
lea edx, [esp + 0x2c]
lea eax, [esp + 0x344]
push str.download_1.xml
push edx
push 0x5cf4a4
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 0x539fc5
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.00537a50
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push str._config_url__zipURL
call fcn.005375e0
mov ecx, dword [esp + 0x10]
push 0x5e5830
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x539f77
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
call fcn.00564cce
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 0x5d4440
push 0x104
push edx
call ebp
mov eax, dword [esp + 0x3c]
add esp, 0x14
mov esi, dword [eax + 4]
cmp esi, ebx
je 0x539f55
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 0x539f9f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebx
call fcn.004774f0
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 0x539fc5
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