Function at 0x100a1bb0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015df7f
mov eax, dword fs:[0]
push eax
sub esp, 0x588
mov eax, dword [0x101ba0ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x53c]
push eax
call sym.WnSkinPreview.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_CSkinData::GetTempSkinRoot_void_
cmp dword [eax + 0x14], 8
jb 0x100a1bf4
mov eax, dword [eax]
push 0x1018f110
push str.TempSkin
push eax
lea eax, [ebp - 0x31c]
push 0x101843b0
push eax
call fcn.10041b40
mov eax, dword [ebp - 0x528]
add esp, 0x14
cmp eax, 8
jb 0x100a1c31
inc eax
lea ecx, [ebp - 0x53c]
push eax
push dword [ebp - 0x53c]
call fcn.10042120
lea eax, [ebp - 0x53c]
mov ecx, edi
push eax
call sym.WnSkinPreview.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_CSkinData::GetTempSkinRoot_void_
cmp dword [eax + 0x14], 8
jb 0x100a1c47
mov eax, dword [eax]
push 0x1018f110
push str.TempSkin
push eax
lea eax, [ebp - 0x524]
push 0x101843b0
push eax
call fcn.10041b40
mov eax, dword [ebp - 0x528]
add esp, 0x14
cmp eax, 8
jb 0x100a1c84
inc eax
lea ecx, [ebp - 0x53c]
push eax
push dword [ebp - 0x53c]
call fcn.10042120
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x31c]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 1
call ebx
push 0
push 0
push eax
lea eax, [ebp - 0x114]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x31c]
push eax
push 0
push 1
call ebx
lea ecx, [ebp - 0x594]
call fcn.10106970
push 0x38
mov dword [ebp - 4], 0
call fcn.1010a803
add esp, 4
mov dword [ebp - 0x548], eax
push 0x10184650
push str.UTF_8
push 0x10190e08
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.10106860
push eax
lea ecx, [ebp - 0x594]
mov byte [ebp - 4], 0
call fcn.101076b0
push 0x50
call fcn.1010a803
add esp, 4
mov dword [ebp - 0x548], eax
push str.TheSkin
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.10106a50
mov esi, eax
mov byte [ebp - 4], 0
push 0x10190e08
push str.version
mov ecx, esi
call fcn.10108070
push esi
mov ecx, edi
call sym.WnSkinPreview.dll_public:_void___thiscall_CSkinData::SaveSkinConfigureElement_class_TiXmlElement__
push esi
mov ecx, edi
call sym.WnSkinPreview.dll_public:_void___thiscall_CSkinData::SaveFontStyleElement_class_TiXmlElement__
push str.SkinStyle_H1
push esi
mov ecx, edi
call sym.WnSkinPreview.dll_public:_void___thiscall_CSkinData::SaveStyleElement_class_TiXmlElement___wchar_t_const__
push str.SkinStyle_V1
push esi
mov ecx, edi
call sym.WnSkinPreview.dll_public:_void___thiscall_CSkinData::SaveStyleElement_class_TiXmlElement___wchar_t_const__
push str.SkinStyle_H2
push esi
mov ecx, edi
call sym.WnSkinPreview.dll_public:_void___thiscall_CSkinData::SaveStyleElement_class_TiXmlElement___wchar_t_const__
push str.SkinStyle_V2
push esi
mov ecx, edi
call sym.WnSkinPreview.dll_public:_void___thiscall_CSkinData::SaveStyleElement_class_TiXmlElement___wchar_t_const__
push str.Scheme_H1
push esi
mov ecx, edi
call sym.WnSkinPreview.dll_public:_void___thiscall_CSkinData::SaveSchemeElement_class_TiXmlElement___wchar_t_const__
push str.Scheme_V1
push esi
mov ecx, edi
call sym.WnSkinPreview.dll_public:_void___thiscall_CSkinData::SaveSchemeElement_class_TiXmlElement___wchar_t_const__
push str.Comp_H2
push esi
mov ecx, edi
call sym.WnSkinPreview.dll_public:_void___thiscall_CSkinData::SaveSchemeElement_class_TiXmlElement___wchar_t_const__
push str.Cand_H2
push esi
mov ecx, edi
call sym.WnSkinPreview.dll_public:_void___thiscall_CSkinData::SaveSchemeElement_class_TiXmlElement___wchar_t_const__
push str.Comp_V2
push esi
mov ecx, edi
call sym.WnSkinPreview.dll_public:_void___thiscall_CSkinData::SaveSchemeElement_class_TiXmlElement___wchar_t_const__
push str.Cand_V2
push esi
mov ecx, edi
call sym.WnSkinPreview.dll_public:_void___thiscall_CSkinData::SaveSchemeElement_class_TiXmlElement___wchar_t_const__
push esi
mov ecx, edi
call sym.WnSkinPreview.dll_public:_void___thiscall_CSkinData::SaveStatusStyle_class_TiXmlElement__
push esi
lea ecx, [ebp - 0x594]
call fcn.101076b0
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x594]
call fcn.10108000
xor ebx, ebx
lea eax, [ebp - 0x31c]
push ebx
push 0x80
push 4
push ebx
push 1
push 0x80000000
push eax
mov dword [ebp - 0x544], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x548], eax
cmp eax, 0xffffffff
je 0x100a1e37
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 0x544], eax
lea esi, [ebx + 1]
push esi
call fcn.10050ec0
push esi
mov edi, eax
push 0
push edi
call fcn.1012bcf0
mov ebx, dword [ebp - 0x548]
lea eax, [ebp - 0x54c]
add esp, 0x10
mov dword [ebp - 0x54c], 0
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10050ec0
mov ecx, dword [ebp - 0x544]
mov ebx, eax
lea ecx, [ecx*2 + 2]
push ecx
push 0
push ebx
call fcn.1012bcf0
push ebx
push edi
call fcn.101108c3
push esi
push 0
push edi
call fcn.1012bcf0
mov eax, dword [ebp - 0x544]
lea esi, [eax*2 + 1]
push esi
call fcn.10050ec0
push esi
push 0
push eax
mov dword [ebp - 0x544], eax
call fcn.1012bcf0
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 0x34
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call esi
push 0
push 0
push eax
push dword [ebp - 0x544]
mov dword [ebp - 0x548], eax
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call esi
lea eax, [ebp - 0x524]
push 0x10190e84
push eax
call fcn.1013f64a
mov esi, eax
add esp, 8
test esi, esi
je 0x100a1f97
push esi
push 1
lea eax, [ebp - 0x53d]
mov byte [ebp - 0x53d], 0xef
push 1
push eax
call fcn.1013f8b0
push esi
push 1
lea eax, [ebp - 0x53d]
mov byte [ebp - 0x53d], 0xbb
push 1
push eax
call fcn.1013f8b0
push esi
push 1
lea eax, [ebp - 0x53d]
mov byte [ebp - 0x53d], 0xbf
push 1
push eax
call fcn.1013f8b0
mov eax, dword [ebp - 0x548]
push esi
dec eax
push eax
push 1
push dword [ebp - 0x544]
call fcn.1013f8b0
add esp, 0x40
push esi
call fcn.1013f97e
add esp, 4
push edi
call fcn.10050eb0
push ebx
call fcn.10050eb0
push dword [ebp - 0x544]
call fcn.10050eb0
mov eax, dword [ebp - 0x560]
add esp, 0xc
mov dword [ebp - method.TiXmlDocument.virtual_0], vtable.TiXmlDocument.0
cmp eax, 0x101c5520
je 0x100a1fd1
push eax
call fcn.10050eb0
add esp, 4
lea ecx, [ebp - 0x594]
call fcn.10106d20
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010a7f2
mov esp, ebp
pop ebp
ret